Function at 0x403141
Capabilities:
Accept command line arguments
Copy file
Create directory
Delete file
Get common file path
Get file system object information
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [ebp - 4], ebx
mov byte [ebp - 0x14], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov dword [0x7a2c10], eax
push ebx
lea eax, [ebp - 0x180]
push 0x160
push eax
push ebx
push 0x79e118
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x7a2360
call fcn.00405988
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, 0x7a8000
push eax
push esi
call fcn.00405988
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x7a8000], 0x22
mov dword [0x7a2b60], eax
mov eax, esi
jne 0x4031cc
mov byte [ebp - 0x14], 0x22
mov eax, 0x7a8001
push dword [ebp - 0x14]
push eax
call fcn.004054ac
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x10], eax
jmp 0x403243
cmp cl, 0x20
jne 0x4031ec
inc eax
cmp byte [eax], 0x20
je 0x4031e6
cmp byte [eax], 0x22
mov byte [ebp - 0x14], 0x20
jne 0x4031fa
inc eax
mov byte [ebp - 0x14], 0x22
cmp byte [eax], 0x2f
jne 0x403234
inc eax
cmp byte [eax], 0x53
jne 0x403214
mov cl, byte [eax + 1]
or cl, 0x20
cmp cl, 0x20
jne 0x403214
or dword [ebp - 4], 2
cmp dword [eax], 0x4352434e
jne 0x40322b
mov cl, byte [eax + 4]
or cl, 0x20
cmp cl, 0x20
jne 0x40322b
or dword [ebp - 4], 4
cmp dword [eax - 2], 0x3d442f20
je 0x40324b
push dword [ebp - 0x14]
push eax
call fcn.004054ac
cmp byte [eax], 0x22
jne 0x403243
inc eax
mov cl, byte [eax]
cmp cl, bl
jne 0x4031e1
jmp 0x40325c
mov dword [eax - 2], ebx
add eax, 2
push eax
push 0x7a8400
call fcn.00405988
mov edi, 0x7a9400
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.0040310d
test eax, eax
jne 0x403296
push 0x3fb
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push edi
call sub.KERNEL32.dll_lstrcatA
call fcn.0040310d
test eax, eax
je 0x403312
push 0x7a9000
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 4]
call fcn.00402c3a
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x403312
cmp dword [0x7a2b74], ebx
je 0x403303
push ebx
push esi
call fcn.004054ac
mov edi, eax
jmp 0x4032cc
cmp dword [edi], 0x3d3f5f20
je 0x4032d0
dec edi
cmp edi, esi
jae 0x4032c3
cmp edi, esi
mov dword [ebp - 8], str.Error_launching_installer
jb 0x40333b
mov byte [edi], bl
add edi, 4
push edi
call fcn.00405561
test eax, eax
je 0x403312
push edi
push 0x7a8400
call fcn.00405988
push edi
push 0x7a8800
call fcn.00405988
mov dword [ebp - 8], ebx
or dword [0x7a2c0c], 0xffffffff
call fcn.00403512
mov dword [ebp - 0xc], eax
call fcn.004034ed
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [ebp - 8], ebx
je 0x403442
push 0x200010
push dword [ebp - 8]
call fcn.0040527e
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [str.Au_.exe]
mov edi, 0x7a9400
mov dword [ebp - 0x18], eax
mov eax, dword [0x409218]
push str.nsu.tmp
push edi
mov dword [ebp - 0x14], eax
call sub.KERNEL32.dll_lstrcatA
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [0x7a8400], bl
jne 0x40337a
push 0x7a8c00
push 0x7a8400
call fcn.00405988
push dword [ebp - 0x10]
push section..ndata
call fcn.00405988
lea eax, [ebp - 0x18]
push eax
push 0x7a3400
call fcn.00405988
mov dword [ebp - 4], ebx
mov esi, 0x79d918
mov eax, dword [0x7a2b68]
push dword [eax + 0x120]
push esi
call fcn.004059aa
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], ebx
je 0x40342a
push 0x400
push 0x79dd18
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x17]
lea eax, [eax + 0x79dd12]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403312
push 1
push esi
push 0x79dd18
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40342a
push ebx
push esi
call fcn.004056db
push ebx
push edi
call fcn.004056db
mov eax, dword [0x7a2b68]
push dword [eax + 0x124]
push esi
call fcn.004059aa
push edi
push esi
call fcn.00405206
cmp eax, ebx
je 0x40342a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], ebx
inc byte [0x7a3400]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x1a
jl 0x40339d
jmp 0x403312
cmp dword [0x7a2bf4], ebx
je 0x4034d7
mov esi, str.ADVAPI32.dll
push str.OpenProcessToken
push esi
call fcn.00405c8e
push str.LookupPrivilegeValueA
push esi
mov dword [ebp - 4], eax
call fcn.00405c8e
push str.AdjustTokenPrivileges
push esi
mov edi, eax
call fcn.00405c8e
cmp dword [ebp - 4], ebx
mov esi, eax
je 0x4034c3
cmp edi, ebx
je 0x4034c3
cmp esi, ebx
je 0x4034c3
lea eax, [ebp - 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 4]
test eax, eax
je 0x4034c3
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push ebx
call edi
push ebx
push ebx
lea eax, [ebp - 0x20]
push ebx
push eax
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
call esi
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4034d7
push 9
call fcn.00401410
mov eax, dword [0x7a2c0c]
cmp eax, 0xffffffff
je 0x4034e4
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]