Function at 0x4f24d8
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 0x4f2862
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 0x4f23fc
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, 0x4f2878
call fcn.0040bd68
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 0x18]
mov ecx, 0x4f2888
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 0x4f2818
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.0x4f264c.0
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x9c]
mov ecx, 0x80
call fcn.00404820
mov eax, dword [ebp - 0x10]
call fcn.004f22d4
test al, al
je case.0x4f264c.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 0x4f263b
mov eax, dword [0x53f9a8]
mov edx, dword [ebp - 0x10]
call fcn.004049d0
je 0x4f263b
mov eax, 0x53f9a8
mov edx, dword [ebp - 0x10]
call fcn.0040460c
cmp dword [0x54998c], 0
jl 0x4f2612
cmp dword [0x54998c], 3
jle 0x4f261b
cmp dword [0x54998c], 9
jne 0x4f263b
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.004dd994
inc dword [ebp - 0x14]
mov eax, dword [0x54998c]
cmp eax, 0xa
ja case.0x4f264c.0
jmp dword [eax*4 + 0x4f2653]
mov eax, dword [0x540c48]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [0x53f33c]
jne 0x4f269f
cmp eax, dword [0x53f338]
jae case.0x4f264c.0
jmp 0x4f26a5
jge case.0x4f264c.0
lea edx, [ebp - 0xa4]
mov eax, 0x1d
call fcn.004ac178
mov ecx, dword [ebp - 0xa4]
mov dx, word [0x4f288c]
mov al, 1
call fcn.004af060
jmp case.0x4f264c.0
mov edx, 5
mov eax, dword [0x54981c]
call fcn.004f51b4
jmp case.0x4f264c.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.0x4f264c.0
push 0
push 0x4f2890
lea edx, [ebp - 0xa8]
mov eax, 0x2e
call fcn.004ac178
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.0x4f264c.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 0x4f2761
cmp eax, 0xffffffff
je 0x4f277f
cmp dword [ebp - 0xc], 0
je 0x4f277f
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 0x4f2794
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.0x4f264c.0
push 0
push 0x4f2890
lea edx, [ebp - 0xac]
mov eax, 0x2e
call fcn.004ac178
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.0x4f264c.0
mov edx, esi
mov eax, edi
call fcn.00416e84
cmp eax, dword [0x549990]
je case.0x4f264c.0
mov edx, esi
mov eax, edi
call fcn.00416e84
mov dword [0x549990], eax
push 0
push 0xf020
push 0x112
mov eax, dword [0x549990]
push eax
call sub.user32.dll_PostMessageA
inc esi
dec ebx
jne 0x4f2588
cmp dword [ebp - 0x14], 0
jne 0x4f2828
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 0x4f2869
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