Function at 0x4e9914
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4e9d88
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4e9d88
mov eax, dword [esi + 0xeaec]
xor ebx, ebx
cmp eax, ebx
je 0x4e995b
mov edx, dword [esp + 0x3c]
pop esi
xor eax, eax
pop ebx
mov dword [edx], 1
add esp, 0x28
ret 0x10
cmp dword [esp + 0x34], 1
je 0x4e9d88
mov eax, dword [esi + 4]
push ebp
push edi
push 2
push eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
mov ecx, dword [esp + 0x44]
mov dword [esi + 0xeae4], eax
mov eax, dword [esp + 0x40]
mov edi, eax
mov dword [ecx], 1
mov edx, dword [esi + 4]
and edi, 0xffff
shr eax, 0x10
mov ebp, eax
mov dword [esi + 0xeb3c], edi
push edx
mov dword [esp + 0x28], ebp
mov dword [esi + 0xeb40], ebp
call dword [sym.imp.USER32.dll_IsZoomed]
mov ecx, dword [esi + 0xeb4c]
cmp eax, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], ecx
je 0x4e99c5
mov dword [esp + 0x40], ebx
mov eax, dword [esi + 0xeb14]
mov dword [esp + 0x18], ebx
cmp eax, ebx
mov dword [esp + 0x14], edi
je 0x4e99f3
mov ecx, dword [esi + 0xeb0c]
mov eax, edi
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xeb10]
cmp eax, ebx
jne 0x4e99f3
mov dword [esp + 0x18], ecx
cmp dword [esi + 0xeb54], ebx
je 0x4e9a65
cmp edi, ebx
jle 0x4e9a65
mov edx, dword [esi + 0x2b80]
lea ecx, [esi + 0x2b80]
call dword [edx + 0x30]
mov ebx, edi
lea ecx, [esi + 0x3a74]
sub ebx, eax
mov eax, dword [ecx]
call dword [eax + 0x30]
sub ebx, eax
cmp ebx, 0xc8
jge 0x4e9a2c
mov ebx, 0xc8
mov edx, dword [esi + 0x50]
lea ecx, [esi + 0x50]
push 0x3e7
call dword [edx + 0xc]
test eax, eax
je 0x4e9a4d
push 0xc8
push ebx
push 0xa
push 0x3e7
jmp 0x4e9a5d
push 0x109
push ebx
push 0x109
push 0x3e9
lea ecx, [esi + 0x28]
call fcn.004f4e50
mov eax, dword [esi + 0xeae0]
mov dword [esp + 0x44], 0
test eax, eax
je 0x4e9abc
mov eax, dword [esi + 0xeaf0]
mov ecx, dword [esi + 0x2c]
cmp eax, ecx
je 0x4e9b50
mov edx, dword [esi + 0x28]
lea ebx, [esi + 0x28]
push edi
mov ecx, ebx
call dword [edx + 0x14]
mov eax, dword [esi + 0x2c]
push 0x40
mov ecx, ebx
mov dword [esp + 0x20], eax
call fcn.004f4e80
mov ecx, dword [esp + 0x20]
push eax
push edi
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4e9b50
test byte [esi + 0x9878], 1
je 0x4e9b44
lea ebx, [esi + 0x28]
mov ecx, ebx
call fcn.004f4e80
mov edx, dword [esi + 0xeaf0]
mov dword [esp + 0x44], eax
cmp edx, dword [esi + 0x2c]
je 0x4e9b19
mov eax, dword [ebx]
push edi
mov ecx, ebx
call dword [eax + 0x14]
mov ecx, ebx
call fcn.004f4e80
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x44], eax
test ecx, ecx
mov ecx, dword [esi + 0xed88]
je 0x4e9b28
neg ecx
sbb ecx, ecx
mov edx, dword [esi + 0x2c]
and ecx, 0x40
push ecx
push eax
push edi
push 4
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e9b50
add dword [esp + 0x44], 4
jmp 0x4e9b50
neg ecx
sbb ecx, ecx
mov edx, dword [esi + 0x2c]
and ecx, 0x40
push ecx
push eax
push edi
push 0
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4e9b50
mov eax, dword [esi + 0x2c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x58c8]
xor ebx, ebx
test eax, eax
je 0x4e9c39
lea eax, [esi + 0x58c0]
test eax, eax
je 0x4e9b72
lea eax, [esi + 0x58c4]
jmp 0x4e9b74
xor eax, eax
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4e9c39
xor ecx, ecx
lea eax, [esi + 0x58c0]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
test eax, eax
mov dword [esp + 0x34], ecx
je 0x4e9bae
lea eax, [esi + 0x58c4]
jmp 0x4e9bb0
xor eax, eax
mov eax, dword [eax + 4]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
lea eax, [esi + 0x58c0]
sub ebx, edx
test eax, eax
je 0x4e9bdb
lea ecx, [esi + 0x58c4]
jmp 0x4e9bdd
xor ecx, ecx
mov edx, dword [esi + 0xeaf0]
cmp edx, dword [ecx + 4]
je 0x4e9c2e
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4e9cc8
test eax, eax
je 0x4e9c00
lea eax, [esi + 0x58c4]
jmp 0x4e9c02
xor eax, eax
mov ecx, dword [esi + 0xed88]
mov edx, ebp
neg ecx
sbb ecx, ecx
mov eax, dword [eax + 4]
and ecx, 0x40
sub edx, ebx
push ecx
mov ecx, dword [esp + 0x44]
sub edx, ecx
push ebx
sub edx, 4
push edi
push edx
push 0
push 1
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e9c39
add ebx, 4
mov eax, dword [esi + 0xeb14]
test eax, eax
je 0x4e9d04
mov eax, dword [esi + 0x9880]
test eax, eax
je 0x4e9d19
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov eax, dword [esi + 0xeb10]
sub ebp, ebx
sub ebp, edx
mov dword [esp + 0x10], 0
sub ebp, ecx
test eax, eax
je 0x4e9c7f
sub edi, dword [esi + 0xeb0c]
mov dword [esp + 0x10], edi
mov edx, dword [esi + 0x9880]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0xeae0]
mov ecx, dword [esi + 0xeb0c]
neg eax
mov edx, dword [esp + 0x44]
sbb eax, eax
and eax, 4
or al, 0x40
push eax
mov eax, dword [esp + 0x14]
push ebp
push ecx
mov ecx, dword [esi + 0x9880]
push edx
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ebp, dword [esp + 0x24]
jmp 0x4e9d19
test eax, eax
je 0x4e9cd4
lea eax, [esi + 0x58c4]
jmp 0x4e9cd6
xor eax, eax
mov ecx, dword [esi + 0xed88]
mov eax, dword [eax + 4]
neg ecx
sbb ecx, ecx
mov edx, ebp
and ecx, 0x40
sub edx, ebx
push ecx
mov ecx, dword [esp + 0x44]
push ebx
sub edx, ecx
push edi
push edx
push 0
push 1
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4e9c39
mov eax, dword [esi + 0x98ac]
test eax, eax
jne 0x4e9d19
lea ecx, [esi + 0x987c]
call fcn.004f82d0
mov edx, dword [esi + 0xed88]
mov eax, dword [esp + 0x44]
neg edx
sbb edx, edx
mov ecx, dword [esp + 0x14]
and edx, 0x40
sub ebp, ebx
or edx, 4
sub ebp, eax
push edx
mov edx, dword [esp + 0x44]
sub ebp, edx
mov edx, dword [esp + 0x1c]
push ebp
push ecx
push eax
mov eax, dword [esi + 0xb8c]
push edx
push 1
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4e9d6f
mov edi, dword [esp + 0x3c]
mov edx, dword [esi]
xor eax, eax
cmp edi, 2
sete al
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, esi
call fcn.004ec380
mov ecx, dword [esi + 4]
push 1
push 0
push ecx
call fcn.0050b3e0
add esp, 0xc
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret 0x10