Function at 0x4af90c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4afb63
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
mov dword [esi + 0xac], eax
mov eax, dword [esi + 0x88]
push eax
call sub.user32.dll_GetTopWindow
mov ebx, eax
mov byte [ebp - 0xa], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xc], 0
test ebx, ebx
je 0x4afa1c
push 0x64
lea eax, [ebp - 0x74]
push eax
push ebx
call sub.user32.dll_GetClassNameA
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x74]
call fcn.00409598
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 8]
call fcn.00408838
mov eax, dword [ebp - 8]
mov edx, 0x4afb7c
call fcn.00404a40
jne 0x4af993
mov byte [ebp - 0xa], 1
mov eax, dword [ebp - 8]
mov edx, 0x4afb98
call fcn.00404a40
jne 0x4af9a6
mov byte [ebp - 0xb], 1
mov eax, dword [ebp - 8]
mov edx, 0x4afbb0
call fcn.00404a40
jne 0x4af9b9
mov byte [ebp - 0xc], 1
mov eax, dword [ebp - 8]
mov edx, 0x4afbc0
call fcn.00404a40
jne 0x4af9cf
mov byte [esi + 0xa0], 1
cmp byte [esi + 0xa0], 0
je 0x4af9ef
mov eax, dword [ebp - 8]
mov edx, 0x4afbf4
call fcn.00404a40
jne 0x4af9ef
push 0
push ebx
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 8]
mov edx, 0x4afc08
call fcn.00404a40
jne 0x4afa0a
mov byte [ebp - 9], 1
mov dword [esi + 0xac], ebx
jmp 0x4afa1c
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x4af95e
mov al, byte [ebp - 0xa]
and al, byte [ebp - 0xb]
je 0x4afa31
cmp byte [ebp - 0xc], 0
je 0x4afa31
mov byte [esi + 0x9f], 1
cmp byte [ebp - 9], 0
je 0x4afb40
push 0xfffffffffffffffc
mov eax, dword [esi + 0xac]
push eax
call sub.user32.dll_GetWindowLongA
mov dword [esi + 0xa4], eax
push esi
push 0x4af89c
call fcn.004837c0
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0xa8]
push eax
push 0xfffffffffffffffc
mov eax, dword [esi + 0xac]
push eax
call sub.user32.dll_SetWindowLongA
mov eax, dword [esi + 0xac]
push eax
call sub.user32.dll_GetTopWindow
mov ebx, eax
test ebx, ebx
je 0x4afb40
push 0x64
lea eax, [ebp - 0x74]
push eax
push ebx
call sub.user32.dll_GetClassNameA
lea edx, [ebp - 0x7c]
lea eax, [ebp - 0x74]
call fcn.00409598
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 8]
call fcn.00408838
mov eax, dword [ebp - 8]
mov edx, 0x4afc18
call fcn.00404a40
jne 0x4afb2e
mov eax, ebx
call fcn.00467f34
mov edi, eax
test edi, edi
je 0x4afb2e
mov eax, dword [esi + 0x30]
mov edx, dword [eax + 0x9c]
mov eax, edi
call fcn.0046b270
mov eax, edi
call fcn.0046e71c
dec eax
test eax, eax
jl 0x4afb2e
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.0046e6e0
mov edx, dword [0x433a90]
call fcn.0040397c
test al, al
je 0x4afb26
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.0046e6e0
mov edx, dword [0x433a90]
call fcn.004039a0
mov edx, dword [edi + 0x70]
call fcn.0046b270
inc dword [ebp - 4]
dec dword [ebp - 0x10]
jne 0x4afaf0
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x4afa8b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4afb6a
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.00404658
lea eax, [ebp - 8]
call fcn.00404634
ret