Function at 0x4011d4
Capabilities:
Accept command line arguments
Create directory
Create process on windows
Delete directory
Delete file
Get common file path
Set environment variable
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14f4
push ebx
push esi
push edi
call fcn.004010eb
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x401533
push 6
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
call fcn.0040153a
test eax, eax
je 0x401220
push 0x40247c
push 0x402480
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [esp + 0x94], 1
jne 0x40123f
mov word [esp + 0x98], 1
lea eax, [esp + 0xce0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x63
lea esi, [esp + 0x1c]
call fcn.00401000
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x10], ebx
inc dword [esp + 0x10]
push dword [esp + 0x10]
lea eax, [esp + 0x8d4]
push str.n_ds
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x8d0]
lea ecx, [esp + 0xce0]
lea edx, [esp + 0x2b8]
call fcn.00401040
push ebx
lea eax, [esp + 0x2bc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, str.nchsetup.cab
lea ecx, [esp + 0x2b8]
lea edx, [esp + 0xb0]
call fcn.00401040
mov eax, str.nchsetup.exe
lea ecx, [esp + 0x2b8]
lea edx, [esp + 0x4c0]
call fcn.00401040
push ebx
push 0x80
push 1
push ebx
push ebx
push 0xc0000000
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401267
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x40000000
lea eax, [esp + 0x4d8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x401365
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
sete al
cmp al, bl
je 0x401368
lea eax, [esp + 0xb0]
push eax
call edi
jmp 0x401267
push eax
call esi
lea eax, [esp + 0x4c0]
push eax
call edi
lea eax, [esp + 0x4c0]
push eax
push 0x4010ca
push ebx
lea eax, [esp + 0xbc]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
lea eax, [esp + 0xb0]
push eax
call edi
push 0x5f
lea esi, [esp + 0x24]
call fcn.00401000
mov eax, str.nchdata.cab
lea ecx, [esp + 0x2b8]
lea edx, [esp + 0xb0]
call fcn.00401040
mov eax, str.nchdata.dat
lea ecx, [esp + 0x2b8]
lea edx, [esp + 0x6c8]
call fcn.00401040
push ebx
push 0x80
push 1
push ebx
push ebx
push 0xc0000000
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
mov esi, eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0xffffffff
je 0x401413
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x6c8]
push eax
call edi
lea eax, [esp + 0x6c8]
push eax
push 0x4010ca
push ebx
lea eax, [esp + 0xbc]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
lea eax, [esp + 0xb0]
push eax
call edi
push 0x103
lea eax, [esp + 0xadc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x6c8]
push eax
lea eax, [esp + 0xadc]
push eax
lea eax, [esp + 0xef0]
push str._installer___s___instdata___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x3c
pop edx
mov ecx, edx
lea eax, [esp + 0x2c]
mov byte [eax], bl
inc eax
dec ecx
jne 0x401486
lea eax, [esp + 0x4c0]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x2b8]
mov dword [esp + 0x44], eax
lea eax, [esp + 0xee8]
mov dword [esp + 0x40], eax
movzx eax, word [esp + 0x98]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 0x140
mov dword [esp + 0x18], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x401501
push 0xffffffffffffffff
push dword [esp + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x68]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x4c0]
push eax
call edi
lea eax, [esp + 0x6c8]
push eax
call edi
lea eax, [esp + 0x2b8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret