Function at 0x40315d
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 [0x42f0d0], eax
push ebx
lea eax, [ebp - 0x180]
push 0x160
push eax
push ebx
push 0x429440
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x42e820
call fcn.004059a4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, 0x435000
push eax
push esi
call fcn.004059a4
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x435000], 0x22
mov dword [0x42f020], eax
mov eax, esi
jne 0x4031e8
mov byte [ebp - 0x14], 0x22
mov eax, 0x435001
push dword [ebp - 0x14]
push eax
call fcn.004054c8
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x10], eax
jmp 0x40325f
cmp cl, 0x20
jne 0x403208
inc eax
cmp byte [eax], 0x20
je 0x403202
cmp byte [eax], 0x22
mov byte [ebp - 0x14], 0x20
jne 0x403216
inc eax
mov byte [ebp - 0x14], 0x22
cmp byte [eax], 0x2f
jne 0x403250
inc eax
cmp byte [eax], 0x53
jne 0x403230
mov cl, byte [eax + 1]
or cl, 0x20
cmp cl, 0x20
jne 0x403230
or dword [ebp - 4], 2
cmp dword [eax], 0x4352434e
jne 0x403247
mov cl, byte [eax + 4]
or cl, 0x20
cmp cl, 0x20
jne 0x403247
or dword [ebp - 4], 4
cmp dword [eax - 2], 0x3d442f20
je 0x403267
push dword [ebp - 0x14]
push eax
call fcn.004054c8
cmp byte [eax], 0x22
jne 0x40325f
inc eax
mov cl, byte [eax]
cmp cl, bl
jne 0x4031fd
jmp 0x403278
mov dword [eax - 2], ebx
add eax, 2
push eax
push 0x435400
call fcn.004059a4
mov edi, 0x436400
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.00403129
test eax, eax
jne 0x4032b2
push 0x3fb
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push edi
call sub.KERNEL32.dll_lstrcatA
call fcn.00403129
test eax, eax
je 0x40332e
push 0x436000
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 4]
call fcn.00402c3a
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40332e
cmp dword [0x42f034], ebx
je 0x40331f
push ebx
push esi
call fcn.004054c8
mov edi, eax
jmp 0x4032e8
cmp dword [edi], 0x3d3f5f20
je 0x4032ec
dec edi
cmp edi, esi
jae 0x4032df
cmp edi, esi
mov dword [ebp - 8], str.Error_launching_installer
jb 0x403357
mov byte [edi], bl
add edi, 4
push edi
call fcn.0040557d
test eax, eax
je 0x40332e
push edi
push 0x435400
call fcn.004059a4
push edi
push 0x435800
call fcn.004059a4
mov dword [ebp - 8], ebx
or dword [0x42f0cc], 0xffffffff
call fcn.0040352e
mov dword [ebp - 0xc], eax
call fcn.00403509
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [ebp - 8], ebx
je 0x40345e
push 0x200010
push dword [ebp - 8]
call fcn.0040529a
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [str.Au_.exe]
mov edi, 0x436400
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 [0x435400], bl
jne 0x403396
push 0x435c00
push 0x435400
call fcn.004059a4
push dword [ebp - 0x10]
push section..ndata
call fcn.004059a4
lea eax, [ebp - 0x18]
push eax
push 0x430400
call fcn.004059a4
mov dword [ebp - 4], ebx
mov esi, 0x428c40
mov eax, dword [0x42f028]
push dword [eax + 0x120]
push esi
call fcn.004059c6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], ebx
je 0x403446
push 0x400
push 0x429040
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x17]
lea eax, [eax + 0x42903a]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40332e
push 1
push esi
push 0x429040
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403446
push ebx
push esi
call fcn.004056f7
push ebx
push edi
call fcn.004056f7
mov eax, dword [0x42f028]
push dword [eax + 0x124]
push esi
call fcn.004059c6
push edi
push esi
call fcn.00405222
cmp eax, ebx
je 0x403446
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], ebx
inc byte [0x430400]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x1a
jl 0x4033b9
jmp 0x40332e
cmp dword [0x42f0b4], ebx
je 0x4034f3
mov esi, str.ADVAPI32.dll
push str.OpenProcessToken
push esi
call fcn.00405caa
push str.LookupPrivilegeValueA
push esi
mov dword [ebp - 4], eax
call fcn.00405caa
push str.AdjustTokenPrivileges
push esi
mov edi, eax
call fcn.00405caa
cmp dword [ebp - 4], ebx
mov esi, eax
je 0x4034df
cmp edi, ebx
je 0x4034df
cmp esi, ebx
je 0x4034df
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 0x4034df
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 0x4034f3
push 9
call fcn.00401410
mov eax, dword [0x42f0cc]
cmp eax, 0xffffffff
je 0x403500
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]