Function at 0x402030
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x78
push ebp
mov ebp, dword [esp + 0x80]
push esi
mov esi, ecx
cmp ebp, dword [esi + 0x9c]
je 0x402345
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
push edi
lea eax, [esp + 0x48]
push eax
mov eax, dword [edx + esi + 8]
push eax
call ebx
mov ecx, dword [esi + 0x8c]
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push ecx
mov ecx, dword [eax + esi + 8]
push ecx
call edi
test eax, eax
mov dword [esp + 0x18], eax
je 0x402343
mov edx, dword [esi + 0x88]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [ecx + esi + 8]
push edx
call edi
test eax, eax
mov dword [esp + 0x1c], eax
je 0x402343
lea ecx, [esp + 0x58]
push ecx
push eax
call ebx
mov edx, dword [esi + 0xa4]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [ecx + esi + 8]
push edx
call edi
test eax, eax
mov dword [esp + 0x14], eax
je 0x402343
lea ecx, [esp + 0x28]
push ecx
push eax
call ebx
mov eax, dword [esi + 0x9c]
test eax, eax
mov ecx, dword [esp + 0x64]
je 0x402106
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
jmp 0x40212c
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x28]
add edx, eax
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
sub edx, eax
mov dword [esp + 0x3c], ecx
add edx, ecx
sub eax, ecx
test ebp, ebp
mov dword [esp + 0x44], edx
mov dword [esp + 0x10], eax
jne 0x402140
neg eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + esi + 8]
push edx
call dword [sym.imp.USER32.dll_GetTopWindow]
mov ebp, dword [sym.imp.USER32.dll_SetWindowPos]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, eax
test edi, edi
je 0x402234
lea eax, [esp + 0x68]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x402221
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x4021a8
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40220f
cmp edi, dword [esp + 0x14]
je 0x40220f
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x40220f
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x68]
add edx, eax
mov dword [esp + 0x24], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x20], ecx
mov eax, dword [edx + 4]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax + esi + 8]
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push 5
push 0
push 0
push edx
push eax
push 0
push edi
call ebp
push 5
jmp 0x40221e
mov ecx, dword [esp + 0x8c]
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push edi
call ebx
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x402167
mov eax, dword [esp + 0x8c]
test eax, eax
jne 0x4022da
mov eax, dword [esi + 0xa0]
test eax, eax
jne 0x402280
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x1c]
sub edx, edi
mov dword [esi + 0x94], edx
mov edx, dword [esp + 0x4c]
push 0
sub eax, edx
push ecx
mov dword [esi + 0xa0], 1
mov dword [esi + 0x98], eax
call ebx
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x64]
sub edx, edi
mov edi, dword [esp + 0x48]
push 6
sub edx, ecx
mov ecx, dword [esi + 4]
add edx, eax
mov eax, dword [esp + 0x64]
push edx
mov edx, dword [ecx + 4]
sub eax, edi
push eax
mov eax, dword [edx + esi + 8]
push 0
push 0
push 0
push eax
call ebp
mov edx, dword [esp + 0x18]
lea ecx, [esi + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop ebx
mov dword [esi + 0x9c], 0
pop esi
pop ebp
add esp, 0x78
ret 4
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 4]
push 6
push eax
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [eax + esi + 8]
push 0
push 0
push 0
push ecx
call ebp
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
mov ecx, dword [eax + esi + 8]
push 0
push 0
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x14]
push 0
push edx
call ebx
mov eax, dword [esi + 0x90]
test eax, eax
je 0x402339
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov dword [esi + 0x9c], 1
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x78
ret 4