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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x65c740
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x70]
cmp ecx, 0xffffffff
je 0x5d2a8e
mov eax, dword [esp + 0x74]
cmp eax, 0xffffffff
je 0x5d2a8e
cmp ecx, eax
je 0x5d2a8e
mov eax, dword [esp + 0x6c]
xor ebx, ebx
cmp eax, ebx
jne 0x5d27ee
xor esi, esi
jmp 0x5d27f9
mov ecx, dword [eax + 0x10]
push edi
call fcn.0048b610
mov esi, eax
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
mov ecx, esi
push eax
mov dword [esp + 0x68], ebx
call fcn.005db3c0
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
cmp ecx, eax
jle 0x5d282b
lea edx, [esp + 0x74]
lea eax, [esp + 0x70]
push edx
push eax
call fcn.005d2690
add esp, 8
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.005db8f0
mov edx, dword [esp + 0x70]
mov ebx, eax
mov eax, dword [esp + 0x10]
push edx
push ebx
push eax
mov ecx, edi
call fcn.005d26b0
mov ecx, dword [esp + 0x7c]
mov ebp, eax
mov dword [esp + 0x20], ebp
cmp dword [ecx], 0
je 0x5d2a4a
mov eax, dword [esp + 0x78]
test eax, eax
je 0x5d2a4a
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call fcn.00407340
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x2c], 0
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x30], 0
mov ecx, dword [eax + 0x14]
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x38], 0
fld dword [esi + 8]
sub esp, 0x10
mov edx, dword [ecx]
fst dword [esp + 0x2c]
mov eax, esp
mov byte [esp + 0x78], 1
fstp dword [esp + 0x4c]
mov dword [eax], ebx
mov ebx, dword [esp + 0x44]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x48]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x4c]
mov dword [eax + 0xc], ebx
call dword [edx + 0x18]
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00491060
mov ecx, edi
call fcn.005d4dc0
fld dword [esi + 0xc]
fadd dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
fimul dword [esp + 0x20]
mov eax, dword [eax + ebp*8]
sub ecx, eax
push ecx
mov edx, esp
mov dword [esp + 0x2c], esp
push ecx
push eax
push edx
lea ecx, [esp + 0x24]
fsubr dword [esi + 0x54]
fstp dword [esp + 0x34]
call fcn.00491740
mov ecx, esi
call fcn.005db4e0
mov eax, dword [esp + 0x7c]
xor edi, edi
fadd dword [esi + 0x4c]
mov eax, dword [eax]
test eax, eax
fstp dword [esp + 0x20]
jle 0x5d2a2d
mov edx, dword [esp + 0x10]
test edi, edi
jne 0x5d2945
mov ecx, dword [esp + 0x70]
jmp 0x5d294b
lea ecx, [edi + ebp]
mov ecx, dword [edx + ecx*8]
dec eax
cmp edi, eax
jne 0x5d2956
mov eax, dword [esp + 0x74]
jmp 0x5d2964
lea eax, [edi + ebp]
mov ebx, dword [edx + eax*8]
lea edx, [edx + eax*8]
mov eax, dword [edx + 4]
add eax, ebx
push ecx
sub eax, ecx
mov edx, esp
mov dword [esp + 0x2c], esp
push eax
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.00491740
mov ecx, esi
call fcn.005db4e0
fadd dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x2c]
mov dword [esp + 0x34], ecx
push edx
lea ecx, [esi + 0x24]
fstp dword [esp + 0x34]
fld dword [esp + 0x28]
fsub dword [esp + 0x1c]
mov dword [esp + 0x30], eax
fstp dword [esp + 0x3c]
call fcn.004a28b0
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [eax + 0x14]
lea eax, [esp + 0x3c]
push eax
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x44]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x48]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x4c]
mov dword [eax + 0xc], ebx
call dword [edx + 0x18]
mov ebx, dword [esp + 0x78]
mov edx, dword [esp + 0x3c]
mov ecx, edi
mov eax, dword [esp + 0x40]
shl ecx, 4
add ecx, ebx
inc edi
mov dword [ecx], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x7c]
mov dword [ecx + 0xc], eax
mov eax, dword [edx]
fld dword [esi + 0xc]
fadd dword [esp + 0x18]
mov ecx, dword [esi + 0x4c]
cmp edi, eax
mov dword [esp + 0x20], ecx
fsubr dword [esp + 0x24]
fstp dword [esp + 0x24]
jl 0x5d2937
mov eax, dword [esp + 0x10]
push eax
call fcn.006147dc
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 0
call fcn.00490f90
jmp 0x5d2a7d
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x10]
push ecx
push ebx
push edx
mov ecx, edi
call fcn.005d26b0
sub ebp, eax
mov ecx, dword [esp + 0x7c]
mov eax, ebp
cdq
xor eax, edx
sub eax, edx
inc eax
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5d2a7d
push eax
call fcn.006147dc
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x64], 0xffffffff
call fcn.00490f90
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret 0x14