Function at 0x40312e
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 [0x4243d0], eax
push ebx
lea eax, [ebp - 0x180]
push 0x160
push eax
push ebx
push 0x41f8d8
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x423b20
call fcn.00405975
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, 0x42a000
push eax
push esi
call fcn.00405975
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x42a000], 0x22
mov dword [0x424320], eax
mov eax, esi
jne 0x4031b9
mov byte [ebp - 0x14], 0x22
mov eax, 0x42a001
push dword [ebp - 0x14]
push eax
call fcn.00405499
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x10], eax
jmp 0x403230
cmp cl, 0x20
jne 0x4031d9
inc eax
cmp byte [eax], 0x20
je 0x4031d3
cmp byte [eax], 0x22
mov byte [ebp - 0x14], 0x20
jne 0x4031e7
inc eax
mov byte [ebp - 0x14], 0x22
cmp byte [eax], 0x2f
jne 0x403221
inc eax
cmp byte [eax], 0x53
jne 0x403201
mov cl, byte [eax + 1]
or cl, 0x20
cmp cl, 0x20
jne 0x403201
or dword [ebp - 4], 2
cmp dword [eax], 0x4352434e
jne 0x403218
mov cl, byte [eax + 4]
or cl, 0x20
cmp cl, 0x20
jne 0x403218
or dword [ebp - 4], 4
cmp dword [eax - 2], 0x3d442f20
je 0x403238
push dword [ebp - 0x14]
push eax
call fcn.00405499
cmp byte [eax], 0x22
jne 0x403230
inc eax
mov cl, byte [eax]
cmp cl, bl
jne 0x4031ce
jmp 0x403249
mov dword [eax - 2], ebx
add eax, 2
push eax
push 0x42a400
call fcn.00405975
mov edi, 0x42b400
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.004030fa
test eax, eax
jne 0x403283
push 0x3fb
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push edi
call sub.KERNEL32.dll_lstrcatA
call fcn.004030fa
test eax, eax
je 0x4032ff
push 0x42b000
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 4]
call fcn.00402c3a
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4032ff
cmp dword [0x424334], ebx
je 0x4032f0
push ebx
push esi
call fcn.00405499
mov edi, eax
jmp 0x4032b9
cmp dword [edi], 0x3d3f5f20
je 0x4032bd
dec edi
cmp edi, esi
jae 0x4032b0
cmp edi, esi
mov dword [ebp - 8], str.Error_launching_installer
jb 0x403328
mov byte [edi], bl
add edi, 4
push edi
call fcn.0040554e
test eax, eax
je 0x4032ff
push edi
push 0x42a400
call fcn.00405975
push edi
push 0x42a800
call fcn.00405975
mov dword [ebp - 8], ebx
or dword [0x4243cc], 0xffffffff
call fcn.004034ff
mov dword [ebp - 0xc], eax
call fcn.004034da
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [ebp - 8], ebx
je 0x40342f
push 0x200010
push dword [ebp - 8]
call fcn.0040526b
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [str.Au_.exe]
mov edi, 0x42b400
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 [0x42a400], bl
jne 0x403367
push 0x42ac00
push 0x42a400
call fcn.00405975
push dword [ebp - 0x10]
push section..ndata
call fcn.00405975
lea eax, [ebp - 0x18]
push eax
push 0x425400
call fcn.00405975
mov dword [ebp - 4], ebx
mov esi, 0x41f0d8
mov eax, dword [0x424328]
push dword [eax + 0x120]
push esi
call fcn.00405997
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], ebx
je 0x403417
push 0x400
push 0x41f4d8
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x17]
lea eax, [eax + 0x41f4d2]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4032ff
push 1
push esi
push 0x41f4d8
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403417
push ebx
push esi
call fcn.004056c8
push ebx
push edi
call fcn.004056c8
mov eax, dword [0x424328]
push dword [eax + 0x124]
push esi
call fcn.00405997
push edi
push esi
call fcn.004051f3
cmp eax, ebx
je 0x403417
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], ebx
inc byte [0x425400]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x1a
jl 0x40338a
jmp 0x4032ff
cmp dword [0x4243b4], ebx
je 0x4034c4
mov esi, str.ADVAPI32.dll
push str.OpenProcessToken
push esi
call fcn.00405c7b
push str.LookupPrivilegeValueA
push esi
mov dword [ebp - 4], eax
call fcn.00405c7b
push str.AdjustTokenPrivileges
push esi
mov edi, eax
call fcn.00405c7b
cmp dword [ebp - 4], ebx
mov esi, eax
je 0x4034b0
cmp edi, ebx
je 0x4034b0
cmp esi, ebx
je 0x4034b0
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 0x4034b0
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 0x4034c4
push 9
call fcn.00401410
mov eax, dword [0x4243cc]
cmp eax, 0xffffffff
je 0x4034d1
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]