Function at 0x4011d4
Capabilities:
Accept command line arguments
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x16fc
push ebx
push esi
push edi
call fcn.004010eb
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x4015d5
push 6
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str._LQUIET
mov esi, eax
call fcn.004015dc
test eax, eax
je 0x401225
push 0x40247c
push 0x402480
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push str._instby
mov eax, esi
call fcn.004015dc
cmp eax, ebx
je 0x40127e
add eax, 0xe
jmp 0x401242
cmp cx, 0x20
jne 0x40124a
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, bx
jne 0x40123a
movzx ecx, word [eax]
xor esi, esi
cmp cx, bx
je 0x401274
xor edx, edx
movzx ecx, cx
cmp cx, 0x20
je 0x401274
inc esi
mov word [esp + edx + 0x8d0], cx
lea edx, [esi + esi]
movzx ecx, word [edx + eax]
cmp cx, bx
jne 0x401259
mov word [esp + esi*2 + 0x8d0], bx
jmp 0x401286
mov word [esp + 0x8d0], bx
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [esp + 0x94], 1
jne 0x4012a5
mov word [esp + 0x98], 1
lea eax, [esp + 0xee8]
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_CreateFileW]
mov dword [esp + 0x10], ebx
inc dword [esp + 0x10]
push dword [esp + 0x10]
lea eax, [esp + 0xce4]
push str.n_ds
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0xce0]
lea ecx, [esp + 0xee8]
lea edx, [esp + 0x2b8]
call fcn.004d8000
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, 0x4024c8
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 edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4012cd
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 edi
cmp eax, 0xffffffff
jne 0x4013c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
sete al
cmp al, bl
je 0x4013ca
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4012cd
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x4c0]
push eax
call esi
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 esi
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
xor esi, esi
inc esi
push esi
push ebx
push ebx
push 0xc0000000
lea eax, [esp + 0xc8]
push eax
call edi
push ebx
mov edi, eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, 0xffffffff
je 0x401479
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
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]
cmp word [esp + 0x8d0], bx
je 0x4014fd
lea eax, [esp + 0x8d0]
push eax
lea eax, [esp + 0x6cc]
push eax
lea eax, [esp + 0xae0]
push eax
lea eax, [esp + 0x10fc]
push str._installer___s___instdata___s___instby__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x401523
lea eax, [esp + 0x6c8]
push eax
lea eax, [esp + 0xadc]
push eax
lea eax, [esp + 0x10f8]
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 0x40152c
lea eax, [esp + 0x4c0]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x2b8]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x10f0]
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], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4015a3
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