Function at 0x40b2ec
Capabilities:
Check for foreground window switch
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
mov esi, ecx
push 0x439
call 0x436920
mov ecx, eax
call 0x436c1e
push 1
push 0x440
mov ecx, esi
call 0x6f6920
add byte [eax], al
add byte [ebp - 0x75], dl
in al, dx
add esp, 0xffffffc0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x40b612
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
call fcn.0040b0c4
push 0
mov eax, dword [0x41bdf4]
call fcn.0040358c
push eax
push 0
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
cmp dword [0x41bba0], 0x26be
je 0x40b570
push 0x190
call sub.kernel32.dll_Sleep
cmp dword [0x41bba0], 0x26be
jne 0x40b342
jmp 0x40b570
call fcn.0040b0c4
mov eax, dword [0x41bdf4]
call fcn.0040358c
push eax
push 0
mov eax, dword [0x41a2c4]
mov eax, dword [eax]
call eax
mov ebx, eax
test ebx, ebx
je 0x40b465
mov eax, 0x41bb68
mov edx, 0x40b628
call fcn.0040325c
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.user32.dll_GetClientRect
mov eax, 0x41bb68
mov edx, 0x40b664
call fcn.0040325c
mov eax, dword [ebp - 0xc]
cmp eax, 0x14a
je 0x40b3c9
cmp eax, 0x15f
jne 0x40b45d
cmp dword [ebp - 8], 0xc1
jne 0x40b45d
push 0x40b6a8
push 0
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov edi, eax
test edi, edi
je 0x40b42f
mov eax, 0x41bb68
mov edx, 0x40b6b8
call fcn.0040325c
push 0
push 0
push 0x201
push edi
mov eax, dword [0x41a2b8]
mov eax, dword [eax]
call eax
push 0
push 0
push 0x202
push edi
mov eax, dword [0x41a2b8]
mov eax, dword [eax]
call eax
mov eax, 0x41bb68
mov edx, 0x40b6d0
call fcn.0040325c
push ebx
call sub.user32.dll_SetForegroundWindow
test eax, eax
je 0x40b465
push 0
push 0
push 0
push 0xd
mov eax, dword [0x41a2dc]
mov eax, dword [eax]
call eax
push 0
push 2
push 0
push 0xd
mov eax, dword [0x41a2dc]
mov eax, dword [eax]
call eax
jmp 0x40b465
push 0
push ebx
call sub.user32.dll_ShowWindow
call sub.user32.dll_GetForegroundWindow
mov ebx, eax
mov eax, 0x41bb68
mov edx, 0x40b774
call fcn.0040325c
push 0x1e
lea eax, [ebp - 0x33]
push eax
push ebx
mov eax, dword [0x41a2a8]
mov eax, dword [eax]
call eax
lea eax, [ebp - 4]
lea edx, [ebp - 0x33]
mov ecx, 0x1f
call fcn.00403374
mov eax, dword [ebp - 4]
call fcn.0040338c
test eax, eax
jle 0x40b565
mov edx, dword [ebp - 4]
mov eax, 0x40b818
call fcn.00403624
test eax, eax
jne 0x40b55d
mov edx, dword [ebp - 4]
mov eax, dword [0x41bdf8]
call fcn.00403624
test eax, eax
jne 0x40b55d
mov edx, dword [ebp - 4]
mov eax, dword [0x41bdfc]
call fcn.00403624
test eax, eax
jne 0x40b55d
mov edx, dword [ebp - 4]
mov eax, dword [0x41be00]
call fcn.00403624
test eax, eax
jne 0x40b55d
mov edx, dword [ebp - 4]
mov eax, 0x40b828
call fcn.00403624
test eax, eax
jne 0x40b55d
mov edx, dword [ebp - 4]
mov eax, 0x40b838
call fcn.00403624
test eax, eax
jne 0x40b55d
mov edx, dword [ebp - 4]
mov eax, 0x40b848
call fcn.00403624
test eax, eax
jne 0x40b55d
mov edx, dword [ebp - 4]
mov eax, 0x40b858
call fcn.00403624
test eax, eax
jne 0x40b55d
mov edx, dword [ebp - 4]
mov eax, 0x40b868
call fcn.00403624
test eax, eax
jne 0x40b55d
mov edx, dword [ebp - 4]
mov eax, dword [0x41be04]
call fcn.00403624
test eax, eax
je 0x40b565
push 0
push ebx
call sub.user32.dll_ShowWindow
push 0x320
call sub.kernel32.dll_Sleep
inc esi
cmp dword [0x41bba0], 0x1d9e2
je 0x40b585
cmp esi, 0x4b
jl 0x40b35d
push 0x927c0
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x38]
mov ecx, 0x40b874
mov edx, dword [0x41be08]
call fcn.004033d8
mov eax, dword [ebp - 0x38]
call fcn.00405130
mov ecx, 0x40b874
lea eax, [ebp - 0x3c]
mov edx, dword [0x41be0c]
call fcn.004033d8
mov eax, dword [ebp - 0x3c]
call fcn.00405130
mov ecx, 0x40b874
lea eax, [ebp - 0x40]
mov edx, dword [0x41be10]
call fcn.004033d8
mov eax, dword [ebp - 0x40]
call fcn.00405130
mov eax, 0x41bb68
mov edx, 0x40b884
call fcn.0040325c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b619
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.0040322c
lea eax, [ebp - 4]
call fcn.00403208
ret