Function at 0x403275
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:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
push esi
xor esi, esi
mov bl, 0x20
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [ebp - 4], esi
mov byte [ebp - 0xc], bl
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.ole32.dll_OleInitialize]
push 8
mov dword [0x42e9b8], eax
call fcn.00405880
push esi
push 0x160
mov dword [0x42e8c0], eax
lea eax, [ebp - 0x184]
push eax
push esi
push 0x4073f3
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x42e0c0
call fcn.0040579d
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov edi, 0x434000
push edi
call fcn.0040579d
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x434000], 0x22
mov dword [0x42e8c8], eax
mov eax, edi
jne 0x403318
mov byte [ebp - 0xc], 0x22
mov eax, 0x434001
push dword [ebp - 0xc]
push eax
call fcn.004054d2
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x14], eax
jmp 0x40338c
cmp cl, bl
jne 0x403336
inc eax
cmp byte [eax], bl
je 0x403331
cmp byte [eax], 0x22
mov byte [ebp - 0xc], bl
jne 0x403343
inc eax
mov byte [ebp - 0xc], 0x22
cmp byte [eax], 0x2f
jne 0x40337d
inc eax
cmp byte [eax], 0x53
jne 0x40335d
mov cl, byte [eax + 1]
cmp cl, bl
je 0x403359
test cl, cl
jne 0x40335d
or dword [ebp - 4], 2
cmp dword [eax], 0x4352434e
jne 0x403374
mov cl, byte [eax + 4]
cmp cl, bl
je 0x403370
test cl, cl
jne 0x403374
or dword [ebp - 4], 4
cmp dword [eax - 2], 0x3d442f20
je 0x403394
push dword [ebp - 0xc]
push eax
call fcn.004054d2
cmp byte [eax], 0x22
jne 0x40338c
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x40332d
jmp 0x4033a6
mov byte [eax - 2], 0
add eax, 2
push eax
push 0x434400
call fcn.0040579d
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, 0x435400
push esi
push 0x400
call ebx
call fcn.00403217
test eax, eax
jne 0x403414
push 0x3fb
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push esi
call sub.KERNEL32.dll_lstrcatA
call fcn.00403217
test eax, eax
jne 0x403414
push esi
push 0x3fc
call ebx
push 0x4073dc
push esi
call sub.KERNEL32.dll_lstrcatA
mov ebx, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
push str.TEMP
call ebx
push esi
push 0x4073d0
call ebx
call fcn.00403217
test eax, eax
je 0x403492
push 0x435000
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 4]
call fcn.00402fc8
mov dword [ebp - 8], eax
test eax, eax
jne 0x403492
cmp dword [0x42e924], eax
je 0x403483
push eax
push edi
call fcn.004054d2
mov ebx, eax
jmp 0x40344a
cmp dword [ebx], 0x3d3f5f20
je 0x40344e
dec ebx
cmp ebx, edi
jae 0x403441
mov dword [ebp - 8], str.Error_launching_installer
cmp ebx, edi
jb 0x4034bc
mov byte [ebx], 0
add ebx, 4
push ebx
call fcn.0040598c
test eax, eax
je 0x403492
push ebx
push 0x434400
call fcn.0040579d
push ebx
push 0x434800
call fcn.0040579d
and dword [ebp - 8], 0
or dword [0x42e9ac], 0xffffffff
call fcn.00405146
mov dword [ebp - 0x10], eax
call fcn.0040324b
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [ebp - 8], 0
je 0x403590
push 0x200010
push dword [ebp - 8]
call fcn.0040546c
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.nsu.tmp
push esi
call sub.KERNEL32.dll_lstrcatA
mov edi, 0x434c00
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403492
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [0x434400], bl
jne 0x4034fc
push edi
push 0x434400
call fcn.0040579d
push dword [ebp - 0x14]
push section..ndata
call fcn.0040579d
push 0x41
pop eax
mov word [0x42f400], ax
mov dword [ebp - 4], 0x1a
mov edi, 0x4288f8
mov eax, dword [0x42e8cc]
push dword [eax + 0x120]
push edi
call fcn.00405a0e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], ebx
je 0x403579
push 1
push edi
push 0x435c00
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403579
push ebx
push edi
call fcn.00405dee
mov eax, dword [0x42e8cc]
push dword [eax + 0x124]
push edi
call fcn.00405a0e
push edi
call fcn.0040540b
cmp eax, ebx
je 0x403579
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], ebx
inc byte [0x42f400]
dec dword [ebp - 4]
jne 0x40351e
push ebx
push esi
call fcn.00405dee
jmp 0x403492
cmp dword [0x42e994], 0
je 0x403611
push 3
call fcn.00405880
push 4
mov ebx, eax
call fcn.00405880
push 5
mov esi, eax
call fcn.00405880
mov edi, eax
test ebx, ebx
je 0x4035fc
test esi, esi
je 0x4035fc
test edi, edi
je 0x4035fc
lea eax, [ebp - 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x4035fc
lea eax, [ebp - 0x20]
push eax
push str.SeShutdownPrivilege
xor ebx, ebx
push ebx
call esi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 2
call edi
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403611
push 9
call fcn.0040141a
mov eax, dword [0x42e9ac]
cmp eax, 0xffffffff
je 0x40361e
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
jmp 0x4034b6