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

Disassembly:
sub esp, 0xd0
mov eax, dword [ebx + 4]
fld qword [0x6c0f40]
cmp eax, 3
fstp qword [esp + 0x3c]
push ebp
push esi
push edi
je 0x5162cc
cmp eax, 4
je 0x5162cc
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0xd0
ret
cmp dword [ebx + 8], 3
jne 0x5162c0
test ecx, ecx
jne 0x5162ea
fld dword [0x6a1dfc]
fst dword [esp + 0x20]
fst dword [esp + 0x1c]
fstp dword [esp + 0x18]
jmp 0x5162fe
fld dword [ecx]
fstp dword [esp + 0x18]
fld dword [ecx + 4]
fstp dword [esp + 0x1c]
fld dword [ecx + 8]
fstp dword [esp + 0x20]
cmp eax, 4
mov edi, dword [esp + 0xe0]
jne 0x516315
fld dword [edi + 0xc]
xor ebp, ebp
fstp dword [esp + 0x24]
jmp 0x516327
fldz
xor ebp, ebp
fstp dword [esp + 0x24]
jmp 0x516327
mov edi, dword [esp + 0xe0]
mov edx, dword [ebx + 0x14]
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
push ecx
call edx
fld dword [edi]
fsub dword [esp + 0x44]
add esp, 0xc
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul st(0), st(0)
fadd qword [0x6c0a98]
fstp dword [esp + 0x10]
fld dword [edi + 4]
fsub dword [esp + 0x3c]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul st(0), st(0)
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [edi + 8]
fsub dword [esp + 0x40]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul st(0), st(0)
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
call fcn.00667480
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld qword [esp + 0x48]
fcomp st(1)
fnstsw ax
test ah, 0x41
jnp 0x516561
xor ecx, ecx
fst qword [esp + 0x48]
cmp dword [ebx + 4], ecx
jbe 0x5163d0
mov eax, dword [esp + 0xe4]
lea edx, [esp + 0x18]
sub edx, eax
fld dword [edx + eax]
add ecx, 1
fstp dword [eax]
add eax, 4
cmp ecx, dword [ebx + 4]
jb 0x5163c0
fldz
fcompp
fnstsw ax
test ah, 1
je 0x516563
fld qword [0x6c0d40]
xor esi, esi
jmp 0x5163ef
fstp st(2)
fstp st(0)
fstp st(0)
fld dword [esp + 0x18]
fstp dword [esp + 0x28]
fld dword [esp + 0x1c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x20]
fstp dword [esp + 0x30]
fld dword [esp + 0x24]
fstp dword [esp + 0x34]
fld dword [esp + esi*4 + 0x28]
fcomp qword [0x6c0d48]
fnstsw ax
test ah, 5
jp 0x516426
fadd dword [esp + esi*4 + 0x28]
jmp 0x51642a
fsubr dword [esp + esi*4 + 0x28]
mov edx, dword [ebx + 0x14]
fstp dword [esp + esi*4 + 0x28]
push ebx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x30]
push ecx
call edx
fld dword [esp + 0x5c]
fld dword [esp + 0x44]
add esi, 1
fld st(0)
add esp, 0xc
cmp esi, 3
fsubp st(2)
fld qword [0x6c0d40]
fdiv st(2), st(0)
fxch st(2)
fstp qword [esp + esi*8 + 0x88]
fld dword [esp + 0x54]
fld dword [esp + 0x3c]
fld st(0)
fsubp st(2)
fxch st(1)
fdiv st(3)
fstp qword [esp + esi*8 + 0xa0]
fld dword [esp + 0x58]
fld dword [esp + 0x40]
fld st(0)
fsubp st(2)
fxch st(1)
fdiv st(4)
fstp qword [esp + esi*8 + 0xb8]
jb 0x5163e9
fstp st(3)
lea esi, [esp + 0x78]
fld dword [edi]
lea eax, [esp + 0x90]
fsubp st(2)
fxch st(1)
fstp qword [esp + 0x78]
fsub dword [edi + 4]
fstp qword [esp + 0x80]
fsub dword [edi + 8]
lea edi, [esp + 0x60]
fstp qword [esp + 0x88]
call fcn.005279c0
test eax, eax
je 0x5162c0
fld dword [esp + 0x18]
xor ecx, ecx
fld qword [esp + 0x60]
fstp dword [esp + 0x10]
fsub dword [esp + 0x10]
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fld qword [esp + 0x68]
fstp dword [esp + 0x10]
fsub dword [esp + 0x10]
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fld qword [esp + 0x70]
fstp dword [esp + 0x10]
fsub dword [esp + 0x10]
fstp dword [esp + 0x20]
fld1
fldz
fcom dword [esp + ecx*4 + 0x18]
fnstsw ax
test ah, 0x41
jne 0x516527
fst dword [esp + ecx*4 + 0x18]
jmp 0x51653a
fxch st(1)
fcom dword [esp + ecx*4 + 0x18]
fnstsw ax
test ah, 5
jp 0x516538
fst dword [esp + ecx*4 + 0x18]
fxch st(1)
add ecx, 1
cmp ecx, 3
jb 0x516516
add ebp, 1
fstp st(1)
cmp ebp, 0x1e
fstp st(0)
jb 0x516320
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0xd0
ret
fstp st(0)
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0xd0
ret