Function at 0x401290
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 0x4012bd
mov ebx, dword [esp + 0xa4]
mov eax, ebx
shl eax, 5
mov byte [eax + esi + 0x1fc], 0x23
jmp 0x4012e0
mov ebx, dword [esp + 0xa4]
push eax
mov ecx, ebx
push 0x40a070
shl ecx, 5
lea edx, [ecx + esi + 0x1fc]
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 + 0x184], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esi + ebx*4 + 0x1b4], edx
lea eax, [esi + eax*4]
xor ebx, ebx
test ecx, ecx
mov dword [esp + 0x14], eax
mov edi, eax
jle 0x4015a7
push 0xc
call fcn.00403df0
add esp, 4
mov ebp, eax
test ebx, ebx
jne 0x40132e
mov dword [ebp + 8], ebx
jmp 0x401331
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 + 0xe0]
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 + 0x124]
cmp eax, 8
jne 0x4014b8
mov eax, dword [esi + 0xe0]
lea edx, [esp + 0x38]
push 2
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [esi + 0xe0]
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 0x4013be
mov dword [esp + 0x10], eax
jmp case.0x4013d2.5
xor eax, eax
mov ax, word [edi + 0xe]
dec eax
cmp eax, 0x17
ja case.0x4013d2.5
xor edx, edx
mov dl, byte [eax + 0x4015cc]
jmp dword [edx*4 + 0x4015b8]
mov dword [esp + 0x10], 2
jmp case.0x4013d2.5
mov dword [esp + 0x10], 0x10
jmp case.0x4013d2.5
mov dword [esp + 0x10], 0x100
jmp case.0x4013d2.5
mov dword [esp + 0x10], 0
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x98]
lea ebx, [eax + ecx*4]
push edx
add ebx, edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0xa0], eax
mov ecx, dword [ebp]
push ecx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0xa0]
push 2
push edx
mov dword [esi + 0xd4], eax
call dword [sym.imp.GDI32.dll_SetSystemPaletteUse]
mov eax, dword [esi + 0xac]
mov ecx, dword [esi + 0xa0]
push 0
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov edx, dword [esi + 0xa0]
push edx
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [esi + 0xa0]
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 + 0xa0]
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 + 0xd4]
mov ecx, dword [esi + 0xa0]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0xa0]
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
push edx
call ebx
jmp 0x4014be
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp], 0
jne 0x401550
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.00403de0
add esp, 4
test edi, edi
je 0x4014cf
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 + 0x98]
push edx
call ebx
mov eax, dword [esi + 0xa4]
push eax
call ebx
mov ecx, dword [esi + 0xa8]
push ecx
call ebx
mov edx, dword [esi + 0xa0]
push edx
call ebx
mov eax, dword [esi + 0x9c]
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 + 0xe4]
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 + 0x138]
and eax, 0xffff
imul eax, dword [esp + 0x24]
imul eax, dword [esp + 0x28]
cmp eax, ecx
mov dword [esi + 0x128], eax
jg 0x401586
mov eax, ecx
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov dword [esi + 0x138], eax
mov eax, dword [esp + 0xa0]
cmp ebx, eax
jl 0x401319
mov eax, dword [esp + 0x14]
mov dword [eax + 8], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x18