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

Disassembly:
fld dword [esp + 8]
sub esp, 8
fcomp dword [0x7842a0]
push ebp
push esi
push edi
mov esi, ecx
fnstsw ax
test ah, 0x41
jne 0x5aa663
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
jmp 0x5aa673
mov ecx, dword [esi + 0x20]
fld dword [ecx + 0x14]
fmul dword [0x7a1d28]
fstp dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
cmp ebp, 0xffffffff
jne 0x5aa7cf
mov edi, dword [esi + 0x3c]
cmp edi, 1
mov dword [esi + 0x54], 1
jg 0x5aa69b
mov dword [esi + 0x38], 2
jmp 0x5aa7b4
cmp dword [esi + 0x44], 3
jne 0x5aa9a5
push ebx
push 0
push edi
mov ecx, esi
call fcn.00594350
fstp dword [esp + 0x10]
cmp edi, 2
fld dword [esi + 0x7c]
fadd dword [esi + edi*4 + 0xa8]
fstp dword [esp + 0x1c]
fld dword [0x7d7d3c]
je 0x5aa6f4
mov ebx, dword [esi + 0x18]
fstp st(0)
push 1
lea edx, [edi - 1]
push edx
mov ecx, esi
call fcn.00594350
fld dword [ebx + edi*4 + 0x20]
cmp edi, 2
fdiv dword [ebx + edi*4 + 0x1c]
fmulp st(1)
fsub dword [0x78aaac]
jg 0x5aa720
mov ecx, dword [esi + 0x20]
fld dword [ecx + 0x78]
fcomp dword [0x784554]
fnstsw ax
test ah, 5
jp 0x5aa718
mov eax, dword [ecx + 0x18]
fld dword [eax]
fadd dword [0x784258]
fstp dword [esp + 0x1c]
jmp 0x5aa720
mov dword [esp + 0x1c], 0
fld dword [esp + 0x20]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
jne 0x5aa78b
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx + 0x18]
inc edx
cmp edi, edx
jge 0x5aa78b
fstp st(0)
mov edx, 1
lea ecx, [esi + 0x24]
mov ebx, 4
lea esp, [esp]
mov eax, dword [ecx]
cmp byte [eax + 0x11c], 0
je 0x5aa775
fld dword [eax + 0x118]
fcomp dword [0x7844f8]
fnstsw ax
test ah, 5
jp 0x5aa775
mov eax, 1
jmp 0x5aa777
xor eax, eax
and edx, eax
add ecx, 4
dec ebx
jne 0x5aa750
test edx, edx
je 0x5aa7b3
lea eax, [edi + 1]
mov dword [esi + 0x38], eax
jmp 0x5aa7b3
fld dword [esp + 0x20]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jp 0x5aa7b1
fld dword [esp + 0x20]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 0x41
jp 0x5aa7b3
lea ecx, [edi - 1]
mov dword [esi + 0x38], ecx
jmp 0x5aa7b3
fstp st(0)
pop ebx
cmp dword [esi + 0x44], 3
jne 0x5aa9a5
cmp dword [esi + 0x38], edi
jle 0x5aa9a5
cmp edi, 1
jmp 0x5aa997
cmp ebp, 0xfffffffe
jne 0x5aa91c
fld dword [0x865154]
mov eax, dword [esi + 0x44]
cmp eax, 3
fadd dword [esi + 0x50]
fst dword [esp + 0x10]
fstp dword [esi + 0x50]
jne 0x5aa9a5
mov edx, dword [esi + 0x20]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x3c]
cmp ecx, 2
mov dword [esp + 0xc], eax
jle 0x5aa826
mov eax, dword [esi + 0x18]
fld dword [eax + ecx*4 + 0x20]
fdiv dword [eax + ecx*4 + 0x1c]
fmul dword [0x7fc02c]
fmul dword [esp + 0xc]
jmp 0x5aa848
fld dword [edx + 0x78]
fcomp dword [0x784554]
fnstsw ax
test ah, 5
jp 0x5aa842
fld dword [esp + 0x18]
fadd dword [0x784258]
jmp 0x5aa848
fld dword [0x7d7d3c]
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x54]
cmp edx, eax
je 0x5aa8e1
mov dword [esi + 0x40], ecx
jge 0x5aa891
fld dword [esp + 0x1c]
mov dword [esi + 0x50], 0
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 0x41
jne 0x5aa882
pop edi
mov dword [esi + 0x54], ecx
mov dword [esi + 0x38], ecx
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret 8
dec ecx
pop edi
mov dword [esi + 0x38], ecx
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret 8
cmp edx, eax
fstp st(0)
jle 0x5aa8ad
inc ecx
pop edi
mov dword [esi + 0x38], ecx
mov dword [esi + 0x50], 0
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret 8
fld dword [esp + 0x18]
fadd dword [0x784258]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x5aa9a5
cmp ecx, 2
jle 0x5aa9a5
dec ecx
mov dword [esi + 0x38], ecx
pop edi
or ebp, 0xffffffff
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret 8
fstp st(0)
fld dword [esp + 0x10]
fcomp dword [0x784560]
fnstsw ax
test ah, 0x41
je 0x5aa8d3
cmp ecx, dword [esi + 0x40]
jle 0x5aa8ad
fld dword [esp + 0xc]
fsub dword [0x7852a8]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 5
jp 0x5aa8ad
pop edi
or ebp, 0xffffffff
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret 8
cmp dword [esi + 0x60], 3
jne 0x5aa981
mov eax, dword [esi + 0x3c]
cmp ebp, eax
je 0x5aa981
mov edx, dword [esi + 0x44]
mov ecx, 1
cmp edx, ecx
je 0x5aa956
mov dword [esi + 0x48], 0
fild dword [0x86518c]
pop edi
mov ebp, eax
fmul dword [0x784268]
fstp dword [esi + 0x5c]
pop esi
pop ebp
add esp, 8
ret 8
mov edx, dword [esi + 0x48]
test edx, edx
jne 0x5aa9a5
cmp ebp, eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x38], ebp
jle 0x5aa9a5
cmp eax, ecx
jl 0x5aa9a5
mov ecx, dword [esi + 0x6c]
push ecx
mov ecx, esi
call fcn.005a13b0
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret 8
mov eax, dword [esi + 0x3c]
cmp ebp, eax
je 0x5aa9a5
cmp ebp, dword [esi + 0x38]
je 0x5aa9a5
cmp ebp, eax
mov dword [esi + 0x38], ebp
jle 0x5aa9a5
cmp eax, 1
jl 0x5aa9a5
mov edx, dword [esp + 0x1c]
push edx
mov ecx, esi
call fcn.005a13b0
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret 8