Function at 0x4f8b14
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
add esi, esi
inc esi
test esi, esi
js 0x4f8b34
mov edi, dword [ebx + esi*4]
dec esi
push edi
jns 0x4f8b2d
mov dword [ebp + 0xc], esp
mov ebx, ecx
test ebx, ebx
js 0x4f8b44
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4f8b3d
mov edx, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 8]
mov edx, dword [0x40112c]
call fcn.00405b20
xor eax, eax
push ebp
push 0x4f8fc4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 1
test eax, eax
jl 0x4f8b7d
cmp eax, dword [ebp - 0xc]
jle 0x4f8b82
call fcn.00403a58
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*4]
xor edx, edx
call fcn.00405614
je 0x4f8fa4
lea eax, [ebp - 0x138]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.0040346c
xor eax, eax
test eax, eax
jl 0x4f8bb2
cmp eax, dword [ebp + 8]
jle 0x4f8bb7
call fcn.00403a58
mov edx, dword [ebp + 0xc]
lea eax, [edx + eax*8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x4f8bd0
call fcn.00403a58
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004ee5cc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_IsWindow
test eax, eax
je 0x4f8fa4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004fdbe8
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x21], 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x4f8c1f
mov dword [ebp - 0x18], 1
jmp 0x4f8c33
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x4f8c33
mov dword [ebp - 0x18], 2
mov eax, dword [ebp - 0xc]
inc eax
sub eax, 1
jno 0x4f8c41
call fcn.00403a60
test eax, eax
jle 0x4f8cc2
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
test eax, eax
jl 0x4f8c5b
cmp eax, dword [ebp - 0xc]
jle 0x4f8c60
call fcn.00403a58
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*4]
xor edx, edx
call fcn.00405614
je 0x4f8cc2
mov eax, dword [ebp - 0x10]
test eax, eax
jl 0x4f8c7b
cmp eax, dword [ebp + 8]
jle 0x4f8c80
call fcn.00403a58
mov edx, dword [ebp + 0xc]
lea eax, [edx + eax*8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x4f8c99
call fcn.00403a58
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x12
je 0x4f8cb4
cmp dword [ebp - 0x14], 0xa4
je 0x4f8cb4
cmp dword [ebp - 0x14], 0xa5
jne 0x4f8cba
mov byte [ebp - 0x21], 1
jmp 0x4f8cc2
inc dword [ebp - 0x10]
dec dword [ebp - 0x28]
jne 0x4f8c4f
cmp byte [ebp - 0x21], 0
jne 0x4f8cd4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3ac], 2
jne 0x4f8cde
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004fde6c
cmp dword [ebp - 0x18], 0
jle 0x4f8d36
call sub.user32.dll_GetForegroundWindow
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x18], 1
jne 0x4f8cfd
push 9
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebp - 0x18], 2
jne 0x4f8d0e
push 5
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_ShowWindow
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_GetWindowRect
push 1
push 0
push 0
push 0xf423f
push 0xf423f
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_SetWindowPos
mov eax, dword [0x5892f4]
mov eax, dword [eax]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
call fcn.005805a8
mov eax, dword [ebp - 0xc]
inc eax
sub eax, 1
jno 0x4f8d55
call fcn.00403a60
test eax, eax
jle 0x4f8e46
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
test eax, eax
jl 0x4f8d73
cmp eax, dword [ebp - 0xc]
jle 0x4f8d78
call fcn.00403a58
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*4]
xor edx, edx
call fcn.00405614
je 0x4f8e46
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004fdbe8
push 4
call sub.kernel32.dll_Sleep_1
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.005463e4
mov eax, dword [ebp - 0x10]
test eax, eax
jl 0x4f8db6
cmp eax, dword [ebp + 8]
jle 0x4f8dbb
call fcn.00403a58
mov edx, dword [ebp + 0xc]
lea eax, [edx + eax*8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x4f8dd4
call fcn.00403a58
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0x3f
jbe 0x4f8de4
call fcn.00403a58
mov edx, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x138], edx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004f8aa4
test al, al
je 0x4f8e13
push 0
push 0
mov ecx, 1
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004fdffc
jmp 0x4f8e3a
push 0
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004fdffc
mov eax, dword [ebp - 0x10]
cmp eax, 0x3f
jbe 0x4f8e31
call fcn.00403a58
xor edx, edx
mov dword [ebp + eax*4 - 0x138], edx
inc dword [ebp - 0x10]
dec dword [ebp - 0x28]
jne 0x4f8d67
push 4
call sub.kernel32.dll_Sleep_1
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.005463e4
mov eax, dword [0x58961c]
cmp dword [eax], 0
je 0x4f8e9d
mov eax, dword [0x58961c]
mov eax, dword [eax]
call fcn.0045e0f0
cmp eax, dword [ebp - 0x1c]
jne 0x4f8e9d
push 0x28
call sub.kernel32.dll_Sleep_1
mov edx, 0x50
mov eax, dword [ebp - 4]
call fcn.005463e4
push 0x28
call sub.kernel32.dll_Sleep_1
mov edx, 0x50
mov eax, dword [ebp - 4]
call fcn.005463e4
mov eax, dword [ebp - 0xc]
inc eax
cmp eax, 1
jl 0x4f8eee
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0x3f
jbe 0x4f8eb6
call fcn.00403a58
cmp dword [ebp + eax*4 - 0x138], 0
jle 0x4f8ee5
push 0
push 0
mov eax, dword [ebp - 0x10]
cmp eax, 0x3f
jbe 0x4f8ed1
call fcn.00403a58
mov edx, dword [ebp + eax*4 - 0x138]
mov ecx, 2
mov eax, dword [ebp - 4]
call fcn.004fdffc
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0
jne 0x4f8ea9
push 4
call sub.kernel32.dll_Sleep_1
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.005463e4
cmp dword [ebp - 0x18], 0
jle 0x4f8f21
push 1
push 0
push 0
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x38]
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_SetWindowPos
cmp dword [ebp - 0x18], 1
jne 0x4f8f32
push 6
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebp - 0x18], 2
jne 0x4f8f43
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebp - 0x20], 0
je 0x4f8f5a
mov eax, dword [0x5892f4]
mov eax, dword [eax]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
call fcn.005805a8
cmp byte [ebp - 0x21], 0
jne 0x4f8f6c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3ac], 2
jne 0x4f8f76
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004fde6c
call sub.kernel32.dll_GetCurrentThreadId_1
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x21b0]
jne 0x4f8f90
mov eax, dword [ebp - 4]
mov byte [eax + 0x37d], 1
push 4
call sub.kernel32.dll_Sleep_1
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.005463e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f8fcb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x40112c]
call fcn.004059e0
ret