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

Disassembly:
push ebx
push esi
mov ebx, ecx
push edi
push ebp
sub esp, 0xc0
cmp dword [ebx + 0x18], 2
fldz
fldz
jne 0x54dc00
fld dword [ebx + 0xc]
fmul dword [0x975424]
fmul dword [0x696a94]
fadd dword [ebx + 0x10]
fstp dword [ebx + 0x10]
fld dword [ebx + 0x10]
fstp st(1)
fld dword [ebx + 8]
fstp st(2)
fld st(1)
fcomp st(1)
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x54d760
fld st(1)
jmp 0x54d762
fld st(0)
fstp st(2)
fld st(1)
fstp dword [ebx + 0x10]
fld dword [ebx + 0x10]
fstp st(2)
fld dword [0x696aa4]
fcomp st(2)
fnstsw ax
test ah, 0x45
jne 0x54d785
fld dword [0x696aa4]
jmp 0x54d787
fld st(1)
fstp st(2)
fld st(1)
fstp dword [ebx + 0x10]
cmp dword [ebx + 0x1c], 0
jne 0x54d7b6
cmp dword [ebx + 0x20], 0
jne 0x54d7b6
cmp dword [ebx + 0x24], 0
jne 0x54d7b6
cmp dword [ebx + 0x28], 0
jne 0x54d7b6
cmp dword [ebx + 0x2c], 0
jne 0x54d7b6
cmp dword [ebx + 0x30], 0
je 0x54dc04
fld dword [0x696a40]
fmul dword [ebx + 0x14]
fsubr dword [ebx + 0x10]
fstp st(2)
fld dword [0x696aa4]
fcomp st(2)
fnstsw ax
test ah, 0x45
jne 0x54d7e0
fld dword [0x696aa4]
jmp 0x54d7e2
fld st(1)
fstp st(2)
lea eax, [esp + 0x2c]
lea edx, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
fld st(1)
push edx
push eax
push eax
mov ecx, ebx
fstp dword [esp]
fcompp
call fcn.0054d630
fldz
fldz
fld dword [0x696a40]
fmul dword [ebx + 0x14]
fadd dword [ebx + 0x10]
fstp st(1)
fld dword [ebx + 8]
fstp st(2)
fld st(1)
fcomp st(1)
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x54d830
fld st(1)
jmp 0x54d832
fld st(0)
fstp st(2)
lea eax, [esp + 0x38]
lea ebp, [esp + 0x34]
push eax
lea eax, [esp + 0x34]
fld st(1)
push ebp
push eax
push eax
mov ecx, ebx
fstp dword [esp]
fcompp
call fcn.0054d630
fld dword [esp + 0x30]
fsub dword [esp + 0x24]
fstp dword [esp + 0x48]
fld dword [esp + 0x34]
fsub dword [esp + 0x28]
lea ecx, [esp + 0x48]
fstp dword [esp + 0x4c]
fld dword [esp + 0x38]
fsub dword [esp + 0x2c]
fstp dword [esp + 0x50]
call fcn.004dfea0
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x48]
push eax
lea eax, [esp + 0xac]
push ecx
push eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0x3f800000
call fcn.004e00b0
mov eax, dword [esp + 0xb4]
add esp, 0xc
mov edx, dword [esp + 0xac]
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x54]
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], edx
call fcn.004dfea0
lea eax, [esp + 0x48]
lea ebp, [esp + 0x54]
push eax
lea eax, [esp + 0xb8]
push ebp
push eax
call fcn.004e00b0
mov eax, dword [esp + 0xc0]
add esp, 0xc
lea edi, [esp + 0x70]
mov dword [esp + 0x3c], eax
xor ebp, ebp
mov ecx, dword [esp + 0xb8]
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x40], ecx
mov dword [esp + 8], edi
mov dword [esp + 0x44], eax
mov eax, dword [ebx + ebp*4 + 0x1c]
test eax, eax
je 0x54dbe8
add eax, 4
lea ecx, [esp + 0x60]
push eax
call fcn.004dfba0
mov esi, dword [ebx + ebp*4 + 0x1c]
add esi, 4
lea eax, [esi + 0x30]
fldz
fldz
fld dword [eax]
fstp dword [esp + 0xc]
fld dword [eax + 4]
fstp dword [esp + 0x10]
fld dword [eax + 8]
fstp dword [esp + 0x14]
fld dword [esp + 0x2c]
fadd dword [esp + 0x38]
fmul dword [0x696a40]
fstp st(1)
fld dword [esp + 0x28]
fadd dword [esp + 0x34]
fmul dword [0x696a40]
fstp st(2)
fld dword [esp + 0x24]
fadd dword [esp + 0x30]
fmul dword [0x696a40]
fstp dword [esi + 0x30]
fld st(1)
fstp dword [esi + 0x34]
fst dword [esi + 0x38]
fld dword [esp + 0x54]
mov eax, dword [ebx + ebp*4 + 0x1c]
fstp dword [eax + 4]
fld dword [esp + 0x58]
mov ecx, dword [ebx + ebp*4 + 0x1c]
fstp dword [ecx + 8]
fld dword [esp + 0x5c]
mov eax, dword [ebx + ebp*4 + 0x1c]
fstp dword [eax + 0xc]
fld dword [esp + 0x3c]
mov eax, dword [ebx + ebp*4 + 0x1c]
fstp dword [eax + 0x24]
fld dword [esp + 0x40]
mov edx, dword [ebx + ebp*4 + 0x1c]
fstp dword [edx + 0x28]
fld dword [esp + 0x44]
mov eax, dword [ebx + ebp*4 + 0x1c]
fstp dword [eax + 0x2c]
fld dword [esp + 0x48]
mov eax, dword [ebx + ebp*4 + 0x1c]
fstp dword [eax + 0x14]
fld dword [esp + 0x4c]
mov ecx, dword [ebx + ebp*4 + 0x1c]
fstp dword [ecx + 0x18]
fld dword [esp + 0x50]
mov eax, dword [ebx + ebp*4 + 0x1c]
fstp dword [eax + 0x1c]
fcompp
mov ecx, dword [ebx + ebp*4 + 0x1c]
add ecx, 4
call fcn.004df8f0
mov ecx, dword [ebx + ebp*4 + 0x1c]
call fcn.00489360
mov ecx, dword [ebx + ebp*4 + 0x1c]
mov al, byte [ecx + 0x52]
shr al, 6
and al, 1
jne 0x54da73
fld dword [esp + 0xc]
lea esi, [ecx + 0x34]
mov byte [esp], 0
fcomp dword [esi]
fnstsw ax
xor dl, dl
and ah, 0x44
cmp ah, 0x40
jne 0x54da48
fld dword [esp + 0x10]
fcomp dword [esi + 4]
fnstsw ax
and ah, 0x44
cmp ah, 0x40
jne 0x54da48
mov dl, 1
test dl, dl
je 0x54da61
fld dword [esp + 0x14]
fcomp dword [esi + 8]
fnstsw ax
and ah, 0x44
cmp ah, 0x40
jne 0x54da61
mov byte [esp], 1
xor eax, eax
cmp byte [esp], 0
jne 0x54da6a
inc eax
test al, al
je 0x54da73
call fcn.004baee0
mov ecx, dword [ebx + ebp*4 + 0x1c]
add ecx, 4
call fcn.004df8f0
mov ecx, dword [ebx + ebp*4 + 0x1c]
call fcn.00489360
mov ecx, dword [ebx + ebp*4 + 0x1c]
fldz
fldz
fldz
fldz
fld dword [ecx + 0x3c]
fsub dword [esp + 0x98]
fstp st(4)
fld dword [ecx + 0x34]
fsub dword [esp + 0x90]
fstp st(3)
fld dword [ecx + 0x38]
fsub dword [esp + 0x94]
fstp st(2)
fld st(3)
fstp st(1)
fld dword [0x696a38]
fdiv dword [0x975424]
fstp st(4)
fld st(3)
fmulp st(3)
fld st(3)
fmulp st(2)
fmul st(3)
fld st(2)
fstp dword [ecx + 0x70]
fld st(1)
fstp dword [ecx + 0x74]
fst dword [ecx + 0x78]
mov edx, dword [ebx + ebp*4 + 0x1c]
add edx, 0x14
fld dword [edx]
mov eax, edx
fchs
fld dword [eax + 4]
fpatan
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
mov eax, dword [esp + 8]
fstp st(4)
fld dword [eax]
fchs
fld dword [edi + 4]
fpatan
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp st(3)
fld st(3)
fsub st(3)
fstp st(4)
fld st(3)
fcomp dword [0x696ae4]
fnstsw ax
test ah, 0x45
jne 0x54db47
lea eax, [eax]
fld dword [0x696ae8]
fsubp st(4)
fld st(3)
fcomp dword [0x696ae4]
fnstsw ax
test ah, 0x45
je 0x54db30
fld st(3)
fcomp dword [0x696aec]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x54db7a
lea eax, [eax]
fld dword [0x696ae8]
faddp st(4)
fld st(3)
fcomp dword [0x696aec]
fnstsw ax
and ah, 5
cmp ah, 1
je 0x54db60
fld st(3)
fdiv dword [0x975424]
mov eax, dword [ebx + ebp*4 + 0x1c]
mov dword [eax + 0x7c], 0
mov dword [eax + 0x80], 0
fstp st(4)
fld st(3)
fstp dword [eax + 0x84]
mov eax, dword [ebx + ebp*4 + 0x1c]
add eax, 0x88
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov eax, dword [ebx + ebp*4 + 0x1c]
fcompp
fcompp
add eax, 0x94
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
lea ecx, [esp + 0x60]
call fcn.004dfae0
inc ebp
cmp ebp, 6
jl 0x54d920
add esp, 0xc0
pop ebp
pop edi
pop esi
pop ebx
ret
fcompp
jmp 0x54dbf2
fcompp
jmp 0x54dbf2