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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dee9d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x354
push ebx
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.004b6ca0
lea ecx, [esp + 0x58]
mov dword [esp + 0x368], 0
call fcn.0056b6a0
mov ebx, dword [ebp + 0x10]
mov byte [esp + 0x368], 1
test ebx, ebx
jle 0x59c3e9
mov esi, dword [ebp + 0xc]
mov edi, ebx
lea eax, [esi + 0x28]
lea ecx, [esp + 0x14]
push eax
call fcn.004b6dd0
lea ecx, [esp + 0x58]
push ecx
push 0
mov ecx, esi
call fcn.0056fd10
add esi, 0xc8
dec edi
jne 0x59c3c5
mov edx, dword [ebp + 0x14]
mov edi, 3
sub edi, ebx
mov dword [esp + 0xc], 0
lea esi, [edx + edx]
test esi, esi
mov dword [ebp + 0x14], esi
jle 0x59c4b6
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0xc]
lea esi, [eax + 0x1c0]
mov eax, dword [ebp + 0x28]
lea ebx, [esi - 0x30]
cmp eax, 0x5ac680
jne 0x59c456
fld qword [esi - 0x190]
fsub qword [esi]
sub esp, 8
mov edx, dword [ebx]
sub esp, 8
mov ecx, ebx
fstp qword [esp + 8]
fld qword [esi - 0x198]
fsub qword [esi - 8]
fadd qword [ebp + 0x18]
fstp qword [esp]
call dword [edx + 0x18]
jmp 0x59c47e
fld qword [esi - 0x190]
fsub qword [esi]
sub esp, 8
mov eax, dword [ebx]
sub esp, 8
mov ecx, ebx
fadd qword [ebp + 0x20]
fstp qword [esp + 8]
fld qword [esi - 0x198]
fsub qword [esi - 8]
fstp qword [esp]
call dword [eax + 0x18]
lea ecx, [esp + 0x58]
push ecx
push 0
mov ecx, ebx
call fcn.0056fd10
lea eax, [esi - 8]
lea ecx, [esp + 0x14]
push eax
call fcn.004b6dd0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x34]
mov ecx, dword [ebp + 0x14]
add eax, edi
add esi, edx
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x59c41f
mov esi, ecx
lea ecx, [esp + 0x38]
call fcn.004b6ca0
lea ecx, [esp + 0x98]
mov byte [esp + 0x368], 2
call fcn.0056b6a0
test esi, esi
mov byte [esp + 0x368], 3
mov dword [esp + 0xc], 0
jle 0x59c55f
lea eax, [edi + edi*4]
mov ecx, dword [ebp + 8]
lea eax, [eax + eax*4]
lea esi, [ecx + 0x28]
shl eax, 3
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
sub eax, ecx
mov dword [esp + 0x34], eax
jmp 0x59c509
mov eax, dword [esp + 0x34]
fld qword [esi + eax + 8]
fsub qword [esi + 8]
sub esp, 8
mov edx, dword [esi - 0x28]
lea ebx, [esi - 0x28]
sub esp, 8
mov ecx, ebx
fstp qword [esp + 8]
fld qword [eax + esi]
fsub qword [esi]
fstp qword [esp]
call dword [edx + 0x18]
lea eax, [esp + 0x98]
mov ecx, ebx
push eax
push 0
call fcn.0056fd10
push esi
lea ecx, [esp + 0x3c]
call fcn.004b6dd0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x14]
add eax, edi
add esi, edx
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x59c505
mov eax, dword [ebp + 0x28]
lea ecx, [esp + 0x14]
cmp eax, 0x5ac680
jne 0x59c595
call fcn.004b7060
mov al, byte [ebp + 0x34]
test al, al
je 0x59c583
fld qword [esp + 0x1c]
fsub st(1)
fstp qword [esp + 0x1c]
fld qword [esp + 0x2c]
fadd st(1)
fstp qword [esp + 0x2c]
fstp st(0)
fld qword [esp + 0x24]
jmp 0x59c5af
call fcn.004b7040
mov al, byte [ebp + 0x34]
test al, al
je 0x59c5ab
fld qword [esp + 0x14]
fsub st(1)
fstp qword [esp + 0x14]
fadd qword [esp + 0x24]
fld qword [esp + 0x14]
fsub qword [0x5ebe30]
lea ecx, [esp + 0x140]
fstp qword [esp + 0x14]
fld qword [esp + 0x1c]
fsub qword [0x5ebe30]
fstp qword [esp + 0x1c]
fadd qword [0x5ebe30]
fstp qword [esp + 0x24]
fld qword [esp + 0x2c]
fadd qword [0x5ebe30]
fstp qword [esp + 0x2c]
call fcn.0051dce0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push 1
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
lea ecx, [esp + 0x164]
mov byte [esp + 0x38c], 4
call fcn.0051f880
lea eax, [esp + 0x58]
lea ecx, [esp + 0x140]
push eax
push 0
call fcn.0056fd10
fld qword [esp + 0x14]
fsub qword [0x5e2790]
lea ecx, [esp + 0xd8]
fstp qword [esp + 0x14]
fld qword [esp + 0x1c]
fsub qword [0x5e2790]
fstp qword [esp + 0x1c]
fld qword [esp + 0x24]
fadd qword [0x5e2790]
fstp qword [esp + 0x24]
fld qword [esp + 0x2c]
fadd qword [0x5e2790]
fstp qword [esp + 0x2c]
call fcn.00589140
mov esi, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x30]
sub esp, 0x20
lea edx, [esp + 0x34]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x38c], 5
call fcn.004b6cb0
lea eax, [esp + 0xb8]
lea ecx, [esp + 0x78]
push eax
push ecx
lea ecx, [esp + 0x100]
call fcn.00589720
test al, al
je 0x59c80d
lea ecx, [esp + 0x208]
call fcn.0058ecd0
mov eax, dword [ebp + 0x14]
mov byte [esp + 0x368], 6
test eax, eax
mov dword [esp + 0xc], 0
jle 0x59c724
mov esi, dword [ebp + 8]
lea eax, [edi + edi*4]
lea ebx, [eax + eax*4]
shl ebx, 3
push esi
lea ecx, [esp + 0x20c]
call fcn.0058edb0
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x14]
add eax, edi
add esi, ebx
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x59c701
mov esi, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], 0
lea eax, [edx + 2]
test eax, eax
mov dword [esp + 0x10], eax
jle 0x59c76a
mov esi, dword [ebp + 0xc]
lea eax, [edi + edi*4]
lea ebx, [eax + eax*4]
shl ebx, 3
push esi
lea ecx, [esp + 0x20c]
call fcn.0058e080
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add eax, edi
add esi, ebx
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x59c746
mov esi, dword [ebp + 0x2c]
lea eax, [esp + 0x140]
lea ecx, [esp + 0x208]
push eax
call fcn.0058e080
mov edi, dword [ebp + 8]
push 0
lea ecx, [esp + 0x144]
push 0
push ecx
push 0x5ac620
lea edx, [esp + 0x218]
push esi
push edx
push edi
lea ecx, [esp + 0xf4]
call fcn.0058c0d0
test al, al
je 0x59c7f9
fld qword [esi + 0x18]
fabs
fsub qword [0x5e2858]
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x30]
push 1
lea eax, [esp + 0x144]
push 0
push eax
fstp qword [esp + 0x154]
fld qword [esi + 0x20]
fabs
fsub qword [0x5e2858]
push ecx
lea eax, [esp + 0x218]
push edx
push eax
push edi
lea ecx, [esp + 0xf4]
fstp qword [esp + 0x16c]
call fcn.0058c0d0
lea ecx, [esp + 0x208]
mov byte [esp + 0x368], 5
call fcn.0058ed30
lea ecx, [esp + 0xd8]
mov byte [esp + 0x368], 4
call fcn.005891c0
lea ecx, [esp + 0x140]
mov byte [esp + 0x368], 3
call fcn.0051ddf0
lea ecx, [esp + 0x98]
mov byte [esp + 0x368], 2
call fcn.004b7310
lea ecx, [esp + 0x38]
mov byte [esp + 0x368], 1
call fcn.0042bd50
lea ecx, [esp + 0x58]
mov byte [esp + 0x368], 0
call fcn.004b7310
lea ecx, [esp + 0x14]
mov dword [esp + 0x368], 0xffffffff
call fcn.0042bd50
mov ecx, dword [esp + 0x360]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret