Function at 0x403250
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 [0x423cb8], eax
call fcn.0040585b
push esi
push 0x160
mov dword [0x423bc0], eax
lea eax, [ebp - 0x184]
push eax
push esi
push 0x4073f3
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x4233c0
call fcn.00405778
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov edi, 0x429000
push edi
call fcn.00405778
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x429000], 0x22
mov dword [0x423bc8], eax
mov eax, edi
jne 0x4032f3
mov byte [ebp - 0xc], 0x22
mov eax, 0x429001
push dword [ebp - 0xc]
push eax
call fcn.004054ad
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x14], eax
jmp 0x403367
cmp cl, bl
jne 0x403311
inc eax
cmp byte [eax], bl
je 0x40330c
cmp byte [eax], 0x22
mov byte [ebp - 0xc], bl
jne 0x40331e
inc eax
mov byte [ebp - 0xc], 0x22
cmp byte [eax], 0x2f
jne 0x403358
inc eax
cmp byte [eax], 0x53
jne 0x403338
mov cl, byte [eax + 1]
cmp cl, bl
je 0x403334
test cl, cl
jne 0x403338
or dword [ebp - 4], 2
cmp dword [eax], 0x4352434e
jne 0x40334f
mov cl, byte [eax + 4]
cmp cl, bl
je 0x40334b
test cl, cl
jne 0x40334f
or dword [ebp - 4], 4
cmp dword [eax - 2], 0x3d442f20
je 0x40336f
push dword [ebp - 0xc]
push eax
call fcn.004054ad
cmp byte [eax], 0x22
jne 0x403367
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x403308
jmp 0x403381
mov byte [eax - 2], 0
add eax, 2
push eax
push 0x429400
call fcn.00405778
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, 0x42a400
push esi
push 0x400
call ebx
call fcn.004031f2
test eax, eax
jne 0x4033ef
push 0x3fb
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push esi
call sub.KERNEL32.dll_lstrcatA
call fcn.004031f2
test eax, eax
jne 0x4033ef
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.004031f2
test eax, eax
je 0x40346d
push 0x42a000
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 4]
call fcn.00402fa3
mov dword [ebp - 8], eax
test eax, eax
jne 0x40346d
cmp dword [0x423c24], eax
je 0x40345e
push eax
push edi
call fcn.004054ad
mov ebx, eax
jmp 0x403425
cmp dword [ebx], 0x3d3f5f20
je 0x403429
dec ebx
cmp ebx, edi
jae 0x40341c
mov dword [ebp - 8], str.Error_launching_installer
cmp ebx, edi
jb 0x403497
mov byte [ebx], 0
add ebx, 4
push ebx
call fcn.00405967
test eax, eax
je 0x40346d
push ebx
push 0x429400
call fcn.00405778
push ebx
push 0x429800
call fcn.00405778
and dword [ebp - 8], 0
or dword [0x423cac], 0xffffffff
call fcn.00405121
mov dword [ebp - 0x10], eax
call fcn.00403226
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [ebp - 8], 0
je 0x40356b
push 0x200010
push dword [ebp - 8]
call fcn.00405447
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.nsu.tmp
push esi
call sub.KERNEL32.dll_lstrcatA
mov edi, 0x429c00
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40346d
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 [0x429400], bl
jne 0x4034d7
push edi
push 0x429400
call fcn.00405778
push dword [ebp - 0x14]
push section..ndata
call fcn.00405778
push 0x41
pop eax
mov word [0x424400], ax
mov dword [ebp - 4], 0x1a
mov edi, 0x41ed80
mov eax, dword [0x423bcc]
push dword [eax + 0x120]
push edi
call fcn.004059e9
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], ebx
je 0x403554
push 1
push edi
push 0x42ac00
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403554
push ebx
push edi
call fcn.00405dc9
mov eax, dword [0x423bcc]
push dword [eax + 0x124]
push edi
call fcn.004059e9
push edi
call fcn.004053e6
cmp eax, ebx
je 0x403554
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], ebx
inc byte [0x424400]
dec dword [ebp - 4]
jne 0x4034f9
push ebx
push esi
call fcn.00405dc9
jmp 0x40346d
cmp dword [0x423c94], 0
je 0x4035ec
push 3
call fcn.0040585b
push 4
mov ebx, eax
call fcn.0040585b
push 5
mov esi, eax
call fcn.0040585b
mov edi, eax
test ebx, ebx
je 0x4035d7
test esi, esi
je 0x4035d7
test edi, edi
je 0x4035d7
lea eax, [ebp - 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x4035d7
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 0x4035ec
push 9
call fcn.0040141a
mov eax, dword [0x423cac]
cmp eax, 0xffffffff
je 0x4035f9
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
jmp 0x403491