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

Disassembly:
push 0xffffffffffffffff
push 0x4c5c51
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x521da0]
xor eax, esp
mov dword [esp + 0x494], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x521da0]
xor eax, esp
push eax
lea eax, [esp + 0x4ac]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4bc]
mov esi, ecx
lea ecx, [esp + 0x28c]
mov dword [esp + 0x14], eax
call fcn.0040c5c0
xor eax, eax
mov dword [esp + 0x4b4], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
or edi, 0xffffffff
lea ecx, [esp + 0x20]
mov byte [esp + 0x4b4], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], vtable.AnimationDataFrame.0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], eax
call fcn.0043de60
mov ecx, dword [esi + 0x1e24]
sub ecx, dword [esi + 0x1e20]
mov ebx, dword [esp + 0x4c0]
mov eax, 0xf2b9d649
imul ecx
add edx, ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov byte [esp + 0x4b4], 2
cmp ebx, ecx
jb 0x413610
call fcn.00496353
imul ebx, ebx, 0x21c
add ebx, dword [esi + 0x1e20]
sub esp, 0x21c
mov ecx, esp
mov dword [esp + 0x284], esp
push ebx
call fcn.0040c640
mov eax, dword [esp + 0x4a8]
lea edx, [esp + 0x28c]
push edx
mov edx, dword [eax]
lea ecx, [esp + 0x4ac]
call edx
push 1
push 1
lea eax, [esp + 0x294]
push eax
mov ecx, esi
call fcn.0040d520
mov ebp, eax
cmp ebp, edi
jne 0x413692
mov eax, dword [esp + 0x2c]
xor esi, esi
cmp eax, esi
je 0x413677
push eax
call fcn.00485196
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.00485196
jmp 0x413922
mov esi, dword [esi + 0x3b4c]
push ebp
lea ecx, [esp + 0x60]
call fcn.0040c9d0
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x5c]
push ebp
lea edx, [ebx + edi]
push esi
push edx
call fcn.00497eb0
add esp, 0xc
add ebx, ebp
mov dword [esp + 0x64], ebx
je 0x41370b
cmp ebx, 4
jl 0x4136d8
mov eax, dword [esp + 0x14]
push 4
add eax, 4
push edi
push eax
call fcn.00497eb0
add esp, 0xc
cmp ebx, 8
jl 0x4136f3
mov edx, dword [esp + 0x14]
push 4
lea ecx, [edi + 4]
push ecx
add edx, 8
push edx
call fcn.00497eb0
add esp, 0xc
cmp ebx, 0x10
jl 0x41370b
push 4
lea eax, [edi + 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00497eb0
add esp, 0xc
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov ebp, 0x10
mov dword [esp + 0x18], eax
cmp ecx, eax
jbe 0x41372d
call fcn.00496353
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x68], ecx
cmp ecx, eax
jbe 0x41373e
call fcn.00496353
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x20]
push edx
push esi
push eax
push ecx
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x34]
call fcn.0040f410
xor esi, esi
cmp dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
jle 0x4138a9
add edi, ebp
mov esi, 0x14
or eax, 0xffffffff
xor ecx, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
cmp ebx, ecx
je 0x4137b0
cmp ebx, esi
jl 0x4137b0
push 4
lea eax, [esp + 0x40]
push edi
push eax
call fcn.00497eb0
add esp, 0xc
add ebp, 4
add esi, 4
add edi, 4
test ebx, ebx
je 0x4137d1
cmp ebx, esi
jl 0x4137d1
push 4
lea ecx, [esp + 0x44]
push edi
push ecx
call fcn.00497eb0
add esp, 0xc
add ebp, 4
add esi, 4
add edi, 4
test ebx, ebx
je 0x4137f2
cmp ebx, esi
jl 0x4137f2
push 4
lea edx, [esp + 0x48]
push edi
push edx
call fcn.00497eb0
add esp, 0xc
add ebp, 4
add esi, 4
add edi, 4
test ebx, ebx
je 0x413813
cmp ebx, esi
jl 0x413813
push 4
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.00497eb0
add esp, 0xc
add ebp, 4
add esi, 4
add edi, 4
test ebx, ebx
je 0x413834
cmp ebx, esi
jl 0x413834
push 4
lea ecx, [esp + 0x50]
push edi
push ecx
call fcn.00497eb0
add esp, 0xc
add ebp, 4
add esi, 4
add edi, 4
test ebx, ebx
je 0x413855
cmp ebx, esi
jl 0x413855
push 4
lea edx, [esp + 0x54]
push edi
push edx
call fcn.00497eb0
add esp, 0xc
add ebp, 4
add esi, 4
add edi, 4
test ebx, ebx
je 0x413876
cmp ebx, esi
jl 0x413876
push 4
lea eax, [esp + 0x58]
push edi
push eax
call fcn.00497eb0
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x18]
add ecx, 0xc
add ebp, 4
add esi, 4
add edi, 4
call fcn.004126e0
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
jl 0x413773
mov edi, dword [esp + 0x5c]
xor esi, esi
cmp ebx, esi
je 0x4138ca
lea edx, [ebp + 4]
cmp ebx, edx
jl 0x4138ca
mov ecx, dword [esp + 0x14]
push 4
lea eax, [edi + ebp]
push eax
add ecx, 0x24
push ecx
call fcn.00497eb0
add esp, 0xc
add ebp, 4
cmp ebx, esi
je 0x4138ee
lea edx, [ebp + 4]
cmp ebx, edx
jl 0x4138ee
mov ecx, dword [esp + 0x14]
push 4
lea eax, [edi + ebp]
push eax
add ecx, 0x28
push ecx
call fcn.00497eb0
add esp, 0xc
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x4138ff
push eax
call fcn.00485196
add esp, 4
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.00485196
add esp, 4
cmp edi, esi
je 0x413925
push edi
call fcn.00497e19
add esp, 4
mov ecx, dword [esp + 0x4ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.00496795
add esp, 0x4a4
ret 8