Function at 0x403060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406bd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x14]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], edi
je 0x4030b1
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebx + 0x14]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebx + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CDC::CDC
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
cmp eax, 1
jne 0x4030eb
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push 0x2000
push edi
push edi
and ecx, 0xffff
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [ebx + 4], edi
jmp 0x403144
jle 0x403144
push str.skin
lea ecx, [ebp + 8]
call fcn.004061f0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
and eax, 0xffff
push edx
push eax
push edi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, edi
je 0x403138
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x403138
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
mov dword [ebp - 0x20], esi
jne 0x403165
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00406412
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 2
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov esi, edi
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x403138
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403138
mov eax, dword [ebx + 8]
lea esi, [ebx + 8]
test eax, eax
je 0x4031d8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push esi
push 0x408238
push 0
push edx
push eax
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
test eax, eax
jl 0x403138
cmp dword [esi], 0
je 0x403138
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esi]
xor edi, edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0x9ec
push 0x58
push eax
mov dword [ebx + 0x1c], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edx, dword [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, eax
mov eax, dword [ebx + 0x1c]
push 0x9ec
push 0x5a
push eax
mov dword [ebp - 0x20], edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 0
push 0
push 0
push str.DISPLAY
mov dword [ebp + 0xc], eax
call dword [sym.imp.GDI32.dll_CreateDCA]
push eax
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CDC::Attach
fild dword [ebx + 0x10]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x30]
fild dword [ebx + 0xc]
fild dword [ebp - 0x20]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x30]
fmul st(2)
fdiv st(1)
call sub.MSVCRT.dll__ftol
fld qword [ebp - 0x24]
fmul st(2)
push eax
fdiv st(1)
call sub.MSVCRT.dll__ftol
mov edx, dword [ebp - 0x3c]
push eax
fstp st(0)
push edx
fstp st(0)
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebx + 0x14], eax
push eax
mov eax, dword [ebx + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x18], eax
push ecx
push edi
push 0
lea edx, [ebp - 0x50]
push 0
push edx
call dword [sym.imp.USER32.dll_SetRect]
fild dword [ebx + 0x10]
fild dword [ebx + 0xc]
fld qword [ebp - 0x30]
fmul st(2)
mov eax, dword [esi]
mov edx, dword [ebp - 0x1c]
fdiv st(1)
mov edi, dword [eax]
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, eax
neg ecx
push ecx
push edx
push eax
push 0
call sub.MSVCRT.dll__ftol
fld qword [ebp - 0x24]
fmul st(2)
push eax
fdiv st(1)
call sub.MSVCRT.dll__ftol
push eax
mov eax, dword [ebx + 0x1c]
push 0
push 0
push eax
mov eax, dword [esi]
fstp st(0)
push eax
fstp st(0)
call dword [edi + 0x20]
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x40]
mov dword [esi], 0
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [ebp + 8]
mov dword [ebx + 4], 2
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00406412
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8