Function at 0x4f2340
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 0x4f26ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x414568]
call fcn.0040377c
mov edi, eax
push edi
push 0x4f2264
call sub.user32.dll_EnumWindows
xor eax, eax
mov dword [ebp - 0x14], eax
call fcn.0040b13c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0xa0]
mov eax, 0x4f26e0
call fcn.0040bd68
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 0x18]
mov ecx, 0x4f26f0
call fcn.004048d8
call fcn.0040b13c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x1c]
call fcn.0040bd3c
mov ebx, dword [edi + 8]
dec ebx
test ebx, ebx
jl 0x4f2680
inc ebx
xor esi, esi
push 0x7f
lea eax, [ebp - 0x9c]
push eax
mov edx, esi
mov eax, edi
call fcn.00416e84
push eax
call sub.user32.dll_GetWindowTextA
test eax, eax
jle case.0x4f24b4.0
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x9c]
mov ecx, 0x80
call fcn.00404820
mov eax, dword [ebp - 0x10]
call fcn.004f213c
test al, al
je case.0x4f24b4.0
lea eax, [ebp - 8]
push eax
mov edx, esi
mov eax, edi
call fcn.00416e84
push eax
call sub.user32.dll_GetWindowThreadProcessId
cmp dword [ebp - 0x14], 0
jne 0x4f24a3
mov eax, dword [0x53f9a8]
mov edx, dword [ebp - 0x10]
call fcn.004049d0
je 0x4f24a3
mov eax, 0x53f9a8
mov edx, dword [ebp - 0x10]
call fcn.0040460c
cmp dword [0x549988], 0
jl 0x4f247a
cmp dword [0x549988], 3
jle 0x4f2483
cmp dword [0x549988], 9
jne 0x4f24a3
push 0
push 0
mov eax, dword [0x53f9a8]
push eax
push 0
push 0
mov ecx, 3
mov edx, 0x91
mov eax, dword [ebp - 4]
call fcn.004dd98c
inc dword [ebp - 0x14]
mov eax, dword [0x549988]
cmp eax, 0xa
ja case.0x4f24b4.0
jmp dword [eax*4 + 0x4f24bb]
mov eax, dword [0x540c48]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [0x53f33c]
jne 0x4f2507
cmp eax, dword [0x53f338]
jae case.0x4f24b4.0
jmp 0x4f250d
jge case.0x4f24b4.0
lea edx, [ebp - 0xa4]
mov eax, 0x1d
call fcn.004ac138
mov ecx, dword [ebp - 0xa4]
mov dx, word [0x4f26f4]
mov al, 1
call fcn.004af020
jmp case.0x4f24b4.0
mov edx, 5
mov eax, dword [0x54981c]
call fcn.004f501c
jmp case.0x4f24b4.0
push 0
push 0
push 0x10
mov edx, esi
mov eax, edi
call fcn.00416e84
push eax
call sub.user32.dll_PostMessageA
cmp dword [0x53f41c], 0
je case.0x4f24b4.0
push 0
push 0x4f26f8
lea edx, [ebp - 0xa8]
mov eax, 0x2e
call fcn.004ac138
lea eax, [ebp - 0xa8]
mov edx, dword [0x53f9a8]
call fcn.00404894
mov eax, dword [ebp - 0xa8]
call fcn.00404a84
push eax
push 0
call sub.user32.dll_MessageBoxA_1
jmp case.0x4f24b4.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 0x4f25c9
cmp eax, 0xffffffff
je 0x4f25e7
cmp dword [ebp - 0xc], 0
je 0x4f25e7
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 0x4f25fc
push 0
push 0
push 0x10
mov edx, esi
mov eax, edi
call fcn.00416e84
push eax
call sub.user32.dll_PostMessageA
cmp dword [0x53f41c], 0
je case.0x4f24b4.0
push 0
push 0x4f26f8
lea edx, [ebp - 0xac]
mov eax, 0x2e
call fcn.004ac138
lea eax, [ebp - 0xac]
mov edx, dword [0x53f9a8]
call fcn.00404894
mov eax, dword [ebp - 0xac]
call fcn.00404a84
push eax
push 0
call sub.user32.dll_MessageBoxA_1
jmp case.0x4f24b4.0
mov edx, esi
mov eax, edi
call fcn.00416e84
cmp eax, dword [0x54998c]
je case.0x4f24b4.0
mov edx, esi
mov eax, edi
call fcn.00416e84
mov dword [0x54998c], eax
push 0
push 0xf020
push 0x112
mov eax, dword [0x54998c]
push eax
call sub.user32.dll_PostMessageA
inc esi
dec ebx
jne 0x4f23f0
cmp dword [ebp - 0x14], 0
jne 0x4f2690
mov eax, 0x53f9a8
call fcn.004045b8
mov eax, edi
call fcn.004037ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f26d1
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