Function at 0x4011cc
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, 0x1b10
push ebx
push ebp
push esi
push edi
call fcn.004010ef
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4016de
push 6
push eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov dword [esp + 0x1c], 0x4020a0
mov edx, str._bootstrap
mov ecx, esi
call fcn.004016e6
xor ecx, ecx
inc ecx
push 0x20
pop ebx
test eax, eax
je 0x40127f
mov byte [esp + 0x13], cl
add eax, 0x14
jmp 0x40122d
cmp cx, bx
jne 0x401235
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x401225
movzx ecx, word [eax]
xor edx, edx
test cx, cx
je 0x40125b
xor edi, edi
cmp cx, bx
je 0x40125b
inc edx
mov word [esp + edi + 0xae0], cx
lea edi, [edx + edx]
movzx ecx, word [edi + eax]
test cx, cx
jne 0x401241
xor eax, eax
mov ecx, esi
mov word [esp + edx*2 + 0xae0], ax
mov edx, str._bseldlg
call fcn.004016e6
test eax, eax
je 0x40128e
mov dword [esp + 0x1c], str.__bseldlg
jmp 0x40128e
xor eax, eax
mov byte [esp + 0x13], 0
mov word [esp + 0xae0], ax
mov edx, str._LQUIET
mov ecx, esi
call fcn.004016e6
test eax, eax
je 0x4012ae
push 0x4024d0
push 0x4024d4
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, str._instby
mov ecx, esi
call fcn.004016e6
test eax, eax
je 0x401305
add eax, 0xe
jmp 0x4012cb
cmp cx, bx
jne 0x4012d3
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4012c3
movzx edx, word [eax]
xor ecx, ecx
test dx, dx
je 0x4012f9
xor esi, esi
cmp dx, bx
je 0x4012f9
inc ecx
mov word [esp + esi + 0x4c8], dx
lea esi, [ecx + ecx]
movzx edx, word [esi + eax]
test dx, dx
jne 0x4012df
xor eax, eax
mov word [esp + ecx*2 + 0x4c8], ax
jmp 0x40130f
xor eax, eax
mov word [esp + 0x4c8], ax
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [esp + 0x9c], 1
jne 0x40132f
xor eax, eax
inc eax
mov word [esp + 0xa0], ax
lea eax, [esp + 0x10f8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x63
lea ecx, [esp + 0x2c]
call fcn.00401000
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc eax
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1304]
push str.n_ds
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x1300]
lea edx, [esp + 0x10f8]
lea ecx, [esp + 0x2c0]
push eax
call fcn.00401046
push 0
lea eax, [esp + 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.nchsetup.cab
lea edx, [esp + 0x2c4]
lea ecx, [esp + 0xcec]
call fcn.00401046
push str.nchsetup.exe
lea edx, [esp + 0x2c4]
lea ecx, [esp + 0x6d4]
call fcn.00401046
xor eax, eax
push eax
push 0x80
push 1
push eax
push eax
push 0xc0000000
lea eax, [esp + 0xd00]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [esp + 0x18]
cmp esi, 0xffffffff
je 0x401361
push 0
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebp
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push 0x40000000
lea eax, [esp + 0x6e8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x401462
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
sete al
test al, al
je 0x401465
lea eax, [esp + 0xce8]
push eax
call edi
mov eax, dword [esp + 0x18]
jmp 0x401361
push eax
call ebp
lea eax, [esp + 0x6d0]
push eax
call edi
lea eax, [esp + 0x6d0]
push eax
push 0x4010ce
push 0
lea eax, [esp + 0xcf4]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
push 0x5f
lea ecx, [esp + 0x24]
call fcn.00401000
push str.nchdata.cab
lea edx, [esp + 0x2c4]
lea ecx, [esp + 0xef4]
call fcn.00401046
push str.nchdata.dat
lea edx, [esp + 0x2c4]
lea ecx, [esp + 0xbc]
call fcn.00401046
xor eax, eax
push eax
push 0x80
push 1
push eax
push eax
push 0xc0000000
lea eax, [esp + 0xf08]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0xffffffff
je 0x401506
push esi
call ebp
lea eax, [esp + 0xb8]
push eax
call edi
lea eax, [esp + 0xb8]
push eax
push 0x4010ce
push 0
lea eax, [esp + 0xefc]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
lea eax, [esp + 0xef0]
push eax
call edi
push 0x103
lea eax, [esp + 0x8dc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp byte [esp + 0x13], 0
je 0x4015c9
cmp word [esp + 0x4c8], 0
je 0x401599
lea eax, [esp + 0x4c8]
push eax
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x8e0]
push eax
push dword [esp + 0x28]
lea eax, [esp + 0xaf0]
push eax
lea eax, [esp + 0x151c]
push str._bootstrap__s_s__installer___s___instdata___s___instby__s
push eax
call ebx
add esp, 0x1c
jmp 0x401622
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x8dc]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0xaec]
push eax
lea eax, [esp + 0x1518]
push str._bootstrap__s_s__installer___s___instdata___s_
push eax
call ebx
add esp, 0x18
jmp 0x401622
cmp word [esp + 0x4c8], 0
je 0x401600
lea eax, [esp + 0x4c8]
push eax
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x8e0]
push eax
lea eax, [esp + 0x1514]
push str._installer___s___instdata___s___instby__s
push eax
call ebx
add esp, 0x14
jmp 0x401622
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x8dc]
push eax
lea eax, [esp + 0x1510]
push str._installer___s___instdata___s_
push eax
call ebx
add esp, 0x10
push 0x3c
pop edx
mov ecx, edx
lea eax, [esp + 0x34]
mov byte [eax], 0
inc eax
dec ecx
jne 0x40162b
lea eax, [esp + 0x6d0]
mov dword [esp + 0x34], edx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x2c0]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x1508]
mov dword [esp + 0x48], eax
movzx eax, word [esp + 0xa0]
mov dword [esp + 0x50], eax
xor eax, eax
inc eax
mov dword [esp + 0x38], 0x140
mov dword [esp + 0x14], eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4016a2
push 0xffffffffffffffff
push dword [esp + 0x70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x70]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [esp + 0x6c]
call ebp
lea eax, [esp + 0x6d0]
push eax
call edi
lea eax, [esp + 0xb8]
push eax
call edi
lea eax, [esp + 0xce8]
push eax
call edi
lea eax, [esp + 0x2c0]
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 ebp
pop ebx
mov esp, ebp
pop ebp
ret