Function at 0x40333d
Capabilities:
Accept command line arguments
Check os version
Copy file
Delete file
Get common file path
Get file system object information
Set current directory
Set environment variable
Shutdown system
Terminate process

Disassembly:
sub esp, 0x184
push ebx
push esi
push edi
xor ebx, ebx
push 0x8001
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [esp + 0x20], ebx
mov byte [esp + 0x14], 0x20
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
call dword [sym.imp.KERNEL32.DLL_GetVersion]
cmp ax, 6
je 0x403385
push ebx
call fcn.00405b77
cmp eax, ebx
je 0x403385
push 0xc00
call eax
mov esi, str.UXTHEME
push esi
call fcn.00405b09
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x40338a
push ebp
push 9
call fcn.00405b77
push 7
call fcn.00405b77
mov dword [0x7a1c20], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push ebx
push 0x160
mov dword [0x7a1d18], eax
lea eax, [esp + 0x3c]
push eax
push ebx
push 0x4074a7
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x7a1420
call fcn.00405a26
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
push eax
mov ebp, 0x7a7000
push ebp
call fcn.00405a26
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp byte [0x7a7000], 0x22
mov dword [0x7a1c28], eax
mov eax, ebp
jne 0x40341e
mov byte [esp + 0x14], 0x22
mov eax, 0x7a7001
push dword [esp + 0x14]
push eax
call fcn.004056fd
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esp + 0x1c], eax
jmp 0x4034a3
cmp cl, 0x20
jne 0x403440
inc eax
cmp byte [eax], 0x20
je 0x40343a
cmp byte [eax], 0x22
mov byte [esp + 0x14], 0x20
jne 0x403450
inc eax
mov byte [esp + 0x14], 0x22
cmp byte [eax], 0x2f
jne 0x403493
inc eax
cmp byte [eax], 0x53
jne 0x403471
mov cl, byte [eax + 1]
cmp cl, 0x20
je 0x403467
cmp cl, bl
jne 0x403471
mov dword [0x7a1d00], 1
cmp dword [eax], 0x4352434e
jne 0x40348a
mov cl, byte [eax + 4]
cmp cl, 0x20
je 0x403485
cmp cl, bl
jne 0x40348a
or dword [esp + 0x20], 4
cmp dword [eax - 2], 0x3d442f20
je 0x4034ab
push dword [esp + 0x14]
push eax
call fcn.004056fd
cmp byte [eax], 0x22
jne 0x4034a3
inc eax
mov cl, byte [eax]
cmp cl, bl
jne 0x403435
jmp 0x4034bc
mov byte [eax - 2], bl
add eax, 2
push eax
push 0x7a7400
call fcn.00405a26
mov edi, dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov esi, 0x7a8400
push esi
push 0x400
call edi
call fcn.004032ca
test eax, eax
jne 0x40352e
push 0x3fb
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push str.Temp
push esi
call sub.KERNEL32.DLL_lstrcatA
call fcn.004032ca
test eax, eax
jne 0x40352e
push esi
push 0x3fc
call edi
push 0x407490
push esi
call sub.KERNEL32.DLL_lstrcatA
mov edi, dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
push esi
push str.TEMP
call edi
push esi
push 0x407484
call edi
call fcn.004032ca
test eax, eax
je 0x4035af
push 0x7a8000
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push dword [esp + 0x20]
call fcn.00403029
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x4035af
cmp dword [0x7a1c84], ebx
je 0x40359f
push ebx
push ebp
call fcn.004056fd
mov edi, eax
jmp 0x403566
cmp dword [edi], 0x3d3f5f20
je 0x40356a
dec edi
cmp edi, ebp
jae 0x40355d
mov dword [esp + 0x10], str.Error_launching_installer
cmp edi, ebp
jb 0x4035db
mov byte [edi], bl
add edi, 4
push edi
call fcn.00405c9e
test eax, eax
je 0x4035af
push edi
push 0x7a7400
call fcn.00405a26
push edi
push 0x7a7800
call fcn.00405a26
mov dword [esp + 0x10], ebx
or dword [0x7a1d0c], 0xffffffff
call fcn.004052ce
mov dword [esp + 0x18], eax
call fcn.004032fb
call dword [sym.imp.ole32.dll_OleUninitialize]
pop ebp
cmp dword [esp + 0xc], ebx
je 0x4036d4
push 0x200010
push dword [esp + 0x10]
call fcn.00405697
push 2
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
call fcn.00405bea
push str.nsu
push esi
mov edi, eax
call sub.KERNEL32.DLL_lstrcatA
cmp edi, ebx
je 0x4035fc
push 0x407478
push esi
call sub.KERNEL32.DLL_lstrcatA
push str..tmp
push esi
call sub.KERNEL32.DLL_lstrcatA
mov ebp, 0x7a7c00
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
je 0x4035af
push esi
cmp edi, ebx
je 0x403624
call fcn.00405593
jmp 0x403629
call fcn.00405615
push esi
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
cmp byte [0x7a7400], bl
jne 0x403643
push ebp
push 0x7a7400
call fcn.00405a26
push dword [esp + 0x1c]
push section..ndata
call fcn.00405a26
push 0x41
pop eax
push 0x1a
mov word [0x7a2400], ax
pop ebp
mov edi, 0x79cde8
mov eax, dword [0x7a1c2c]
push dword [eax + 0x120]
push edi
call fcn.00405d20
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp dword [esp + 0x10], ebx
je 0x4036bf
push 1
push edi
push 0x7a8c00
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
je 0x4036bf
push ebx
push edi
call fcn.004060e4
mov eax, dword [0x7a1c2c]
push dword [eax + 0x124]
push edi
call fcn.00405d20
push edi
call fcn.00405632
cmp eax, ebx
je 0x4036bf
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esp + 0x10], ebx
inc byte [0x7a2400]
dec ebp
jne 0x403662
push ebx
push esi
call fcn.004060e4
jmp 0x4035af
cmp dword [0x7a1cf4], ebx
je 0x403756
lea eax, [esp + 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 2
pop edi
test eax, eax
je 0x403727
lea eax, [esp + 0x24]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
push ebx
push dword [esp + 0x2c]
mov dword [esp + 0x38], 1
mov dword [esp + 0x44], edi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 4
call fcn.00405b77
mov esi, 0x80040002
cmp eax, ebx
je 0x403743
push esi
push 0x25
push ebx
push ebx
push ebx
call eax
test eax, eax
je 0x40374f
push esi
push edi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403756
push 9
call fcn.0040141a
mov eax, dword [0x7a1d0c]
cmp eax, 0xffffffff
je 0x403764
mov dword [esp + 0x14], eax
push dword [esp + 0x14]
jmp 0x4035d5