Function at 0x404190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x455298
push eax
mov eax, dword [0x46c118]
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x28]
push edi
mov edi, dword [eax + 8]
push 0xf1
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4043f5
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4043f5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x4043f5
xor eax, eax
lea edx, [ebp + 8]
mov ax, word [ebp + 6]
xor edi, edi
mov di, word [ebp + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x44]
xor ebx, ebx
mov bx, word [ebp + 2]
mov dword [esp + 0x18], edx
test eax, eax
je 0x404230
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
test eax, eax
jne 0x404256
mov eax, dword [esi + 0x44]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov dword [esi + 0x44], 0
test ebx, ebx
je 0x404256
test edi, edi
je 0x404256
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], edi
add ebx, 6
add edi, 6
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], edi
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x4042d9
mov ecx, dword [0x46c118]
mov ebx, dword [esp + 0x2c]
push 2
push ebx
mov edi, dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax + 0xe], 0x20
mov dl, byte [esi + 0x81]
push 1
sete al
and al, 1
and dl, 0xdf
shl al, 5
or al, dl
xor ecx, ecx
mov byte [esi + 0x81], al
and al, 0x20
mov cx, word [ebp + 6]
neg al
sbb eax, eax
push ecx
and eax, 8
mov ecx, dword [esi + 0x8c]
add eax, 0x18
or al, 1
push eax
mov eax, dword [esi + 0x90]
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
test eax, eax
mov dword [esi + 0x44], eax
jne 0x4042dd
jmp 0x4043f5
mov ebx, dword [esp + 0x2c]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov al, byte [esp + 0x30]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
test al, al
mov dword [esp + 0x24], ecx
je 0x404324
mov edx, dword [0x46c118]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x38]
mov eax, dword [edx + 8]
mov edx, dword [esp + 0x3c]
push edx
and ecx, 0xffff
movsx edx, bx
push ecx
push edx
push eax
call dword [sym.imp.COMCTL32.dll_CreateMappedBitmap]
mov dword [esp + 0x10], eax
jmp 0x404374
test byte [esi + 0x81], 0x20
je 0x40435e
mov eax, dword [0x46c118]
push 0x2040
push ecx
push ecx
mov eax, dword [eax + 8]
push ecx
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
mov edi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404356
cmp eax, edi
je 0x404356
push eax
call ebp
mov eax, edi
mov dword [esp + 0x10], eax
jmp 0x404374
push ecx
lea ecx, [esp + 0x14]
mov eax, esp
mov dword [esp + 0x34], esp
mov dword [eax], ebx
call fcn.00404780
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4043f5
mov ecx, dword [esi + 0x9c]
mov edx, dword [esi + 0x44]
push ecx
push eax
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
cmp eax, 0xffffffff
jne 0x40439e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4043e5
push eax
call ebp
xor eax, eax
jmp 0x4043f5
mov ebx, dword [esp + 0x14]
test ebx, ebx
jle 0x4043c9
mov edi, dword [esp + 0x18]
mov ax, word [edi]
test ax, ax
je 0x4043c3
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esi + 0x48]
call fcn.004047a0
add edi, 2
dec ebx
jne 0x4043aa
mov ecx, dword [esi + 0x44]
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov ecx, dword [esi + 0x4c]
cmp eax, ecx
mov eax, dword [esp + 0x10]
je 0x4043e9
test eax, eax
je 0x4043e5
push eax
call ebp
xor eax, eax
jmp 0x4043f5
test eax, eax
je 0x4043f0
push eax
call ebp
mov eax, 1
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 0x14