Function at 0x4b9860
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
xor ebp, ebp
mov dword [edi], ebp
mov ecx, dword [0x6dcfa8]
cmp ecx, ebp
mov dword [esp + 0x10], ebp
jbe 0x4b98a8
cmp eax, ecx
jne 0x4b98a8
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 0x4ab8], ebp
je 0x4b9896
call fcn.004ba800
mov dword [edi], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 0x18
cmp eax, 0x14
ja 0x4b9a54
je 0x4b99b3
dec eax
cmp eax, 0xe
ja case.0x4b9c69.168
xor ecx, ecx
mov cl, byte [eax + 0x4ba01c]
jmp dword [ecx*4 + 0x4ba000]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push edx
call fcn.004b9140
pop edi
pop esi
mov eax, dword [esp + 8]
pop ebp
pop ebx
add esp, 0x24
ret 0x18
mov ecx, dword [esp + 0x38]
call fcn.00437c40
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 0x18
mov esi, dword [esp + 0x38]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne case.0x4b9c69.168
mov ecx, dword [esi + 4]
push 2
push ecx
call dword [sym.imp.USER32.dll_MonitorFromWindow]
mov dword [esi + 0x4d18], eax
pop edi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x18
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x38]
push edi
push edx
push eax
mov ecx, esi
call fcn.004b9290
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x4d94]
cmp eax, 1
jle 0x4b996c
mov ecx, dword [esp + 0x3c]
push 1
push ebp
push ecx
call fcn.004d27c0
add esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [edi], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x18
mov ecx, dword [esp + 0x38]
mov dword [edi], 1
call fcn.004bac00
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 0x18
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
push edx
call fcn.004ba150
pop edi
pop esi
mov eax, dword [esp + 8]
pop ebp
pop ebx
add esp, 0x24
ret 0x18
cmp dword [0x6dbf24], ebp
je 0x4b9a3f
mov esi, dword [esp + 0x38]
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b9a3f
cmp dword [esi + 0x4adc], ebp
jne 0x4b9a3f
cmp dword [esi + 0x4abc], ebp
je 0x4b9a3f
mov ecx, dword [esi + 0x30]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
push 2
push edx
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [esp + 0x20], ebp
jle 0x4b9a3f
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
push 4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x24]
push eax
mov edx, dword [esp + 0x48]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [edi], 1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret 0x18
cmp eax, 0xa3
ja 0x4b9c42
je 0x4b9c1b
add eax, 0xffffffe6
cmp eax, 0x6b
ja case.0x4b9c69.168
xor ecx, ecx
mov cl, byte [eax + 0x4ba054]
jmp dword [ecx*4 + 0x4ba02c]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [0x6dcfa4], edx
pop ebx
add esp, 0x24
ret 0x18
mov eax, dword [esp + 0x44]
mov dword [edi], 1
cmp eax, 1
jne 0x4b9abb
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov eax, dword [eax + 0x4ab0]
pop ebx
add esp, 0x24
ret 0x18
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov eax, dword [ecx + 0x4ab4]
pop ebx
add esp, 0x24
ret 0x18
cmp dword [esp + 0x44], 0x2f
jne case.0x4b9c69.168
mov esi, dword [esp + 0x3c]
push esi
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je case.0x4b9c69.168
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push ebp
push 0xb
push esi
call ebx
push 3
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push ebp
push 1
push 0xb
push esi
call ebx
mov dword [edi], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 0x18
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne case.0x4b9c69.168
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push edi
push eax
push ecx
mov ecx, dword [esp + 0x44]
call fcn.004b9750
pop edi
pop esi
pop ebp
mov dword [esp + 4], eax
pop ebx
add esp, 0x24
ret 0x18
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne case.0x4b9c69.168
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push edi
push eax
push ecx
mov ecx, dword [esp + 0x44]
call fcn.004ba700
pop edi
pop esi
pop ebp
mov dword [esp + 4], eax
pop ebx
add esp, 0x24
ret 0x18
mov edx, dword [esp + 0x38]
cmp dword [edx + 0x4da4], ebp
je case.0x4b9c69.168
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne case.0x4b9c69.168
mov dword [edi], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x18
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push edi
push ecx
mov ecx, dword [esp + 0x40]
push edx
call fcn.004ba4d0
pop edi
pop esi
pop ebp
mov dword [esp + 4], eax
pop ebx
add esp, 0x24
ret 0x18
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push edi
push eax
push ecx
mov ecx, dword [esp + 0x44]
call fcn.004b95e0
pop edi
pop esi
pop ebp
mov dword [esp + 4], eax
pop ebx
add esp, 0x24
ret 0x18
mov edx, dword [esp + 0x38]
push ebp
mov dword [edi], 1
lea ecx, [edx + 0x28]
call fcn.004c4d10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x18
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 0x4adc], ebp
je case.0x4b9c69.168
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [edi], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 0x18
cmp eax, 0x113
ja 0x4b9e1f
je 0x4b9d0a
add eax, 0xffffff5c
cmp eax, 0x6e
ja case.0x4b9c69.168
xor ecx, ecx
mov cl, byte [eax + 0x4ba0d4]
jmp dword [ecx*4 + 0x4ba0c0]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
pop edi
pop esi
mov dword [edx + 0x4d00], eax
mov eax, dword [esp + 8]
pop ebp
pop ebx
add esp, 0x24
ret 0x18
mov esi, dword [esp + 0x38]
cmp dword [esi + 0x4d00], 0x14
jne case.0x4b9c69.168
mov ecx, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0xf060
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esi + 0x4d00], ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 0x18
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
push edi
push edx
push eax
call fcn.004b9610
pop edi
pop esi
pop ebp
mov dword [esp + 4], eax
pop ebx
add esp, 0x24
ret 0x18
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
push edi
push eax
mov eax, dword [esp + 0x4c]
mov edx, dword [ecx]
push eax
call dword [edx + 0x34]
pop edi
pop esi
pop ebp
mov dword [esp + 4], eax
pop ebx
add esp, 0x24
ret 0x18
cmp dword [esp + 0x44], 1
jne case.0x4b9c69.168
mov esi, dword [esp + 0x38]
cmp dword [esi + 0x4adc], ebp
je case.0x4b9c69.168
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x30]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4b9def
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne case.0x4b9c69.168
call dword [sym.imp.USER32.dll_GetFocus]
mov ebx, dword [sym.imp.USER32.dll_IsChild]
mov ebp, eax
mov eax, dword [esi + 0x30]
push ebp
push eax
call ebx
test eax, eax
jne case.0x4b9c69.168
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov edi, eax
mov eax, dword [esi + 0x365c]
push edi
push eax
call ebx
test eax, eax
jne 0x4b9dbd
mov eax, dword [esi + 0x15b0]
push edi
push eax
call ebx
test eax, eax
je case.0x4b9c69.168
push 0
push 0
push 0x1f
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
call edi
push 0
push 0
push 0x1f
push ebp
call edi
mov eax, dword [esi + 0x30]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov eax, dword [esp + 8]
pop ebp
pop ebx
add esp, 0x24
ret 0x18
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jl case.0x4b9c69.168
add ecx, 2
cmp eax, ecx
jg case.0x4b9c69.168
mov ecx, esi
call fcn.004ba9c0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x18
cmp eax, 0x1402
ja 0x4b9fd0
je 0x4b9efb
sub eax, 0x200
je 0x4b9ed9
dec eax
jne case.0x4b9c69.168
cmp dword [0x6dbf24], ebp
je case.0x4b9c69.168
mov ebx, dword [esp + 0x38]
cmp dword [ebx + 0x4da4], ebp
je case.0x4b9c69.168
mov esi, dword [esp + 0x3c]
push esi
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne case.0x4b9c69.168
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push edi
push ebp
push ecx
mov ecx, ebx
call fcn.004bad80
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edi, eax
mov edx, edi
or edx, 0x40000
push edx
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebx + 0x4d04]
push ebp
push eax
push 0xa1
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
push 0
push esi
call fcn.004d27c0
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x18
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push edi
push ecx
mov ecx, dword [esp + 0x40]
push edx
call fcn.004bad80
pop edi
pop esi
mov eax, dword [esp + 8]
pop ebp
pop ebx
add esp, 0x24
ret 0x18
mov eax, dword [esp + 0x44]
cmp eax, 0x1c
jne 0x4b9f31
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
cmp dword [ecx + 0x4d8c], eax
je case.0x4b9c69.168
mov dword [ecx + 0x4d8c], eax
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x18
cmp eax, 0x1d
jne 0x4b9f5e
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x38]
cmp eax, ebp
jne 0x4b9f49
mov ecx, esi
call fcn.004ba8a0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x18
cmp eax, 0x1e
jne case.0x4b9c69.168
mov esi, dword [esp + 0x38]
cmp dword [esi + 0x15d8], ebp
jne 0x4b9f7b
cmp dword [esi + 0x15e0], ebp
je case.0x4b9c69.168
cmp dword [esi + 0x15e0], ebp
je 0x4b9f9f
mov ecx, esi
call fcn.004ba8a0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x18
lea edi, [esi + 0x15ac]
push 1
mov ecx, edi
call fcn.004c3850
mov ecx, edi
call fcn.004c3880
mov edx, dword [esi]
mov ecx, esi
mov dword [esi + 0x4d8c], eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x18
cmp eax, 0x9d99
jne case.0x4b9c69.168
cmp dword [esp + 0x48], 0x2006
jne case.0x4b9c69.168
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
push eax
call fcn.004ba170
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x18