Function at 0x10062ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x14
push esi
push dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], esi
call fcn.0100c50c
cmp eax, esi
jne 0x10062ec
push dword [0x10149f4]
push dword [0x1015774]
call dword [sym.imp.SHELL32.dll_DuplicateIcon]
jmp 0x10064bd
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 4]
push ebx
push ebp
mov ebp, dword [eax + ecx*4 + 0x38]
add ebp, eax
mov cx, word [ebp + 0xc]
cmp cx, si
push edi
jle 0x1006417
mov ebx, dword [ebp + 0x10]
xor edx, edx
cmp word [ebp + 0xa], 2
mov dword [esp + 0x10], esi
setne dl
add ebx, eax
movzx eax, cx
mov dword [esp + 0x2c], eax
dec edx
and edx, 0xffff0000
add edx, 0x30000
cmp dword [ebx + 0x20], 0xffffffff
mov dword [esp + 0x20], edx
jne 0x10063e8
xor eax, eax
mov ax, word [ebx + 0xc]
xor ecx, ecx
mov cx, word [ebx + 0xe]
imul ecx, eax
xor eax, eax
inc eax
shl eax, cl
mov ecx, eax
shl ecx, 2
add dword [esp + 0x2c], ecx
cmp eax, 0x10
mov dword [esp + 0x18], eax
jne 0x100636e
mov dword [esp + 0x14], 0x10143e0
jmp 0x100637d
cmp eax, 0x100
jne 0x10063e0
jmp 0x103d073
push dword [esp + 0x2c]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x10063e0
push 0xa
mov esi, ebx
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
and dword [eax + 0x20], 0
mov esi, dword [esp + 0x14]
shl ecx, 2
mov edx, ecx
shr ecx, 2
lea edi, [eax + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx ecx, word [ebp + 0xc]
sub ecx, 0x28
lea edi, [eax + edx*4 + 0x28]
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, eax
xor esi, esi
jmp 0x10063e8
jmp 0x103e425
push dword [esp + 0x20]
push 1
push dword [esp + 0x34]
push ebx
call dword [sym.imp.USER32.dll_CreateIconFromResource]
cmp dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
je 0x100640d
push dword [esp + 0x10]
jmp 0x103f51b
cmp dword [esp + 0x14], esi
jne 0x10064ad
push 0xe
push 7
push dword [0x1015774]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, dword [sym.imp.KERNEL32.dll_FreeResource]
cmp eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadResource]
je 0x100645b
push eax
push dword [0x1015774]
call esi
mov ebx, eax
push ebx
call edi
push 1
push eax
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectory]
push ebx
mov dword [esp + 0x20], eax
call ebp
movzx eax, word [esp + 0x1c]
push 3
push eax
push dword [0x1015774]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x10064ad
push ebx
push dword [0x1015774]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push dword [0x1015774]
mov dword [esp + 0x34], eax
call esi
mov esi, eax
push esi
call edi
push 0x30000
push 1
push dword [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_CreateIconFromResource]
push esi
mov dword [esp + 0x18], eax
call ebp
push dword [esp + 0x28]
call fcn.0100bcff
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret 8