Function at 0x409e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41775a
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x1c
and eax, 0xffff
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.JPGFILE
push eax
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
xor eax, eax
test esi, esi
je 0x40a0ae
push ebx
push ebp
push esi
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebp, eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov esi, ebp
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 1
push ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x4c], esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x40]
push ecx
push 0x419e04
push esi
push esi
push edx
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x18]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x14]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov esi, dword [esp + 0x3c]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
mov edx, dword [esi + 8]
push edx
call edi
mov ecx, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x9ec
push ecx
push eax
call ebx
mov edx, dword [esi + 8]
push 0x58
mov ebp, eax
push edx
call edi
mov ecx, dword [esp + 0x14]
push 0x9ec
push ecx
push eax
call ebx
mov ebx, dword [esp + 0x48]
mov edi, eax
mov eax, dword [esp + 0x44]
push 0x10
lea edx, [edi + ebx]
lea ecx, [eax + ebp]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x3c], eax
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x34], ecx
je 0x409fd7
mov ecx, eax
call sub.MFC42u.DLL_CDC::CDC
mov dword [esp + 0x3c], eax
jmp 0x409fdb
mov dword [esp + 0x3c], ecx
push 8
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42u.DLL_operatornew
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x40a002
mov dword [eax + 4], ecx
mov dword [eax], 0x418a80
mov dword [esp + 0x48], eax
jmp 0x40a006
mov dword [esp + 0x48], ecx
cmp esi, ecx
jne 0x40a00e
xor eax, eax
jmp 0x40a011
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x3c]
push eax
call sub.MFC42u.DLL_CDC::Attach
mov edx, dword [esi + 4]
push edi
push ebp
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, dword [esp + 0x48]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CGdiObject::Attach
test esi, esi
je 0x40a041
mov esi, dword [esi + 4]
push esi
mov esi, dword [esp + 0x40]
mov eax, dword [esi + 4]
push eax
call sub.MFC42u.DLL_CDC::SelectGdiObject
test esi, esi
jne 0x40a057
xor ebp, ebp
jmp 0x40a05a
mov ebp, dword [esi + 4]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0
mov edi, dword [ecx]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x50]
push 0
sub ebx, edx
push 0
sub eax, edi
push ebx
push eax
push edx
push edi
push ebp
push ecx
mov ecx, dword [esp + 0x68]
call dword [ecx + 0x20]
pop ebp
pop ebx
test esi, esi
je 0x40a0a0
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esp + 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret