Function at 0x40352d
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:
push ebp
mov ebp, esp
sub esp, 0x3f4
push ebx
push esi
push edi
push 0x20
pop edi
xor ebx, ebx
push 0x8001
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
lea eax, [ebp - 0x140]
push eax
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x140], 0x11c
call esi
test eax, eax
jne 0x4035b7
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0x114
push eax
call esi
mov ax, word [ebp - 0x12c]
mov ecx, dword [ebp - 0x112]
sub ax, 0x53
add ecx, 0xffffffd0
neg ax
sbb eax, eax
mov byte [ebp - 0x26], 4
not eax
and eax, ecx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x13c], 0xa
jae 0x4035c8
and word [ebp - 0x132], 0
mov eax, dword [ebp - 0x134]
movzx ecx, byte [ebp - 0x138]
mov dword [0x434fb8], eax
xor eax, eax
mov ah, byte [ebp - 0x13c]
movzx eax, ax
or eax, ecx
xor ecx, ecx
mov ch, byte [ebp - 0x2c]
movzx ecx, cx
shl eax, 0x10
or eax, ecx
movzx ecx, byte [ebp - 0x26]
or eax, ecx
mov dword [0x434fbc], eax
cmp word [0x434fbe], 0x600
je 0x40361b
push ebx
call fcn.0040690a
cmp eax, ebx
je 0x40361b
push 0xc00
call eax
mov esi, str.UXTHEME
push esi
call fcn.0040689a
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x403620
push 0xb
call fcn.0040690a
push 9
call fcn.0040690a
push 7
mov dword [0x434f04], eax
call fcn.0040690a
cmp eax, ebx
je 0x403663
push 0x1e
call eax
test eax, eax
je 0x403663
or byte [0x434fbc], 0x80
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov dword [0x434fc0], eax
push ebx
lea eax, [ebp - 0x3f4]
push 0x2b4
push eax
push ebx
push 0x42b228
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push str.NSIS_Error
push 0x433f00
call fcn.0040653d
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov esi, 0x440000
push eax
push esi
call fcn.0040653d
push 0x22
mov eax, esi
pop esi
mov dword [0x434f00], 0x400000
cmp word [0x440000], si
jne 0x4036ce
mov edi, esi
mov eax, 0x440002
push edi
push eax
call fcn.00405e39
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
mov dword [ebp - 0xc], ecx
jmp 0x4037d8
push 0x20
pop edx
cmp ax, dx
jne 0x4036f5
inc ecx
inc ecx
cmp word [ecx], dx
je 0x4036ee
cmp word [ecx], si
mov dword [ebp - 8], edx
jne 0x403702
inc ecx
mov dword [ebp - 8], esi
inc ecx
cmp word [ecx], 0x2f
jne 0x4037c6
inc ecx
inc ecx
cmp word [ecx], 0x53
jne 0x40372c
mov ax, word [ecx + 2]
cmp ax, dx
je 0x403722
cmp ax, bx
jne 0x40372c
mov dword [0x434fa0], 1
movzx eax, word [0x40a2c2]
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov edi, eax
xor esi, esi
movzx eax, word [0x40a2c0]
cdq
movzx edx, word [str.NCRC]
or edi, eax
movzx eax, word [0x40a2be]
shl eax, 0x10
or eax, edx
cdq
or esi, eax
mov eax, dword [ecx]
or edi, edx
cmp eax, esi
jne 0x403781
mov eax, dword [ecx + 4]
cmp eax, edi
jne 0x403781
mov ax, word [ecx + 8]
cmp ax, 0x20
je 0x40377d
cmp ax, bx
jne 0x403781
or dword [ebp - 0x10], 4
movzx eax, word [0x40a2b6]
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov edi, eax
xor esi, esi
movzx eax, word [0x40a2b4]
cdq
movzx edx, word [str.__D]
or edi, eax
movzx eax, word [0x40a2b2]
shl eax, 0x10
or eax, edx
cdq
or esi, eax
mov eax, dword [ecx - 4]
or edi, edx
cmp eax, esi
jne 0x4037c3
mov eax, dword [ecx]
cmp eax, edi
je 0x4037e6
push 0x22
pop esi
push dword [ebp - 8]
push ecx
call fcn.00405e39
mov ecx, eax
cmp word [ecx], si
jne 0x4037d8
inc ecx
inc ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x4036e6
jmp 0x4037f8
mov word [ecx - 4], bx
add ecx, 4
push ecx
push 0x440800
call fcn.0040653d
mov edi, dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov esi, 0x442800
push esi
push 0x400
call edi
call fcn.004034fc
test eax, eax
jne 0x40386a
push 0x3fb
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
push str.Temp
push esi
call sub.KERNEL32.DLL_lstrcatW
call fcn.004034fc
test eax, eax
jne 0x40386a
push esi
push 0x3fc
call edi
push 0x40a29c
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 0x40a288
call edi
call fcn.004034fc
test eax, eax
je 0x403a59
push 0x442000
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push dword [ebp - 0x10]
call fcn.0040307d
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x403a59
cmp dword [0x434f1c], ebx
je 0x403935
push ebx
push 0x440000
call fcn.00405e39
mov edi, eax
cmp edi, 0x440000
jb 0x4038f9
movzx eax, word [0x40a282]
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov ebx, eax
movzx eax, word [0x40a280]
movzx ecx, word [0x40a27c]
cdq
or ebx, eax
movzx eax, word [0x40a27e]
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 0x4038ed
mov edx, dword [edi + 4]
cmp edx, eax
je 0x4038f7
dec edi
dec edi
cmp edi, 0x440000
jae 0x4038e0
xor ebx, ebx
cmp edi, 0x440000
mov dword [ebp - 4], str.Error_launching_installer
jb 0x403949
mov word [edi], bx
add edi, 8
push edi
call fcn.00405f14
test eax, eax
je 0x403a59
push edi
push 0x440800
call fcn.0040653d
push edi
push 0x441000
call fcn.0040653d
mov dword [ebp - 4], ebx
or dword [0x434fac], 0xffffffff
call fcn.00403bec
mov dword [ebp - 0x14], eax
jmp 0x403a59
call fcn.00405b08
push 0x40a270
push esi
mov ebx, eax
call sub.KERNEL32.DLL_lstrcatW
test ebx, ebx
je 0x40396a
push 0x40a26c
push esi
call sub.KERNEL32.DLL_lstrcatW
push str..tmp
push esi
call sub.KERNEL32.DLL_lstrcatW
mov edi, 0x441800
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x403a57
test ebx, ebx
push esi
je 0x403996
call fcn.00405a6e
jmp 0x40399b
call fcn.00405aeb
push esi
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
xor ebx, ebx
cmp word [0x440800], bx
jne 0x4039b8
push edi
push 0x440800
call fcn.0040653d
push dword [ebp - 0xc]
push section..ndata
call fcn.0040653d
movzx eax, word [0x40a25a]
movzx ecx, word [0x40a258]
shl eax, 0x10
or eax, ecx
mov dword [ebp - 8], 0x1a
mov dword [0x436800], eax
mov edi, 0x42aa28
mov eax, dword [0x434f10]
push dword [eax + 0x120]
push edi
call fcn.0040657a
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [ebp - 4], ebx
je 0x403a44
push 1
push edi
push 0x443800
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
je 0x403a44
push ebx
push edi
call fcn.004062fd
mov eax, dword [0x434f10]
push dword [eax + 0x124]
push edi
call fcn.0040657a
push edi
call fcn.00405b20
cmp eax, ebx
je 0x403a44
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 4], ebx
inc word [0x436800]
dec dword [ebp - 8]
jne 0x4039e9
push ebx
push esi
call fcn.004062fd
xor ebx, ebx
call fcn.00403b12
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [ebp - 4], ebx
je 0x403a7e
push 0x200010
push dword [ebp - 4]
call fcn.00405b9d
push 2
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
cmp dword [0x434f94], ebx
je 0x403afc
lea eax, [ebp - 0xc]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403acc
lea eax, [ebp - 0x20]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 4
call fcn.0040690a
cmp eax, ebx
mov esi, 0x80040002
je 0x403ae8
push esi
push 0x25
push ebx
push ebx
push ebx
call eax
test eax, eax
je 0x403af5
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403afc
push 9
call fcn.0040140b
mov eax, dword [0x434fac]
cmp eax, 0xffffffff
je 0x403b09
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]