Function at 0x4646d0
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x497e60
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4c4074]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], edx
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x46471b
xor al, al
jmp 0x46498c
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x3c]
call fcn.00464170
mov ecx, dword [ebp - 0x38]
xor ebx, ebx
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x20], ebx
test ecx, ecx
jle 0x46495d
test ebx, ebx
js 0x4649b9
cmp ebx, ecx
jge 0x4649b9
mov esi, dword [ebp - 0x3c]
push dword [esi + ebx*4]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x4c], 0x4a85d0
mov dword [ebp - 0x48], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
mov esi, dword [esi + ebx*4]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x4649af
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], esi
test eax, eax
je 0x4647ee
push eax
call fcn.00473d1a
add esp, 4
mov dword [ebp - 0x1c], 0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
add esi, 0xfffffff0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x464859
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x46484a
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x46484a
call fcn.004025a0
mov dword [ebp - 0x24], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x46483f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
add eax, 0x10
mov dword [ebp - 0x28], eax
jmp 0x464856
push dword [edx - 0xc]
lea ecx, [ebp - 0x28]
push edx
call fcn.00407350
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x30]
push eax
push 0x4644d0
call dword [sym.imp.USER32.dll_EnumWindows]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x464891
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
xor esi, esi
test eax, eax
jle 0x464908
nop word [eax + eax]
test esi, esi
js 0x4649b9
cmp esi, eax
jge 0x4649b9
push 0x104
lea eax, [ebp]
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax + esi*4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x464900
test edi, edi
je 0x464900
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x44], 0x103
jne 0x464900
mov byte [ebp - 0xd], 1
cmp esi, dword [ebp - 0x18]
jge 0x4649b9
mov eax, dword [ebp - 0x1c]
push 0
push 0
push 0x10
push dword [eax + esi*4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x18]
inc esi
cmp esi, eax
jl 0x4648a0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x464923
push eax
call fcn.00473d1a
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x4c], 0x4a85d0
test edi, edi
je 0x46494e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x38]
inc ebx
mov dword [ebp - 0x20], ebx
cmp ebx, ecx
jl 0x464753
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x46497b
push eax
call fcn.00473d1a
add esp, 4
mov dword [ebp - 0x3c], 0
mov al, byte [ebp - 0xd]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0046e38e
lea esp, [ebp + 0x20c]
pop ebp
ret
push 0x80004005
call fcn.004024c0
push 1
push 0xc000008c
call fcn.004086a0
int3