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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x61c658
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push esi
mov eax, dword [0x67dc50]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x1c], 0
jne 0x51c87d
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x51ca79
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.00519cc0
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.005ec4c0
movzx ecx, word [esi + 0x20]
fldz
test cl, 2
jne 0x51ca15
fld st(0)
fucomp st(2)
fnstsw ax
test ah, 0x44
jnp 0x51ca15
fld qword [esp + 0x54]
fsub qword [esp + 0x44]
fld qword [esp + 0x4c]
fsub qword [esp + 0x3c]
fchs
test cl, 1
je 0x51c91d
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 [0x62ebc8]
test ah, 1
jne 0x51c94d
fadd st(1), st(0)
jmp 0x51c94f
fsub st(1), st(0)
fxch st(1)
call fcn.005f6310
fxch st(1)
fcomp st(2)
mov dword [esp + 0xc], eax
fnstsw ax
test ah, 0x41
jp 0x51c969
faddp st(1)
jmp 0x51c96b
fsubp st(1)
call fcn.005f6310
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.0051b430
fcomp qword [0x62ff88]
fnstsw ax
test ah, 5
jp 0x51ca71
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x28]
call fcn.005ec4a0
push eax
mov ecx, esi
call fcn.0051c450
test eax, eax
jne 0x51ca71
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.0051d250
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x84], 0
call fcn.0051d2f0
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.0051d2c0
jmp 0x51ca71
fstp st(1)
fld qword [esp + 0x24]
fld qword [0x62ff70]
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 [0x62ebc8]
test ah, 1
jne 0x51ca4a
fadd st(1), st(0)
jmp 0x51ca4c
fsub st(1), st(0)
fxch st(1)
call fcn.005f6310
fxch st(2)
fcomp st(1)
mov dword [esp + 0xc], eax
fnstsw ax
test ah, 0x41
jp 0x51ca66
faddp st(1)
jmp 0x51ca68
fsubrp st(1)
call fcn.005f6310
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