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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x620538
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push esi
mov eax, dword [0x682d00]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x1c], 0
jne 0x51f40d
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x51f609
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
mov eax, dword [esi + 0x10]
mov dword [esp + 0xc], ecx
fstp qword [esp + 0x3c]
lea ecx, [esp + 0x14]
fild dword [esp + 0xc]
mov dword [esp + 0xc], edx
push ecx
mov ecx, esi
fstp qword [esp + 0x48]
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fstp qword [esp + 0x50]
fild dword [esp + 0x10]
fstp qword [esp + 0x58]
call fcn.0051c850
fld qword [eax]
lea edx, [esp + 0x3c]
fstp qword [esp + 0x24]
push edx
fld qword [eax + 8]
lea ecx, [esp + 0x50]
fstp qword [esp + 0x30]
call fcn.005efde0
movzx ecx, word [esi + 0x20]
fldz
test cl, 2
jne 0x51f5a5
fld st(0)
fucomp st(2)
fnstsw ax
test ah, 0x44
jnp 0x51f5a5
fld qword [esp + 0x54]
fsub qword [esp + 0x44]
fld qword [esp + 0x4c]
fsub qword [esp + 0x3c]
fchs
test cl, 1
je 0x51f4ad
fxch st(1)
fchs
fxch st(1)
fchs
fild dword [esi + 0x1c]
fld st(0)
fmulp st(3)
fxch st(2)
fdiv st(4)
fadd qword [esp + 0x24]
fxch st(2)
fmulp st(1)
fdivrp st(3)
fxch st(2)
fadd qword [esp + 0x2c]
fxch st(2)
fcom st(1)
fnstsw ax
fld qword [0x632648]
test ah, 1
jne 0x51f4dd
fadd st(1), st(0)
jmp 0x51f4df
fsub st(1), st(0)
fxch st(1)
call fcn.005f9c80
fxch st(1)
fcomp st(2)
mov dword [esp + 0xc], eax
fnstsw ax
test ah, 0x41
jp 0x51f4f9
faddp st(1)
jmp 0x51f4fb
fsubp st(1)
call fcn.005f9c80
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.0051dfc0
fcomp qword [0x634bf0]
fnstsw ax
test ah, 5
jp 0x51f601
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x28]
call fcn.005efdc0
push eax
mov ecx, esi
call fcn.0051efe0
test eax, eax
jne 0x51f601
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x14]
mov dword [esp + 0x24], eax
push edx
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x68]
call fcn.0051fde0
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x84], 0
call fcn.0051fe80
mov edx, dword [eax]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 4]
lea ecx, [esp + 0x60]
mov dword [esp + 0x10], eax
mov dword [esp + 0x80], 0xffffffff
call fcn.0051fe50
jmp 0x51f601
fstp st(1)
fld qword [esp + 0x24]
fld qword [0x634bd8]
fmul st(1), st(0)
fxch st(1)
fsub qword [esp + 0x3c]
fld qword [esp + 0x2c]
fmulp st(2)
fxch st(1)
fsub qword [esp + 0x44]
fxch st(1)
fcom st(2)
fnstsw ax
fld qword [0x632648]
test ah, 1
jne 0x51f5da
fadd st(1), st(0)
jmp 0x51f5dc
fsub st(1), st(0)
fxch st(1)
call fcn.005f9c80
fxch st(2)
fcomp st(1)
mov dword [esp + 0xc], eax
fnstsw ax
test ah, 0x41
jp 0x51f5f6
faddp st(1)
jmp 0x51f5f8
fsubrp st(1)
call fcn.005f9c80
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov dword [eax], ecx
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4