Function at 0x1000493e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
movzx esi, word [ebp + 0xc]
push edi
push dword [ebp + 0x10]
push esi
push dword [0x10021c88]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push dword [0x10021c88]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
mov ebx, eax
push dword [0x10021c88]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
call fcn.100048d4
mov edi, eax
xor ebx, ebx
pop ecx
cmp edi, ebx
pop ecx
jne 0x100049c9
mov edi, dword [ebp + 0x14]
cmp dword [edi], ebx
jne 0x100049a0
or eax, 0xffffffff
jmp 0x10004bbf
mov eax, dword [0x10021c88]
push esi
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov esi, eax
push esi
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
push 1
pop eax
jmp 0x10004bbf
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0xc]
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push edi
call dword [eax + 0x1c]
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
push edi
call dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_GetDC]
push dword [eax]
call esi
push 0x9ec
push 0x5a
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x9ec
push 0x58
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MulDiv]
push dword [ebp - 4]
or dword [ebp + 0x10], 0xffffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], ebx
push dword [eax]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push edi
call dword [eax + 0x14]
cmp word [ebp - 8], 1
jne 0x10004b81
push 0x18
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.1000e610
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp + 8]
push dword [eax]
call esi
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov dword [ebp - 0x1c], eax
call esi
push dword [ebp - 0x1c]
mov dword [ebp + 0x10], eax
call esi
push ebx
push 1
push 1
mov dword [ebp - 4], eax
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
call esi
push dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
push dword [ebp - 4]
call esi
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x28], eax
call dword [sym.imp.GDI32.dll_GetPixel]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0xcc0020
push ebx
push ebx
push dword [ebp - 4]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push ebx
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x24]
push dword [ebp + 0x10]
call esi
push dword [ebp - 0x28]
push dword [ebp - 4]
call esi
push dword [ebp + 0x10]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp + 0x18], ebx
mov esi, dword [ebp + 0x14]
je 0x10004b4f
cmp dword [esi], ebx
jne 0x10004b4a
push 1
push 1
push 0x21
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [esi], eax
push dword [ebp - 0x20]
jmp 0x10004b68
cmp dword [esi], ebx
jne 0x10004b67
push 1
push 1
push 0x20
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [esi], eax
push ebx
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.COMCTL32.dll_ImageList_Add]
push dword [ebp - 0x20]
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x10004bb6
cmp word [ebp - 8], 3
jne 0x10004bb6
mov esi, dword [ebp + 0x14]
cmp dword [esi], ebx
jne 0x10004ba6
push 1
push 1
push 0xff
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [esi], eax
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [ebp + 0x10], eax
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret