Function at 0x403523
Capabilities:
Accept command line arguments
Copy file
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
push edi
xor ebx, ebx
mov byte [esp + 0x10], 0x20
push 0x8001
mov dword [esp + 0x18], ebx
mov edi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov ebp, ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetVersion]
push 6
and eax, 0xbfffffff
pop ecx
mov dword [0x7a2c20], eax
cmp ax, cx
je 0x403573
push ebx
call fcn.004065d2
test eax, eax
je 0x403573
push 0xc00
call eax
mov esi, str.UXTHEME
push esi
call fcn.00405ed4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc esi
add esi, eax
cmp byte [esi], bl
jne 0x403578
push 0xa
call fcn.004065d2
push 8
call fcn.004065d2
push 6
mov dword [0x7a2410], eax
call fcn.004065d2
test eax, eax
je 0x4035bc
push 0x1e
call eax
test eax, eax
je 0x4035bc
or dword [0x7a2c20], 0x40000000
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push ebx
push 0x160
mov dword [0x7a2c80], eax
lea eax, [esp + 0x34]
push eax
push ebx
push 0x40846a
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x7a2420
call fcn.004067f7
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov ebx, 0x7a8000
push ebx
call fcn.004067f7
cmp byte [0x7a8000], 0x22
mov eax, ebx
mov dword [0x7a2414], 0x400000
jne 0x403625
mov byte [esp + 0x10], 0x22
mov eax, 0x7a8001
push dword [esp + 0x10]
push eax
call fcn.00406287
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, eax
mov dword [esp + 0x18], ecx
jmp 0x4036b4
inc ecx
mov dl, byte [ecx]
cmp dl, 0x20
je 0x40363e
mov byte [esp + 0x10], 0x20
mov bl, dl
cmp dl, 0x22
jne 0x403659
mov bl, byte [ecx + 1]
mov byte [esp + 0x10], dl
lea eax, [ecx + 1]
cmovne eax, ecx
cmp bl, 0x2f
jne 0x4036a0
inc eax
cmp byte [eax], 0x53
jne 0x403680
mov cl, byte [eax + 1]
cmp cl, 0x20
je 0x403676
test cl, cl
jne 0x403680
mov dword [0x7a2d00], 1
cmp dword [eax], 0x4352434e
jne 0x403697
mov cl, byte [eax + 4]
cmp cl, 0x20
je 0x403694
test cl, cl
jne 0x403697
or ebp, 4
cmp dword [eax - 2], 0x3d442f20
je 0x4036bc
push dword [esp + 0x10]
push eax
call fcn.00406287
mov ecx, eax
mov dl, byte [ecx]
cmp dl, 0x22
jne 0x4036b6
inc ecx
mov dl, byte [ecx]
test dl, dl
jne 0x403641
jmp 0x4036ce
mov byte [eax - 2], 0
add eax, 2
push eax
push 0x7a8400
call fcn.004067f7
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, 0x7a9400
push ebx
push 0x400
call esi
call fcn.0040399b
test eax, eax
jne 0x403740
push 0x3fb
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push ebx
call sub.KERNEL32.dll_lstrcatA
call fcn.0040399b
test eax, eax
jne 0x403740
push ebx
push 0x3fc
call esi
push 0x408480
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 0x40848c
call esi
call fcn.0040399b
test eax, eax
je 0x4038d9
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x7a9000
call ebx
push ebp
call fcn.00403179
mov edi, eax
test edi, edi
jne 0x4038d9
cmp dword [0x7a2c28], eax
je 0x4037b7
push eax
mov ebp, 0x7a8000
push ebp
call fcn.00406287
mov esi, eax
jmp 0x40377e
cmp dword [esi], 0x3d3f5f20
je 0x403782
dec esi
cmp esi, ebp
jae 0x403775
mov edi, str.Error_launching_installer
cmp esi, ebp
jb 0x4037ca
mov byte [esi], 0
add esi, 4
push esi
call fcn.004062c4
test eax, eax
je 0x4038d9
push esi
push 0x7a8400
call fcn.004067f7
push esi
push 0x7a8800
call fcn.004067f7
xor edi, edi
or dword [0x7a2d0c], 0xffffffff
call fcn.0040578e
mov ebx, eax
jmp 0x4038dd
call fcn.00406174
push str.nsu
mov ebp, 0x7a9400
mov esi, eax
push ebp
call sub.KERNEL32.dll_lstrcatA
test esi, esi
je 0x4037f0
push 0x408498
push ebp
call sub.KERNEL32.dll_lstrcatA
push str..tmp
push ebp
call sub.KERNEL32.dll_lstrcatA
push 0x7a8c00
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4038d9
push ebp
test esi, esi
je 0x40381b
call fcn.00405b55
jmp 0x403820
call fcn.00405b35
push ebp
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [0x7a8400], 0
jne 0x40383f
push 0x7a8c00
push 0x7a8400
call fcn.004067f7
push dword [esp + 0x18]
push section..ndata
call fcn.004067f7
push 0x41
pop eax
push 0x1a
mov word [0x7a3400], ax
pop esi
mov eax, dword [0x7a2c34]
push dword [eax + 0x120]
push 0x79ddf0
call fcn.00405bd1
push 0x79ddf0
call ebx
test edi, edi
je 0x4038c7
push 1
push 0x79ddf0
push 0x7a9c00
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4038c7
push 0
push 0x79ddf0
call fcn.00405f72
mov eax, dword [0x7a2c34]
push dword [eax + 0x124]
push 0x79ddf0
call fcn.00405bd1
push 0x79ddf0
call fcn.00406376
test eax, eax
je 0x4038c7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc byte [0x7a3400]
sub esi, 1
jne 0x403859
push esi
push ebp
call fcn.00405f72
mov ebx, dword [esp + 0x14]
call fcn.004034e1
call dword [sym.imp.ole32.dll_OleUninitialize]
test edi, edi
je 0x4038ff
push 0x200010
push edi
call fcn.00406785
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x7a2cf4], 0
je 0x403987
lea eax, [esp + 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 2
pop edi
test eax, eax
je 0x403956
lea eax, [esp + 0x20]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
xor ecx, ecx
mov dword [esp + 0x1c], 1
push ecx
push ecx
push ecx
lea eax, [esp + 0x28]
mov dword [esp + 0x34], edi
push eax
push ecx
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 4
call fcn.004065d2
mov esi, 0x80040002
test eax, eax
je 0x403974
push esi
push 0x25
xor ecx, ecx
push ecx
push ecx
push ecx
call eax
test eax, eax
je 0x403980
push esi
push edi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403987
push 9
call fcn.0040151d
cmp dword [0x7a2d0c], 0xffffffff
cmovne ebx, dword [0x7a2d0c]
push ebx
jmp 0x4038f9