Function at 0x50eac8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff44
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50eda7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dl, 1
mov eax, dword [0x41f728]
call fcn.00403edc
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
xor eax, eax
push ebp
push 0x50ed75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
push 0x50df6c
call sub.user32.dll_EnumWindows
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x50ed2e
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xc], 0
xor eax, eax
push ebp
push 0x50eb9f
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0xb4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xb4]
call fcn.0040c148
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50ebb7
cmp dword [ebp - 0x1c], 0
jne 0x50ebc1
cmp dword [ebp - 0x20], 0
je 0x50ed22
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x24]
jne 0x50ebdb
cmp eax, dword [ebp - 0x28]
je 0x50ed22
lea ecx, [ebp - 0xb8]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0050e6ec
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0x18]
call fcn.0040b9c4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edi, eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.0040c9dc
mov byte [ebp - 0x29], 0
push 0x80
lea eax, [ebp - 0xb0]
push eax
push edi
call sub.user32.dll_GetClassNameA
mov esi, 3
mov ebx, 0x595e34
lea eax, [ebp - 0xbc]
lea edx, [ebp - 0xb0]
mov ecx, 0x80
call fcn.004050cc
mov edx, dword [ebp - 0xbc]
mov eax, dword [ebx]
call fcn.00405284
jne 0x50ec72
push 0
push 0xf060
push 0x112
push edi
call sub.user32.dll_PostMessageA
mov byte [ebp - 0x29], 1
jmp 0x50ec78
add ebx, 4
dec esi
jne 0x50ec35
cmp byte [ebp - 0x29], 0
jne 0x50ed22
mov eax, dword [ebp - 0x14]
mov edx, 0x50edc0
call fcn.00405284
je 0x50ed22
mov eax, dword [ebp - 0x14]
mov edx, 0x50edd8
call fcn.00405284
je 0x50ed22
mov eax, dword [ebp - 0x14]
mov edx, 0x50edf0
call fcn.00405284
je 0x50ed22
mov eax, dword [ebp - 0x14]
mov edx, 0x50ee08
call fcn.00405284
je 0x50ed22
mov eax, dword [ebp - 0x14]
mov edx, 0x50ee1c
call fcn.00405284
je 0x50ed22
mov eax, dword [ebp - 0x14]
mov edx, 0x50ee30
call fcn.00405284
je 0x50ed22
mov eax, dword [ebp - 0x14]
mov edx, 0x50ee44
call fcn.00405284
je 0x50ed22
mov eax, dword [ebp - 0x14]
mov edx, 0x50ee58
call fcn.00405284
je 0x50ed22
mov eax, dword [ebp - 0x14]
mov edx, 0x50ee6c
call fcn.00405284
je 0x50ed22
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0050e944
test al, al
je 0x50ed22
inc dword [ebp - 0x10]
inc dword [ebp - 0xc]
dec dword [ebp - 0x30]
jne 0x50eb62
mov eax, dword [ebp - 4]
cmp word [eax + 0x4a], 0
je 0x50ed47
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x4c]
call dword [ebx + 0x48]
cmp dword [ebp - 0x10], 0
jle 0x50ed51
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ed7c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
add eax, 0x58
call fcn.004121e0
ret