Function at 0x41a51c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
push edi
call fcn.0041e666
mov eax, dword [edi]
xor esi, esi
cmp dword [eax], esi
jbe 0x41a754
mov eax, dword [edi + 4]
cmp dword [eax], esi
jbe 0x41a754
push ebx
push edi
push 0x41e2f6
call dword [sym.imp.USER32.dll_EnumWindows]
push 0x3c
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.0044f154
mov eax, dword [edi + 4]
add esp, 0xc
or dword [ebp - 0x28], 0xffffffff
mov ebx, esi
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp + 0x10], esi
cmp dword [eax], esi
jbe 0x41a744
mov eax, dword [edi + 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x41a735
push ebx
push dword [edi + 0xc]
call fcn.00414ae5
imul ebx, dword [ebp + 8], 0x514
mov esi, eax
mov ecx, dword [edi]
add ebx, dword [ecx + 0xc]
mov eax, dword [ebx + 0x508]
test al, 0x10
je 0x41a64f
mov eax, dword [ebx + 0x50c]
test eax, eax
je 0x41a5d6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x510]
test eax, eax
je 0x41a5e7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x41a5fd
push 0
push esi
push 0x1008
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push ebx
push dword [edi]
push dword [edi + 4]
call fcn.0041dca9
cmp ebx, dword [edi + 0x10]
jne 0x41a735
push 0
push 0
push 0x1004
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x41a646
cmp esi, eax
jl 0x41a634
lea esi, [eax - 1]
push 2
push 2
push esi
push dword [edi + 0xc]
call fcn.0041682e
jmp 0x41a735
or dword [edi + 0x10], 0xffffffff
jmp 0x41a735
test al, 2
je 0x41a66a
push esi
push esi
push 0x1015
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
and dword [ebx + 0x508], 0xfffffffd
mov eax, dword [ebx + 0x508]
test al, 1
je 0x41a72b
xor esi, esi
cmp dword [edi + 8], esi
je 0x41a6e5
push eax
call fcn.0041e565
cmp dword [edi + eax*4 + 0x14], 0xffffffff
jne 0x41a6e5
push 1
lea eax, [ebp + 0xc]
push eax
push esi
push esi
lea eax, [ebx + 4]
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconExA]
test eax, eax
jne 0x41a6bb
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x30303030
mov dword [ebp + 0xc], eax
call fcn.0044b12a
push dword [ebx + 0x508]
call fcn.0041e565
push dword [ebp + 0xc]
mov esi, eax
push 0xffffffffffffffff
push dword [edi + 8]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push dword [ebp + 0xc]
mov dword [edi + esi*4 + 0x14], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor esi, esi
lea eax, [ebx + 0x108]
cmp byte [eax], 0
jne 0x41a701
push 0x400
push eax
push dword [ebx + 0x508]
call fcn.0041e42b
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3c]
push eax
push esi
push 0x1007
push dword [edi + 0xc]
mov dword [ebp - 0x34], esi
call dword [sym.imp.USER32.dll_SendMessageA]
and dword [ebx + 0x508], 0xfffffffe
or dword [ebx + 0x508], 0x10
mov ebx, dword [ebp + 0x10]
mov eax, dword [edi + 4]
inc ebx
mov dword [ebp + 0x10], ebx
cmp ebx, dword [eax]
jb 0x41a58b
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [edi]
pop ebx
mov eax, dword [eax]
jmp 0x41a756
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc