Function at 0x420580
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x42059c
mov eax, dword [ebp - 8]
sub eax, 0x76c
mov dword [ebp - 0x1c], eax
jmp 0x4205a3
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
push 4
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
push 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x420717
cmp dword [ebp - 0x18], 0
je 0x420651
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
add eax, 0x1c
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x420651
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x2c], 0
jne 0x42064f
mov dword [ebp - 0x18], 0
jmp 0x420600
push 0
push 0
push 0
mov edx, dword [ebp - 8]
add edx, 0x1c
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x420674
jmp 0x4205eb
cmp dword [ebp - 0x20], 0
jne 0x42067f
jmp 0x420717
mov eax, dword [ebp - 8]
cmp dword [eax + 0x20], 0x10
jne 0x4206b5
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x1c]
cmp eax, dword [edx + 4]
jne 0x4206b5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x24], edx
push 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [ebp - 8]
add edx, 0x1c
push edx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx]
call eax
test eax, eax
jne 0x4206e6
mov ecx, dword [ebp - 8]
add ecx, 0x1c
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
mov edx, dword [ebp - 8]
add edx, 0x1c
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 8]
cmp dword [eax + 0x20], 0x12
jne 0x4206f1
jmp 0x420717
mov ecx, dword [ebp - 8]
add ecx, 0x1c
push ecx
call fcn.0041c090
add esp, 4
test eax, eax
je 0x420712
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
jmp 0x4205eb
push 1
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x20], 0x12
jne 0x420743
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [ebp - 0x24], 0
je 0x42074f
mov byte [ebp - 1], 1
jmp 0x420753
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret