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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8d4034
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebp + 8]
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], ecx
push edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
call fcn.00508460
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x50]
mov dword [eax], 0xaff4a8
mov dword [eax + 0x118], 0
mov dword [eax + 0x11c], 0
mov dword [eax + 0x120], 0
call fcn.008587a5
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
fdiv dword [0x92040c]
fadd dword [0x920410]
mov eax, dword [ebp - 0x14]
fmul dword [eax + 0x18]
fadd dword [edx]
fstp dword [ecx + 0x74]
call fcn.008587a5
mov edx, eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x44], edx
fild dword [ebp - 0x44]
fdiv dword [0x92040c]
fadd dword [0x920410]
mov edx, dword [ebp - 0x18]
fmul dword [ecx + 0x20]
fadd dword [edx + 8]
fstp dword [eax + 0x7c]
movzx ebx, byte [ecx + 0x88]
test bl, 2
je 0x50ed28
mov edx, ecx
mov ecx, dword [ebp - 0x18]
fld dword [edx + 0x1c]
fadd dword [ecx + 4]
fstp dword [eax + 0x78]
jmp 0x50ed53
call fcn.008587a5
mov edx, eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x44], edx
fild dword [ebp - 0x44]
fdiv dword [0x92040c]
fadd dword [0x920410]
mov edx, dword [ebp - 0x14]
fmul dword [edx + 0x1c]
fadd dword [ecx + 4]
fstp dword [eax + 0x78]
mov ebx, ecx
mov esi, edx
mov edx, dword [ebx]
mov dword [eax + 0x34], edx
mov ecx, dword [ebx + 8]
mov dword [eax + 0x3c], ecx
mov edx, dword [ebx + 4]
movzx edi, byte [esi + 0x88]
test edi, 2
je 0x50ed79
mov dword [eax + 0x38], edx
jmp 0x50ed7c
mov dword [eax + 0x38], edx
call fcn.008587a5
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
fild dword [ebp - 0x44]
fdiv dword [0x92040c]
mov eax, esi
fmul dword [eax + 0x28]
fadd dword [eax + 0x24]
fst dword [edx + 0x2c]
fstp dword [edx + 0x30]
call fcn.008587a5
mov edx, esi
fild dword [edx + 0x48]
fild dword [edx + 0x4c]
movzx ecx, byte [edx + 0x88]
fld dword [0x920408]
mov dword [ebp - 0x44], eax
fild dword [ebp - 0x44]
fdiv dword [0x92040c]
fmulp st(2)
fxch st(1)
faddp st(2)
fxch st(1)
fnstcw word [ebp - 0x3c]
movzx eax, word [ebp - 0x3c]
or eax, 0xc00
mov dword [ebp - 0x34], eax
fldcw word [ebp - 0x34]
fistp dword [ebp - 0x2c]
fldcw word [ebp - 0x3c]
mov eax, dword [ebp - 0x50]
test cl, 1
mov ebx, dword [ebp - 0x2c]
je 0x50ee07
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 0x50ee12
mov dword [ebp - 0x44], ebx
fild dword [ebp - 0x44]
fdivp st(1)
fstp dword [eax + 0x60]
call fcn.008587a5
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
fild dword [ebp - 0x44]
fdiv dword [0x92040c]
mov eax, esi
fmul dword [eax + 0x38]
fadd dword [eax + 0x30]
fstp dword [edx + 0x40]
call fcn.008587a5
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
fild dword [ebp - 0x44]
fdiv dword [0x92040c]
mov eax, esi
fmul dword [eax + 0x3c]
fadd dword [eax + 0x34]
fstp dword [edx + 0x44]
mov dword [edx + 0x48], 0
call fcn.008587a5
mov edx, dword [ebp - 0x50]
fld dword [0x920404]
mov dword [ebp - 0x44], eax
fild dword [ebp - 0x44]
fdiv dword [0x92040c]
fmul st(1)
add edx, 0x40
fmul dword [0x920400]
fdivrp st(1)
fnstcw word [ebp - 0x3c]
movzx eax, word [ebp - 0x3c]
or eax, 0xc00
mov dword [ebp - 0x34], eax
fldcw word [ebp - 0x34]
fistp dword [ebp - 0x2c]
fldcw word [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
push eax
push edx
push edx
call fcn.007829f4
add esp, 0xc
fld dword [0x920414]
mov edx, esi
fcom dword [edx + 0x54]
fnstsw ax
sahf
je 0x50ef50
fstp st(0)
call fcn.008587a5
fld dword [0x920404]
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
fild dword [ebp - 0x44]
fdiv dword [0x92040c]
fmul st(1)
fmul dword [0x920400]
fdivrp st(1)
fnstcw word [ebp - 0x3c]
movzx eax, word [ebp - 0x3c]
or eax, 0xc00
mov dword [ebp - 0x34], eax
fldcw word [ebp - 0x34]
fistp dword [ebp - 0x2c]
fldcw word [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
mov word [edx + 0x9a], ax
call fcn.008587a5
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
fild dword [ebp - 0x44]
fdiv dword [0x92040c]
fadd dword [0x920410]
fstp dword [ebx + 0x6c]
movzx eax, word [ebx + 0x24]
test eax, 0x2000
jne 0x50ef43
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov eax, ebx
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0x1f
call fcn.00505918
pop ecx
mov ebx, dword [ebp - 0x50]
jmp 0x50ef28
fcom dword [edx + 0x34]
fnstsw ax
sahf
jne 0x50eeb8
fcom dword [edx + 0x30]
fnstsw ax
sahf
jne 0x50eeb8
fstp st(0)
mov ebx, dword [ebp - 0x50]
xor edx, edx
mov word [ebx + 0x9a], dx
xor ecx, ecx
mov dword [ebx + 0x6c], ecx
jmp 0x50ef1d