Function at 0x4032d0
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 [0x4243f0], eax
push ebx
lea eax, [ebp - 0x180]
push 0x160
push eax
push ebx
push 0x41f900
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x423b40
call fcn.00405b2f
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, 0x42a000
push eax
push esi
call fcn.00405b2f
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x42a000], 0x22
mov dword [0x424340], eax
mov eax, esi
jne 0x40335b
mov byte [ebp - 0x14], 0x22
mov eax, 0x42a001
push dword [ebp - 0x14]
push eax
call fcn.00405653
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x10], eax
jmp 0x4033d2
cmp cl, 0x20
jne 0x40337b
inc eax
cmp byte [eax], 0x20
je 0x403375
cmp byte [eax], 0x22
mov byte [ebp - 0x14], 0x20
jne 0x403389
inc eax
mov byte [ebp - 0x14], 0x22
cmp byte [eax], 0x2f
jne 0x4033c3
inc eax
cmp byte [eax], 0x53
jne 0x4033a3
mov cl, byte [eax + 1]
or cl, 0x20
cmp cl, 0x20
jne 0x4033a3
or dword [ebp - 4], 2
cmp dword [eax], 0x4352434e
jne 0x4033ba
mov cl, byte [eax + 4]
or cl, 0x20
cmp cl, 0x20
jne 0x4033ba
or dword [ebp - 4], 4
cmp dword [eax - 2], 0x3d442f20
je 0x4033da
push dword [ebp - 0x14]
push eax
call fcn.00405653
cmp byte [eax], 0x22
jne 0x4033d2
inc eax
mov cl, byte [eax]
cmp cl, bl
jne 0x403370
jmp 0x4033eb
mov dword [eax - 2], ebx
add eax, 2
push eax
push 0x42a400
call fcn.00405b2f
mov edi, 0x42b400
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.0040329c
test eax, eax
jne 0x403425
push 0x3fb
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push edi
call sub.KERNEL32.dll_lstrcatA
call fcn.0040329c
test eax, eax
je 0x4034a1
push 0x42b000
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 4]
call fcn.00402c61
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4034a1
cmp dword [0x424354], ebx
je 0x403492
push ebx
push esi
call fcn.00405653
mov edi, eax
jmp 0x40345b
cmp dword [edi], 0x3d3f5f20
je 0x40345f
dec edi
cmp edi, esi
jae 0x403452
cmp edi, esi
mov dword [ebp - 8], str.Error_launching_installer
jb 0x4034ca
mov byte [edi], bl
add edi, 4
push edi
call fcn.00405708
test eax, eax
je 0x4034a1
push edi
push 0x42a400
call fcn.00405b2f
push edi
push 0x42a800
call fcn.00405b2f
mov dword [ebp - 8], ebx
or dword [0x4243ec], 0xffffffff
call fcn.004036b9
mov dword [ebp - 0xc], eax
call fcn.0040367c
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [ebp - 8], ebx
je 0x4035d1
push 0x200010
push dword [ebp - 8]
call fcn.00405425
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 [0x40927c]
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 0x403509
push 0x42ac00
push 0x42a400
call fcn.00405b2f
push dword [ebp - 0x10]
push section..ndata
call fcn.00405b2f
lea eax, [ebp - 0x18]
push eax
push 0x425400
call fcn.00405b2f
mov dword [ebp - 4], ebx
mov esi, 0x41f100
mov eax, dword [0x424348]
push dword [eax + 0x120]
push esi
call fcn.00405b51
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], ebx
je 0x4035b9
push 0x400
push 0x41f500
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x17]
lea eax, [eax + 0x41f4fa]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4034a1
push 1
push esi
push 0x41f500
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4035b9
push ebx
push esi
call fcn.00405882
push ebx
push edi
call fcn.00405882
mov eax, dword [0x424348]
push dword [eax + 0x124]
push esi
call fcn.00405b51
push edi
push esi
call fcn.004053ad
cmp eax, ebx
je 0x4035b9
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 0x40352c
jmp 0x4034a1
cmp dword [0x4243d4], ebx
je 0x403666
mov esi, str.ADVAPI32.dll
push str.OpenProcessToken
push esi
call fcn.00405e35
push str.LookupPrivilegeValueA
push esi
mov dword [ebp - 4], eax
call fcn.00405e35
push str.AdjustTokenPrivileges
push esi
mov edi, eax
call fcn.00405e35
cmp dword [ebp - 4], ebx
mov esi, eax
je 0x403652
cmp edi, ebx
je 0x403652
cmp esi, ebx
je 0x403652
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 0x403652
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 0x403666
push 9
call fcn.00401410
mov eax, dword [0x4243ec]
cmp eax, 0xffffffff
je 0x403673
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]