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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8d411c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp + 8]
push dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x5c], 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
movzx eax, word [ebp + 0x1c]
mov dword [ebp - 0x24], eax
call fcn.00508460
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x1c]
mov dword [esi], 0xaff580
mov eax, dword [ecx]
mov dword [esi + 0x9c], eax
mov edx, dword [ecx + 4]
mov dword [esi + 0xa0], edx
mov ebx, dword [ecx + 8]
mov dword [esi + 0xa4], ebx
call fcn.008587a5
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x5c]
fld dword [edx + 0x18]
fmul dword [0x920468]
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
fdiv dword [0x920460]
fadd dword [0x920464]
mov eax, dword [ebp - 0x18]
fmulp st(1)
fadd dword [eax]
fstp dword [ecx + 0x118]
call fcn.008587a5
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x5c]
fld dword [edx + 0x20]
fmul dword [0x920468]
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fdiv dword [0x920460]
fadd dword [0x920464]
mov eax, dword [ebp - 0x18]
fmulp st(1)
fadd dword [eax + 8]
fstp dword [ecx + 0x11c]
call fcn.008587a5
mov ecx, eax
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
fld dword [edx + 0x1c]
fmul dword [0x920468]
mov dword [ebp - 0x50], ecx
fild dword [ebp - 0x50]
fdiv dword [0x920460]
fadd dword [0x920464]
test edi, 0x80
fmulp st(1)
fadd dword [ebx + 4]
fst dword [eax + 0x78]
mov ecx, dword [ebx]
mov dword [eax + 0x34], ecx
mov esi, dword [ebx + 8]
fstp dword [eax + 0x38]
mov dword [eax + 0x3c], esi
mov word [eax + 0x24], di
je 0x5106fa
mov byte [eax + 0x99], 1
mov edx, dword [ebp - 0x24]
mov word [eax + 0x28], dx
call fcn.008587a5
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fdiv dword [0x920460]
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 [0x92045c]
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fdiv dword [0x920460]
fmulp st(2)
fxch st(1)
faddp st(2)
fxch st(1)
fnstcw word [ebp - 0x48]
movzx eax, word [ebp - 0x48]
or eax, 0xc00
mov dword [ebp - 0x40], eax
fldcw word [ebp - 0x40]
fistp dword [ebp - 0x38]
fldcw word [ebp - 0x48]
mov eax, dword [ebp - 0x5c]
test cl, 1
mov ebx, dword [ebp - 0x38]
je 0x51078e
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 0x510799
mov dword [ebp - 0x50], ebx
fild dword [ebp - 0x50]
fdivp st(1)
fstp dword [eax + 0x60]
call fcn.008587a5
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fdiv dword [0x920460]
mov eax, dword [ebp - 0x14]
fmul dword [eax + 0x74]
fadd dword [eax + 0x30]
fstp dword [edx + 0x40]
call fcn.008587a5
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fdiv dword [0x920460]
mov eax, dword [ebp - 0x14]
fmul dword [eax + 0x68]
fadd dword [eax + 0x34]
fstp dword [edx + 0x44]
call fcn.008587a5
fld dword [0x920458]
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fdiv dword [0x920460]
fmul st(1)
fmul dword [0x920454]
fdivrp st(1)
fnstcw word [ebp - 0x48]
movzx eax, word [ebp - 0x48]
or eax, 0xc00
mov dword [ebp - 0x40], eax
fldcw word [ebp - 0x40]
fistp dword [ebp - 0x38]
fldcw word [ebp - 0x48]
mov eax, dword [ebp - 0x38]
mov dword [edx + 0x12c], eax
call fcn.008587a5
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fdiv dword [0x920460]
mov eax, dword [ebp - 0x14]
fmul dword [eax + 0x64]
fadd dword [eax + 0x60]
fstp dword [edx + 0x124]
call fcn.008587a5
mov edx, dword [ebp - 0x5c]
fld dword [0x920458]
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fdiv dword [0x920460]
fmul st(1)
fmul dword [0x920454]
fdivrp st(1)
fnstcw word [ebp - 0x48]
movzx eax, word [ebp - 0x48]
or eax, 0xc00
mov dword [ebp - 0x40], eax
fldcw word [ebp - 0x40]
fistp dword [edx + 0x130]
fldcw word [ebp - 0x48]
mov eax, dword [edx + 0x12c]
mov word [edx + 0x9a], ax
call fcn.008587a5
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x128], 0
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fdiv dword [0x920460]
fadd dword [0x920464]
movzx eax, word [edx + 0x24]
fstp dword [edx + 0x6c]
test eax, 0x2000
jne 0x5108da
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
push 0x1f
call fcn.00505918
pop ecx
mov edx, dword [ebp - 0x5c]
jmp 0x5108bf