Function at 0x4a5330d4
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [0x4a532d2c]
call fcn.4a508938
xor eax, eax
push ebp
push 0x4a533360
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.4a50aaf4
xor eax, eax
mov dword [ebp - 0x20], eax
test bl, bl
je 0x4a53321c
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4a532cf4]
call fcn.4a509478
add esp, 4
mov edx, esi
test edx, edx
jl 0x4a533152
inc edx
xor ecx, ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [eax]
mov dword [esi + ecx*4], edi
inc ecx
add eax, 4
dec edx
jne 0x4a533143
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x7fffffff
mov dword [ebp - 0x18], 0x7fffffff
mov dword [ebp - 0x14], 0x80000000
mov dword [ebp - 0x10], 0x80000000
lea eax, [ebp - 0x28]
push eax
push 0x4a532dd8
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 0x1c]
cmp eax, 0x7fffffff
jge 0x4a53321c
test eax, eax
jge 0x4a53319f
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], 0
jge 0x4a5331aa
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x20]
jle 0x4a5331b8
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x1c]
jle 0x4a5331c6
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
sub edx, eax
mov dword [ebp + 0x20], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
sub ecx, edx
mov dword [ebp + 0x1c], ecx
add dword [ebp - 4], eax
add dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push 0x4a532efc
call sub.user32.dll_EnumWindows
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.gdi32.dll_GetRgnBox
dec eax
jne 0x4a53321c
mov eax, dword [ebp - 0x20]
push eax
call sub.gdi32.dll_DeleteObject
xor eax, eax
mov dword [ebp - 0x20], eax
xor ebx, ebx
test bl, bl
je 0x4a53322a
cmp dword [ebp - 0x20], 0
je 0x4a53332a
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x64]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
call fcn.4a530988
test al, al
je 0x4a53332a
cmp dword [ebp - 0x20], 0
je 0x4a53328e
xor eax, eax
mov dword [ebp - 0x74], eax
xor eax, eax
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x68], eax
push 0
call sub.gdi32.dll_GetStockObject
push eax
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x38]
push eax
call sub.user32.dll_FillRect
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x38]
push eax
call sub.gdi32.dll_SelectClipRgn
push 0xcc0020
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x20]
push eax
push 0
push 0
mov eax, dword [ebp - 0x38]
push eax
call sub.gdi32.dll_BitBlt
cmp eax, 1
sbb ebx, ebx
inc ebx
cmp dword [ebp - 0x20], 0
je 0x4a5332d4
push 0
mov eax, dword [ebp - 0x38]
push eax
call sub.gdi32.dll_SelectClipRgn
mov eax, dword [ebp - 0x20]
push eax
call sub.gdi32.dll_DeleteObject
test bl, bl
je 0x4a53331a
cmp byte [ebp + 0x18], 0
je 0x4a5332e8
push ebp
mov eax, dword [ebp - 0x38]
call fcn.4a532f98
pop ecx
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x64]
mov dl, 1
mov eax, dword [0x4a5305d4]
call fcn.4a530a60
mov edx, eax
test edx, edx
je 0x4a533310
sub edx, 0xffffffbc
mov eax, dword [ebp + 8]
call fcn.4a50ab0c
jmp 0x4a533344
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
call fcn.4a530a44
jmp 0x4a533344
cmp dword [ebp - 0x20], 0
je 0x4a533344
push 0
mov eax, dword [ebp - 0x38]
push eax
call sub.gdi32.dll_SelectClipRgn
mov eax, dword [ebp - 0x20]
push eax
call sub.gdi32.dll_DeleteObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a533367
lea eax, [ebp - 0x28]
mov edx, dword [0x4a532d2c]
call fcn.4a508a10
ret