Function at 0x401270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x88
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [eax]
push edi
cmp cl, 0x23
jne 0x40129d
mov ebx, dword [esp + 0xa4]
mov eax, ebx
shl eax, 5
mov byte [eax + esi + 0x1e4], 0x23
jmp 0x4012c0
mov ebx, dword [esp + 0xa4]
push eax
mov ecx, ebx
push 0x40a070
shl ecx, 5
lea edx, [ecx + esi + 0x1e4]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xb0]
lea eax, [ebx + ebx*2]
mov dword [esi + ebx*4 + 0x174], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esi + ebx*4 + 0x1a0], edx
lea eax, [esi + eax*4]
xor ebx, ebx
test ecx, ecx
mov dword [esp + 0x14], eax
mov edi, eax
jle 0x401587
push 0xc
call fcn.00403de0
add esp, 4
mov ebp, eax
test ebx, ebx
jne 0x40130e
mov dword [ebp + 8], ebx
jmp 0x401311
mov dword [ebp + 8], edi
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x9c]
inc ebx
mov dword [edi + 4], ebp
push ebx
mov dword [ebp + 4], eax
mov eax, dword [edi + 4]
push ecx
lea edx, [esp + 0x40]
push str._s_d
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esi + 0xd4]
add esp, 0x10
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov dword [ebp], eax
mov eax, dword [esi + 0x118]
cmp eax, 8
jne 0x401498
mov eax, dword [esi + 0xd4]
lea edx, [esp + 0x38]
push 2
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [esi + 0xd4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [edi + 0x20]
test eax, eax
je 0x40139e
mov dword [esp + 0x10], eax
jmp case.0x4013b2.5
xor eax, eax
mov ax, word [edi + 0xe]
dec eax
cmp eax, 0x17
ja case.0x4013b2.5
xor edx, edx
mov dl, byte [eax + 0x4015ac]
jmp dword [edx*4 + 0x401598]
mov dword [esp + 0x10], 2
jmp case.0x4013b2.5
mov dword [esp + 0x10], 0x10
jmp case.0x4013b2.5
mov dword [esp + 0x10], 0x100
jmp case.0x4013b2.5
mov dword [esp + 0x10], 0
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x8c]
lea ebx, [eax + ecx*4]
push edx
add ebx, edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0x94], eax
mov ecx, dword [ebp]
push ecx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0x94]
push 2
push edx
mov dword [esi + 0xc8], eax
call dword [sym.imp.GDI32.dll_SetSystemPaletteUse]
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0x94]
push 0
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov edx, dword [esi + 0x94]
push edx
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [esi + 0x94]
push 1
push eax
call dword [sym.imp.GDI32.dll_SetSystemPaletteUse]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push 0
push edi
mov edx, dword [esi + 0x94]
push ebx
push eax
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
mov eax, dword [esi + 0xc8]
mov ecx, dword [esi + 0x94]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0x94]
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
push edx
call ebx
jmp 0x40149e
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp], 0
jne 0x401530
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 4]
mov ecx, dword [edi]
mov ebp, edi
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [edi + 4]
push ebp
call fcn.00403dd0
add esp, 4
test edi, edi
je 0x4014af
mov eax, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov edx, dword [esi + 0x8c]
push edx
call ebx
mov eax, dword [esi + 0x98]
push eax
call ebx
mov ecx, dword [esi + 0x9c]
push ecx
call ebx
mov edx, dword [esi + 0x94]
push edx
call ebx
mov eax, dword [esi + 0x90]
push eax
call ebx
push edi
push 0x40a060
push 0x40a040
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esi + 0xd8]
push edi
push edi
push 2
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp]
lea edx, [esp + 0x20]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x12c]
and eax, 0xffff
imul eax, dword [esp + 0x24]
imul eax, dword [esp + 0x28]
cmp eax, ecx
mov dword [esi + 0x11c], eax
jg 0x401566
mov eax, ecx
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov dword [esi + 0x12c], eax
mov eax, dword [esp + 0xa0]
cmp ebx, eax
jl 0x4012f9
mov eax, dword [esp + 0x14]
mov dword [eax + 8], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x18