Function at 0x4a9260
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, ecx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebx + 0x30]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp + 0x1c]
mov dword [ebx + 0x30], 0
test dl, 0x10
je 0x4a92bc
push 0
mov ecx, ebx
call fcn.004aa720
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
push esi
mov esi, 0x17
mov dword [ebp - 0x14], esi
push edi
test dl, 4
jne 0x4a92d9
test dl, 8
mov edi, 0x57
cmove esi, edi
mov dword [ebp - 0x14], esi
test dl, 2
je 0x4a92e7
mov eax, dword [ebp + 8]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x14]
mov edi, edx
and edi, 1
mov dword [ebp - 0x20], edi
je 0x4a932e
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
test al, 1
je 0x4a92ff
inc eax
mov dword [ebp + 0x14], eax
test cl, 1
je 0x4a9308
inc ecx
mov dword [ebp + 0x18], ecx
mov edi, dword [ebp + 0x18]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp + 0xc]
mov dword [ebx + 0x18], eax
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp + 0x1c]
sar eax, 1
add eax, dword [ebp + 0x10]
and esi, 0xfffffffc
mov dword [ebx + 0x14], eax
mov dword [ebp - 0x14], esi
jmp 0x4a935a
mov eax, dword [ebx + 0x1c]
mov ecx, eax
mov edi, dword [ebx + 0x20]
mov dword [ebp + 0x14], eax
movzx eax, word [ebx + 0x18]
shr ecx, 1
sub ax, cx
mov dword [ebp + 0x18], edi
cwde
mov ecx, edi
mov dword [ebp + 0xc], eax
movzx eax, word [ebx + 0x14]
shr ecx, 1
sub ax, cx
movsx ecx, ax
mov dword [ebp + 0x10], ecx
test dl, 8
je 0x4a9368
push 1
mov ecx, ebx
call fcn.004aa720
cmp dword [ebx + 0xc], 1
je 0x4a951e
mov eax, esi
and eax, 0x40
mov dword [ebp + 8], eax
je 0x4a9448
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push dword [ebx + 0xb8]
mov dword [ebp - 0x28], 0
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0x4c]
push eax
push dword [ebx + 0xb8]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x3c]
push eax
push dword [ebx + 0xb8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [ebp - 0x38]
sub ebx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x3c]
sub ebx, dword [ebp - 0x48]
push dword [ebp - 0x14]
sub edx, dword [ebp - 0x34]
add ebx, dword [ebp - 0x40]
sub edx, dword [ebp - 0x4c]
add ebx, edi
mov esi, dword [ebp - 0x28]
add edx, dword [ebp - 0x44]
sub esi, dword [ebp - 0x48]
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
add edi, edx
mov ecx, dword [ebp - 0x2c]
sub eax, esi
sub ecx, dword [ebp - 0x4c]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push ebx
push edi
push eax
mov eax, dword [ebp + 0xc]
sub eax, ecx
push eax
mov eax, dword [ebp - 0x10]
push 0
push dword [eax + 0xb8]
call esi
mov eax, dword [ebp - 0x10]
push 0x13
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [eax + 0xb8]
call esi
mov eax, dword [ebp - 0x10]
push 0
mov dword [eax + 0x20], ebx
mov ebx, eax
mov dword [eax + 0x1c], edi
push dword [ebx + 0xb8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.USER32.dll_GetDesktopWindow]
call edi
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov ecx, ebx
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004aa5a0
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp + 8], 0
je 0x4a948c
push 8
push dword [ebx + 0xb8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebx + 0x10], 0
test byte [ebx + 0x28], 0x80
je 0x4a9518
push 0
lea ecx, [ebp - 0x58]
call fcn.004b90e0
cmp dword [ebx + 0xbc], 0
mov ecx, str.SoftwareSynapticsSynTPEnhUltraNavPS2
push 0
push 0
push 1
mov eax, str.SoftwareSynapticsSynTPEnhUltraNavUSB
mov dword [ebp - 4], 0
cmove eax, ecx
lea ecx, [ebp - 0x58]
push eax
push SysReAllocString
call fcn.004bcca0
test eax, eax
je 0x4a94f7
push 0
push dword [ebx + 0x1c]
lea ecx, [ebp - 0x54]
push str.MagCustomWidth
call fcn.004cc170
push 0
push dword [ebx + 0x20]
lea ecx, [ebp - 0x54]
push str.MagCustomHeight
call fcn.004cc170
cmp dword [ebp - 0x20], 0
je 0x4a9509
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x20], eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.004b93f0
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x30], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18