Function at 0x588c6b
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 0x588ffb
test dword [esi + 0x40], 0x82000
jne 0x588fef
test byte [esi + 0x3c], 0x20
jne 0x588ffb
test byte [eax + 0x124], 0x40
jne 0x588ffb
cmp dword [0x689b10], edi
mov dword [ebp - 0xc], edi
fld1
mov dword [ebp + 8], 0x80
mov dword [ebp - 8], edi
fstp dword [ebp - 4]
jle 0x588f85
fld dword [esi + 0x44]
lea eax, [edi + 0x6bb500]
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.005d24a4
fst dword [ebp - 0x14]
fld dword [0x689b04]
fcomp dword [0x623010]
pop ecx
pop ecx
fnstsw ax
test ah, 0x41
jne 0x588dad
cmp dword [0x689b10], 1
jne 0x588dad
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 + 0x6bb55c]
fld dword [ebp - 0x2c]
fsub dword [edi + 0x6bb560]
fld dword [ebp - 0x28]
fsub dword [edi + 0x6bb564]
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.005d24a4
fstp dword [ebp - 0x18]
fld dword [0x641a84]
fdiv dword [0x689b08]
pop ecx
pop ecx
fstp dword [ebp - 4]
fld dword [ebp - 0x14]
fld dword [ebp - 0x18]
fsubr st(1)
fmul dword [0x689b04]
fsubr dword [ebp - 4]
fdiv dword [ebp - 4]
fstp dword [ebp - 4]
fld dword [ebp - 4]
fcomp dword [0x624418]
fnstsw ax
test ah, 5
jp 0x588dc4
mov dword [ebp - 4], 0x3727c5ac
fcom dword [esi + 0xc0]
fnstsw ax
test ah, 1
jne 0x588dd9
fstp st(0)
fld dword [esi + 0xc0]
fcom dword [esi + 0xbc]
fnstsw ax
test ah, 5
jp 0x588dee
fstp st(0)
fld dword [esi + 0xbc]
fld dword [0x689b0c]
fcomp dword [0x623010]
fnstsw ax
test ah, 0x44
jp 0x588e31
fld dword [esi + 0xc0]
fsub dword [esi + 0xbc]
fcom dword [0x623010]
fnstsw ax
test ah, 0x41
jp 0x588e21
fstp st(0)
jmp 0x588ea2
fld dword [esi + 0xc0]
fsub st(2)
fdiv st(1)
fstp st(2)
fstp st(0)
jmp 0x588e84
fcom dword [esi + 0xbc]
fnstsw ax
test ah, 0x41
jne 0x588e67
fld dword [0x689b0c]
fcomp dword [0x6418b4]
fnstsw ax
test ah, 0x44
jnp 0x588e67
fld st(0)
fsub dword [esi + 0xbc]
fmul dword [0x689b0c]
fadd dword [esi + 0xbc]
fstp st(1)
fcom dword [0x624418]
fnstsw ax
test ah, 5
jp 0x588e7c
fstp st(0)
fld dword [0x624418]
fld dword [esi + 0xbc]
fdivrp st(1)
fcom dword [0x623010]
fnstsw ax
test ah, 5
jp 0x588e95
fstp st(0)
fldz
fcom dword [0x6418b4]
fnstsw ax
test ah, 0x41
jne 0x588ea6
fstp st(0)
fld1
fmul dword [0x623344]
call fcn.005cf968
cmp eax, dword [ebp - 0xc]
jle 0x588eb9
mov dword [ebp - 0xc], eax
cmp dword [0x689b10], 1
jne 0x588f71
fld dword [ebp - 0x10]
push ecx
push ecx
fstp qword [esp]
call fcn.005d24a4
fcom dword [0x623010]
pop ecx
pop ecx
fnstsw ax
test ah, 0x41
jp 0x588eec
fstp st(0)
fldz
fldz
fldz
jmp 0x588f07
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 + 0x689adc]
fmul st(1)
fld dword [edi + 0x689ad8]
fmul st(3)
faddp st(1)
fld dword [edi + 0x689ad4]
fmul st(4)
faddp st(1)
fmul dword [0x641a80]
call fcn.005cf968
fstp st(0)
mov ecx, 0x80
fstp st(0)
sub ecx, eax
fstp st(0)
mov dword [ebp + 8], ecx
jns 0x588f46
and dword [ebp + 8], 0
jmp 0x588f52
mov eax, 0xff
cmp ecx, eax
jle 0x588f52
mov dword [ebp + 8], eax
fild dword [ebp + 8]
mov eax, dword [0x687d48]
fsub dword [0x623340]
fmul dword [eax + 0x14]
fadd dword [0x623340]
call fcn.005cf968
mov dword [ebp + 8], eax
inc dword [ebp - 8]
mov eax, dword [0x689b10]
add edi, 0xc
cmp dword [ebp - 8], eax
jl 0x588cc5
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 0x588faf
mov eax, dword [0x687d48]
mov ecx, 0xff
mov eax, dword [eax + 0x10]
imul eax, edi
cdq
idiv ecx
mov edi, eax
cmp dword [ebp + 0xc], 0
je 0x588fd8
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 0x588ffb
push edi
push esi
call fcn.0058a667
push 0
push dword [ebp + 8]
push esi
call fcn.0058a6d8
add esp, 0x14
jmp 0x588ffb
fld1
mov dword [esi + 0x78], 0xff
fstp dword [esi + 0x7c]
pop edi
pop esi
leave
ret