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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x194
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x70]
call fcn.00463130
lea ecx, [esp + 0x40]
call fcn.00463130
mov eax, dword [esi + 0x138]
test eax, eax
jne 0x589c70
mov eax, dword [esi + 0x244]
lea ecx, [esp + 0x70]
push ecx
push 0
push eax
call dword [eax + 0xc]
add eax, 0x10
push eax
lea edi, [esi + 0x140]
lea edx, [esp + 0x90]
push edi
push edx
call fcn.00598540
mov eax, dword [esi + 0x248]
lea ecx, [esp + 0x58]
push ecx
push 0
push eax
call dword [eax + 0xc]
add eax, 0x10
push eax
lea ebx, [esi + 0x1c0]
lea edx, [esp + 0x78]
push ebx
push edx
call fcn.00598540
fld dword [esp + 0x80]
fsub dword [esp + 0xb0]
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esi + 0x180]
fstp dword [esp + 0xd4]
push edx
fld dword [esp + 0x8c]
push edi
fsub dword [esp + 0xc0]
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0xb0]
fstp dword [esp + 0xe4]
push edx
fld dword [esp + 0x9c]
lea ecx, [esp + 0xe4]
fsub dword [esp + 0xcc]
push ecx
fstp dword [esp + 0xf0]
fld dword [esp + 0xe8]
fchs
fld dword [esp + 0xec]
fchs
fld dword [esp + 0xf0]
fchs
fstp dword [esp + 0x100]
mov eax, dword [esp + 0x100]
fxch st(1)
mov dword [esp + 0x80], eax
mov eax, dword [esi + 0x244]
fstp dword [esp + 0x78]
push eax
fstp dword [esp + 0x80]
call dword [eax + 8]
mov eax, dword [esi + 0x248]
add esp, 0x4c
lea edx, [esp + 0x40]
push edx
lea ecx, [esi + 0x200]
push ecx
push ebx
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x44]
push edx
push eax
call dword [eax + 8]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
lea edi, [esi + 0x60]
add esp, 0x1c
mov dword [edi], eax
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x50]
mov dword [edi + 8], edx
mov edx, dword [esp + 0x58]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [esi + 0xa0], eax
movsx eax, word [esp + 0x7c]
mov dword [esi + 0xa8], edx
movsx edx, word [esp + 0x4c]
mov dword [esi + 0xa4], ecx
mov dword [esi + 0x110], eax
mov dword [esi + 0x124], edx
mov ecx, 1
mov dword [esi + 0x134], ecx
mov dword [esi + 0x120], ecx
mov eax, dword [edi]
fld dword [edi + 4]
fld dword [edi + 8]
mov dword [esi + 0xe0], eax
fxch st(1)
fstp dword [esi + 0xe4]
fstp dword [esi + 0xe8]
mov edx, dword [esi + 0xa0]
fld dword [esi + 0xa4]
fld dword [esi + 0xa8]
mov dword [esi + 0xf0], edx
fxch st(1)
fstp dword [esi + 0xf4]
fstp dword [esi + 0xf8]
fld dword [esi + 0xf0]
fsub dword [esi + 0xe0]
fld dword [esi + 0xf4]
fsub dword [esi + 0xe4]
fld dword [esi + 0xf8]
fsub dword [esi + 0xe8]
fstp dword [esp + 0xb8]
mov eax, dword [esp + 0xb8]
fxch st(1)
fstp dword [esp + 0x20]
mov dword [esp + 0x28], eax
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
faddp st(1)
fst dword [esp + 0x18]
fcomp dword [0x6bdb0c]
fnstsw ax
test ah, 0x41
jnp 0x589ee5
mov dword [esi + 0x138], ecx
jmp 0x589dbb
mov eax, dword [esi + 0x120]
xor edi, edi
test eax, eax
jle 0x589d07
lea ecx, [esi + 0x110]
lea ebx, [esi + 0x60]
mov dword [esp + 0x18], ecx
lea ecx, [ecx]
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x244]
lea edx, [esp + 0x70]
push edx
mov edx, dword [ecx]
push edx
push eax
call dword [eax + 0xc]
mov eax, dword [esi + 0x244]
mov ecx, dword [eax + 0x10]
add esp, 0xc
cmp ecx, 2
je 0x589cd1
lea ecx, [esp + 0x80]
push ecx
lea edx, [esi + 0x140]
push edx
push ebx
call fcn.00598540
add esp, 0xc
jmp 0x589cee
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x120]
inc edi
add edx, 4
add ebx, 0x10
cmp edi, eax
mov dword [esp + 0x18], edx
jl 0x589c90
mov eax, dword [esi + 0x134]
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x589d97
lea edi, [esi + 0xa0]
lea ebx, [esi + 0x124]
jmp 0x589d30
mov edx, dword [ebx]
mov eax, dword [esi + 0x248]
lea ecx, [esp + 0x40]
push ecx
push edx
push eax
call dword [eax + 0xc]
mov eax, dword [esi + 0x248]
mov ecx, dword [eax + 0x10]
add esp, 0xc
cmp ecx, 2
je 0x589d6a
lea ecx, [esp + 0x50]
push ecx
lea edx, [esi + 0x1c0]
push edx
push edi
call fcn.00598540
add esp, 0xc
jmp 0x589d7e
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x134]
inc eax
add ebx, 4
add edi, 0x10
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x589d30
lea eax, [esp + 0x20]
lea edi, [esi + 0x60]
push eax
mov ecx, edi
call fcn.00586310
fst dword [esp + 0x18]
fcomp dword [0x6bdb0c]
fnstsw ax
test ah, 0x41
jnp 0x589ee5
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
push edi
lea ecx, [esp + 0xc4]
call fcn.00589410
fld dword [esp + 0x20]
mov eax, dword [esi + 0x244]
fchs
lea ecx, [esp + 0x70]
fld dword [esp + 0x24]
push ecx
fchs
lea ecx, [esi + 0x180]
fld dword [esp + 0x2c]
push ecx
fchs
lea ecx, [esi + 0x140]
fstp dword [esp + 0xc0]
mov edx, dword [esp + 0xc0]
push ecx
fxch st(1)
mov dword [esp + 0x44], edx
fstp dword [esp + 0x3c]
lea edx, [esp + 0x5c]
push edx
fstp dword [esp + 0x44]
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
call dword [eax + 8]
mov eax, dword [esi + 0x248]
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esi + 0x200]
push ecx
lea ecx, [esi + 0x1c0]
push ecx
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x60]
push edx
push eax
call dword [eax + 8]
movsx ecx, word [esp + 0xb4]
add esp, 0x38
lea eax, [esp + 0x80]
push eax
push edi
push ecx
lea ecx, [esi + 0x110]
call fcn.005862b0
mov ebx, eax
lea edx, [esp + 0x50]
push edx
lea eax, [esi + 0xa0]
push eax
movsx eax, word [esp + 0x54]
push eax
lea ecx, [esi + 0x124]
call fcn.005862b0
or eax, ebx
je 0x589f09
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.00586310
fst dword [esp + 0x18]
fcomp dword [0x6bda00]
fnstsw ax
test ah, 0x44
jnp 0x589ee5
fld dword [esp + 0x18]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x589ef2
mov edx, dword [esp + 0x18]
push edi
lea ecx, [esp + 0xc4]
mov dword [esp + 0x20], edx
call fcn.00589520
jmp 0x589dd0
fld dword [0x6bda00]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc0]
push ecx
mov ecx, edi
mov dword [esp + 0x1c], eax
call fcn.00589520
lea eax, [esi + 0x100]
push eax
push eax
call fcn.00599e10
fld dword [esp + 0x20]
fsqrt
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret