Function at 0x403000
Capabilities:
Create process on windows
Delete file
Extract resource via kernel32 functions
Write and execute a file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40600c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x46c
push ebx
push ebp
mov ebx, ecx
push edi
push 0
push 1
mov eax, dword [ebx + 0x10]
push 0xe00
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov cl, byte [ebx + 0x14]
lea ebp, [ebx + 0x14]
mov byte [esp + 0xc], cl
push 0
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esp + 0xc]
mov eax, dword [edx]
push eax
push 0
push ebp
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov edi, str.SkypeSetup.exe
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x480], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.SkypeSetup.exe
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x403096
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 0x40a0f8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
jne 0x4030cb
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x484], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor al, al
jmp 0x40321d
push esi
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push str.MYRES
push 0x8e
mov esi, dword [eax + 0x6c]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push esi
push 1
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [ebx + 0x10]
add esp, 0x14
push 0
push 2
push 0xe00
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebp, dword [ebp + 4]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x28], eax
test ebp, ebp
mov dword [esp + 0x2c], eax
jne 0x403169
mov ebp, ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x403173
mov eax, ecx
push ebp
push eax
lea ecx, [esp + 0x84]
push str.__s___verysilent__nogoogle__dir__s_
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x24]
add esp, 0x10
test eax, eax
jne 0x403198
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x20]
lea ecx, [esp + 0x38]
push edx
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x98]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4031e2
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x24]
push edx
call esi
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
jne 0x4031f0
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40321b
mov al, byte [ecx - 1]
test al, al
je 0x403211
cmp al, 0xff
je 0x403211
dec al
mov byte [ecx - 1], al
jmp 0x40321b
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x478]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x478
ret