Function at 0x10050b10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
cmp dword [ebp + 0x1c], 0
mov eax, ecx
push esi
push edi
mov dword [esp + 0x18], eax
jne 0x10050e68
lea edi, [eax - 0x10]
mov eax, dword [ebp + 0xc]
cmp eax, 0x201
jne 0x10050b9c
mov ecx, dword [ebp + 0x14]
mov eax, ecx
shr eax, 0x10
movsx esi, ax
movsx eax, cx
mov ecx, edi
push esi
push eax
mov dword [esp + 0x10], eax
call fcn.10051a40
test al, al
jne 0x10050dd4
mov eax, dword [esp + 8]
lea ecx, [edi + 0x44]
push ecx
push dword [edi + 0x14]
mov dword [edi + 0x3c], eax
mov dword [ecx], eax
mov eax, esi
mov dword [edi + 0x40], esi
mov dword [ecx + 4], eax
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [edi + 0x14]
mov byte [edi + 0x4c], 1
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x200
jne 0x10050cdd
cmp byte [edi + 0x4d], 0
jne 0x10050bd7
mov eax, dword [edi + 0x14]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x28], 2
call dword [sym.imp.USER32.dll_TrackMouseEvent]
test eax, eax
je 0x10050bd7
mov byte [edi + 0x4d], 1
cmp byte [edi + 0x4c], 0
je 0x10050c59
cmp dword [edi + 0x38], 1
jne 0x10050bf3
push 0
mov ecx, edi
mov dword [edi + 0x38], 0
call fcn.100510d0
cmp dword [edi + 8], 0
je 0x10050dd4
mov ecx, dword [ebp + 0x14]
movsx eax, cx
mov dword [esp + 8], eax
shr ecx, 0x10
movsx eax, cx
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
sub eax, dword [edi + 0x40]
sub ecx, dword [edi + 0x3c]
push 0x4051
push 0
push 0
push eax
push ecx
push 0xffffffffffffffff
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x14]
mov eax, ecx
shr eax, 0x10
cwde
mov dword [esp + 0x18], eax
movsx eax, cx
mov dword [esp + 0x10], eax
mov eax, dword [edi + 8]
mov dword [esp + 8], eax
test eax, eax
je 0x10050cc5
mov eax, dword [eax]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x1006f584]
mov ecx, dword [esp + 8]
call esi
mov ecx, dword [esp + 0x10]
movups xmm0, xmmword [eax]
movd eax, xmm0
movaps xmmword [esp + 0x30], xmm0
cmp ecx, eax
jl 0x10050dbe
cmp ecx, dword [esp + 0x38]
jg 0x10050dbe
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x34]
jl 0x10050dbe
cmp eax, dword [esp + 0x3c]
jg 0x10050dbe
cmp dword [edi + 0x38], 0
jne 0x10050dd4
mov dword [edi + 0x38], 1
push 1
jmp 0x10050dcd
cmp eax, 0x202
jne 0x10050db3
cmp byte [edi + 0x4c], 0
je 0x10050d61
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [edi + 8], 0
mov byte [edi + 0x4c], 0
je 0x10050dd4
mov ecx, dword [ebp + 0x14]
movsx eax, cx
mov dword [esp + 0x10], eax
shr ecx, 0x10
movsx eax, cx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [esp + 0x18]
mov edi, dword [edi + 8]
mov eax, dword [esp + 0x14]
sub eax, dword [ecx + 0x38]
mov esi, dword [edi]
push eax
mov eax, dword [esp + 0x14]
sub eax, dword [ecx + 0x34]
mov esi, dword [esi]
mov ecx, esi
push eax
call dword [0x1006f584]
mov ecx, edi
call esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x14]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
mov ecx, edi
push eax
call fcn.10051a40
test al, al
je 0x10050dd4
push 0
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [edi + 8]
test edi, edi
je 0x10050dd4
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006f584]
mov ecx, edi
call esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x2a3
jne 0x10050dea
mov byte [edi + 0x4d], 0
cmp dword [edi + 0x38], 1
jne 0x10050dd4
push 0
mov dword [edi + 0x38], 0
mov ecx, edi
call fcn.100510d0
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x20
jne 0x10050e68
cmp byte [edi + 0x4c], 0
je 0x10050e09
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x18]
push eax
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [esp + 0x1c]
mov ecx, edi
push dword [esp + 0x1c]
call fcn.10051a40
test al, al
jne 0x10050e5f
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x18