Function at 0x4202c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push 0xffffffffffffffeb
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x4c], edx
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [0x513fa0]
mov edx, dword [ecx*4 + 0x513fb0]
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x513fa0]
mov ecx, dword [eax*4 + 0x513fb0]
push ecx
call fcn.00421140
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x420388
mov edx, dword [0x513fa0]
mov eax, dword [edx*4 + 0x513fb0]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x14], 0
jne 0x420388
push 0xfffffffffffffff0
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0x40000000
je 0x420388
push 0xffffffffffffffe0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetClassWord]
movzx ecx, ax
movzx edx, word [0x5228b8]
cmp ecx, edx
jne 0x420388
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00421140
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x1c], eax
jmp 0x420331
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004201e0
add esp, 8
test eax, eax
jg 0x4203a6
cmp dword [ebp - 0x14], 0
je 0x42071e
cmp dword [ebp + 0xc], 3
je 0x4203bb
cmp dword [ebp + 0xc], 0
je 0x4203bb
mov dword [ebp - 0x6c], 0
jmp 0x4203c2
mov dword [ebp - 0x6c], 1
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 8], edx
call dword [sym.imp.USER32.dll_GetFocus]
xor ecx, ecx
cmp dword [ebp + 8], eax
sete cl
mov dword [ebp - 0x24], ecx
push 0xffffffffffffffe0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetClassWord]
mov word [ebp - 0x18], ax
movzx eax, word [ebp - 0x18]
movzx ecx, word [0x52202a]
cmp eax, ecx
je 0x420456
movzx edx, word [ebp - 0x18]
movzx eax, word [0x522934]
cmp edx, eax
je 0x420456
movzx ecx, word [ebp - 0x18]
movzx edx, word [0x52208c]
cmp ecx, edx
je 0x420456
movzx eax, word [ebp - 0x18]
movzx ecx, word [0x522198]
cmp eax, ecx
je 0x420456
movzx edx, word [ebp - 0x18]
movzx eax, word [0x522180]
cmp edx, eax
je 0x420456
movzx ecx, word [ebp - 0x18]
movzx edx, word [0x5222ba]
cmp ecx, edx
je 0x420456
movzx eax, word [ebp - 0x18]
movzx ecx, word [0x522086]
cmp eax, ecx
jne 0x4204e4
cmp dword [ebp + 0xc], 1
je 0x42046b
cmp dword [ebp + 0xc], 2
je 0x42046b
mov dword [ebp - 0x70], 0
jmp 0x420472
mov dword [ebp - 0x70], 1
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
xor ecx, ecx
cmp dword [ebp + 0xc], 2
sete cl
push ecx
push 0xcf
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
movzx eax, word [ebp - 0x18]
movzx ecx, word [0x52208c]
cmp eax, ecx
je 0x4204c8
movzx edx, word [ebp - 0x18]
movzx eax, word [0x522180]
cmp edx, eax
je 0x4204c8
movzx ecx, word [ebp - 0x18]
movzx edx, word [0x522086]
cmp ecx, edx
jne 0x4204df
xor eax, eax
cmp dword [ebp + 0xc], 1
sete al
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x4205a5
movzx eax, word [ebp - 0x18]
movzx ecx, word [0x521df8]
cmp eax, ecx
jne 0x420584
cmp dword [ebp + 0xc], 1
je 0x42050c
cmp dword [ebp + 0xc], 2
je 0x42050c
mov dword [ebp - 0x74], 0
jmp 0x420513
mov dword [ebp - 0x74], 1
mov edx, dword [ebp - 0x74]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0xfffffffffffffff0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
and edx, 0xfffff7ff
push edx
push 0xfffffffffffffff0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0xc], 2
jne 0x420571
mov edx, dword [ebp - 4]
or edx, 0x800
push edx
push 0xfffffffffffffff0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0
push 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x78]
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4205a5
xor eax, eax
cmp dword [ebp + 0xc], 1
sete al
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp + 0xc], 2
jne 0x4205a5
mov dword [ebp - 8], 1
xor edx, edx
cmp dword [ebp + 0xc], 3
sete dl
dec edx
and edx, 8
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
movzx edx, word [ebp - 0x18]
movzx eax, word [0x52208c]
cmp edx, eax
je 0x4205f0
movzx ecx, word [ebp - 0x18]
movzx edx, word [0x522180]
cmp ecx, edx
je 0x4205f0
movzx eax, word [ebp - 0x18]
movzx ecx, word [0x522086]
cmp eax, ecx
jne 0x420606
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x42068d
movzx edx, word [ebp - 0x18]
movzx eax, word [0x522028]
cmp edx, eax
jne 0x42068d
mov dword [ebp - 0x58], 8
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0
push 0x130b
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0x1305
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call fcn.00420730
add esp, 4
mov eax, dword [eax*4 + 0x513fb0]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00420730
add esp, 4
mov edx, dword [eax*4 + 0x513fb0]
push edx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x42068d
mov dword [ebp - 0x24], 1
movzx eax, word [ebp - 0x18]
movzx ecx, word [0x522030]
cmp eax, ecx
jne 0x4206aa
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [ebp + 0x10], 0
jne 0x4206b9
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x38], 0
jne 0x4206c3
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [ebp - 8], 0
je 0x42071e
cmp dword [ebp - 0x24], 0
je 0x42071e
push 0xffffffffffffffeb
mov edx, dword [0x513fa0]
mov eax, dword [edx*4 + 0x513fb0]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x40], 0
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x3c], 0
je 0x42070a
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x42071e
mov edx, dword [0x513fa0]
mov eax, dword [edx*4 + 0x513fb0]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov esp, ebp
pop ebp
ret