Function at 0x4a75f0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x549c28
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5ac020]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x20], 0
push esi
push esi
mov dword [esp + 0x2c], esi
call fcn.00403950
mov edi, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x40], 2
cmp dword [ebp + 8], 0xffffffff
jne 0x4a7750
cmp dword [ebx + 4], esi
je 0x4a7664
cmp dword [ebx + 8], 5
mov ecx, ebx
jae 0x4a765f
call fcn.004a6b80
jmp 0x4a7664
call fcn.004a6d40
lea eax, [ebx + 0x20]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x1c], 0
je 0x4a7736
xor eax, eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], eax
lea eax, [ebx + 0xc]
push ecx
mov ecx, eax
mov dword [esp + 0x1c], eax
call fcn.00412010
mov ebx, eax
mov eax, dword [ebx]
test eax, eax
je 0x4a76a9
mov eax, dword [eax]
test eax, eax
je 0x4a76a9
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
mov ebx, dword [ebx + 8]
push eax
call fcn.00412030
cmp ebx, dword [eax + 8]
setne al
test al, al
je 0x4a7736
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a76ce
mov eax, dword [eax]
mov edx, dword [eax + 8]
mov ecx, ebx
mov dword [esp + 0x14], eax
dec edx
mov eax, ebx
and ecx, 3
shr eax, 2
and edx, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov eax, dword [eax + edx*4]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x44]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push dword [edi + 4]
push edi
call fcn.00403a70
mov ecx, 0x15555554
sub ecx, esi
cmp ecx, 1
jb 0x4a7746
inc esi
inc ebx
mov dword [esp + 0x24], esi
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x18]
push eax
call fcn.00412030
cmp ebx, dword [eax + 8]
setne al
test al, al
jne 0x4a76c4
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x4a77be
jmp 0x4a776e
push str.list_T__too_long
call fcn.004ffb4f
lea eax, [ebp + 8]
push eax
push dword [edi + 4]
push edi
call fcn.00403a70
mov esi, 1
mov dword [esp + 0x24], esi
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov ebx, dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [edi]
mov eax, dword [eax + 8]
test eax, eax
js 0x4a778f
push eax
push 0x401500
mov dword [0x5be4c0], 0
call ebx
mov eax, dword [edi]
push dword [eax + 8]
push 0x4a7820
call ebx
mov edx, dword [edi]
dec esi
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x28], esi
mov dword [ecx + 4], eax
call fcn.0051d3d0
add esp, 4
test esi, esi
jne 0x4a7774
mov dword [esp + 0x40], 3
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
mov dword [esp + 0x24], 0
cmp eax, edi
je 0x4a77f1
lea esp, [esp]
mov esi, dword [eax]
push eax
call fcn.0051d3d0
add esp, 4
mov eax, esi
cmp esi, edi
jne 0x4a77e0
mov dword [esp + 0x40], 0xffffffff
push edi
call fcn.0051d3d0
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8