Function at 0x4ba640
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4ba983
cmp dword [esp + 0x40], 1
je 0x4ba983
mov ecx, dword [esi + 4]
push 2
push ecx
call dword [sym.imp.USER32.dll_MonitorFromWindow]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
mov dword [esi + 0x4d18], eax
mov ebp, ebx
mov dword [edx], 1
mov eax, dword [esi + 0x4d9c]
and ebp, 0xffff
shr ebx, 0x10
cmp eax, ebp
jne 0x4ba6a7
cmp dword [esi + 0x4da0], ebx
je 0x4ba983
mov eax, dword [esi]
mov dword [esi + 0x4d9c], ebp
mov ecx, esi
mov dword [esi + 0x4da0], ebx
call dword [eax + 0x28]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x4ba6cc
xor eax, eax
jmp 0x4ba6d2
mov eax, dword [esi + 0x4d94]
mov edi, dword [esi + 0x4da4]
neg edi
sbb edi, edi
and edi, eax
mov dword [esp + 0x14], edi
lea eax, [edi + edi]
sub ebp, eax
sub ebx, eax
mov eax, dword [esi + 0x4ad4]
mov dword [esp + 0x44], ebp
test eax, eax
je 0x4ba715
mov ecx, dword [esi + 0x4d8c]
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x4d90]
test eax, eax
jne 0x4ba715
add ecx, edi
mov dword [esp + 0x14], ecx
mov eax, dword [esi + 0x4adc]
mov dword [esp + 0x48], 0
test eax, eax
je 0x4ba74d
lea ecx, [esi + 0x2c]
call fcn.004c2ee0
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x4acc]
cmp edx, ecx
je 0x4ba798
push 0x40
push eax
push ebp
push edi
push edi
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4ba798
test byte [esi + 0x4d80], 1
je 0x4ba78c
lea ecx, [esi + 0x2c]
call fcn.004c2ee0
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x4acc]
cmp edx, ecx
mov dword [esp + 0x48], eax
je 0x4ba798
push 0x40
push eax
push ebp
push edi
push edi
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
lea ecx, [esi + 0x2c]
call fcn.004c2ee0
mov dword [esp + 0x48], eax
jmp 0x4ba798
mov edx, dword [esi + 0x30]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esi + 0xaec]
call fcn.004c2ee0
mov ecx, dword [esi + 0x4acc]
mov edx, dword [esi + 0xaf0]
cmp ecx, edx
mov dword [esp + 0x40], eax
je 0x4ba7e1
mov edx, edi
push 0x44
sub edx, eax
push eax
mov eax, dword [esi + 0xb24]
add edx, ebx
push ebp
push edx
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
lea ecx, [esi + 0xaec]
call fcn.004c2ee0
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x48]
lea ecx, [edx + edi]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x4ad4]
test ecx, ecx
je 0x4ba858
mov ecx, ebx
sub ecx, eax
mov eax, dword [esi + 0x4d90]
sub ecx, edx
test eax, eax
mov dword [esp + 0x18], ecx
je 0x4ba812
sub edi, dword [esi + 0x4d8c]
add edi, ebp
mov eax, dword [esi + 0x15b0]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 0x4adc]
mov edx, dword [esp + 0x18]
neg ecx
mov eax, dword [esi + 0x4d8c]
sbb ecx, ecx
and ecx, 4
or ecx, 0x40
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esi + 0x15b0]
push eax
push ecx
push edi
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4ba86d
mov ecx, dword [esi + 0x15e0]
test ecx, ecx
jne 0x4ba871
lea ecx, [esi + 0x15ac]
call fcn.004c5ff0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
sub ebx, eax
mov eax, dword [esp + 0x44]
sub ebx, ecx
mov ecx, dword [esp + 0x10]
push 0x40
push ebx
push eax
mov eax, dword [esi + 0x365c]
push ecx
push edx
push 1
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x73eec4]
xor ebx, ebx
cmp eax, ebx
je 0x4ba983
cmp dword [esi + 0x4da4], ebx
jne 0x4ba983
cmp dword [esi + 0x4abc], ebx
je 0x4ba983
mov eax, dword [0x73ff44]
cmp eax, ebx
je 0x4ba983
xor ecx, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x4adc]
cmp ecx, ebx
je 0x4ba905
mov ecx, dword [esi + 4]
lea edx, [esp + 0x1c]
push edx
push ecx
mov dword [esp + 0x2c], ebx
call eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0xc
mov eax, dword [esi + 0x30]
mov ebp, dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x2c]
xor edi, edi
push edx
push eax
call ebp
mov edx, dword [esi + 4]
lea ecx, [esp + 0x2c]
push 2
push ecx
push edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x38]
cmp eax, ebx
jle 0x4ba941
mov dword [esp + 0x24], eax
mov edi, 1
mov eax, dword [esi + 0xaf0]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4ba970
mov ecx, dword [esi + 0xaf0]
lea eax, [esp + 0x2c]
push eax
push ecx
call ebp
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
sub edx, eax
mov dword [esp + 0x28], edx
jmp 0x4ba974
cmp edi, ebx
je 0x4ba983
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [0x73ff44]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0xc