Function at 0x402040
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x78
push ebp
mov ebp, dword [esp + 0x80]
push esi
mov esi, ecx
cmp ebp, dword [esi + 0x11c]
je 0x402358
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 + 0x10c]
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 0x402356
mov edx, dword [esi + 0x108]
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 0x402356
lea ecx, [esp + 0x58]
push ecx
push eax
call ebx
mov edx, dword [esi + 0x124]
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 0x402356
lea ecx, [esp + 0x28]
push ecx
push eax
call ebx
mov eax, dword [esi + 0x11c]
test eax, eax
mov ecx, dword [esp + 0x64]
je 0x402116
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 0x40213c
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 0x402150
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 0x402244
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 0x402231
mov eax, dword [esi + 0x120]
test eax, eax
je 0x4021b8
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40221f
cmp edi, dword [esp + 0x14]
je 0x40221f
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 0x40221f
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 0x40222e
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 0x402177
mov eax, dword [esp + 0x8c]
test eax, eax
jne 0x4022ea
mov eax, dword [esi + 0x120]
test eax, eax
jne 0x402290
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 + 0x114], edx
mov edx, dword [esp + 0x4c]
push 0
sub eax, edx
push ecx
mov dword [esi + 0x120], 1
mov dword [esi + 0x118], 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_SetWindowTextW]
pop edi
pop ebx
mov dword [esi + 0x11c], 0
pop esi
pop ebp
add esp, 0x78
ret 4
mov eax, dword [esi + 0x118]
mov ecx, dword [esi + 0x114]
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_SendMessageW]
mov edx, dword [esp + 0x14]
push 0
push edx
call ebx
mov eax, dword [esi + 0x110]
test eax, eax
je 0x40234c
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0x88]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [esi + 0x11c], 1
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x78
ret 4