Function at 0x403a0d
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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x198
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
add esp, 0xc
call sub.KERNEL32.dll_GetVersion
cmp ax, 6
je 0x403a4f
sub esp, 0xc
push 0
call fcn.004064e1
add esp, 0xc
test eax, eax
je 0x403a4f
sub esp, 0xc
push 0xc00
call eax
add esp, 0xc
mov ebx, str.UXTHEME
jmp 0x403a6c
sub esp, 0xc
push ebx
call fcn.00406479
push ebx
call fcn.004081d4
add esp, 0xc
lea ebx, [ebx + eax + 1]
cmp byte [ebx], 0
jne 0x403a56
sub esp, 0xc
push 9
call fcn.004064e1
push 7
call fcn.004064e1
add esp, 0xc
mov dword [0x424528], eax
call sub.COMCTL32.DLL_InitCommonControls
sub esp, 0xc
push 0
call sub.OLE32.dll_OleInitialize
mov dword [0x424478], eax
lea eax, [ebp - 0x170]
push 0
push 0x160
push eax
push 0
push 0x40a2a4
call sub.SHELL32.DLL_SHGetFileInfoA
sub esp, 0xc
push str.NSIS_Error
push 0x424558
call fcn.0040675e
add esp, 0x18
call sub.KERNEL32.dll_GetCommandLineA
mov edi, dword [0x40a474]
lea edx, [edi + 0x5000]
push esi
mov dword [ebp - 0x184], edx
push esi
push eax
push edx
call fcn.0040675e
push ebx
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x424548], eax
add esp, 0xc
cmp byte [edi + 0x5000], 0x22
je 0x403b10
mov edx, dword [ebp - 0x184]
mov al, 0x20
jmp 0x403b18
lea edx, [edi + 0x5001]
mov al, 0x22
movsx eax, al
push ecx
push ecx
push eax
push edx
call fcn.00406586
xor esi, esi
push edx
push eax
call fcn.0040835c
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x180], eax
jmp 0x403bc4
inc edx
mov cl, byte [edx]
cmp cl, 0x20
je 0x403b3d
mov al, 0x20
cmp cl, 0x22
jne 0x403b4f
inc edx
mov al, 0x22
cmp byte [edx], 0x2f
jne 0x403baa
inc edx
cmp byte [edx], 0x53
jne 0x403b70
mov cl, byte [edx + 1]
cmp cl, 0x20
je 0x403b66
test cl, cl
jne 0x403b70
mov dword [0x424458], 1
cmp dword [edx], 0x4352434e
jne 0x403b87
mov cl, byte [edx + 4]
cmp cl, 0x20
je 0x403b84
test cl, cl
jne 0x403b87
or esi, 4
cmp dword [edx - 2], 0x3d442f20
jne 0x403baa
mov byte [edx - 2], 0
push eax
push eax
lea eax, [edx + 2]
push eax
lea eax, [edi + 0x5400]
push eax
call fcn.0040675e
pop ebx
pop eax
jmp 0x403bcd
movsx eax, al
push ecx
push ecx
push eax
push edx
call fcn.00406586
mov edx, eax
pop ebx
pop eax
xor eax, eax
cmp byte [edx], 0x22
sete al
add edx, eax
cmp byte [edx], 0
jne 0x403b3e
lea ebx, [edi + 0x6400]
push ecx
push ecx
push ebx
push 0x400
call sub.KERNEL32.dll_GetTempPathA
pop eax
pop edx
call fcn.004039b7
test eax, eax
jne 0x403c5b
push ecx
push ecx
push 0x3fb
push ebx
call sub.KERNEL32.dll_GetWindowsDirectoryA
push str.Temp
push ebx
call fcn.004066da
pop eax
pop edx
call fcn.004039b7
test eax, eax
jne 0x403c5b
push ecx
push ecx
push ebx
push 0x3fc
call sub.KERNEL32.dll_GetTempPathA
push 0x40a2b6
push ebx
call fcn.004066da
push ebx
push str.TEMP
call sub.KERNEL32.dll_SetEnvironmentVariableA
push ebx
push 0x40a2bf
call sub.KERNEL32.dll_SetEnvironmentVariableA
pop eax
pop edx
call fcn.004039b7
test eax, eax
jne 0x403c5b
mov esi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [ebp - 0x18c], 0
jmp 0x403e9c
sub esp, 0xc
lea eax, [edi + 0x6000]
push eax
call sub.KERNEL32.dll_DeleteFileA
push esi
call fcn.0040358c
mov dword [ebp - 0x18c], 0
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x403e9c
cmp dword [0x424508], 0
je 0x403e87
push eax
push eax
push 0
push dword [ebp - 0x184]
call fcn.00406586
pop edx
pop ecx
jmp 0x403ca8
dec eax
cmp eax, dword [ebp - 0x184]
jb 0x403cf1
cmp dword [eax], 0x3d3f5f20
jne 0x403ca7
sub esp, 0xc
mov byte [eax], 0
lea ebx, [eax + 4]
push ebx
call fcn.00406c14
add esp, 0xc
test eax, eax
je 0x403d40
push eax
push eax
lea eax, [edi + 0x5400]
push ebx
push eax
call fcn.0040675e
lea eax, [edi + 0x5800]
push ebx
push eax
call fcn.0040675e
pop ebx
pop edi
jmp 0x403e87
call fcn.00406530
mov esi, eax
push ecx
push ecx
push str.nsu
push ebx
call fcn.004066da
test esi, esi
pop eax
pop edx
je 0x403d1a
push ecx
push ecx
push 0x40a325
push ebx
call fcn.004066da
pop eax
pop edx
push ecx
push ecx
push str..tmp
push ebx
call fcn.004066da
lea eax, [edi + 0x5c00]
mov dword [ebp - 0x194], eax
push eax
push ebx
call sub.KERNEL32.dll_lstrcmpiA
pop ecx
test eax, eax
pop edx
jne 0x403d54
mov esi, str.Error_launching_installer
mov dword [ebp - 0x18c], 0
jmp 0x403e9c
test esi, esi
je 0x403d63
sub esp, 0xc
push ebx
call fcn.00407395
jmp 0x403d6c
sub esp, 0xc
push ebx
call fcn.00407370
push ebx
call sub.KERNEL32.dll_SetCurrentDirectoryA
lea eax, [edi + 0x5400]
add esp, 0xc
cmp byte [edi + 0x5400], 0
jne 0x403d94
push edx
push edx
push dword [ebp - 0x194]
push eax
call fcn.0040675e
pop esi
pop eax
push ecx
push ecx
push dword [ebp - 0x180]
push edi
call fcn.0040675e
lea edx, [edi + 0x400]
xor esi, esi
mov dword [ebp - 0x190], edx
mov word [edi + 0x400], 0x41
pop eax
mov dword [ebp - 0x188], str.Error_launching_installer
pop edx
add edi, 0x6c00
push eax
push eax
mov eax, dword [0x424498]
push dword [eax + 0x120]
push 0x420560
call fcn.004067f8
push eax
push 0x420560
call sub.KERNEL32.dll_DeleteFileA
add esp, 0xc
cmp dword [ebp - 0x188], 0
je 0x403e57
push ecx
push 1
push 0x420560
push edi
call sub.KERNEL32.dll_CopyFileA
pop edx
test eax, eax
je 0x403e57
push eax
push eax
push 0
push 0x420560
call fcn.00406f6c
mov eax, dword [0x424498]
push dword [eax + 0x124]
push 0x420560
call fcn.004067f8
push eax
push 0x420560
call fcn.0040731f
add esp, 0xc
test eax, eax
je 0x403e57
sub esp, 0xc
push eax
call sub.KERNEL32.dll_CloseHandle
mov dword [ebp - 0x188], 0
add esp, 0xc
mov eax, dword [ebp - 0x190]
inc esi
inc byte [eax]
cmp esi, 0x1a
jne 0x403dcb
push ecx
push ecx
push 0
push ebx
call fcn.00406f6c
mov esi, dword [ebp - 0x188]
pop eax
pop edx
mov dword [ebp - 0x18c], 0
jmp 0x403e9c
mov dword [0x424464], 0xffffffff
call fcn.00405f89
mov dword [ebp - 0x18c], eax
call fcn.00403954
call sub.OLE32.dll_OleUninitialize
test esi, esi
je 0x403ebf
push eax
push eax
push 0x200010
push esi
call fcn.00407288
push eax
push 2
jmp 0x403f89
cmp dword [0x42444c], 0
je 0x403f70
call sub.KERNEL32.dll_GetCurrentProcess
lea edx, [ebp - 0x10]
push edi
push edx
push 0x28
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
pop esi
test eax, eax
je 0x403f25
lea eax, [ebp - 0x16c]
push ebx
push eax
push str.SeShutdownPrivilege
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
lea ebx, [ebp - 0x170]
mov dword [ebp - 0x170], 1
push ecx
push 0
push 0
push 0
push ebx
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x164], 2
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
pop eax
pop edx
sub esp, 0xc
push 4
call fcn.004064e1
add esp, 0xc
test eax, eax
je 0x403f4f
sub esp, 0xc
push 0x80040002
push 0x25
push 0
push 0
push 0
call eax
add esp, 0xc
test eax, eax
je 0x403f63
push edi
push edi
push 0x80040002
push 2
call sub.USER32.dll_ExitWindowsEx
pop ebx
test eax, eax
pop esi
jne 0x403f70
sub esp, 0xc
push 9
call fcn.0040319a
add esp, 0xc
mov eax, dword [0x424464]
cmp eax, 0xffffffff
je 0x403f80
mov dword [ebp - 0x18c], eax
sub esp, 0xc
push dword [ebp - 0x18c]
call sub.KERNEL32.dll_ExitProcess
nop
nop