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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x584a60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
mov ebx, ecx
push esi
lea eax, [esp + 0x54]
mov ecx, dword [ebx + 0x20]
push edi
push eax
push ecx
call dword [0x5887b4]
mov edi, dword [esp + 0x64]
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
sub edi, esi
lea esi, [ebx + 0x70]
sub eax, edx
mov dword [esp + 0x1c], edi
test esi, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], esi
je 0x53a034
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x53a21c
lea ecx, [esp + 0x48]
call fcn.004631b4
mov ebx, dword [ebp + 8]
mov dword [esp + 0x80], 0
test ebx, ebx
jne 0x53a053
xor eax, eax
jmp 0x53a056
mov eax, dword [ebx + 4]
push eax
call dword [0x587094]
push eax
lea ecx, [esp + 0x4c]
call fcn.004631ae
test eax, eax
je 0x53a202
mov edx, dword [esp + 0xc]
mov eax, dword [ebx + 4]
push edi
push edx
push eax
call dword [0x587098]
push eax
mov ecx, esi
call fcn.00463076
test eax, eax
je 0x53a202
test esi, esi
jne 0x53a097
xor eax, eax
jmp 0x53a09a
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
call fcn.004631c0
mov ecx, dword [0x5d20cc]
xor ebx, ebx
cmp ecx, 8
mov dword [esp + 0x28], eax
setle bl
dec ebx
mov dword [esp + 0x10], 0
and ebx, 0xfffffffd
add ebx, 4
test edi, edi
jle 0x53a1ed
mov eax, ebx
mov dword [esp + 0x14], edi
neg eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0xc]
xor esi, esi
test ecx, ecx
mov dword [esp + 0x18], esi
jle 0x53a1c9
fild dword [esp + 0x10]
mov edi, dword [esp + 0x14]
sub edi, ebx
fidiv dword [esp + 0x1c]
fstp qword [esp + 0x34]
fild dword [esp + 0xc]
fstp qword [esp + 0x3c]
fild dword [esp + 0x18]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
fdiv qword [esp + 0x44]
push 0x3fe00000
push 0
sub esp, 8
fstp qword [esp]
call fcn.004c57d0
mov ecx, dword [0x5d20cc]
add esp, 0x18
cmp ecx, 8
push eax
jle 0x53a148
mov ecx, dword [esp + 0x50]
push edi
push esi
push ecx
call dword [0x587140]
jmp 0x53a1af
lea ecx, [esp + 0x30]
call fcn.00463346
lea eax, [edi + ebx]
lea edx, [esi + ebx]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x2c]
neg eax
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x30]
sbb eax, eax
lea ecx, [esp + 0x68]
and eax, edx
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edx
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], edi
call dword [0x588794]
mov dword [esp + 0x2c], 0x588b4c
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 1
call fcn.00463082
mov byte [esp + 0x80], 0
mov dword [esp + 0x2c], 0x5889b0
mov eax, dword [esp + 0xc]
add esi, ebx
cmp esi, eax
mov dword [esp + 0x18], esi
jl 0x53a106
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
add ecx, ebx
add esi, eax
cmp ecx, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
jl 0x53a0da
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x53a1f4
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x50]
push eax
call fcn.004631c0
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x48]
mov dword [esp + 0x80], 0xffffffff
call fcn.004631a2
mov eax, dword [esp + 0xc]
jmp 0x53a21f
mov ebx, dword [ebp + 8]
test esi, esi
je 0x53a226
mov esi, dword [esi + 4]
mov ecx, dword [ebx + 4]
push 4
push edi
push eax
push 0
push 0
push 0
push esi
push 0
push 0
push ecx
call dword [0x5885fc]
mov ecx, dword [esp + 0x78]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4