Function at 0x40441a
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
push edi
push esi
push ebx
sub esp, 0x30c
mov dword [esp], 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xbfffffff
cmp ax, 6
mov dword [0x469de0], eax
je 0x404465
mov dword [esp], 0
call fcn.00408f70
test eax, eax
push ebx
je 0x404465
mov dword [esp], 0xc00
call eax
push ecx
mov ebx, str.UXTHEME
cmp byte [ebx], 0
je 0x404488
mov dword [esp], ebx
call fcn.00408ee0
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax + 1]
push edx
jmp 0x40446a
mov dword [esp], 0xb
call fcn.00408f70
push ebx
mov dword [esp], 9
call fcn.00408f70
push esi
mov dword [0x469de4], eax
mov dword [esp], 7
call fcn.00408f70
test eax, eax
push edi
je 0x4044d0
mov dword [esp], 0x1e
call eax
test eax, eax
push ecx
je 0x4044d0
or dword [0x469de0], 0x40000000
call dword [sym.imp.COMCTL32.DLL_InitCommonControls]
mov dword [esp], 0
call dword [sym.imp.ole32.dll_OleInitialize]
mov dword [0x469d58], eax
lea eax, [ebp - 0x2cc]
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x2b4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x40c43a
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
sub esp, 0x14
mov dword [esp + 4], str.NSIS_Error
mov dword [esp], 0x469e00
call fcn.004083c8
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [0x40c914]
mov dword [esp + 4], eax
add edi, 0x50000
mov dword [esp], edi
mov dword [ebp - 0x2dc], edi
call fcn.004083c8
push eax
push eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x469dec], eax
mov eax, dword [0x40c914]
push edx
movzx eax, word [eax + 0x50000]
cmp ax, 0x22
jne 0x40458a
mov edx, dword [0x40c914]
add edx, 0x50002
jmp 0x404595
mov edx, dword [ebp - 0x2dc]
mov eax, 0x20
mov dword [esp], edx
mov dword [esp + 4], eax
xor edi, edi
call fcn.00407c52
push ebx
push ebx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [0x40c4be]
mov dword [ebp - 0x2e0], eax
movzx eax, word [0x40c4bc]
movzx edx, word [str.NCRC]
push esi
movzx esi, word [0x40c4c4]
shl ecx, 0x10
or ecx, eax
movzx eax, word [0x40c4ba]
shl esi, 0x10
shl eax, 0x10
or eax, edx
cdq
mov ebx, eax
movzx eax, word [0x40c4c6]
or ecx, edx
mov dword [ebp - 0x2e8], ecx
movzx ecx, word [0x40c4c8]
shl ecx, 0x10
or ecx, eax
movzx eax, word [str.__D]
or esi, eax
mov eax, esi
cdq
mov eax, dword [ebp - 0x2e0]
or ecx, edx
mov dword [ebp - 0x2ec], ecx
cmp word [eax], 0
je 0x4046e4
mov cx, word [eax]
cmp cx, 0x20
jne 0x404635
add eax, 2
jmp 0x404627
cmp cx, 0x22
mov edx, 0x20
jne 0x404648
add eax, 2
mov edx, 0x22
cmp word [eax], 0x2f
jne 0x4046c7
cmp word [eax + 2], 0x53
lea ecx, [eax + 2]
mov dword [ebp - 0x2e4], ecx
jne 0x404670
test word [eax + 4], 0xffdf
jne 0x404670
mov dword [0x469d40], 1
mov ecx, dword [ebp - 0x2e8]
cmp dword [eax + 6], ecx
jne 0x40468e
cmp dword [eax + 2], ebx
jne 0x40468e
test word [eax + 0xa], 0xffdf
mov ecx, 4
cmove edi, ecx
mov ecx, dword [ebp - 0x2ec]
cmp dword [eax + 2], ecx
jne 0x4046c1
cmp dword [eax - 2], esi
jne 0x4046c1
mov word [eax - 2], 0
add eax, 6
mov dword [esp + 4], eax
mov eax, dword [0x40c914]
add eax, 0x54000
mov dword [esp], eax
call fcn.004083c8
push ecx
push ecx
jmp 0x4046e4
mov eax, dword [ebp - 0x2e4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00407c52
push edx
push edx
lea edx, [eax + 2]
cmp word [eax], 0x22
cmove eax, edx
jmp 0x40461d
mov eax, dword [0x40c914]
mov dword [esp], 0x2000
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [eax + 0x64000]
mov dword [esp + 4], ebx
call esi
push ecx
push ecx
call fcn.00404378
test eax, eax
je 0x40473b
mov eax, dword [0x40c914]
add eax, 0x60000
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
mov dword [esp], edi
xor edi, edi
call fcn.00404054
test eax, eax
push edx
mov esi, eax
jne 0x404a76
jmp 0x4047c5
mov dword [esp + 4], 0x1ffb
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push eax
push eax
mov dword [esp + 4], str.Temp
mov dword [esp], ebx
call fcn.004083fa
push eax
push eax
call fcn.00404378
test eax, eax
jne 0x40470d
mov dword [esp + 4], ebx
mov dword [esp], 0x1ffc
call esi
push esi
push esi
mov dword [esp + 4], 0x40c45e
mov dword [esp], ebx
call fcn.004083fa
push eax
push eax
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [esp + 4], ebx
mov dword [esp], str.TEMP
call esi
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x40c470
call esi
push eax
push eax
call fcn.00404378
test eax, eax
jne 0x40470d
mov esi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
jmp 0x404a74
cmp dword [0x469dc8], 0
je 0x404a61
mov eax, dword [ebp - 0x2dc]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00407c52
movzx edx, word [0x40c4d2]
push ecx
push ecx
movzx ecx, word [0x40c4d0]
movzx edi, word [0x40c4ce]
shl edx, 0x10
or ecx, edx
movzx edx, word [str.___]
shl edi, 0x10
mov dword [ebp - 0x2e8], ecx
or edi, edx
mov ecx, edi
mov dword [ebp - 0x2e4], edi
mov edi, dword [ebp - 0x2e8]
sar ecx, 0x1f
or edi, ecx
mov edx, edi
cmp eax, dword [ebp - 0x2dc]
jb 0x40489b
cmp dword [eax + 4], edx
je 0x40483d
sub eax, 2
jmp 0x40482b
mov edi, dword [ebp - 0x2e4]
cmp dword [eax], edi
jne 0x404838
lea ebx, [eax + 8]
mov word [eax], 0
mov dword [esp], ebx
call fcn.00408b8f
test eax, eax
push edx
jne 0x404866
mov esi, str.Error_launching_installer
jmp 0x404a74
mov eax, dword [0x40c914]
mov dword [esp + 4], ebx
add eax, 0x54000
mov dword [esp], eax
call fcn.004083c8
mov eax, dword [0x40c914]
push edi
push edi
add eax, 0x58000
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004083c8
push eax
push eax
jmp 0x404a61
call fcn.00408fc2
mov dword [esp + 4], str.nsu
mov edi, eax
mov dword [esp], ebx
call fcn.004083fa
test edi, edi
push esi
push esi
je 0x4048ca
mov dword [esp + 4], 0x40c482
mov dword [esp], ebx
call fcn.004083fa
push ecx
push ecx
mov dword [esp + 4], str..tmp
mov dword [esp], ebx
call fcn.004083fa
push eax
push eax
mov eax, dword [0x40c914]
mov dword [esp], ebx
lea esi, [eax + 0x5c000]
mov dword [esp + 4], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
push edx
push edx
je 0x40485c
test edi, edi
mov dword [esp], ebx
je 0x40490c
call fcn.00407a44
jmp 0x404911
call fcn.00407adf
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
mov eax, dword [0x40c914]
cmp word [eax + 0x54000], 0
jne 0x40493e
add eax, 0x54000
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004083c8
push eax
push eax
mov eax, dword [ebp - 0x2e0]
mov esi, str.Error_launching_installer
mov dword [esp + 4], eax
mov eax, dword [0x40c914]
mov dword [esp], eax
call fcn.004083c8
push eax
push eax
movzx eax, word [0x40c4d8]
movzx edx, word [0x40c4d6]
mov dword [ebp - 0x2dc], 0x1a
shl eax, 0x10
or eax, edx
mov edx, dword [0x40c914]
mov dword [edx + 0x4000], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edi, [edx + 0x6c000]
mov dword [ebp - 0x2e0], eax
mov eax, dword [0x469d60]
mov eax, dword [eax + 0x120]
mov dword [esp], 0x43c140
mov dword [esp + 4], eax
call fcn.0040857c
push ecx
push ecx
mov dword [esp], 0x43c140
call dword [ebp - 0x2e0]
test esi, esi
push eax
je 0x404a35
mov dword [esp + 8], 1
mov dword [esp + 4], 0x43c140
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
sub esp, 0xc
test eax, eax
je 0x404a35
mov dword [esp + 4], 0
mov dword [esp], 0x43c140
call fcn.00408b12
push eax
push eax
mov eax, dword [0x469d60]
mov eax, dword [eax + 0x124]
mov dword [esp], 0x43c140
mov dword [esp + 4], eax
call fcn.0040857c
push eax
push eax
mov dword [esp], 0x43c140
call fcn.00407b0d
test eax, eax
push edx
je 0x404a35
mov dword [esp], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, dword [0x40c914]
inc word [eax + 0x4000]
dec dword [ebp - 0x2dc]
jne 0x404996
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00408b12
push edi
push edi
jmp 0x404a74
mov dword [0x469d4c], 0xffffffff
call fcn.0040640f
mov edi, eax
jmp 0x404a76
xor edi, edi
call fcn.004043d3
call dword [sym.imp.ole32.dll_OleUninitialize]
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_ExitProcess]
je 0x404aa9
mov dword [esp], esi
mov dword [esp + 4], 0x200010
call fcn.00407be4
push esi
push esi
mov dword [esp], 2
jmp 0x404bc9
cmp dword [0x469d34], 0
je 0x404bbb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x2d0]
mov dword [esp + 4], 0x28
mov dword [esp], eax
mov dword [esp + 8], edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
sub esp, 0xc
test eax, eax
je 0x404b50
lea eax, [ebp - 0x2c8]
mov dword [esp + 4], str.SeShutdownPrivilege
mov dword [esp], 0
lea esi, [ebp - 0x2cc]
mov dword [esp + 8], eax
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x2d0]
sub esp, 0xc
mov dword [ebp - 0x2cc], 1
mov dword [ebp - 0x2c0], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
sub esp, 0x18
mov dword [esp], 4
call fcn.00408f70
test eax, eax
push ecx
jne 0x404b7e
mov dword [esp + 4], 0x80040002
mov dword [esp], 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
push edx
push edx
je 0x404bae
jmp 0x404bbb
mov dword [esp + 0x10], 0x80040002
mov dword [esp + 0xc], 0x25
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call eax
sub esp, 0x14
test eax, eax
jne 0x404b61
mov dword [esp], 9
call fcn.00403bc5
push eax
mov eax, dword [0x469d4c]
cmp eax, 0xffffffff
cmovne edi, eax
mov dword [esp], edi
call ebx
nop