Function at 0x50f0cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50f2ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41f728]
call fcn.00403edc
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x50f2ca
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x50f2aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
call fcn.0040c5c8
test al, al
je 0x50f153
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
call fcn.0040c7e0
cmp dword [ebp - 8], 0
jne 0x50f175
mov eax, dword [ebp - 0x18]
push eax
push 0x50e014
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x50f2a0
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 0
mov dl, 1
mov eax, dword [0x41f728]
call fcn.00403edc
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x50f28d
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [0x50f2fc]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x24]
mov ecx, 0x50f308
mov edx, 0x50f314
call fcn.00411acc
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 2
jne 0x50f277
push 1
call sub.kernel32.dll_Sleep_1
lea ecx, [ebp - 0x28]
xor edx, edx
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x28]
call fcn.0040c148
mov ebx, eax
lea ecx, [ebp - 0x2c]
mov edx, 1
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x2c]
call fcn.0040c148
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.user32.dll_GetWindowThreadProcessId
cmp esi, dword [ebp - 0x10]
jne 0x50f277
lea ecx, [ebp - 0x38]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0050e6c4
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0040c9dc
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.0040ba14
mov eax, dword [ebp - 0x30]
mov edx, 0x50f320
call fcn.00405284
je 0x50f277
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f294
mov eax, dword [ebp - 0x14]
call fcn.00403f0c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50f2b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f2d1
mov eax, dword [ebp - 0x18]
call fcn.00403f0c
ret