Function at 0x418ad0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x88
push ebx
mov ebx, dword [esp + 0x90]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
je 0x418f51
mov ebp, dword [esp + 0xa0]
cmp ebp, esi
je 0x418f51
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x30], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 4]
cmp eax, esi
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], esi
mov dword [esp + 0x20], esi
jle 0x418eb9
mov eax, dword [ebp]
xor edi, edi
test eax, eax
mov dword [esp + 0x1c], edi
jle 0x418ea9
mov eax, edi
mov dword [esp + 0x24], 0xffffffff
shl eax, 6
cdq
and edx, 0x3f
mov dword [esp + 0x50], 3
add eax, edx
mov ecx, eax
mov eax, esi
shl eax, 5
cdq
and edx, 0x1f
add eax, edx
sar ecx, 6
sar eax, 5
lea edx, [eax + ecx]
sub eax, ecx
mov dword [esp + 0x18], edx
mov edx, dword [ebp + 0xc]
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
fmul dword [0x501510]
fstp dword [esp + 0x10]
fild dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x74], eax
mov eax, dword [edx + edi*4]
fmul dword [0x501510]
mov eax, dword [eax + esi*4]
and eax, 0xff
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
cmp eax, 0xe1
mov dword [esp + 0x78], ecx
ja case.0x418bc3.5
xor ecx, ecx
mov cl, byte [eax + 0x418f7c]
jmp dword [ecx*4 + 0x418f64]
test esi, esi
je case.0x418bc3.5
lea edx, [esp + 0x1c]
push edx
push ebx
call fcn.00419060
mov ecx, dword [ebx + 0x338]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
add esp, 8
lea ecx, [ecx + edi*4]
lea edx, [esi + esi*2]
mov dword [esp + 0x18], ecx
mov ecx, dword [ecx]
shl edx, 2
lea ebp, [edx + ecx]
xor ecx, ecx
mov cx, word [ebp - 6]
test ecx, ecx
je 0x418c26
mov ebx, dword [ebx + 0x354]
mov ebx, dword [ebx]
mov ecx, dword [ebx + ecx*4]
test ecx, ecx
je 0x418c1f
cmp dword [ecx + 4], 0xa
je 0x418c77
mov ebx, dword [esp + 0x9c]
test eax, eax
je 0x418cc4
test edi, edi
jle 0x418cc4
xor eax, eax
mov ax, word [ebp + 6]
test eax, eax
je 0x418cc4
mov ecx, dword [ebx + 0x354]
mov ecx, dword [ecx]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x418cc4
cmp dword [eax + 4], 9
jne 0x418cc4
fld dword [esp + 0x10]
fadd dword [0x501510]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fsub dword [0x501510]
fstp dword [esp + 0x14]
jmp case.0x418bc3.4
mov ebx, dword [esp + 0x9c]
fld dword [esp + 0x10]
fadd dword [0x501510]
lea edx, [esi - 1]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edx
mov byte [esp + 0x8c], 0xfb
fst dword [esp + 0x54]
fld dword [esp + 0x14]
fsub dword [0x501510]
fstp dword [esp + 0x58]
fstp dword [esp + 0x5c]
fld dword [esp + 0x14]
fadd dword [0x501510]
fstp dword [esp + 0x60]
jmp 0x418dbb
cmp esi, 1
jle 0x418d19
xor eax, eax
mov ax, word [ebp - 0x12]
test eax, eax
je 0x418d19
mov ecx, dword [ebx + 0x354]
mov ecx, dword [ecx]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x418d19
cmp dword [eax + 4], 0xa
jne 0x418d19
fld dword [esp + 0x10]
fadd dword [0x501510]
lea edx, [esi - 2]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edx
mov byte [esp + 0x8c], 0xfa
fstp dword [esp + 0x74]
fld dword [esp + 0x78]
fsub dword [0x501544]
fstp dword [esp + 0x78]
jmp 0x418d88
test edi, edi
jle 0x418e92
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 4]
xor eax, eax
mov ax, word [ecx + edx - 6]
test eax, eax
je 0x418ecf
mov ebp, dword [ebx + 0x354]
mov ebp, dword [ebp]
mov eax, dword [ebp + eax*4]
test eax, eax
je 0x418ecf
cmp dword [eax + 4], 0xa
jne 0x418ecf
fld dword [esp + 0x10]
fadd dword [0x501510]
lea ecx, [edi - 1]
lea edx, [esi - 1]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov byte [esp + 0x8c], 0xfd
fstp dword [esp + 0x74]
fld dword [esp + 0x78]
fadd dword [0x501544]
fstp dword [esp + 0x78]
fld dword [esp + 0x10]
fadd dword [0x501540]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov edx, ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], edx
fstp dword [esp + 0x5c]
fld dword [esp + 0x10]
fcomp dword [esp + 0x5c]
fnstsw ax
test ah, 0x40
je 0x418dd2
fld dword [esp + 0x58]
fcomp dword [esp + 0x60]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x74], eax
fnstsw ax
test ah, 0x40
je 0x418dda
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x78], ecx
mov edx, edi
mov eax, esi
shl edx, 6
mov dword [esp + 0x18], edx
push 0
fild dword [esp + 0x1c]
shl eax, 5
mov dword [esp + 0x1c], eax
push 0x10103
fstp dword [esp + 0x34]
fild dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
push 0x64
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], edi
fstp dword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x58], esi
mov dword [esp + 0x50], edx
call fcn.004430a0
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x418f41
lea eax, [esp + 0x24]
mov ecx, 0x19
lea esi, [esp + 0x34]
mov edi, ebp
push eax
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00419060
add esp, 8
test eax, eax
je 0x418e55
mov dword [ebp], 2
lea ecx, [ebp + 0x1c]
push ecx
call fcn.00405a30
mov edx, dword [ebx + 0x338]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push 0xacb
lea eax, [eax + eax*2]
push str.D:c2vVyruz_D3DVzEd_anim.cpp
mov edx, dword [edx + ecx*4]
push ebp
lea eax, [edx + eax*4 + 8]
push eax
call fcn.004185e0
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
add esp, 0x14
mov ebp, dword [esp + 0xa0]
mov eax, dword [ebp]
inc edi
cmp edi, eax
mov dword [esp + 0x1c], edi
jl 0x418b3b
mov eax, dword [ebp + 4]
inc esi
cmp esi, eax
mov dword [esp + 0x20], esi
jl 0x418b2a
push ebx
call fcn.00418720
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
cmp esi, 1
jle 0x418e92
xor eax, eax
mov ax, word [ecx + edx - 0x12]
test eax, eax
je 0x418e92
mov ecx, dword [ebx + 0x354]
mov edx, dword [ecx]
mov eax, dword [edx + eax*4]
test eax, eax
je 0x418e92
cmp dword [eax + 4], 0xa
jne 0x418e92
fld dword [esp + 0x10]
fadd dword [0x501510]
lea eax, [edi - 1]
lea ecx, [esi - 2]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov byte [esp + 0x8c], 0xfe
fstp dword [esp + 0x54]
fld dword [esp + 0x14]
fsub dword [0x501510]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x5c], edx
fstp dword [esp + 0x58]
fld dword [esp + 0x14]
fadd dword [0x501510]
fstp dword [esp + 0x60]
jmp 0x418dbb
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x88
ret
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x88
ret