Function at 0x403c0d
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, 0x3ec
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_GetVersionExW]
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
mov dword [esp + 0x40], ebx
push eax
movlpd qword [esp + 0x144], xmm0
mov dword [esp + 0x30], 0x11c
call esi
test eax, eax
jne 0x403c8f
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x114
push eax
call esi
push 0x53
pop eax
mov dl, 4
mov byte [esp + 0x146], dl
cmp word [esp + 0x40], ax
jne 0x403c8b
mov eax, dword [esp + 0x5a]
add eax, 0xffffffd0
mov word [esp + 0x140], ax
jmp 0x403c96
xor eax, eax
jmp 0x403c81
mov dl, byte [esp + 0x146]
cmp dword [esp + 0x30], 0xa
jae 0x403ca8
movzx eax, word [esp + 0x38]
mov dword [esp + 0x38], eax
jmp 0x403cac
mov eax, dword [esp + 0x38]
mov dword [0x47a318], eax
movzx eax, byte [esp + 0x30]
shl ax, 8
movzx ecx, ax
movzx eax, byte [esp + 0x34]
or ecx, eax
movzx eax, byte [esp + 0x140]
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, dl
or ecx, eax
mov eax, 0x600
mov dword [0x47a31c], ecx
sar ecx, 0x10
cmp cx, ax
je 0x403d01
push ebx
call fcn.004071c9
test eax, eax
je 0x403d01
push 0xc00
call eax
mov esi, str.UXTHEME
push esi
call fcn.004067c1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc esi
add esi, eax
cmp byte [esi], bl
jne 0x403d06
push 0xc
call fcn.004071c9
push 0xa
call fcn.004071c9
push 8
mov dword [0x472210], eax
call fcn.004071c9
test eax, eax
je 0x403d47
push 0x1e
call eax
test eax, eax
je 0x403d47
or byte [0x47a31c], 0x80
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push ebx
push 0x2b4
mov dword [0x47a280], eax
lea eax, [esp + 0x150]
push eax
push ebx
push 0x40a2b8
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push str.NSIS_Error
push 0x472220
call fcn.004073fd
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov esi, 0x4cb000
push esi
call fcn.004073fd
movzx ecx, word [0x4cb000]
push 0x22
pop ebx
push 0x20
pop edx
cmp cx, bx
mov dword [0x472214], 0x400000
mov eax, ebx
mov dword [esp + 0x14], ebx
cmovne eax, edx
mov edx, 0x4cb002
movzx eax, ax
push eax
mov eax, esi
cmove eax, edx
push eax
call fcn.00406db1
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
movzx eax, word [ecx]
test ax, ax
je 0x403ec2
mov esi, eax
push 0x20
pop edx
movzx eax, si
cmp si, dx
jne 0x403dfe
add ecx, 2
movzx eax, word [ecx]
cmp ax, dx
je 0x403df3
mov ebx, edx
movzx esi, ax
movzx edx, ax
cmp ax, word [esp + 0x14]
jne 0x403e16
movzx edx, word [ecx + 2]
push 0x22
pop eax
mov ebx, eax
cmp si, word [esp + 0x14]
lea eax, [ecx + 2]
cmovne eax, ecx
cmp dx, 0x2f
jne 0x403e80
push 0x53
add eax, 2
pop ecx
push 0x20
pop edx
cmp word [eax], cx
jne 0x403e4d
movzx ecx, word [eax + 2]
cmp cx, dx
je 0x403e43
test cx, cx
jne 0x403e4d
mov dword [0x47a300], 1
cmp dword [eax], 0x43004e
jne 0x403e6f
cmp dword [eax + 4], 0x430052
jne 0x403e6f
movzx ecx, word [eax + 8]
cmp cx, dx
je 0x403e6c
test cx, cx
jne 0x403e6f
or ebp, 4
cmp dword [eax - 4], 0x2f0020
jne 0x403e80
cmp dword [eax], 0x3d0044
je 0x403eaa
push ebx
push eax
call fcn.00406db1
mov ecx, eax
push 0x22
pop ebx
movzx eax, word [ecx]
mov edx, eax
cmp ax, bx
jne 0x403e9c
add ecx, 2
movzx edx, word [ecx]
movzx esi, dx
test dx, dx
jne 0x403de8
jmp 0x403ebe
xor ecx, ecx
mov word [eax - 4], cx
add eax, 4
push eax
push 0x4cf000
call fcn.004073fd
mov ebx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4df000
push 0x2000
call esi
call fcn.00404217
test eax, eax
jne 0x403f48
push 0x1ffb
push 0x4df000
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Temp
push 0x4df000
call sub.KERNEL32.dll_lstrcatW
call fcn.00404217
test eax, eax
jne 0x403f48
push 0x4df000
push 0x1ffc
call esi
push 0x40a2e0
mov esi, 0x4df000
push esi
call sub.KERNEL32.dll_lstrcatW
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push str.TEMP
call esi
push 0x4df000
push 0x40a2f4
call esi
call fcn.00404217
test eax, eax
je 0x404130
push 0x4db000
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
call fcn.004038fe
mov edi, eax
test edi, edi
jne 0x404130
cmp dword [0x47a224], eax
je 0x403fd0
xor ebp, ebp
push ebp
push 0x4cb000
call fcn.00406db1
mov esi, eax
mov eax, 0x4cb000
jmp 0x403f95
cmp dword [esi], 0x5f0020
jne 0x403f92
cmp dword [esi + 4], 0x3d003f
je 0x403f99
sub esi, 2
cmp esi, eax
jae 0x403f81
mov edi, str.Error_launching_installer
cmp esi, eax
jb 0x403fea
xor eax, eax
mov word [esi], ax
add esi, 8
push esi
call fcn.00406df3
test eax, eax
je 0x40417a
push esi
push 0x4cf000
call fcn.004073fd
push esi
push 0x4d3000
call fcn.004073fd
mov edi, ebp
or dword [0x47a30c], 0xffffffff
call fcn.00406048
push 1
mov ebx, eax
call fcn.00406ea3
jmp 0x404134
call fcn.00406b1f
push 0x4df000
mov dword [esp + 0x1c], eax
call sub.KERNEL32.dll_lstrlenW
push ebx
push section..ndata
mov esi, eax
call fcn.004073fd
cmp word [0x4cf000], bp
jne 0x404022
push 0x4d7000
push 0x4cf000
call fcn.004073fd
xor ebx, ebx
lea eax, [esi*2 + 0x4df000]
inc ebx
mov dword [esp + 0x14], eax
mov esi, ebp
movzx ebp, bx
push ebp
push str.nsu_X.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [0x47a230]
add esp, 0xc
push dword [eax + 0x120]
push 0x48f000
call fcn.004064ce
cmp dword [esp + 0x18], 0
push 0x4df000
je 0x40406d
call fcn.00406473
jmp 0x404072
call fcn.00406453
test eax, eax
je 0x4040bf
push 0x48f000
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x404158
push 0x48f000
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x404158
push 1
push 0x4df000
call fcn.00406fa2
mov eax, esi
inc esi
test eax, eax
jne 0x404158
mov eax, dword [esp + 0x14]
jmp 0x404035
push 0x4df000
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push 0x4df000
call fcn.00406860
push 1
push 0x48f000
push 0x4e7000
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x404130
push 0
push 0x48f000
call fcn.00406860
mov eax, dword [0x47a230]
push dword [eax + 0x124]
push 0x493000
call fcn.004064ce
push 0x493000
call fcn.00406f5f
test eax, eax
jne 0x40416b
mov eax, esi
inc esi
test eax, eax
jne 0x404130
push 0x48f000
call fcn.00406d8a
test eax, eax
je 0x4040b6
mov ebx, dword [esp + 0x10]
xor ebp, ebp
call fcn.00403be3
call dword [sym.imp.ole32.dll_OleUninitialize]
test edi, edi
je 0x40417e
push 0x200010
push edi
call fcn.0040738b
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [esp + 0x14]
inc ebx
push 0
pop ebp
test bx, bx
jne 0x404030
jmp 0x404130
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
mov edi, ebp
mov ebx, edi
jmp 0x404136
mov ebx, ebp
jmp 0x404134
cmp dword [0x47a2f4], 0
je 0x404203
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 0x4041d3
lea eax, [esp + 0x20]
push eax
push str.SeShutdownPrivilege
push ebp
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push ebp
push ebp
push ebp
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 1
push eax
push ebp
push dword [esp + 0x2c]
mov dword [esp + 0x40], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 4
call fcn.004071c9
mov esi, 0x80040002
test eax, eax
je 0x4041ef
push esi
push 0x25
push ebp
push ebp
push ebp
call eax
test eax, eax
je 0x4041fc
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x404203
push 9
call fcn.0040153c
cmp dword [0x47a30c], 0xffffffff
cmovne ebx, dword [0x47a30c]
push ebx
jmp 0x404152