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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8d41c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp + 8]
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
movzx edx, word [ebp + 0x14]
mov dword [ebp - 0x58], ecx
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
movzx eax, word [ebp + 0x18]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], eax
call fcn.00508460
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x58]
mov dword [eax], 0xaff658
call fcn.008587a5
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
fild dword [ebp - 0x54]
fdiv dword [0x9204e0]
fadd dword [0x9204e4]
mov eax, ebx
fmul dword [eax + 0x18]
fadd dword [edx]
fstp dword [ecx + 0x74]
call fcn.008587a5
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
fdiv dword [0x9204e0]
fadd dword [0x9204e4]
mov eax, ebx
fmul dword [eax + 0x1c]
fadd dword [edx + 4]
fstp dword [ecx + 0x78]
call fcn.008587a5
mov edx, eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], edx
fild dword [ebp - 0x4c]
fdiv dword [0x9204e0]
fadd dword [0x9204e4]
mov edx, dword [ebp - 0x14]
fmul dword [edx + 0x20]
fadd dword [ecx + 8]
fstp dword [eax + 0x7c]
mov word [eax + 0x24], bx
test ebx, 0x80
je 0x5117b1
mov byte [eax + 0x99], 1
mov edx, dword [ebp - 0x20]
mov esi, ecx
mov word [eax + 0x28], dx
mov ecx, dword [esi]
mov dword [eax + 0x34], ecx
mov ebx, dword [esi + 4]
mov dword [eax + 0x38], ebx
mov edi, dword [esi + 8]
mov dword [eax + 0x3c], edi
call fcn.008587a5
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
fdiv dword [0x9204e0]
mov eax, dword [ebp - 0x14]
fmul dword [eax + 0x28]
fadd dword [eax + 0x24]
fst dword [edx + 0x2c]
fstp dword [edx + 0x30]
call fcn.008587a5
mov edx, dword [ebp - 0x14]
fild dword [edx + 0x48]
fild dword [edx + 0x4c]
movzx ecx, byte [edx + 0x88]
fld dword [0x9204dc]
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
fdiv dword [0x9204e0]
fmulp st(2)
fxch st(1)
faddp st(2)
fxch st(1)
fnstcw word [ebp - 0x44]
movzx eax, word [ebp - 0x44]
or eax, 0xc00
mov dword [ebp - 0x3c], eax
fldcw word [ebp - 0x3c]
fistp dword [ebp - 0x34]
fldcw word [ebp - 0x44]
mov eax, dword [ebp - 0x58]
test cl, 1
mov ebx, dword [ebp - 0x34]
je 0x511858
movzx edx, word [eax + 0x1c]
mov ecx, dword [edx*4 + 0xaaee20]
mov ebx, dword [ecx + 0x28]
fild dword [ebx + 0xc]
fdivp st(1)
fstp dword [eax + 0x60]
jmp 0x511863
mov dword [ebp - 0x4c], ebx
fild dword [ebp - 0x4c]
fdivp st(1)
fstp dword [eax + 0x60]
call fcn.008587a5
mov ecx, dword [ebp - 0x58]
movzx edx, word [ecx + 0x24]
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
fdiv dword [0x9204e0]
mov eax, dword [ebp - 0x14]
fmul dword [eax + 0x38]
fadd dword [eax + 0x30]
fstp dword [ecx + 0x6c]
test edx, 0x2000
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0
jne 0x5118bf
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14
push 0x1f
call fcn.00505918
pop ecx
mov ecx, dword [ebp - 0x58]
jmp 0x5118a4