Function at 0x403326
Capabilities:
Accept command line arguments
Copy file
Create directory
Delete file
Get common file path
Get file system object information
Set current directory
Set environment variable
Shutdown system
Terminate process

Disassembly:
sub esp, 0x17c
push ebx
push ebp
push esi
xor ebx, ebx
mov byte [esp + 0xc], 0x20
push edi
mov dword [esp + 0x14], ebx
mov edi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov ebp, ebx
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push 9
mov dword [0x42f120], eax
call fcn.00405ea2
push ebx
push 0x160
mov dword [0x42e8b0], eax
lea eax, [esp + 0x34]
push eax
push ebx
push 0x4083fb
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x42e8c0
call fcn.00406085
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov esi, 0x435000
push esi
call fcn.00406085
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x435000], 0x22
mov dword [0x42e8b4], eax
mov eax, esi
jne 0x4033c4
mov byte [esp + 0x10], 0x22
mov eax, 0x435001
push dword [esp + 0x10]
push eax
call fcn.00405ba1
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esp + 0x18], eax
jmp 0x403445
push 0x20
pop edx
cmp cl, dl
jne 0x4033e7
inc eax
cmp byte [eax], dl
je 0x4033e2
cmp byte [eax], 0x22
mov byte [esp + 0x10], dl
jne 0x4033f6
inc eax
mov byte [esp + 0x10], 0x22
cmp byte [eax], 0x2f
jne 0x403435
inc eax
cmp byte [eax], 0x53
jne 0x403416
mov cl, byte [eax + 1]
cmp cl, dl
je 0x40340c
test cl, cl
jne 0x403416
mov dword [0x42f1a0], 1
cmp dword [eax], 0x4352434e
jne 0x40342c
mov cl, byte [eax + 4]
cmp cl, dl
je 0x403429
test cl, cl
jne 0x40342c
or ebp, 4
cmp dword [eax - 2], 0x3d442f20
je 0x40344d
push dword [esp + 0x10]
push eax
call fcn.00405ba1
cmp byte [eax], 0x22
jne 0x403445
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x4033db
jmp 0x40345e
mov byte [eax - 2], bl
add eax, 2
push eax
push 0x435400
call fcn.00406085
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, 0x436400
push ebx
push 0x400
call esi
call fcn.00403733
test eax, eax
jne 0x4034d0
push 0x3fb
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push ebx
call sub.KERNEL32.dll_lstrcatA
call fcn.00403733
test eax, eax
jne 0x4034d0
push ebx
push 0x3fc
call esi
push 0x408410
push ebx
call sub.KERNEL32.dll_lstrcatA
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
push str.TEMP
call esi
push ebx
push 0x40841c
call esi
call fcn.00403733
test eax, eax
je 0x40364d
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x436000
call ebx
push ebp
call fcn.0040300f
mov edi, eax
test edi, edi
jne 0x40364d
cmp dword [0x42f0c4], eax
je 0x40354e
xor ebp, ebp
push ebp
push 0x435000
call fcn.00405ba1
mov esi, eax
mov eax, 0x435000
jmp 0x403514
cmp dword [esi], 0x3d3f5f20
je 0x403518
dec esi
cmp esi, eax
jae 0x40350b
mov edi, str.Error_launching_installer
cmp esi, eax
jb 0x403561
xor ebx, ebx
mov byte [esi], bl
add esi, 4
push esi
call fcn.00405bde
test eax, eax
je 0x403649
push esi
push 0x435400
call fcn.00406085
push esi
push 0x435800
call fcn.00406085
mov edi, ebx
or dword [0x42f1ac], 0xffffffff
call fcn.004052ed
mov ebp, eax
jmp 0x403651
push str.nsu.tmp
mov esi, 0x436400
push esi
call sub.KERNEL32.dll_lstrcatA
push 0x435c00
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403651
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [0x435400], 0
jne 0x4035ac
push 0x435c00
push 0x435400
call fcn.00406085
push dword [esp + 0x18]
push section..ndata
call fcn.00406085
push 0x41
pop eax
push 0x1a
mov word [0x430400], ax
pop esi
mov eax, dword [0x42f0d0]
push dword [eax + 0x120]
push 0x4290f8
call fcn.004056ab
push 0x4290f8
call ebx
test edi, edi
je 0x403633
push 1
push 0x4290f8
push 0x436c00
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403633
push ebp
push 0x4290f8
call fcn.0040594e
mov eax, dword [0x42f0d0]
push dword [eax + 0x124]
push 0x4290f8
call fcn.004056ab
push 0x4290f8
call fcn.00405c77
test eax, eax
je 0x403633
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebp
inc byte [0x430400]
dec esi
jne 0x4035c6
push ebp
push 0x436400
call fcn.0040594e
jmp 0x403651
mov ebp, ebx
jmp 0x403651
mov ebp, dword [esp + 0x14]
call fcn.004032fc
call dword [sym.imp.ole32.dll_OleUninitialize]
test edi, edi
je 0x403673
push 0x200010
push edi
call fcn.00406013
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x42f194], 0
je 0x40371f
push 4
call fcn.00405ea2
push 5
mov ebx, eax
call fcn.00405ea2
push 6
mov esi, eax
call fcn.00405ea2
mov edi, eax
test ebx, ebx
je 0x4036ec
test esi, esi
je 0x4036ec
test edi, edi
je 0x4036ec
lea eax, [esp + 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x4036ec
lea eax, [esp + 0x20]
push eax
push str.SeShutdownPrivilege
push 0
call esi
push 0
push 0
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 1
push eax
push 0
push dword [esp + 0x2c]
mov dword [esp + 0x40], 2
call edi
push 7
call fcn.00405ea2
mov esi, 0x80040002
test eax, eax
je 0x40370b
push esi
push 0x25
push 0
push 0
push 0
call eax
test eax, eax
je 0x403718
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x40371f
push 9
call fcn.00401424
cmp dword [0x42f1ac], 0xffffffff
cmovne ebp, dword [0x42f1ac]
push ebp
jmp 0x40366d