___:0050BE60 CDragon__SetMoveAction proc near ; CODE XREF: CDragon__Update+72p ___:0050BE60 ; CUser__SetAttackAction+1DFp ... ___:0050BE60 ___:0050BE60 arg_0 = dword ptr 4 ___:0050BE60 arg_4 = dword ptr 8 ___:0050BE60 ___:0050BE60 cmp [esp+arg_4], 0 ___:0050BE65 push ebx ___:0050BE66 mov ebx, [esp+4+arg_0] ___:0050BE6A push esi ___:0050BE6B mov esi, ecx ___:0050BE6D jnz short loc_50BE89 ___:0050BE6F mov eax, [esi+94h] ___:0050BE75 push eax ___:0050BE76 lea ecx, [esi+8Ch] ___:0050BE7C push ecx ___:0050BE7D call _ZtlSecureFuse_long_ ___:0050BE82 add esp, 8 ___:0050BE85 cmp ebx, eax ___:0050BE87 jz short loc_50BEF2 ___:0050BE89 ___:0050BE89 loc_50BE89: ; CODE XREF: CDragon__SetMoveAction+Dj ___:0050BE89 push edi ___:0050BE8A lea edi, [esi+8Ch] ___:0050BE90 mov edx, edi ___:0050BE92 mov ecx, ebx ___:0050BE94 call _ZtlSecureTear_long_ ___:0050BE99 mov edx, [esi+0A0h] ___:0050BE9F mov [esi+94h], eax ___:0050BEA5 push edx ___:0050BEA6 lea eax, [esi+98h] ___:0050BEAC push eax ___:0050BEAD call _ZtlSecureFuse_long_ ___:0050BEB2 add esp, 8 ___:0050BEB5 cmp eax, 0FFFFFFFFh ___:0050BEB8 jg short loc_50BEC1 ___:0050BEBA mov ecx, esi ___:0050BEBC call CDragon__PrepareActionLayer ___:0050BEC1 ___:0050BEC1 loc_50BEC1: ; CODE XREF: CDragon__SetMoveAction+58j ___:0050BEC1 mov ecx, [esi+94h] ___:0050BEC7 push ecx ___:0050BEC8 push edi ___:0050BEC9 call _ZtlSecureFuse_long_ ___:0050BECE mov esi, [esi+0DCh] ___:0050BED4 add esp, 8 ___:0050BED7 pop edi ___:0050BED8 test esi, esi ___:0050BEDA jz short loc_50BEEA ___:0050BEDC lea ecx, [esi-0Ch] ___:0050BEDF pop esi ___:0050BEE0 mov [ecx+1D8h], eax ___:0050BEE6 pop ebx ___:0050BEE7 retn 8 ___:0050BEEA ; --------------------------------------------------------------------------- ___:0050BEEA ___:0050BEEA loc_50BEEA: ; CODE XREF: CDragon__SetMoveAction+7Aj ___:0050BEEA xor ecx, ecx ___:0050BEEC mov [ecx+1D8h], eax ___:0050BEF2 ___:0050BEF2 loc_50BEF2: ; CODE XREF: CDragon__SetMoveAction+27j ___:0050BEF2 pop esi ___:0050BEF3 pop ebx ___:0050BEF4 retn 8 ___:0050BEF4 CDragon__SetMoveAction endp