Function at 0x422320
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x4c206c]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0
push edi
mov edi, ecx
test esi, esi
jne 0x42235b
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x422381
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x422381
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x422381
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x18], 1
push dword [edi + 0x3c]
xorps xmm0, xmm0
mov dword [edi + 0x4c], 1
mov ecx, edi
movups xmmword [esp + 0x24], xmm0
call fcn.00405360
test eax, eax
je 0x42255e
push dword [esp + 0x1c]
lea eax, [edi + 0x20]
push eax
push 0x4c2ce0
call fcn.0040c620
add esp, 8
movzx eax, ax
mov ecx, edi
push eax
push 0
push 0x80000
push 0x86080000
push 0
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00406240
mov dword [esp + 0x14], eax
test eax, eax
je 0x42255e
mov ecx, dword [edi + 0x138]
mov eax, dword [edi + 0x140]
mov edx, dword [edi + 0x134]
sub eax, ecx
push 0
push eax
mov eax, dword [edi + 0x13c]
sub eax, edx
push eax
push ecx
push edx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42242c
push 0
push 0
push 0x103ff
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
push ecx
lea ecx, [edi + 4]
call fcn.0040c810
push 0
push 0
push 0x110
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [edi + 0x4c], 0
je 0x422470
push 0x43
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
xorps xmm0, xmm0
mov dword [edi + 0x44], 1
mov dword [edi + 0x48], 1
movaps xmmword [esp + 0x20], xmm0
movq qword [esp + 0x30], xmm0
mov dword [esp + 0x38], 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4224b2
cmp dword [esp + 0x24], 0x12
je 0x4224fc
cmp dword [edi + 0x48], 0
je 0x4224fc
mov eax, dword [edi + 4]
test eax, eax
je 0x4224fc
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4224fc
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x422494
test eax, eax
je 0x4224fc
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x422494
push 0x97
push 0
push 0
push 0
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x18], 0
mov esi, dword [esp + 0x1c]
je 0x422528
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
test esi, esi
je 0x42253f
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esp + 0x14]
jne 0x42253f
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x40]
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004591b7
mov esp, ebp
pop ebp
ret 8
cmp dword [esp + 0x18], 0
je 0x42256e
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esp + 0x4c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004591b7
mov esp, ebp
pop ebp
ret 8