Function at 0x300422e3
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.30042171
mov eax, dword [ebx]
xor esi, esi
cmp dword [eax], esi
jbe 0x30042516
mov eax, dword [ebx + 4]
cmp dword [eax], esi
jbe 0x30042516
push edi
push ebx
push 0x3004194b
call dword [sym.imp.USER32.dll_EnumWindows]
push 0xa
xor eax, eax
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
cmp dword [eax], esi
mov dword [ebp + 0x10], esi
jbe 0x30042506
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov esi, dword [eax + ecx*4]
cmp esi, 0xffffffff
mov dword [ebp + 8], esi
je 0x300424f5
push ecx
push dword [ebx + 0xc]
call fcn.30036c24
imul esi, esi, 0x514
mov edi, eax
mov eax, dword [ebx]
add esi, dword [eax + 0xc]
mov eax, dword [esi + 0x508]
test al, 0x10
je 0x30042411
mov eax, dword [esi + 0x50c]
test eax, eax
je 0x30042398
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi + 0x510]
test esi, esi
je 0x300423a9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x300423bf
push 0
push edi
push 0x1008
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push esi
push dword [ebx]
push dword [ebx + 4]
call fcn.3003fc28
cmp esi, dword [ebx + 0x10]
jne 0x300424f5
push 0
push 0
push 0x1004
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x30042408
cmp edi, eax
jl 0x300423f6
lea edi, [eax - 1]
push 2
push 2
push edi
push dword [ebx + 0xc]
call fcn.300364a0
jmp 0x300424f5
or dword [ebx + 0x10], 0xffffffff
jmp 0x300424f5
test al, 2
je 0x3004242c
push edi
push edi
push 0x1015
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
and dword [esi + 0x508], 0xfffffffd
mov eax, dword [esi + 0x508]
test al, 1
je 0x300424ee
xor edi, edi
cmp dword [ebx + 8], edi
je 0x300424a8
push eax
call fcn.3003ffc8
cmp dword [ebx + eax*4 + 0x14], 0xffffffff
jne 0x300424a8
push 1
lea eax, [ebp + 0xc]
push eax
push edi
push edi
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconExA]
test eax, eax
jne 0x3004247e
push 0x7f00
push edi
call dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x30303030
mov dword [ebp + 0xc], eax
call fcn.300434a3
push dword [esi + 0x508]
call fcn.3003ffc8
push dword [ebp + 0xc]
mov edi, eax
push 0xffffffffffffffff
push dword [ebx + 8]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push dword [ebp + 0xc]
mov dword [ebx + edi*4 + 0x14], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor edi, edi
lea eax, [esi + 0x108]
cmp byte [eax], 0
jne 0x300424c4
push 0x400
push eax
push dword [esi + 0x508]
call fcn.3003faee
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x28]
push eax
push edi
push 0x1007
push dword [ebx + 0xc]
mov dword [ebp - 0x20], edi
call dword [sym.imp.USER32.dll_SendMessageA]
and dword [esi + 0x508], 0xfffffffe
or dword [esi + 0x508], 0x10
inc dword [ebp + 0x10]
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax]
jb 0x3004234b
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebx]
mov eax, dword [eax]
pop edi
jmp 0x30042518
xor eax, eax
pop esi
pop ebx
leave
ret 0xc