Function at 0x40eda0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428e74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push str.JPGFILE
mov eax, dword [ebp + 0xc]
and eax, 0xffff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
je 0x40f03a
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x54]
push edx
call fcn.00412820
add esp, 0xc
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x24]
push ecx
push 1
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x20]
push eax
push 0x42cac0
push 0
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [eax + 8]
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
push edx
call dword [ecx + 0x18]
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x20]
push eax
call dword [edx + 0x1c]
push 0x9ec
mov ecx, dword [ebp - 0x44]
push ecx
push 0x58
mov ecx, dword [ebp + 8]
call fcn.00402ac0
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [ebp - 0x38], eax
push 0x9ec
mov edx, dword [ebp - 0x50]
push edx
push 0x58
mov ecx, dword [ebp + 8]
call fcn.00402ac0
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
sub eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp + 0x14]
lea eax, [edx + ecx + 1]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
push 0x10
call fcn.0040df20
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x60], 0
je 0x40ef46
mov ecx, dword [ebp - 0x60]
call fcn.00425d6d
mov dword [ebp - 0x74], eax
jmp 0x40ef4d
mov dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x1c], ecx
push 8
call fcn.0040df20
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x68], 0
je 0x40ef84
mov ecx, dword [ebp - 0x68]
call fcn.00402cc0
mov dword [ebp - 0x78], eax
jmp 0x40ef8b
mov dword [ebp - 0x78], 0
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x64], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0040e020
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040f120
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x1c]
call fcn.0040e050
push 0
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x30]
sub edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x1c]
call fcn.0040dec0
push eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
push edx
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x6c], 0
je 0x40f027
push 1
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x6c]
call dword [eax + 4]
mov dword [ebp - 0x7c], eax
jmp 0x40f02e
mov dword [ebp - 0x7c], 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x20]
push eax
call dword [edx + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret