Function at 0x4035d8
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, 0x2d4
push ebx
push esi
push edi
push 0x20
pop edi
xor ebx, ebx
push 0x8001
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xbfffffff
cmp ax, 6
mov dword [0x42a26c], eax
je 0x403628
push ebx
call fcn.00406931
cmp eax, ebx
je 0x403628
push 0xc00
call eax
mov esi, str.UXTHEME
push esi
call fcn.004068c1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x40362d
push 0xb
call fcn.00406931
push 9
call fcn.00406931
push 7
mov dword [0x42a264], eax
call fcn.00406931
cmp eax, ebx
je 0x403670
push 0x1e
call eax
test eax, eax
je 0x403670
or byte [0x42a26f], 0x40
push ebp
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov dword [0x42a338], eax
push ebx
lea eax, [esp + 0x34]
push 0x2b4
push eax
push ebx
push 0x421708
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push str.NSIS_Error
push 0x429260
call fcn.0040653c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebp, 0x435000
push eax
push ebp
call fcn.0040653c
cmp word [0x435000], 0x22
mov dword [0x42a260], 0x400000
mov eax, ebp
jne 0x4036d9
push 0x22
mov eax, 0x435002
pop edi
push edi
push eax
call fcn.00405e3e
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
mov dword [esp + 0x18], ecx
mov ax, word [ecx]
cmp ax, bx
je 0x40380a
push 0x20
pop ebx
cmp ax, bx
jne 0x403708
inc ecx
inc ecx
cmp word [ecx], bx
je 0x403701
cmp word [ecx], 0x22
jne 0x403713
inc ecx
push 0x22
inc ecx
pop ebx
cmp word [ecx], 0x2f
jne 0x4037d6
inc ecx
inc ecx
cmp word [ecx], 0x53
jne 0x40373e
mov ax, word [ecx + 2]
cmp ax, 0x20
je 0x403734
test ax, ax
jne 0x40373e
mov dword [0x42a320], 1
movzx eax, word [0x40a37e]
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov edi, eax
xor esi, esi
movzx eax, word [0x40a37c]
cdq
movzx edx, word [str.NCRC]
or edi, eax
movzx eax, word [0x40a37a]
shl eax, 0x10
or eax, edx
cdq
or esi, eax
mov eax, dword [ecx]
or edi, edx
cmp eax, esi
jne 0x403794
mov eax, dword [ecx + 4]
cmp eax, edi
jne 0x403794
mov ax, word [ecx + 8]
cmp ax, 0x20
je 0x40378f
test ax, ax
jne 0x403794
or dword [esp + 0x1c], 4
movzx eax, word [0x40a372]
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov edi, eax
xor esi, esi
movzx eax, word [0x40a370]
cdq
movzx edx, word [0x40a36c]
or edi, eax
movzx eax, word [0x40a36e]
shl eax, 0x10
or eax, edx
cdq
or esi, eax
mov eax, dword [ecx - 4]
or edi, edx
cmp eax, esi
jne 0x4037d6
mov eax, dword [ecx]
cmp eax, edi
je 0x4037f5
push ebx
push ecx
call fcn.00405e3e
mov ecx, eax
cmp word [ecx], 0x22
jne 0x4037e7
inc ecx
inc ecx
mov ax, word [ecx]
test ax, ax
jne 0x4036f9
jmp 0x403808
and word [ecx - 4], 0
add ecx, 4
push ecx
push 0x435800
call fcn.0040653c
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x437800
push esi
push 0x400
call edi
call fcn.004035a7
test eax, eax
jne 0x40387c
push 0x3fb
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Temp
push esi
call sub.KERNEL32.dll_lstrcatW
call fcn.004035a7
test eax, eax
jne 0x40387c
push esi
push 0x3fc
call edi
push 0x40a358
push esi
call sub.KERNEL32.dll_lstrcatW
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
push str.TEMP
call edi
push esi
push 0x40a344
call edi
call fcn.004035a7
test eax, eax
je 0x403947
push 0x437000
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x1c]
call fcn.00403068
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x403947
cmp dword [0x42a280], ebx
je 0x403937
push ebx
push ebp
call fcn.00405e3e
mov edi, eax
cmp edi, ebp
jb 0x403901
movzx eax, word [0x40a33e]
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov ebx, eax
movzx eax, word [0x40a33c]
movzx ecx, word [0x40a338]
cdq
or ebx, eax
movzx eax, word [0x40a33a]
shl eax, 0x10
or eax, ecx
xor ecx, ecx
cdq
or ecx, eax
mov eax, ebx
or eax, edx
mov edx, dword [edi]
cmp edx, ecx
jne 0x4038f9
mov edx, dword [edi + 4]
cmp edx, eax
je 0x4038ff
dec edi
dec edi
cmp edi, ebp
jae 0x4038ec
xor ebx, ebx
cmp edi, ebp
mov dword [esp + 0x10], str.Error_launching_installer
jb 0x403973
mov word [edi], bx
add edi, 8
push edi
call fcn.00405f19
test eax, eax
je 0x403947
push edi
push 0x435800
call fcn.0040653c
push edi
push 0x436000
call fcn.0040653c
mov dword [esp + 0x10], ebx
or dword [0x42a32c], 0xffffffff
call fcn.00403c0b
mov dword [esp + 0x14], eax
call fcn.00403b19
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [esp + 0x10], ebx
pop ebp
je 0x403a7d
push 0x200010
push dword [esp + 0x10]
call fcn.00405ba2
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00405b0d
push 0x40a32c
push esi
mov edi, eax
call sub.KERNEL32.dll_lstrcatW
cmp edi, ebx
je 0x403994
push 0x40a328
push esi
call sub.KERNEL32.dll_lstrcatW
push str..tmp
push esi
call sub.KERNEL32.dll_lstrcatW
mov ebp, 0x436800
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403947
cmp edi, ebx
push esi
je 0x4039bc
call fcn.00405a73
jmp 0x4039c1
call fcn.00405af0
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp word [0x435800], bx
jne 0x4039dc
push ebp
push 0x435800
call fcn.0040653c
push dword [esp + 0x18]
push section..ndata
call fcn.0040653c
movzx eax, word [0x40a316]
movzx ecx, word [0x40a314]
shl eax, 0x10
or eax, ecx
push 0x1a
mov dword [0x42b800], eax
pop ebp
mov edi, 0x420f08
mov eax, dword [0x42a274]
push dword [eax + 0x120]
push edi
call fcn.00406579
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x10], ebx
je 0x403a67
push 1
push edi
push 0x438800
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x403a67
push ebx
push edi
call fcn.00406302
mov eax, dword [0x42a274]
push dword [eax + 0x124]
push edi
call fcn.00406579
push edi
call fcn.00405b25
cmp eax, ebx
je 0x403a67
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebx
inc word [0x42b800]
dec ebp
jne 0x403a0a
push ebx
push esi
call fcn.00406302
jmp 0x403947
cmp dword [0x42a314], ebx
je 0x403b01
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 0x403ad1
lea eax, [esp + 0x20]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push ebx
push ebx
lea eax, [esp + 0x24]
push ebx
push eax
push ebx
push dword [esp + 0x28]
mov dword [esp + 0x34], 1
mov dword [esp + 0x40], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 4
call fcn.00406931
cmp eax, ebx
mov esi, 0x80040002
je 0x403aed
push esi
push 0x25
push ebx
push ebx
push ebx
call eax
test eax, eax
je 0x403afa
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403b01
push 9
call fcn.0040140b
mov eax, dword [0x42a32c]
cmp eax, 0xffffffff
je 0x403b0f
mov dword [esp + 0x10], eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_ExitProcess]