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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push esi
push edi
xor edi, edi
push 0x8001
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [ebp - 8], edi
mov byte [ebp - 4], 0x20
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0xc4]
push eax
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0xc4], 0x9c
call esi
test eax, eax
jne 0x403568
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 0x94
push eax
call esi
cmp dword [ebp - 0xb4], 2
jne 0x40356f
movsx cx, byte [ebp - 0xa3]
mov al, byte [ebp - 0xb0]
sub ecx, 0x30
sub al, 0x53
mov byte [ebp - 0x2a], 4
neg al
sbb eax, eax
not eax
and eax, ecx
mov word [ebp - 0x30], ax
cmp dword [ebp - 0xb4], 2
jae 0x403593
and byte [ebp - 0x2a], 0
cmp byte [ebp - 0xaf], 0x41
jl 0x40358f
movsx ax, byte [ebp - 0xaf]
sub eax, 0x40
mov word [ebp - 0x30], ax
jmp 0x403593
mov word [ebp - 0x30], di
cmp dword [ebp - 0xc0], 0xa
jae 0x4035a4
and word [ebp - 0xb6], 0
mov eax, dword [ebp - 0xb8]
movzx ecx, byte [ebp - 0xbc]
mov dword [0x7a2c38], eax
xor eax, eax
mov ah, byte [ebp - 0xc0]
movzx eax, ax
or eax, ecx
xor ecx, ecx
mov ch, byte [ebp - 0x30]
movzx ecx, cx
shl eax, 0x10
or eax, ecx
movzx ecx, byte [ebp - 0x2a]
or eax, ecx
mov dword [0x7a2c3c], eax
cmp word [0x7a2c3e], 0x600
je 0x4035f7
push edi
call fcn.004067cc
cmp eax, edi
je 0x4035f7
push 0xc00
call eax
mov esi, str.UXTHEME
push esi
call fcn.0040675e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x4035fc
push 0xc
call fcn.004067cc
push 0xa
call fcn.004067cc
push 8
mov dword [0x7a2b84], eax
call fcn.004067cc
cmp eax, edi
je 0x40363f
push 0x1e
call eax
test eax, eax
je 0x40363f
or byte [0x7a2c3c], 0x80
push ebx
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push edi
call dword [sym.imp.ole32.dll_OleInitialize]
mov dword [0x7a2c40], eax
push edi
lea eax, [ebp - 0x224]
push 0x160
push eax
push edi
push 0x79e150
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x7a2380
call fcn.004063a4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, 0x7a8000
push eax
push ebx
call fcn.004063a4
cmp byte [0x7a8000], 0x22
mov dword [0x7a2b80], 0x400000
mov eax, ebx
jne 0x4036aa
mov byte [ebp - 4], 0x22
mov eax, 0x7a8001
push dword [ebp - 4]
push eax
call fcn.00405d61
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x10], eax
jmp 0x40377e
cmp cl, 0x20
jne 0x4036cd
inc eax
cmp byte [eax], 0x20
je 0x4036c7
cmp byte [eax], 0x22
mov byte [ebp - 4], 0x20
jne 0x4036db
inc eax
mov byte [ebp - 4], 0x22
cmp byte [eax], 0x2f
jne 0x40376f
inc eax
cmp byte [eax], 0x53
jne 0x403700
mov cl, byte [eax + 1]
cmp cl, 0x20
je 0x4036f6
test cl, cl
jne 0x403700
mov dword [0x7a2c20], 1
movsx ecx, byte [0x40a1db]
movsx edx, byte [0x40a1da]
shl ecx, 8
or ecx, edx
movsx edx, byte [0x40a1d9]
shl ecx, 8
or ecx, edx
movsx edx, byte [str.NCRC]
shl ecx, 8
or ecx, edx
cmp dword [eax], ecx
jne 0x40373f
mov cl, byte [eax + 4]
cmp cl, 0x20
je 0x40373b
test cl, cl
jne 0x40373f
or dword [ebp - 8], 4
movsx ecx, byte [0x40a1d3]
movsx edx, byte [0x40a1d2]
shl ecx, 8
or ecx, edx
movsx edx, byte [0x40a1d1]
shl ecx, 8
or ecx, edx
movsx edx, byte [str.__D]
shl ecx, 8
or ecx, edx
cmp dword [eax - 2], ecx
je 0x40378a
push dword [ebp - 4]
push eax
call fcn.00405d61
cmp byte [eax], 0x22
jne 0x40377e
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x4036c2
jmp 0x40379c
and byte [eax - 2], 0
add eax, 2
push eax
push 0x7a8400
call fcn.004063a4
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, 0x7a9400
push esi
push 0x400
call edi
call fcn.004034a6
test eax, eax
jne 0x40380e
push 0x3fb
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push esi
call sub.KERNEL32.dll_lstrcatA
call fcn.004034a6
test eax, eax
jne 0x40380e
push esi
push 0x3fc
call edi
push 0x40a1c4
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 0x40a1b8
call edi
call fcn.004034a6
test eax, eax
je 0x4038b9
push 0x7a9000
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 8]
call fcn.00402f61
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x4038b9
cmp dword [0x7a2b9c], eax
je 0x4038aa
push eax
push ebx
call fcn.00405d61
mov edi, eax
cmp edi, ebx
jb 0x403875
movsx eax, byte [0x40a1b3]
movsx ecx, byte [0x40a1b2]
shl eax, 8
or eax, ecx
movsx ecx, byte [0x40a1b1]
shl eax, 8
or eax, ecx
movsx ecx, byte [str.___]
shl eax, 8
or eax, ecx
cmp dword [edi], eax
je 0x403875
dec edi
cmp edi, ebx
jae 0x40386c
cmp edi, ebx
mov dword [ebp - 0xc], str.Error_launching_installer
jb 0x4038e5
and byte [edi], 0
add edi, 4
push edi
call fcn.00405e24
test eax, eax
je 0x4038b9
push edi
push 0x7a8400
call fcn.004063a4
push edi
push 0x7a8800
call fcn.004063a4
and dword [ebp - 0xc], 0
or dword [0x7a2c2c], 0xffffffff
call fcn.00403bad
mov dword [ebp - 0x14], eax
call fcn.00403abb
call dword [sym.imp.ole32.dll_OleUninitialize]
xor edi, edi
pop ebx
cmp dword [ebp - 0xc], edi
je 0x403a27
push 0x200010
push dword [ebp - 0xc]
call fcn.00405aba
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00405a25
push esi
mov dword [ebp - 0x18], eax
call sub.KERNEL32.dll_lstrlenA
push dword [ebp - 0x10]
mov edi, eax
push section..ndata
call fcn.004063a4
cmp byte [0x7a8400], 0
jne 0x40391a
push 0x7a8c00
push 0x7a8400
call fcn.004063a4
lea eax, [edi + 0x7a9400]
mov dword [ebp - 8], 1
mov dword [ebp - 0x10], eax
mov edi, 0x7a4400
mov ebx, 0x7a4800
and dword [ebp - 4], 0
movzx eax, word [ebp - 8]
push eax
push str.nsu_X.tmp
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x7a2b90]
add esp, 0xc
push dword [eax + 0x120]
push edi
call fcn.00406437
cmp dword [ebp - 0x18], 0
push esi
je 0x40396d
call fcn.004059ae
jmp 0x403972
call fcn.00405a08
test eax, eax
je 0x4039ae
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test ah, 4
jne 0x40399f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40399f
push 1
push esi
call fcn.00405b66
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
test eax, eax
je 0x403938
inc dword [ebp - 8]
cmp word [ebp - 8], 0
jne 0x403934
jmp 0x4038b9
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
push esi
call fcn.0040617d
push 1
push edi
push 0x7a9c00
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4038b9
push 0
push edi
call fcn.0040617d
mov eax, dword [0x7a2b90]
push dword [eax + 0x124]
push ebx
call fcn.00406437
push ebx
call fcn.00405a3d
test eax, eax
jne 0x403a17
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
test eax, eax
jne 0x4038b9
push edi
call fcn.00406737
test eax, eax
je 0x403938
jmp 0x4038b9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0xc], 0
jmp 0x4038b9
cmp dword [0x7a2c14], edi
je 0x403aa5
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403a75
lea eax, [ebp - 0x24]
push eax
push str.SeShutdownPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push edi
push edi
lea eax, [ebp - 0x28]
push edi
push eax
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 4
call fcn.004067cc
cmp eax, edi
mov esi, 0x80040002
je 0x403a91
push esi
push 0x25
push edi
push edi
push edi
call eax
test eax, eax
je 0x403a9e
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403aa5
push 9
call fcn.0040140b
mov eax, dword [0x7a2c2c]
cmp eax, 0xffffffff
je 0x403ab2
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ExitProcess]