Function at 0x4036d7
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, 0x3f0
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 ebp, ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 0x30]
xorps xmm0, xmm0
mov dword [esp + 0x44], ebx
push eax
movlpd qword [esp + 0x148], xmm0
mov dword [esp + 0x34], 0x11c
call esi
test eax, eax
jne 0x403759
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x114
push eax
call esi
push 0x53
pop eax
mov dl, 4
mov byte [esp + 0x14a], dl
cmp word [esp + 0x44], ax
jne 0x403755
mov eax, dword [esp + 0x5e]
add eax, 0xffffffd0
mov word [esp + 0x144], ax
jmp 0x403760
xor eax, eax
jmp 0x40374b
mov dl, byte [esp + 0x14a]
cmp dword [esp + 0x34], 0xa
jae 0x403772
movzx eax, word [esp + 0x3c]
mov dword [esp + 0x3c], eax
jmp 0x403776
mov eax, dword [esp + 0x3c]
mov dword [0x429e18], eax
movzx eax, byte [esp + 0x34]
shl ax, 8
movzx ecx, ax
movzx eax, byte [esp + 0x38]
or ecx, eax
movzx eax, byte [esp + 0x144]
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, dl
or ecx, eax
mov eax, 0x600
mov dword [0x429e1c], ecx
sar ecx, 0x10
cmp cx, ax
je 0x4037cb
push ebx
call fcn.004068ce
test eax, eax
je 0x4037cb
push 0xc00
call eax
mov esi, str.UXTHEME
push esi
call fcn.00406186
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc esi
add esi, eax
cmp byte [esi], bl
jne 0x4037d0
push 0xc
call fcn.004068ce
push 0xa
call fcn.004068ce
push 8
mov dword [0x428d10], eax
call fcn.004068ce
test eax, eax
je 0x403811
push 0x1e
call eax
test eax, eax
je 0x403811
or byte [0x429e1c], 0x80
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push ebx
push 0x2b4
mov dword [0x429d80], eax
lea eax, [esp + 0x154]
push eax
push ebx
push 0x4085b0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push str.NSIS_Error
push 0x428d20
call fcn.00406b02
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x434000
call fcn.00406b02
movzx ecx, word [0x434000]
mov edx, 0x434002
push 0x22
pop esi
push 0x20
pop ebx
cmp cx, si
mov dword [0x428d14], 0x400000
mov eax, esi
mov dword [esp + 0x18], esi
cmovne eax, ebx
movzx eax, ax
push eax
mov eax, 0x434000
cmove eax, edx
push eax
call fcn.004065de
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
mov dword [esp + 0x1c], ecx
movzx eax, word [ecx]
test ax, ax
je 0x403987
mov esi, eax
movzx eax, si
cmp si, bx
jne 0x4038c5
add ecx, 2
movzx eax, word [ecx]
cmp ax, bx
je 0x4038ba
movzx esi, ax
movzx edx, ax
cmp ax, word [esp + 0x18]
jne 0x4038db
movzx edx, word [ecx + 2]
push 0x22
pop eax
mov ebx, eax
cmp si, word [esp + 0x18]
lea eax, [ecx + 2]
cmovne eax, ecx
cmp dx, 0x2f
jne 0x403947
push 0x53
add eax, 2
pop ecx
push 0x20
pop edx
cmp word [eax], cx
jne 0x403912
movzx ecx, word [eax + 2]
cmp cx, dx
je 0x403908
test cx, cx
jne 0x403912
mov dword [0x429e00], 1
cmp dword [eax], 0x43004e
jne 0x403936
cmp dword [eax + 4], 0x430052
jne 0x403936
movzx ecx, word [eax + 8]
cmp cx, dx
je 0x403931
test cx, cx
jne 0x403936
or dword [esp + 0x10], 4
cmp dword [eax - 4], 0x2f0020
jne 0x403947
cmp dword [eax], 0x3d0044
je 0x403973
push ebx
push eax
call fcn.004065de
mov ecx, eax
push 0x22
pop ebx
movzx eax, word [ecx]
mov edx, eax
cmp ax, bx
jne 0x403963
add ecx, 2
movzx edx, word [ecx]
movzx esi, dx
test dx, dx
je 0x403987
push 0x20
pop ebx
jmp 0x4038b2
xor ecx, ecx
mov word [eax - 4], cx
add eax, 4
push eax
push 0x434800
call fcn.00406b02
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, 0x436800
push ebx
push 0x400
call esi
call fcn.00403c7b
test eax, eax
jne 0x4039f9
push 0x3fb
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Temp
push ebx
call sub.KERNEL32.dll_lstrcatW
call fcn.00403c7b
test eax, eax
jne 0x4039f9
push ebx
push 0x3fc
call esi
push 0x4085d8
push ebx
call sub.KERNEL32.dll_lstrcatW
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
push str.TEMP
call esi
push ebx
push 0x4085ec
call esi
call fcn.00403c7b
test eax, eax
je 0x403a8a
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x436000
call ebx
push dword [esp + 0x10]
call fcn.004033c8
mov edi, eax
test edi, edi
jne 0x403a8a
cmp dword [0x429d24], ebp
je 0x403a7c
push eax
push 0x434000
call fcn.004065de
mov esi, eax
mov eax, 0x434000
jmp 0x403a45
cmp dword [esi], 0x5f0020
jne 0x403a42
cmp dword [esi + 4], 0x3d003f
je 0x403a49
sub esi, 2
cmp esi, eax
jae 0x403a31
mov edi, str.Error_launching_installer
cmp esi, eax
jb 0x403ab2
xor eax, eax
mov word [esi], ax
add esi, 8
push esi
call fcn.00406620
test eax, eax
je 0x403a8a
push esi
push 0x434800
call fcn.00406b02
push esi
push 0x435000
call fcn.00406b02
xor edi, edi
or dword [0x429e0c], 0xffffffff
call fcn.00405a14
mov ebp, eax
xor ebx, ebx
call fcn.004036ad
call dword [sym.imp.ole32.dll_OleUninitialize]
test edi, edi
je 0x403be2
push 0x200010
push edi
call fcn.00406a90
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004064e4
push str.nsu
push 0x436800
mov esi, eax
call sub.KERNEL32.dll_lstrcatW
test esi, esi
je 0x403adb
push 0x408600
push 0x436800
call sub.KERNEL32.dll_lstrcatW
push 0x408604
push 0x436800
call sub.KERNEL32.dll_lstrcatW
push 0x435800
push 0x436800
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403a8a
push 0x436800
test esi, esi
je 0x403b0e
call fcn.00405e14
jmp 0x403b13
call fcn.00405df4
push 0x436800
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor eax, eax
cmp word [0x434800], ax
jne 0x403b38
push 0x435800
push 0x434800
call fcn.00406b02
push dword [esp + 0x1c]
push section..ndata
call fcn.00406b02
push 0x1a
mov dword [0x42a800], 0x41
xor ebp, ebp
pop esi
mov eax, dword [0x429d30]
push dword [eax + 0x120]
push 0x4209e0
call fcn.00405e90
push 0x4209e0
call ebx
test edi, edi
je 0x403bc2
push 1
push 0x4209e0
push 0x437800
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x403bc2
push ebp
push 0x4209e0
call fcn.00406225
mov eax, dword [0x429d30]
push dword [eax + 0x124]
push 0x4209e0
call fcn.00405e90
push 0x4209e0
call fcn.004066be
test eax, eax
je 0x403bc2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebp
inc word [0x42a800]
sub esi, 1
jne 0x403b55
xor ebx, ebx
push ebx
push 0x436800
call fcn.00406225
mov ebp, ebx
jmp 0x403a8c
cmp dword [0x429df4], 0
je 0x403c67
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 0x403c37
lea eax, [esp + 0x24]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 1
push eax
push ebx
push dword [esp + 0x28]
mov dword [esp + 0x44], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 4
call fcn.004068ce
mov esi, 0x80040002
test eax, eax
je 0x403c53
push esi
push 0x25
push ebx
push ebx
push ebx
call eax
test eax, eax
je 0x403c60
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403c67
push 9
call fcn.00401533
cmp dword [0x429e0c], 0xffffffff
cmovne ebp, dword [0x429e0c]
push ebp
jmp 0x403aac