Function at 0x452480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, edx
mov eax, ecx
push edi
mov dword [ebp - 4], eax
cmp dword [esi + 0xc], 0
je 0x452654
push dword [ebp + 0xc]
mov edi, dword [esi + 4]
push dword [ebp + 8]
mov ebx, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x452654
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, eax
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x452654
test edi, edi
je 0x45264b
cmp dword [esi + 0x10], 0
jne 0x4525a1
nop
push dword [esi + 0x18]
movzx eax, bx
push eax
movzx eax, di
push eax
push 1
push ecx
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
test eax, eax
je 0x452654
push 3
movzx eax, ax
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 8]
test eax, eax
je 0x452654
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x452654
test eax, eax
je 0x452654
push dword [esi + 0x18]
push ebx
push edi
push 0x30000
push 1
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0xc]
mov dword [ecx + edx*4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0xc]
cmp dword [eax + ecx*4], 0
je 0x452654
mov ecx, dword [ebp - 0xc]
sar edi, 0x10
shr ebx, 0x10
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
test edi, edi
jne 0x4524e0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
movzx eax, bx
push eax
movzx eax, di
push eax
push 1
push ecx
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x20]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x10]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x452654
push 3
movzx eax, ax
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x452654
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [ebp - 0x10]
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x452654
test eax, eax
je 0x452654
push dword [esi + 0x18]
push ebx
push edi
push 0x30000
push 1
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x20]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0xc]
cmp dword [eax + ecx*4], 0
je 0x452654
mov ecx, dword [ebp - 0xc]
shr edi, 0x10
shr ebx, 0x10
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
test edi, edi
jne 0x4525a1
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret