Function at 0x4033f2
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]
push ebx
push 0x160
mov dword [0x42ed50], eax
lea eax, [ebp - 0x180]
push eax
push ebx
push 0x407295
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x42e4a0
call fcn.00405785
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov esi, 0x434000
push esi
call fcn.00405785
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x434000], 0x22
mov dword [0x42eca4], eax
mov eax, esi
jne 0x40347d
mov byte [ebp - 0x14], 0x22
mov eax, 0x434001
push dword [ebp - 0x14]
push eax
call fcn.00405530
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x10], eax
jmp 0x4034f4
cmp cl, 0x20
jne 0x40349d
inc eax
cmp byte [eax], 0x20
je 0x403497
cmp byte [eax], 0x22
mov byte [ebp - 0x14], 0x20
jne 0x4034ab
inc eax
mov byte [ebp - 0x14], 0x22
cmp byte [eax], 0x2f
jne 0x4034e5
inc eax
cmp byte [eax], 0x53
jne 0x4034c5
mov cl, byte [eax + 1]
or cl, 0x20
cmp cl, 0x20
jne 0x4034c5
or dword [ebp - 4], 2
cmp dword [eax], 0x4352434e
jne 0x4034dc
mov cl, byte [eax + 4]
or cl, 0x20
cmp cl, 0x20
jne 0x4034dc
or dword [ebp - 4], 4
cmp dword [eax - 2], 0x3d442f20
je 0x4034fc
push dword [ebp - 0x14]
push eax
call fcn.00405530
cmp byte [eax], 0x22
jne 0x4034f4
inc eax
mov cl, byte [eax]
cmp cl, bl
jne 0x403492
jmp 0x40350d
mov dword [eax - 2], ebx
add eax, 2
push eax
push 0x434400
call fcn.00405785
mov edi, 0x435400
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.00403399
test eax, eax
jne 0x403547
push 0x3fb
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push edi
call sub.KERNEL32.dll_lstrcatA
call fcn.00403399
test eax, eax
je 0x4035c3
push 0x435000
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 4]
call fcn.00403113
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4035c3
cmp dword [0x42ed00], ebx
je 0x4035b4
push ebx
push esi
call fcn.00405530
mov edi, eax
jmp 0x40357d
cmp dword [edi], 0x3d3f5f20
je 0x403581
dec edi
cmp edi, esi
jae 0x403574
cmp edi, esi
mov dword [ebp - 8], str.Error_launching_installer
jb 0x4035ec
mov byte [edi], bl
add edi, 4
push edi
call fcn.0040592f
test eax, eax
je 0x4035c3
push edi
push 0x434400
call fcn.00405785
push edi
push 0x434800
call fcn.00405785
mov dword [ebp - 8], ebx
or dword [0x42ed4c], 0xffffffff
call fcn.004051aa
mov dword [ebp - 0xc], eax
call fcn.004033cd
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [ebp - 8], ebx
je 0x4036f3
push 0x200010
push dword [ebp - 8]
call fcn.004054ee
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [str.Au_.exe]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4074bc]
push str.nsu.tmp
mov edi, 0x435400
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 [0x434400], bl
jne 0x40362b
push 0x434c00
push 0x434400
call fcn.00405785
push dword [ebp - 0x10]
push section..ndata
call fcn.00405785
lea eax, [ebp - 0x18]
push eax
push 0x42f400
call fcn.00405785
mov dword [ebp - 4], ebx
mov esi, 0x428cd8
mov eax, dword [0x42eca8]
push dword [eax + 0x124]
push esi
call fcn.00405a07
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], ebx
je 0x4036db
push 0x400
push 0x4288d8
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x17]
push ecx
lea eax, [eax + 0x4288d2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4035c3
push 1
push esi
push 0x4288d8
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4036db
push ebx
push esi
call fcn.00405c1a
push ebx
push edi
call fcn.00405c1a
mov eax, dword [0x42eca8]
push dword [eax + 0x128]
push esi
call fcn.00405a07
push edi
push esi
call fcn.00405476
cmp eax, ebx
je 0x4036db
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], ebx
inc byte [0x42f400]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x1a
jl 0x40364e
jmp 0x4035c3
cmp dword [0x42ed34], ebx
je 0x403788
push str.OpenProcessToken
mov esi, 0x407488
push esi
call fcn.0040587f
push str.LookupPrivilegeValueA
push esi
mov dword [ebp - 4], eax
call fcn.0040587f
push str.AdjustTokenPrivileges
push esi
mov edi, eax
call fcn.0040587f
cmp dword [ebp - 4], ebx
mov esi, eax
je 0x403774
cmp edi, ebx
je 0x403774
cmp esi, ebx
je 0x403774
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 0x403774
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push ebx
call edi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
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 0x403788
push 9
call fcn.0040156c
mov eax, dword [0x42ed4c]
cmp eax, 0xffffffff
je 0x403795
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
jmp 0x4035e6