Function at 0x40360d
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, 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 0x403697
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x94
push eax
call esi
mov eax, dword [esp + 0x3c]
cmp eax, 2
jne 0x40369e
cmp byte [esp + 0x40], 0x53
mov byte [esp + 0xc6], 4
jne 0x40368b
movsx ax, byte [esp + 0x4d]
sub ax, 0x30
jmp 0x4036b9
xor ecx, ecx
mov word [esp + 0xc0], cx
jmp 0x40369b
mov eax, dword [esp + 0x3c]
cmp eax, 2
jae 0x4036c1
mov al, byte [esp + 0x41]
mov byte [esp + 0xc6], bl
cmp al, 0x41
jl 0x4036b7
cbw
sub ax, 0x40
jmp 0x4036b9
xor eax, eax
mov word [esp + 0xc0], ax
cmp dword [esp + 0x30], 0xa
jae 0x4036d3
movzx eax, word [esp + 0x38]
mov dword [esp + 0x38], eax
jmp 0x4036d7
mov eax, dword [esp + 0x38]
mov dword [0x4244f8], 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 [0x4244fc], ecx
sar ecx, 0x10
cmp cx, ax
je 0x403731
push ebx
call fcn.00406691
test eax, eax
je 0x403731
push 0xc00
call eax
mov esi, str.UXTHEME
push esi
call fcn.00405ff6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc esi
add esi, eax
cmp byte [esi], bl
jne 0x403736
push 0xc
call fcn.00406691
push 0xa
call fcn.00406691
push 8
mov dword [0x423bf0], eax
call fcn.00406691
test eax, eax
je 0x403777
push 0x1e
call eax
test eax, eax
je 0x403777
or byte [0x4244fc], 0x80
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push ebx
push 0x160
mov dword [0x424460], eax
lea eax, [esp + 0xd0]
push eax
push ebx
push 0x408462
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x423c00
call fcn.004068b6
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov ebx, 0x42a000
push ebx
call fcn.004068b6
cmp byte [0x42a000], 0x22
mov edx, 0x42a001
mov dword [0x423bf4], 0x400000
sete al
lea eax, [eax*2 + 0x20]
push eax
mov eax, ebx
cmove eax, edx
push eax
call fcn.00406390
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x403875
inc ecx
mov dl, byte [ecx]
cmp dl, 0x20
je 0x4037ff
mov byte [esp + 0x18], 0x20
mov bl, dl
cmp dl, 0x22
jne 0x40381a
mov bl, byte [ecx + 1]
mov byte [esp + 0x18], dl
lea eax, [ecx + 1]
cmovne eax, ecx
cmp bl, 0x2f
jne 0x403861
inc eax
cmp byte [eax], 0x53
jne 0x403841
mov cl, byte [eax + 1]
cmp cl, 0x20
je 0x403837
test cl, cl
jne 0x403841
mov dword [0x4244e0], 1
cmp dword [eax], 0x4352434e
jne 0x403858
mov cl, byte [eax + 4]
cmp cl, 0x20
je 0x403855
test cl, cl
jne 0x403858
or ebp, 4
cmp dword [eax - 2], 0x3d442f20
je 0x40387d
push dword [esp + 0x18]
push eax
call fcn.00406390
mov ecx, eax
mov dl, byte [ecx]
cmp dl, 0x22
jne 0x403877
inc ecx
mov dl, byte [ecx]
test dl, dl
jne 0x403802
jmp 0x40388f
mov byte [eax - 2], 0
add eax, 2
push eax
push 0x42a400
call fcn.004068b6
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, 0x42b400
push ebx
push 0x400
call esi
call fcn.00403b62
test eax, eax
jne 0x403901
push 0x3fb
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push ebx
call sub.KERNEL32.dll_lstrcatA
call fcn.00403b62
test eax, eax
jne 0x403901
push ebx
push 0x3fc
call esi
push 0x408478
push ebx
call sub.KERNEL32.dll_lstrcatA
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
push str.TEMP
call esi
push ebx
push 0x408484
call esi
call fcn.00403b62
test eax, eax
je 0x403a9a
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x42b000
call ebx
push ebp
call fcn.0040329b
mov edi, eax
test edi, edi
jne 0x403a9a
cmp dword [0x424404], eax
je 0x403978
push eax
mov ebp, 0x42a000
push ebp
call fcn.00406390
mov esi, eax
jmp 0x40393f
cmp dword [esi], 0x3d3f5f20
je 0x403943
dec esi
cmp esi, ebp
jae 0x403936
mov edi, str.Error_launching_installer
cmp esi, ebp
jb 0x40398b
mov byte [esi], 0
add esi, 4
push esi
call fcn.004063cd
test eax, eax
je 0x403a9a
push esi
push 0x42a400
call fcn.004068b6
push esi
push 0x42a800
call fcn.004068b6
xor edi, edi
or dword [0x4244ec], 0xffffffff
call fcn.0040584e
mov ebx, eax
jmp 0x403a9e
call fcn.00406298
push str.nsu
mov ebp, 0x42b400
mov esi, eax
push ebp
call sub.KERNEL32.dll_lstrcatA
test esi, esi
je 0x4039b1
push 0x408490
push ebp
call sub.KERNEL32.dll_lstrcatA
push str..tmp
push ebp
call sub.KERNEL32.dll_lstrcatA
push 0x42ac00
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403a9a
push ebp
test esi, esi
je 0x4039dc
call fcn.00405c77
jmp 0x4039e1
call fcn.00405c57
push ebp
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [0x42a400], 0
jne 0x403a00
push 0x42ac00
push 0x42a400
call fcn.004068b6
push dword [esp + 0x14]
push section..ndata
call fcn.004068b6
push 0x41
pop eax
push 0x1a
mov word [0x425400], ax
pop esi
mov eax, dword [0x424410]
push dword [eax + 0x120]
push 0x41f5d0
call fcn.00405cf3
push 0x41f5d0
call ebx
test edi, edi
je 0x403a88
push 1
push 0x41f5d0
push 0x42bc00
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403a88
push 0
push 0x41f5d0
call fcn.00406091
mov eax, dword [0x424410]
push dword [eax + 0x124]
push 0x41f5d0
call fcn.00405cf3
push 0x41f5d0
call fcn.00406466
test eax, eax
je 0x403a88
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc byte [0x425400]
sub esi, 1
jne 0x403a1a
push esi
push ebp
call fcn.00406091
mov ebx, dword [esp + 0x10]
call fcn.004035cb
call dword [sym.imp.ole32.dll_OleUninitialize]
test edi, edi
je 0x403ac0
push 0x200010
push edi
call fcn.00406844
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x4244d4], 0
je 0x403b4e
lea eax, [esp + 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403b1c
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 + 0x28]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 4
call fcn.00406691
mov esi, 0x80040002
test eax, eax
je 0x403b3a
push esi
push 0x25
xor ecx, ecx
push ecx
push ecx
push ecx
call eax
test eax, eax
je 0x403b47
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403b4e
push 9
call fcn.00401533
cmp dword [0x4244ec], 0xffffffff
cmovne ebx, dword [0x4244ec]
push ebx
jmp 0x403aba