Function at 0x49037e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 8]
and eax, 0xffff
mov dword [ebp - 0x24], eax
push 2
mov ecx, dword [ebp - 0x24]
push ecx
call sub.MFC42.DLL_AfxFindResourceHandle
mov dword [ebp - 0xc], eax
push 2
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4903bd
xor eax, eax
jmp 0x4905ab
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4903db
xor eax, eax
jmp 0x4905ab
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4903f5
xor eax, eax
jmp 0x4905ab
mov dword [ebp - 0x1c], 0x10
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
add edx, 0x40
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x490424
xor eax, eax
jmp 0x4905ab
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx]
mov dword [ebp - 0x38], edx
call fcn.0048e3a0
mov ecx, eax
call fcn.0049950a
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], 0
jmp 0x490464
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x10
jge 0x4904be
mov dword [ebp - 0x40], 0
jmp 0x49047c
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 9
jae 0x4904bc
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x40]
mov edx, dword [eax + edx*4]
cmp edx, dword [ecx*8 + 0x4c1e98]
jne 0x4904ba
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x28]
cmp edx, dword [ecx + eax*4]
je 0x4904ba
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx*8 + 0x4c1e9c]
mov dword [ecx + eax*4], edx
jmp 0x4904bc
jmp 0x490473
jmp 0x49045b
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
mov dword [ebp - 0x20], eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x490585
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x28
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx + 0xe]
mov ecx, eax
mov edx, 1
shl edx, cl
mov eax, dword [ebp - 0x44]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x44], ecx
push 0xcc0020
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x2c]
mov esp, ebp
pop ebp
ret