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

Disassembly:
sub esp, 0x1c
mov eax, dword [ecx + 0x118]
fld dword [0x5b8984]
test eax, eax
mov dword [esp + 0x10], 0x5368d4a5
mov dword [esp + 0xc], 0x5368d4a5
mov dword [esp + 4], 0x5368d4a5
mov dword [esp + 8], 0xd368d4a5
mov dword [esp], 0xd368d4a5
jle 0x54d637
mov edx, dword [ecx + 0x11c]
push ebx
push ebp
push esi
add edx, 8
push edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov eax, dword [edx]
test eax, eax
jle 0x54d61d
mov ebp, dword [ecx + 0x14]
mov esi, dword [edx + 4]
and ebp, 0x800000
mov edi, esi
mov ebx, eax
mov edi, edi
test ebp, ebp
mov edx, edi
jne 0x54d598
mov edx, esi
fld dword [edx]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x54d5ab
mov eax, dword [edx]
mov dword [esp + 0x14], eax
fld dword [edx]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x54d5be
mov eax, dword [edx]
mov dword [esp + 0x10], eax
fld dword [edx + 4]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 5
jp 0x54d5d3
mov eax, dword [edx + 4]
mov dword [esp + 0x1c], eax
fld dword [edx + 4]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x54d5e8
mov eax, dword [edx + 4]
mov dword [esp + 0x18], eax
fld dword [edx + 8]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x54d5fd
mov eax, dword [edx + 8]
mov dword [esp + 0x20], eax
fcom dword [edx + 8]
fnstsw ax
test ah, 5
jp 0x54d60c
fstp st(0)
fld dword [edx + 8]
add edi, 0x40
add esi, 0x30
dec ebx
jne 0x54d590
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add edx, 0x40
dec eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
jne 0x54d574
pop edi
pop esi
pop ebp
pop ebx
mov eax, dword [esp + 0xc]
fst dword [ecx + 0x30]
mov edx, dword [esp]
fst dword [ecx + 0x3c]
mov dword [ecx + 0x20], eax
fst dword [ecx + 0x60]
mov eax, dword [esp]
fst dword [ecx + 0x6c]
fld dword [esp + 4]
mov dword [ecx + 0x28], eax
mov eax, dword [esp + 4]
fcomp dword [esp]
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x40], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x48], eax
mov eax, dword [esp + 8]
mov dword [ecx + 0x1c], edx
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x50], eax
mov eax, dword [esp]
mov dword [ecx + 0x24], edx
mov edx, dword [esp + 0xc]
mov dword [ecx + 0x58], eax
mov eax, dword [esp + 4]
mov dword [ecx + 0x2c], edx
mov dword [ecx + 0x38], edx
mov dword [ecx + 0x44], edx
mov edx, dword [esp]
mov dword [ecx + 0x64], eax
mov dword [ecx + 0x70], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x4c], edx
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x78], eax
fnstsw ax
mov dword [ecx + 0x54], edx
test ah, 0x44
mov edx, dword [esp + 8]
mov dword [ecx + 0x5c], edx
mov dword [ecx + 0x68], edx
mov dword [ecx + 0x74], edx
jp 0x54d6ce
mov eax, dword [ecx + 0x14]
and eax, 0xffffffef
jmp 0x54d6fd
fld dword [esp + 0xc]
fcomp dword [esp + 8]
fnstsw ax
test ah, 0x44
jp 0x54d6e5
mov eax, dword [ecx + 0x14]
and eax, 0xffffffef
jmp 0x54d6fd
fld dword [esp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 0x44
mov eax, dword [ecx + 0x14]
jp 0x54d6fa
and eax, 0xffffffef
jmp 0x54d6fd
or eax, 0x10
mov dword [ecx + 0x14], eax
test byte [esp + 0x20], 1
je 0x54d741
fld dword [esp]
fadd dword [esp + 4]
fmul dword [0x59e450]
fstp dword [ecx + 0xdc]
fld dword [esp + 8]
fadd dword [esp + 0xc]
fmul dword [0x59e450]
fstp dword [ecx + 0xe0]
fld dword [esp + 0x10]
fadd st(1)
fmul dword [0x59e450]
fstp dword [ecx + 0xe4]
fld dword [esp]
fsub dword [esp + 4]
fmul dword [0x59e450]
fstp dword [esp + 0x18]
fld dword [esp + 8]
fsub dword [esp + 0xc]
fmul dword [0x59e450]
fstp dword [esp + 0x20]
fsub dword [esp + 0x10]
fmul dword [0x59e450]
fld st(0)
fmul st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fsqrt
fstp dword [ecx + 0x18]
fstp st(0)
add esp, 0x1c
ret 4