Function at 0x4034ce
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:
sub esp, 0x218
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov edi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
push 0x8001
mov dword [esp + 0x14], ebx
mov ebp, ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
mov dword [esp + 0x40], ebx
push eax
movlpd qword [esp + 0xc4], xmm0
mov dword [esp + 0x30], 0x9c
call esi
test eax, eax
jne 0x403558
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x94
push eax
call esi
mov eax, dword [esp + 0x3c]
cmp eax, 2
jne 0x40355f
cmp byte [esp + 0x40], 0x53
mov byte [esp + 0xc6], 4
jne 0x40354c
movsx ax, byte [esp + 0x4d]
sub ax, 0x30
jmp 0x40357a
xor ecx, ecx
mov word [esp + 0xc0], cx
jmp 0x40355c
mov eax, dword [esp + 0x3c]
cmp eax, 2
jae 0x403582
mov al, byte [esp + 0x41]
mov byte [esp + 0xc6], bl
cmp al, 0x41
jl 0x403578
cbw
sub ax, 0x40
jmp 0x40357a
xor eax, eax
mov word [esp + 0xc0], ax
cmp dword [esp + 0x30], 0xa
jae 0x403594
movzx eax, word [esp + 0x38]
mov dword [esp + 0x38], eax
jmp 0x403598
mov eax, dword [esp + 0x38]
mov dword [0x7a2938], eax
movzx eax, byte [esp + 0x30]
shl ax, 8
movzx ecx, ax
movzx eax, byte [esp + 0x34]
or ecx, eax
movzx eax, byte [esp + 0xc0]
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, byte [esp + 0xc6]
or ecx, eax
mov eax, 0x600
mov dword [0x7a293c], ecx
sar ecx, 0x10
cmp cx, ax
je 0x4035f2
push ebx
call fcn.004065a6
test eax, eax
je 0x4035f2
push 0xc00
call eax
mov esi, str.UXTHEME
push esi
call fcn.00405f0b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc esi
add esi, eax
cmp byte [esi], bl
jne 0x4035f7
push 0xc
call fcn.004065a6
push 0xa
call fcn.004065a6
push 8
mov dword [0x7a2030], eax
call fcn.004065a6
test eax, eax
je 0x403638
push 0x1e
call eax
test eax, eax
je 0x403638
or byte [0x7a293c], 0x80
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push ebx
push 0x160
mov dword [0x7a28a0], eax
lea eax, [esp + 0xd0]
push eax
push ebx
push 0x40844b
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x7a2040
call fcn.004067cb
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov ebx, 0x7a8000
push ebx
call fcn.004067cb
cmp byte [0x7a8000], 0x22
mov edx, 0x7a8001
mov dword [0x7a2034], 0x400000
sete al
lea eax, [eax*2 + 0x20]
push eax
mov eax, ebx
cmove eax, edx
push eax
call fcn.004062a5
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
mov dl, byte [ecx]
test dl, dl
je 0x403760
jmp 0x4036cf
inc ecx
mov dl, byte [ecx]
cmp dl, 0x20
je 0x4036cc
mov byte [esp + 0x14], 0x20
mov bl, dl
cmp dl, 0x22
jne 0x4036e7
mov bl, byte [ecx + 1]
mov byte [esp + 0x14], dl
lea eax, [ecx + 1]
cmovne eax, ecx
cmp bl, 0x2f
jne 0x40372e
inc eax
cmp byte [eax], 0x53
jne 0x40370e
mov cl, byte [eax + 1]
cmp cl, 0x20
je 0x403704
test cl, cl
jne 0x40370e
mov dword [0x7a2920], 1
cmp dword [eax], 0x4352434e
jne 0x403725
mov cl, byte [eax + 4]
cmp cl, 0x20
je 0x403722
test cl, cl
jne 0x403725
or ebp, 4
cmp dword [eax - 2], 0x3d442f20
je 0x40374a
push dword [esp + 0x14]
push eax
call fcn.004062a5
mov ecx, eax
mov dl, byte [ecx]
cmp dl, 0x22
jne 0x403744
inc ecx
mov dl, byte [ecx]
test dl, dl
jne 0x4036cf
jmp 0x40375c
mov byte [eax - 2], 0
add eax, 2
push eax
push 0x7a8400
call fcn.004067cb
mov ebx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x7a9400
push 0x400
call esi
call fcn.00403a98
test eax, eax
jne 0x4037e6
push 0x3fb
push 0x7a9400
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push 0x7a9400
call sub.KERNEL32.dll_lstrcatA
call fcn.00403a98
test eax, eax
jne 0x4037e6
push 0x7a9400
push 0x3fc
call esi
push 0x408460
mov esi, 0x7a9400
push esi
call sub.KERNEL32.dll_lstrcatA
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str.TEMP
call esi
push 0x7a9400
push 0x40846c
call esi
call fcn.00403a98
test eax, eax
je 0x4039b3
push 0x7a9000
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
call fcn.004031c2
mov edi, eax
test edi, edi
jne 0x4039b3
cmp dword [0x7a2844], eax
je 0x40385b
push eax
mov ebp, 0x7a8000
push ebp
call fcn.004062a5
mov esi, eax
jmp 0x403822
cmp dword [esi], 0x3d3f5f20
je 0x403826
dec esi
cmp esi, ebp
jae 0x403819
mov edi, str.Error_launching_installer
cmp esi, ebp
jb 0x40386e
mov byte [esi], 0
add esi, 4
push esi
call fcn.004062e2
test eax, eax
je 0x4039b3
push esi
push 0x7a8400
call fcn.004067cb
push esi
push 0x7a8800
call fcn.004067cb
xor edi, edi
or dword [0x7a292c], 0xffffffff
call fcn.00405784
mov ebx, eax
jmp 0x4039b7
call fcn.004061ad
push 0x7a9400
mov dword [esp + 0x1c], eax
call sub.KERNEL32.dll_lstrlenA
push ebx
push section..ndata
mov esi, eax
call fcn.004067cb
cmp byte [0x7a8400], 0
jne 0x4038a6
push 0x7a8c00
push 0x7a8400
call fcn.004067cb
xor ebx, ebx
lea eax, [esi + 0x7a9400]
inc ebx
mov dword [esp + 0x14], eax
xor esi, esi
movzx ebp, bx
push ebp
push str.nsu_X.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x7a2850]
add esp, 0xc
push dword [eax + 0x120]
push 0x7a4400
call fcn.00405c08
cmp dword [esp + 0x18], 0
push 0x7a9400
je 0x4038f0
call fcn.00405bad
jmp 0x4038f5
call fcn.00405b8d
test eax, eax
je 0x403942
push 0x7a4400
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, 0x400
jne 0x4039d9
push 0x7a4400
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4039d9
push 1
push 0x7a9400
call fcn.004063be
mov eax, esi
inc esi
test eax, eax
jne 0x4039d9
mov eax, dword [esp + 0x14]
jmp 0x4038b8
push 0x7a9400
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
push 0x7a9400
call fcn.00405fa6
push 1
push 0x7a4400
push 0x7a9c00
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4039b3
push 0
push 0x7a4400
call fcn.00405fa6
mov eax, dword [0x7a2850]
push dword [eax + 0x124]
push 0x7a4800
call fcn.00405c08
push 0x7a4800
call fcn.0040637b
test eax, eax
jne 0x4039e9
mov eax, esi
inc esi
test eax, eax
jne 0x4039b3
push 0x7a4400
call fcn.0040627e
test eax, eax
je 0x403939
mov ebx, dword [esp + 0x10]
call fcn.004034a4
call dword [sym.imp.ole32.dll_OleUninitialize]
test edi, edi
je 0x4039f6
push 0x200010
push edi
call fcn.00406759
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [esp + 0x14]
inc ebx
test bx, bx
jne 0x4038b3
jmp 0x4039b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov ebx, edi
jmp 0x4039b7
cmp dword [0x7a2914], 0
je 0x403a84
lea eax, [esp + 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 0x403a52
lea eax, [esp + 0x20]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
xor ecx, ecx
mov dword [esp + 0x1c], 1
push ecx
push ecx
push ecx
lea eax, [esp + 0x28]
mov dword [esp + 0x34], 2
push eax
push ecx
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 4
call fcn.004065a6
mov esi, 0x80040002
test eax, eax
je 0x403a70
push esi
push 0x25
xor ecx, ecx
push ecx
push ecx
push ecx
call eax
test eax, eax
je 0x403a7d
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403a84
push 9
call fcn.00401533
cmp dword [0x7a292c], 0xffffffff
cmovne ebx, dword [0x7a292c]
push ebx
jmp 0x4039d3