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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412f1e
mov eax, dword fs:[0]
push eax
sub esp, 0x8a0
mov eax, dword [0x41b050]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x844], esi
mov dword [ebp - 0x848], eax
cmp esi, ebx
je 0x401480
cmp byte [esi], bl
je 0x401480
mov ecx, dword [0x41cf9c]
push str.RT_RCDATA
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
jne 0x401097
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Could_not_find__s_resource_in_setup_file._r_nError__d_
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push ebx
push str.Setup_Error
lea eax, [ebp - 0x42c]
push eax
jmp 0x4014a2
mov ecx, dword [0x41cf9c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x4010b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Could_not_load__s_resource._r_nError__d_
jmp 0x401075
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
jne 0x4010e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea ecx, [ebp - 0x42c]
push str.Could_not_lock__s_resource._r_nError__d_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x401495
lea eax, [ebp - 0x11c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401117
mov cx, word [0x4191ec]
mov dl, byte [0x4191ee]
mov word [ebp - 0x11c], cx
mov byte [ebp - 0x11a], dl
lea eax, [ebp - 0x11c]
push eax
call fcn.00401ef0
push str.eBlaster
lea ecx, [ebp - 0x11c]
push 0x104
push ecx
call fcn.004025d7
add esp, 0x10
call fcn.00401f50
test eax, eax
je 0x401158
push 0x4191fc
push 0x104
lea edx, [ebp - 0x11c]
push edx
jmp 0x401169
push 0x419200
push 0x104
lea eax, [ebp - 0x11c]
push eax
call fcn.004025d7
add esp, 0xc
push str..exe
lea ecx, [ebp - 0x11c]
push 0x104
push ecx
call fcn.004025d7
push 0x88
call fcn.00402693
add esp, 0x10
mov dword [ebp - 0x860], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x4011aa
mov ecx, eax
call fcn.00401bc0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
push edx
push eax
lea ecx, [edi + 0x4c]
push ecx
lea edx, [ebp - 0x840]
push edx
call fcn.00401980
add esp, 0x10
mov esi, eax
neg esi
sbb esi, esi
inc esi
test ebx, ebx
je 0x4011e1
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
test esi, esi
je 0x401216
mov eax, dword [ebp - 0x844]
push eax
lea ecx, [ebp - 0x42c]
push str.Could_not_decompress__s_resource.
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push str.Setup_Error
lea edx, [ebp - 0x42c]
push edx
push 0
jmp 0x4014a3
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401287
mov ecx, dword [ebp - 0x840]
push ecx
call fcn.00402483
mov edx, dword [ebp - 0x844]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x42c]
push str.Could_not_create_file___s_._r_nError__d__r_nResource__s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
push str.Setup_Error
lea edx, [ebp - 0x42c]
push edx
push 0
jmp 0x4014a3
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x840]
push 0
lea eax, [ebp - 0x85c]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov eax, dword [ebp - 0x840]
push eax
call fcn.00402483
mov esi, dword [ebp - 0x848]
add esp, 4
test esi, esi
je 0x40131d
push 0x419268
push esi
call fcn.00401e60
add esp, 8
test eax, eax
je 0x4012f7
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x42c]
push str.__s___s
push edx
call esi
add esp, 0x10
jmp 0x401362
cmp byte [esi], 0
je 0x40131d
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x42c]
push str.__s___s__X
push ecx
call esi
add esp, 0x10
jmp 0x40133b
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x42c]
push str.__s___X
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x42c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401344
sub eax, edx
push 0x104
lea ecx, [ebp + eax - 0x42c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x44
lea edx, [ebp - 0x8ac]
push 0
push edx
call fcn.00403140
add esp, 0xc
lea ecx, [ebp - 0x858]
push ecx
lea edx, [ebp - 0x8ac]
push edx
push 0
push 0
xor eax, eax
push 0x20
push 0
mov dword [ebp - 0x858], eax
mov dword [ebp - 0x854], eax
mov dword [ebp - 0x850], eax
mov dword [ebp - 0x84c], eax
push 0
mov eax, 5
mov word [ebp - 0x87c], ax
push 0
lea eax, [ebp - 0x42c]
push eax
push 0
mov dword [ebp - 0x8ac], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401427
mov edx, dword [ebp - 0x844]
lea ecx, [ebp - 0x42c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x83c]
push str.Could_not_run_file___s_._r_nError__d__r_nResource__s__r_nCMD__s_
push ecx
call esi
add esp, 0x18
push 0
push str.Setup_Error
lea edx, [ebp - 0x83c]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4014a9
mov ecx, dword [ebp - 0x858]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x854]
push edx
call edi
mov eax, dword [ebp - 0x858]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x11c]
push ecx
call esi
test eax, eax
jne 0x40147c
push eax
lea edx, [ebp - 0x11c]
push edx
call fcn.00402430
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x11c]
push eax
call esi
xor eax, eax
jmp 0x4014ae
lea ecx, [ebp - 0x42c]
push str.Resource_is_null.
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push ebx
push str.Setup_Error
lea edx, [ebp - 0x42c]
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040248e
mov esp, ebp
pop ebp
ret