Function at 0x4be348
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4be580
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41703c]
call fcn.00403744
mov ebx, eax
push ebx
push 0x4be204
call sub.user32.dll_EnumWindows
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 5
jle 0x4be4db
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4be463
inc eax
mov dword [ebp - 0x28], eax
xor esi, esi
lea ecx, [ebp - 0x3c]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x24]
call fcn.00408898
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x13
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.00404ac4
mov eax, dword [ebp - 0x40]
mov edx, 0x4be59c
call fcn.004049b0
jne 0x4be459
lea ecx, [ebp - 0x44]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x44]
call fcn.004842b8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov edi, dword [ebp - 0x20]
push edi
call sub.user32.dll_IsWindow
test eax, eax
je 0x4be459
push edi
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4be459
lea eax, [ebp - 0x38]
push eax
push edi
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
cmp eax, 0x1f4
jle 0x4be459
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
cmp eax, 0x1f4
jle 0x4be459
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
jmp 0x4be463
inc esi
dec dword [ebp - 0x28]
jne 0x4be3ba
cmp dword [ebp - 0xc], 0
jne 0x4be46d
cmp dword [ebp - 0x10], 0
je 0x4be4b8
mov esi, dword [ebp - 0x10]
push esi
call sub.user32.dll_IsWindow
test eax, eax
je 0x4be4e9
push esi
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4be4e9
lea eax, [ebp - 0x38]
push eax
push esi
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
cmp eax, 0x1f4
jle 0x4be4e9
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
cmp eax, 0x1f4
jle 0x4be4e9
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jmp 0x4be4e9
mov eax, dword [0x4c2da8]
mov eax, dword [eax]
push eax
call sub.user32.dll_IsWindow
test eax, eax
je 0x4be4e9
mov eax, dword [0x4c2da8]
mov edx, dword [eax]
mov dword [ebp - 8], edx
mov edx, dword [eax + 4]
mov dword [ebp - 4], edx
jmp 0x4be4e9
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, ebx
call fcn.00403774
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ebx, dword [ebp - 0x10]
push ebx
call sub.user32.dll_IsWindow
test eax, eax
je 0x4be551
push ebx
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4be551
lea eax, [ebp - 0x38]
push eax
push ebx
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
cmp eax, 0x1f4
jle 0x4be551
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
cmp eax, 0x1f4
jle 0x4be551
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be587
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.004045c8
lea eax, [ebp - 0x24]
call fcn.004045a4
ret