Function at 0x4a632fb8
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 [0x4a632c10]
call fcn.4a60888c
xor eax, eax
push ebp
push 0x4a633244
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.4a60a7cc
xor eax, eax
mov dword [ebp - 0x20], eax
test bl, bl
je 0x4a633100
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4a632bd8]
call fcn.4a609150
add esp, 4
mov edx, esi
test edx, edx
jl 0x4a633036
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 0x4a633027
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 0x4a632cbc
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 0x1c]
cmp eax, 0x7fffffff
jge 0x4a633100
test eax, eax
jge 0x4a633083
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], 0
jge 0x4a63308e
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x20]
jle 0x4a63309c
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x1c]
jle 0x4a6330aa
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 0x4a632de0
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 0x4a633100
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 0x4a63310e
cmp dword [ebp - 0x20], 0
je 0x4a63320e
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.4a63086c
test al, al
je 0x4a63320e
cmp dword [ebp - 0x20], 0
je 0x4a633172
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 0x4a6331b8
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 0x4a6331fe
cmp byte [ebp + 0x18], 0
je 0x4a6331cc
push ebp
mov eax, dword [ebp - 0x38]
call fcn.4a632e7c
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 [0x4a6304b8]
call fcn.4a630944
mov edx, eax
test edx, edx
je 0x4a6331f4
sub edx, 0xffffffbc
mov eax, dword [ebp + 8]
call fcn.4a60a7e4
jmp 0x4a633228
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
call fcn.4a630928
jmp 0x4a633228
cmp dword [ebp - 0x20], 0
je 0x4a633228
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 0x4a63324b
lea eax, [ebp - 0x28]
mov edx, dword [0x4a632c10]
call fcn.4a608964
ret