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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov eax, dword [esi + 0x5c]
cmp eax, edi
je 0x5898fb
test dword [esi + 0x40], 0x82000
jne 0x5898ef
test byte [esi + 0x3c], 0x20
jne 0x5898fb
test byte [eax + 0x124], 0x40
jne 0x5898fb
cmp dword [0x68a9e8], edi
mov dword [ebp - 0xc], edi
fld1
mov dword [ebp + 8], 0x80
mov dword [ebp - 8], edi
fstp dword [ebp - 4]
jle 0x589885
fld dword [esi + 0x44]
lea eax, [edi + 0x6bc3e0]
push ecx
push ecx
fsub dword [eax - 4]
fst dword [ebp - 0x24]
fld dword [esi + 0x48]
fsub dword [eax]
fst dword [ebp - 0x20]
fld dword [esi + 0x4c]
fsub dword [eax + 4]
fst dword [ebp - 0x1c]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp dword [ebp - 0x10]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [ebp - 0x10]
fstp qword [esp]
call fcn.005d2da4
fst dword [ebp - 0x14]
fld dword [0x68a9dc]
fcomp dword [0x622ff8]
pop ecx
pop ecx
fnstsw ax
test ah, 0x41
jne 0x5896ad
cmp dword [0x68a9e8], 1
jne 0x5896ad
fstp st(0)
fld dword [esi + 0x44]
fsub dword [esi + 0x50]
fld dword [esi + 0x48]
fsub dword [esi + 0x54]
push ecx
push ecx
fstp dword [ebp - 0x2c]
fld dword [esi + 0x4c]
fsub dword [esi + 0x58]
fstp dword [ebp - 0x28]
fsub dword [edi + 0x6bc43c]
fld dword [ebp - 0x2c]
fsub dword [edi + 0x6bc440]
fld dword [ebp - 0x28]
fsub dword [edi + 0x6bc444]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp qword [esp]
fstp st(0)
fstp st(0)
fstp st(0)
call fcn.005d2da4
fstp dword [ebp - 0x18]
fld dword [0x641a6c]
fdiv dword [0x68a9e0]
pop ecx
pop ecx
fstp dword [ebp - 4]
fld dword [ebp - 0x14]
fld dword [ebp - 0x18]
fsubr st(1)
fmul dword [0x68a9dc]
fsubr dword [ebp - 4]
fdiv dword [ebp - 4]
fstp dword [ebp - 4]
fld dword [ebp - 4]
fcomp dword [0x624400]
fnstsw ax
test ah, 5
jp 0x5896c4
mov dword [ebp - 4], 0x3727c5ac
fcom dword [esi + 0xc0]
fnstsw ax
test ah, 1
jne 0x5896d9
fstp st(0)
fld dword [esi + 0xc0]
fcom dword [esi + 0xbc]
fnstsw ax
test ah, 5
jp 0x5896ee
fstp st(0)
fld dword [esi + 0xbc]
fld dword [0x68a9e4]
fcomp dword [0x622ff8]
fnstsw ax
test ah, 0x44
jp 0x589731
fld dword [esi + 0xc0]
fsub dword [esi + 0xbc]
fcom dword [0x622ff8]
fnstsw ax
test ah, 0x41
jp 0x589721
fstp st(0)
jmp 0x5897a2
fld dword [esi + 0xc0]
fsub st(2)
fdiv st(1)
fstp st(2)
fstp st(0)
jmp 0x589784
fcom dword [esi + 0xbc]
fnstsw ax
test ah, 0x41
jne 0x589767
fld dword [0x68a9e4]
fcomp dword [0x64189c]
fnstsw ax
test ah, 0x44
jnp 0x589767
fld st(0)
fsub dword [esi + 0xbc]
fmul dword [0x68a9e4]
fadd dword [esi + 0xbc]
fstp st(1)
fcom dword [0x624400]
fnstsw ax
test ah, 5
jp 0x58977c
fstp st(0)
fld dword [0x624400]
fld dword [esi + 0xbc]
fdivrp st(1)
fcom dword [0x622ff8]
fnstsw ax
test ah, 5
jp 0x589795
fstp st(0)
fldz
fcom dword [0x64189c]
fnstsw ax
test ah, 0x41
jne 0x5897a6
fstp st(0)
fld1
fmul dword [0x62332c]
call fcn.005d0268
cmp eax, dword [ebp - 0xc]
jle 0x5897b9
mov dword [ebp - 0xc], eax
cmp dword [0x68a9e8], 1
jne 0x589871
fld dword [ebp - 0x10]
push ecx
push ecx
fstp qword [esp]
call fcn.005d2da4
fcom dword [0x622ff8]
pop ecx
pop ecx
fnstsw ax
test ah, 0x41
jp 0x5897ec
fstp st(0)
fldz
fldz
fldz
jmp 0x589807
fld1
fdiv st(1)
fstp dword [ebp + 8]
fstp st(0)
fld dword [ebp + 8]
fmul dword [ebp - 0x24]
fld dword [ebp + 8]
fmul dword [ebp - 0x20]
fld dword [ebp + 8]
fmul dword [ebp - 0x1c]
fld dword [edi + 0x68a9b4]
fmul st(1)
fld dword [edi + 0x68a9b0]
fmul st(3)
faddp st(1)
fld dword [edi + 0x68a9ac]
fmul st(4)
faddp st(1)
fmul dword [0x641a68]
call fcn.005d0268
fstp st(0)
mov ecx, 0x80
fstp st(0)
sub ecx, eax
fstp st(0)
mov dword [ebp + 8], ecx
jns 0x589846
and dword [ebp + 8], 0
jmp 0x589852
mov eax, 0xff
cmp ecx, eax
jle 0x589852
mov dword [ebp + 8], eax
fild dword [ebp + 8]
mov eax, dword [0x688c20]
fsub dword [0x623328]
fmul dword [eax + 0x14]
fadd dword [0x623328]
call fcn.005d0268
mov dword [ebp + 8], eax
inc dword [ebp - 8]
mov eax, dword [0x68a9e8]
add edi, 0xc
cmp dword [ebp - 8], eax
jl 0x5895c5
mov eax, dword [ebp - 0xc]
mov edi, dword [esi + 0x1c]
test byte [esi + 0x3c], 1
mov dword [esi + 0x78], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x7c], eax
jne 0x5898af
mov eax, dword [0x688c20]
mov ecx, 0xff
mov eax, dword [eax + 0x10]
imul eax, edi
cdq
idiv ecx
mov edi, eax
cmp dword [ebp + 0xc], 0
je 0x5898d8
push dword [esi + 0x20]
push esi
call dword [esi + 0x194]
push edi
push esi
call dword [esi + 0x19c]
push 0
push dword [ebp + 8]
push esi
call dword [esi + 0x1a0]
add esp, 0x1c
jmp 0x5898fb
push edi
push esi
call fcn.0058af67
push 0
push dword [ebp + 8]
push esi
call fcn.0058afd8
add esp, 0x14
jmp 0x5898fb
fld1
mov dword [esi + 0x78], 0xff
fstp dword [esi + 0x7c]
pop edi
pop esi
leave
ret