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

Disassembly:
sub esp, 0x54
push edi
mov edi, ecx
mov eax, dword [edi + 0x310]
test eax, eax
jle 0x52c7cc
cmp dword [edi + 0x314], eax
jg 0x52cbc6
fldz
mov eax, dword [esp + 0x60]
fst dword [esp + 0x28]
fst dword [esp + 0x2c]
fst dword [esp + 0x30]
fld dword [eax]
fstp dword [esp + 0x10]
fld dword [eax + 4]
fstp dword [esp + 0x14]
fld dword [eax + 8]
fstp dword [esp + 0x18]
fld dword [esp + 0x10]
fld st(0)
fmul st(0), st(0)
fld qword [0x795850]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x52c859
fld dword [esp + 0x14]
fld st(0)
fmul st(0), st(0)
fcomp st(2)
fnstsw ax
test ah, 0x41
jp 0x52c8a5
fld dword [esp + 0x18]
fld st(0)
fmul st(0), st(0)
fcomp st(3)
fnstsw ax
fstp st(2)
test ah, 0x41
jp 0x52c8af
fstp st(1)
fstp st(1)
fstp st(0)
fst dword [esp + 0x10]
fstp dword [esp + 0x14]
fld1
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld dword [esp + 0x14]
fld dword [esp + 0x10]
fxch st(1)
fxch st(2)
jmp 0x52c869
fstp st(2)
fstp st(1)
fld dword [esp + 0x18]
fld dword [esp + 0x14]
fxch st(2)
fxch st(1)
fld st(0)
fabs
fstp dword [esp + 0x60]
fld dword [esp + 0x60]
fcomp qword [0x88ad70]
fnstsw ax
fldz
test ah, 5
jp 0x52c8b3
fmul st(1), st(0)
lea eax, [esp + 0x1c]
fld st(3)
push eax
fsub st(2)
fstp dword [esp + 0x20]
fld st(2)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x24]
fmul st(1), st(0)
fmulp st(2)
fsubrp st(1)
jmp 0x52c8ce
fstp st(3)
fstp st(0)
fld dword [esp + 0x18]
jmp 0x52c869
fstp st(3)
jmp 0x52c869
fmul st(3), st(0)
lea ecx, [esp + 0x1c]
fld st(1)
push ecx
fsubr st(4)
fstp dword [esp + 0x20]
fmul st(1), st(0)
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x24]
fsubrp st(1)
fstp dword [esp + 0x28]
call dword [0x97e20c]
fld dword [esp + 0x18]
add esp, 4
fld st(0)
push ebx
fld dword [esp + 0x28]
lea edx, [esp + 0x2c]
fld st(0)
push esi
fmulp st(2)
push edx
fld dword [esp + 0x2c]
fld st(0)
fld dword [esp + 0x24]
fld st(0)
fmulp st(2)
fxch st(4)
fsubrp st(1)
fstp dword [esp + 0x34]
fld dword [esp + 0x28]
fld st(0)
fmulp st(4)
fld dword [esp + 0x1c]
fld st(0)
fmulp st(4)
fxch st(4)
fsubrp st(3)
fxch st(2)
fstp dword [esp + 0x38]
fmulp st(2)
fmulp st(2)
fsubrp st(1)
fstp dword [esp + 0x3c]
call dword [0x97e20c]
mov ebx, dword [esp + 0x78]
fld dword [esp + 0x70]
mov esi, dword [esp + 0x68]
add esp, 4
test ebx, ebx
jle 0x52cb14
push ebp
fstp st(0)
mov ebp, dword [esp + 0x74]
mov edi, edi
mov eax, dword [0xab74b8]
mov edx, dword [eax + 4]
mov ecx, 0xab74b8
call edx
test eax, eax
mov dword [esp + 0x6c], eax
fild dword [esp + 0x6c]
jge 0x52c971
fadd dword [0x7bb540]
fmul qword [0x8877a0]
mov eax, dword [0xab74b8]
mov edx, dword [eax + 4]
mov ecx, 0xab74b8
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
fadd st(0), st(0)
fld1
fsubrp st(1)
fmul dword [esp + 0x70]
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
fld st(0)
fmul dword [esp + 0x34]
fstp dword [esp + 0x10]
fld dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x14]
fmul dword [esp + 0x3c]
fstp dword [esp + 0x18]
call edx
test eax, eax
mov dword [esp + 0x6c], eax
fild dword [esp + 0x6c]
jge 0x52c9ce
fadd dword [0x7bb540]
fmul qword [0x8877a0]
mov eax, dword [0xab74b8]
mov edx, dword [eax + 4]
mov ecx, 0xab74b8
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
fadd st(0), st(0)
fld1
fsubrp st(1)
fmul dword [esp + 0x70]
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
fld st(0)
fmul dword [esp + 0x28]
fstp dword [esp + 0x40]
fld dword [esp + 0x2c]
fmul st(1)
fstp dword [esp + 0x44]
fmul dword [esp + 0x30]
fstp dword [esp + 0x48]
fld dword [esp + 0x40]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x44]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x48]
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
call edx
test eax, eax
mov dword [esp + 0x6c], eax
fild dword [esp + 0x6c]
jge 0x52ca4f
fadd dword [0x7bb540]
fmul qword [0x8877a0]
lea eax, [esp + 0x58]
push eax
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fmul dword [esp + 0x74]
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fld st(0)
fmul dword [esp + 0x20]
fstp dword [esp + 0x50]
fld dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x54]
fmul dword [esp + 0x28]
fstp dword [esp + 0x58]
fld dword [esp + 0x50]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x54]
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x58]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x14]
fstp dword [esp + 0x5c]
fld dword [esp + 0x18]
fstp dword [esp + 0x60]
fld dword [esp + 0x1c]
fstp dword [esp + 0x64]
call dword [0x97e20c]
fld dword [esi]
add esp, 4
fadd dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push ebp
fstp dword [esp + 0x18]
lea edx, [esp + 0x60]
fld dword [esp + 0x1c]
push edx
fadd dword [esi + 4]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
fstp dword [esp + 0x24]
fld dword [esi + 8]
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
call fcn.0052c040
sub ebx, 1
jne 0x52c950
fld dword [esp + 0x70]
pop ebp
fld dword [esi]
fsub st(1)
fstp dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
fld dword [esi + 4]
fsub st(1)
fstp dword [esp + 0x4c]
mov edx, dword [esp + 0x4c]
fld dword [esi + 8]
mov dword [edi + 0x158], ecx
fsub st(1)
mov dword [edi + 0x15c], edx
fstp dword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov dword [edi + 0x160], eax
fld dword [esi]
fadd st(1)
fstp dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
fld dword [esi + 4]
fadd st(1)
fstp dword [esp + 0x4c]
mov edx, dword [esp + 0x4c]
fadd dword [esi + 8]
mov dword [edi + 0x164], ecx
mov dword [edi + 0x168], edx
mov ecx, edi
fstp dword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov dword [edi + 0x16c], eax
call fcn.0057e480
cmp dword [edi + 0x2f4], 0
pop esi
pop ebx
je 0x52cbbf
cmp dword [edi + 0x2ac], 0
jne 0x52cbbf
mov ecx, dword [0x1b0242c]
push edi
call fcn.00590b70
push edi
mov ecx, 0x1b01d58
call fcn.00581de0
push edi
mov ecx, 0x9941c8
call fcn.005216c0
mov byte [edi + 0x30c], 0
pop edi
add esp, 0x54
ret 0x14