Function at 0x4f2c10
Capabilities:
Enumerate gui resources
Get graphical window text
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f2f9a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4145dc]
call fcn.0040377c
mov edi, eax
push edi
push 0x4f2b34
call sub.user32.dll_EnumWindows
xor eax, eax
mov dword [ebp - 0x14], eax
call fcn.0040b1b0
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0xa0]
mov eax, 0x4f2fb0
call fcn.0040bddc
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 0x18]
mov ecx, 0x4f2fc0
call fcn.004048d8
call fcn.0040b1b0
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x1c]
call fcn.0040bdb0
mov ebx, dword [edi + 8]
dec ebx
test ebx, ebx
jl 0x4f2f50
inc ebx
xor esi, esi
push 0x7f
lea eax, [ebp - 0x9c]
push eax
mov edx, esi
mov eax, edi
call fcn.00416ef8
push eax
call sub.user32.dll_GetWindowTextA
test eax, eax
jle case.0x4f2d84.0
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x9c]
mov ecx, 0x80
call fcn.00404820
mov eax, dword [ebp - 0x10]
call fcn.004f2a0c
test al, al
je case.0x4f2d84.0
lea eax, [ebp - 8]
push eax
mov edx, esi
mov eax, edi
call fcn.00416ef8
push eax
call sub.user32.dll_GetWindowThreadProcessId
cmp dword [ebp - 0x14], 0
jne 0x4f2d73
mov eax, dword [0x5409a8]
mov edx, dword [ebp - 0x10]
call fcn.004049d0
je 0x4f2d73
mov eax, 0x5409a8
mov edx, dword [ebp - 0x10]
call fcn.0040460c
cmp dword [0x54a98c], 0
jl 0x4f2d4a
cmp dword [0x54a98c], 3
jle 0x4f2d53
cmp dword [0x54a98c], 9
jne 0x4f2d73
push 0
push 0
mov eax, dword [0x5409a8]
push eax
push 0
push 0
mov ecx, 3
mov edx, 0x91
mov eax, dword [ebp - 4]
call fcn.004ddaec
inc dword [ebp - 0x14]
mov eax, dword [0x54a98c]
cmp eax, 0xa
ja case.0x4f2d84.0
jmp dword [eax*4 + 0x4f2d8b]
mov eax, dword [0x541c48]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [0x54033c]
jne 0x4f2dd7
cmp eax, dword [0x540338]
jae case.0x4f2d84.0
jmp 0x4f2ddd
jge case.0x4f2d84.0
lea edx, [ebp - 0xa4]
mov eax, 0x1d
call fcn.004ac210
mov ecx, dword [ebp - 0xa4]
mov dx, word [0x4f2fc4]
mov al, 1
call fcn.004af0f8
jmp case.0x4f2d84.0
mov edx, 5
mov eax, dword [0x54a81c]
call fcn.004f58ec
jmp case.0x4f2d84.0
push 0
push 0
push 0x10
mov edx, esi
mov eax, edi
call fcn.00416ef8
push eax
call sub.user32.dll_PostMessageA
cmp dword [0x54041c], 0
je case.0x4f2d84.0
push 0
push 0x4f2fc8
lea edx, [ebp - 0xa8]
mov eax, 0x2e
call fcn.004ac210
lea eax, [ebp - 0xa8]
mov edx, dword [0x5409a8]
call fcn.00404894
mov eax, dword [ebp - 0xa8]
call fcn.00404a84
push eax
push 0
call sub.user32.dll_MessageBoxA_1
jmp case.0x4f2d84.0
mov eax, dword [ebp - 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
cmp edx, 0xffffffff
jne 0x4f2e99
cmp eax, 0xffffffff
je 0x4f2eb7
cmp dword [ebp - 0xc], 0
je 0x4f2eb7
push 0x31
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x4f2ecc
push 0
push 0
push 0x10
mov edx, esi
mov eax, edi
call fcn.00416ef8
push eax
call sub.user32.dll_PostMessageA
cmp dword [0x54041c], 0
je case.0x4f2d84.0
push 0
push 0x4f2fc8
lea edx, [ebp - 0xac]
mov eax, 0x2e
call fcn.004ac210
lea eax, [ebp - 0xac]
mov edx, dword [0x5409a8]
call fcn.00404894
mov eax, dword [ebp - 0xac]
call fcn.00404a84
push eax
push 0
call sub.user32.dll_MessageBoxA_1
jmp case.0x4f2d84.0
mov edx, esi
mov eax, edi
call fcn.00416ef8
cmp eax, dword [0x54a990]
je case.0x4f2d84.0
mov edx, esi
mov eax, edi
call fcn.00416ef8
mov dword [0x54a990], eax
push 0
push 0xf020
push 0x112
mov eax, dword [0x54a990]
push eax
call sub.user32.dll_PostMessageA
inc esi
dec ebx
jne 0x4f2cc0
cmp dword [ebp - 0x14], 0
jne 0x4f2f60
mov eax, 0x5409a8
call fcn.004045b8
mov eax, edi
call fcn.004037ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2fa1
lea eax, [ebp - 0xac]
mov edx, 4
call fcn.004045dc
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004045dc
lea eax, [ebp - 0x10]
call fcn.004045b8
ret