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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8d4078
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 eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x20]
mov dword [eax], 0xaff4a8
mov word [eax + 0x24], dx
mov dword [eax + 0x118], 0
test edx, 0x80
mov dword [eax + 0x11c], 0
mov dword [eax + 0x120], 0
je 0x50f09f
mov byte [eax + 0x99], 1
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x1c]
mov word [eax + 0x28], dx
mov ecx, dword [esi]
mov dword [eax + 0x9c], ecx
mov ebx, dword [esi + 4]
mov dword [eax + 0xa0], ebx
mov edi, dword [esi + 8]
mov dword [eax + 0xa4], edi
call fcn.008587a5
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
fdiv dword [0x9203c4]
fadd dword [0x9203c8]
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 - 0x5c]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x50], edx
fild dword [ebp - 0x50]
fdiv dword [0x9203c4]
fadd dword [0x9203c8]
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 0x50f132
mov edx, ecx
mov ecx, dword [ebp - 0x18]
fld dword [edx + 0x1c]
fadd dword [ecx + 4]
fstp dword [eax + 0x78]
jmp 0x50f15d
call fcn.008587a5
mov edx, eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x50], edx
fild dword [ebp - 0x50]
fdiv dword [0x9203c4]
fadd dword [0x9203c8]
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 0x50f183
mov dword [eax + 0x38], edx
jmp 0x50f186
mov dword [eax + 0x38], edx
call fcn.008587a5
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fdiv dword [0x9203c4]
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 [0x9203c0]
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fdiv dword [0x9203c4]
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 0x50f211
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 0x50f21c
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 [0x9203c4]
mov eax, esi
fmul dword [eax + 0x38]
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 [0x9203c4]
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 - 0x5c]
fld dword [0x9203bc]
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fdiv dword [0x9203c4]
fmul st(1)
add edx, 0x40
fmul dword [0x9203b8]
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]
push eax
push edx
push edx
call fcn.007829f4
add esp, 0xc
fld dword [0x9203cc]
mov edx, esi
fcom dword [edx + 0x54]
fnstsw ax
sahf
je 0x50f35a
fstp st(0)
call fcn.008587a5
fld dword [0x9203bc]
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fdiv dword [0x9203c4]
fmul st(1)
fmul dword [0x9203b8]
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 word [edx + 0x9a], ax
call fcn.008587a5
mov ebx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fdiv dword [0x9203c4]
fadd dword [0x9203c8]
fstp dword [ebx + 0x6c]
movzx eax, word [ebx + 0x24]
test eax, 0x2000
jne 0x50f34d
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov eax, ebx
mov ebx, dword [ebp - 0x28]
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 ebx, dword [ebp - 0x5c]
jmp 0x50f332
fcom dword [edx + 0x34]
fnstsw ax
sahf
jne 0x50f2c2
fcom dword [edx + 0x30]
fnstsw ax
sahf
jne 0x50f2c2
fstp st(0)
mov ebx, dword [ebp - 0x5c]
xor edx, edx
mov word [ebx + 0x9a], dx
xor ecx, ecx
mov dword [ebx + 0x6c], ecx
jmp 0x50f327