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

Disassembly:
sub esp, 0xfc
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push ebp
push ebp
mov esi, ecx
call fcn.00487c70
mov edi, dword [esp + 0x114]
cmp edi, ebp
mov ebx, dword [esp + 0x110]
mov eax, 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebp
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebp
mov dword [esi + 0x38], ebp
mov byte [esi + 0x3c], 0
mov byte [esi + 0x3d], 0
je 0x4562f2
cmp dword [edi + 0x78], eax
jne 0x4562f2
mov cl, byte [edi + 0x29]
test cl, cl
jne 0x4560fe
cmp dword [edi], ebp
jne 0x4560fe
xor eax, eax
mov ecx, dword [edi + 0x68]
movzx eax, al
push edi
mov dword [esp + 0x20], eax
call fcn.004b8b90
mov al, byte [edi + 0x20]
test al, al
mov dword [esp + 0x10], 7
je 0x456125
mov dword [esp + 0x10], 8
cmp dword [edi + 0x10], ebp
jle 0x456167
cmp dword [edi + 0x14], ebp
jle 0x456167
push 0xa4
call fcn.00446b60
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x456162
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
push 0
push edx
mov edx, dword [ebx]
push eax
push ecx
mov ecx, ebx
call dword [edx + 0x3c]
push eax
mov ecx, ebp
call fcn.00508640
jmp 0x456164
xor eax, eax
mov dword [esi + 0x34], eax
mov ebp, dword [esi + 0x34]
test ebp, ebp
je 0x4562eb
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x456184
mov eax, dword [ebp + 0x50]
test eax, eax
je 0x4562d7
mov ecx, ebp
call fcn.005075f0
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + 0x1c]
mov dword [esi + 0x48], ecx
mov ecx, dword [eax + 0x3c]
sar ecx, 2
mov dword [esi + 0x4c], ecx
mov edx, dword [eax + 0x10]
test edx, edx
je 0x4561bd
mov edx, dword [eax + 0x28]
mov ebx, dword [esi + 0x48]
dec edx
imul edx, ecx
shl edx, 2
add ebx, edx
mov eax, ecx
neg eax
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0x54c]
mov edx, dword [ecx + 0x38]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], edx
call fcn.0040ff30
fild dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
fstp qword [esp + 0x18]
call fcn.00443fe0
fmul qword [esp + 0x18]
push ecx
lea ecx, [esp + 0x38]
fmul qword [0x68b040]
fstp qword [esp]
push ecx
call fcn.00444060
lea edx, [esp + 0x3c]
push edx
call fcn.00444040
fmul qword [esp + 0x24]
add esp, 8
lea eax, [esp + 0x38]
fmul qword [0x68b040]
fstp qword [esp]
push eax
call fcn.004440f0
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
push 0
push 0
call fcn.00443a00
mov edx, dword [esi + 0x34]
push 0
lea ecx, [esp + 0x44]
push ecx
push edx
call fcn.0044dd60
mov edx, dword [esi + 0x34]
push 0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x64]
push ecx
push edi
push edx
call fcn.00454630
mov eax, dword [esp + 0x5c]
add esp, 0x40
test eax, eax
jne 0x456273
mov ecx, edi
call fcn.00487b50
cmp dword [esp + 0x10], 7
jne 0x4562b5
mov eax, dword [esi + 0x34]
mov edi, dword [eax + 0x24]
mov eax, dword [eax + 0x28]
test eax, eax
mov edx, dword [esi + 0x48]
jle 0x4562b5
mov ebx, eax
lea esp, [esp]
test edi, edi
mov eax, edx
je 0x4562ac
mov ecx, edi
jmp 0x4562a0
or dword [eax], 0xff000000
add eax, 4
dec ecx
jne 0x4562a0
dec ebx
mov eax, dword [esi + 0x4c]
lea edx, [edx + eax*4]
jne 0x456290
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + 0x28]
mov edx, dword [eax + 0x24]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00487c70
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret 8
test ebp, ebp
je 0x4562eb
mov ecx, ebp
call fcn.005086b0
push ebp
call fcn.006058d0
add esp, 4
mov dword [esi + 0x34], 0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret 8