Function at 0x405110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x405410
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x405139
mov dword [esp + 0x2c], eax
jmp case.0x40514d.5
xor eax, eax
mov ax, word [ebp + 0xe]
dec eax
cmp eax, 0x17
ja case.0x40514d.5
xor ecx, ecx
mov cl, byte [eax + 0x405430]
jmp dword [ecx*4 + 0x40541c]
mov dword [esp + 0x2c], 2
jmp case.0x40514d.5
mov dword [esp + 0x2c], 0x10
jmp case.0x40514d.5
mov dword [esp + 0x2c], 0x100
jmp case.0x40514d.5
mov dword [esp + 0x2c], 0
mov edx, dword [ebp]
mov eax, dword [esp + 0x2c]
lea ebx, [edx + eax*4]
push ebx
lea ecx, [ebx + ebp]
mov dword [esp + 0x1c], ecx
call fcn.0040b820
add esp, 4
mov edi, eax
mov dword [esp + 0x10], edi
push ebx
call fcn.0040b820
add esp, 4
mov dword [esp + 0x1c], eax
test edi, edi
je 0x405410
test eax, eax
je 0x405410
mov ecx, ebx
mov esi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
mov esi, ebp
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
lea edi, [eax + 0x28]
mov eax, dword [esp + 0x10]
add eax, 0x28
test ecx, ecx
mov dword [esp + 0x14], eax
jle 0x40526d
lea edx, [ebp + 0x28]
mov esi, edi
mov ebx, dword [esp + 0x14]
sub esi, edx
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x14]
lea ecx, [edx + 1]
sub esi, edx
mov edx, edi
add eax, 2
sub edx, ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov bl, byte [ecx + 1]
cmp bl, byte [0x410002]
jne 0x40524e
mov ebx, dword [section..rdata]
cmp byte [ecx], bh
jne 0x40524e
cmp byte [ecx - 1], bl
jne 0x40524e
mov ebx, dword [esp + 0x20]
mov byte [eax], 0xff
mov byte [esi + ecx], 0xff
mov byte [eax - 2], 0xff
mov byte [edx + eax], 0
mov byte [ebx + ecx], 0
mov byte [edi], 0
jmp 0x405259
mov byte [eax], 0
mov byte [esi + ecx], 0
mov byte [eax - 2], 0
mov ebx, dword [esp + 0x2c]
add ecx, 4
add edi, 4
add eax, 4
dec ebx
mov dword [esp + 0x2c], ebx
jne 0x405218
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
push edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x405410
mov eax, dword [0x41b654]
push 0
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_GetMapMode]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetMapMode]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
push 0xcc0020
push edi
push ebx
push ecx
push edx
push eax
push edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
push 4
push ebp
push esi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push esi
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
push ecx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
push 0x8800c6
push 0
push 0
push edx
push eax
push ecx
push edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
push 4
push ebp
push esi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push esi
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
push ecx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
push 0xee0086
push 0
push 0
push edx
push eax
push ecx
push edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x28]
push 0xcc0020
push edi
push ebx
push esi
push ecx
push edx
push edi
push ebx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x38]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x10]
push eax
call fcn.0040b860
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
call fcn.0040b860
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret