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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8d40d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp + 8]
push dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x54], ecx
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
call fcn.00508460
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x54]
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 - 0x54]
fld dword [edx + 0x18]
fmul dword [0x920484]
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fdiv dword [0x92047c]
fadd dword [0x920480]
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 - 0x54]
fld dword [edx + 0x20]
fmul dword [0x920484]
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
fdiv dword [0x92047c]
fadd dword [0x920480]
mov eax, dword [ebp - 0x18]
fmulp st(1)
fadd dword [eax + 8]
fstp dword [ecx + 0x11c]
call fcn.008587a5
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
fld dword [edx + 0x1c]
fmul dword [0x920484]
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
fdiv dword [0x92047c]
fadd dword [0x920480]
fmulp st(1)
fadd dword [ecx + 4]
fst dword [esi + 0x78]
mov eax, dword [ecx]
mov dword [esi + 0x34], eax
mov ebx, dword [ecx + 8]
fstp dword [esi + 0x38]
mov dword [esi + 0x3c], ebx
call fcn.008587a5
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
fdiv dword [0x92047c]
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 [0x920478]
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
fdiv dword [0x92047c]
fmulp st(2)
fxch st(1)
faddp st(2)
fxch st(1)
fnstcw word [ebp - 0x40]
movzx eax, word [ebp - 0x40]
or eax, 0xc00
mov dword [ebp - 0x38], eax
fldcw word [ebp - 0x38]
fistp dword [ebp - 0x30]
fldcw word [ebp - 0x40]
mov eax, dword [ebp - 0x54]
test cl, 1
mov ebx, dword [ebp - 0x30]
je 0x5103dd
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 0x5103e8
mov dword [ebp - 0x48], ebx
fild dword [ebp - 0x48]
fdivp st(1)
fstp dword [eax + 0x60]
call fcn.008587a5
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
fdiv dword [0x92047c]
mov eax, dword [ebp - 0x14]
fmul dword [eax + 0x74]
fadd dword [eax + 0x30]
fstp dword [edx + 0x40]
call fcn.008587a5
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
fdiv dword [0x92047c]
mov eax, dword [ebp - 0x14]
fmul dword [eax + 0x68]
fadd dword [eax + 0x34]
fstp dword [edx + 0x44]
call fcn.008587a5
fld dword [0x920474]
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
fdiv dword [0x92047c]
fmul st(1)
fmul dword [0x920470]
fdivrp st(1)
fnstcw word [ebp - 0x40]
movzx eax, word [ebp - 0x40]
or eax, 0xc00
mov dword [ebp - 0x38], eax
fldcw word [ebp - 0x38]
fistp dword [ebp - 0x30]
fldcw word [ebp - 0x40]
mov eax, dword [ebp - 0x30]
mov dword [edx + 0x12c], eax
call fcn.008587a5
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
fdiv dword [0x92047c]
mov eax, dword [ebp - 0x14]
fmul dword [eax + 0x64]
fadd dword [eax + 0x60]
fstp dword [edx + 0x124]
call fcn.008587a5
mov edx, dword [ebp - 0x54]
fld dword [0x920474]
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
fdiv dword [0x92047c]
fmul st(1)
fmul dword [0x920470]
fdivrp st(1)
fnstcw word [ebp - 0x40]
movzx eax, word [ebp - 0x40]
or eax, 0xc00
mov dword [ebp - 0x38], eax
fldcw word [ebp - 0x38]
fistp dword [edx + 0x130]
fldcw word [ebp - 0x40]
mov eax, dword [edx + 0x12c]
mov word [edx + 0x9a], ax
call fcn.008587a5
mov edx, dword [ebp - 0x54]
mov dword [edx + 0x128], 0
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
fdiv dword [0x92047c]
fadd dword [0x920480]
movzx eax, word [edx + 0x24]
fstp dword [edx + 0x6c]
test eax, 0x2000
jne 0x510526
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push 0x1f
call fcn.00505918
pop ecx
mov edx, dword [ebp - 0x54]
jmp 0x51050e