Function at 0x404c6c
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, 0x2fc
mov dword [esp], 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xbfffffff
mov dword [0x43e240], eax
cmp ax, 6
je 0x404cb7
mov dword [esp], 0
call fcn.00409b3f
push ebx
test eax, eax
je 0x404cb7
mov dword [esp], 0xc00
call eax
push ecx
mov ebx, str.UXTHEME
mov dword [esp], ebx
call fcn.00409aaf
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax + 1]
push edx
cmp byte [ebx], 0
jne 0x404cbc
mov dword [esp], 0xb
call fcn.00409b3f
push ebx
mov dword [esp], 9
call fcn.00409b3f
push esi
mov dword [0x43e244], eax
mov dword [esp], 7
call fcn.00409b3f
push edi
test eax, eax
je 0x404d20
mov dword [esp], 0x1e
call eax
push ecx
test eax, eax
je 0x404d20
or dword [0x43e240], 0x40000000
call dword [sym.imp.COMCTL32.DLL_InitCommonControls]
mov dword [esp], 0
call dword [sym.imp.ole32.dll_OleInitialize]
push edi
mov dword [section..bss], eax
lea eax, [ebp - 0x2cc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x2b4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x40d17a
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
sub esp, 0x14
mov dword [esp + 4], str.NSIS_Error
mov dword [esp], 0x43e260
call fcn.00408c6f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, dword [0x40da94]
add ecx, 0x50000
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [ebp - 0x2dc], ecx
call fcn.00408c6f
push eax
push eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x43e248], eax
mov eax, dword [0x40da94]
push edx
movzx eax, word [eax + 0x50000]
cmp ax, 0x22
jne 0x404dda
mov ecx, dword [0x40da94]
lea edx, [ecx + 0x50002]
jmp 0x404de5
mov edx, dword [ebp - 0x2dc]
mov eax, 0x20
mov dword [esp], edx
xor edi, edi
mov dword [esp + 4], eax
call fcn.004084fd
push ebx
push ebx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x2e0], eax
push esi
cmp word [eax], 0
je 0x404ec6
movzx edx, word [eax]
cmp dx, 0x20
jne 0x404e1d
add eax, 2
jmp 0x404e0f
cmp dx, 0x22
jne 0x404e28
add eax, 2
jmp 0x404e2d
mov edx, 0x20
cmp word [eax], 0x2f
jne 0x404ea6
cmp word [eax + 2], 0x53
lea ebx, [eax + 2]
jne 0x404e4f
test word [eax + 4], 0xffdf
jne 0x404e4f
mov dword [0x416080], 1
cmp dword [eax + 6], 0x430052
jne 0x404e6f
cmp dword [eax + 2], 0x43004e
jne 0x404e6f
test word [eax + 0xa], 0xffdf
mov ecx, 4
cmove edi, ecx
cmp dword [eax + 2], 0x3d0044
jne 0x404ea4
cmp dword [eax - 2], 0x2f0020
jne 0x404ea4
mov word [eax - 2], 0
add eax, 6
mov dword [esp + 4], eax
mov eax, dword [0x40da94]
add eax, 0x54000
mov dword [esp], eax
call fcn.00408c6f
push ecx
push ecx
jmp 0x404ec6
mov eax, ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004084fd
push edx
push edx
cmp word [eax], 0x22
jne 0x404e05
add eax, 2
jmp 0x404e05
mov eax, dword [0x40da94]
mov dword [esp], 0x2000
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [eax + 0x64000]
mov dword [esp + 4], ebx
call esi
push eax
push eax
call fcn.00404bac
test eax, eax
je 0x404f1d
mov eax, dword [0x40da94]
add eax, 0x60000
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edx
mov dword [esp], edi
xor edi, edi
call fcn.004047e6
mov esi, eax
push ecx
test eax, eax
jne 0x405205
jmp 0x404fa7
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 sub.KERNEL32.dll_lstrcatW
push eax
push eax
call fcn.00404bac
test eax, eax
jne 0x404eef
mov dword [esp + 4], ebx
mov dword [esp], 0x1ffc
call esi
push esi
push esi
mov dword [esp + 4], 0x40d19e
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcatW
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], str.TEMP
call esi
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x40d1b0
call esi
push eax
push eax
call fcn.00404bac
test eax, eax
jne 0x404eef
mov esi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
jmp 0x405203
cmp dword [0x42a124], 0
je 0x4051e3
mov eax, dword [ebp - 0x2dc]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004084fd
push ecx
push ecx
cmp dword [ebp - 0x2dc], eax
ja 0x40503e
cmp dword [eax + 4], 0x3d003f
je 0x404fe2
sub eax, 2
jmp 0x404fcc
cmp dword [eax], 0x5f0020
jne 0x404fdd
lea ebx, [eax + 8]
mov word [eax], 0
mov dword [esp], ebx
call fcn.00409713
push edx
test eax, eax
jne 0x405009
mov esi, str.Error_launching_installer
jmp 0x405203
mov eax, dword [0x40da94]
mov dword [esp + 4], ebx
add eax, 0x54000
mov dword [esp], eax
call fcn.00408c6f
push eax
push eax
mov eax, dword [0x40da94]
add eax, 0x58000
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00408c6f
push eax
push eax
jmp 0x4051e3
call fcn.00409b8b
mov dword [esp + 4], str.nsu
mov dword [esp], ebx
mov esi, eax
call sub.KERNEL32.dll_lstrcatW
push eax
push eax
test esi, esi
je 0x40506d
mov dword [esp + 4], 0x40d1c2
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcatW
push edi
push edi
mov dword [esp + 4], str..tmp
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcatW
mov eax, dword [0x40da94]
push edx
push edx
lea edi, [eax + 0x5c000]
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push ecx
push ecx
test eax, eax
je 0x404fff
mov dword [esp], ebx
test esi, esi
je 0x4050af
call fcn.004082fc
jmp 0x4050b4
call fcn.00408390
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
mov eax, dword [0x40da94]
cmp word [eax + 0x54000], 0
jne 0x4050e1
add eax, 0x54000
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00408c6f
push eax
push eax
mov eax, dword [ebp - 0x2e0]
mov edi, 0x1a
mov esi, str.Error_launching_installer
mov dword [esp + 4], eax
mov eax, dword [0x40da94]
mov dword [esp], eax
call fcn.00408c6f
push eax
push eax
mov eax, dword [0x40da94]
mov dword [eax + 0x4000], 0x41
mov eax, dword [0x42a130]
mov eax, dword [eax + 0x120]
mov dword [esp], 0x446260
mov dword [esp + 4], eax
call fcn.00408e14
push ecx
push ecx
mov dword [esp], 0x446260
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
test esi, esi
je 0x4051bc
mov eax, dword [0x40da94]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x446260
add eax, 0x6c000
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
sub esp, 0xc
test eax, eax
je 0x4051bc
mov dword [esp + 4], 0
mov dword [esp], 0x446260
call fcn.00409391
push eax
push eax
mov eax, dword [0x42a130]
mov eax, dword [eax + 0x124]
mov dword [esp], 0x446260
mov dword [esp + 4], eax
call fcn.00408e14
push eax
push eax
mov dword [esp], 0x446260
call fcn.004083be
push edx
test eax, eax
je 0x4051bc
mov dword [esp], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, dword [0x40da94]
inc word [eax + 0x4000]
dec edi
jne 0x405113
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00409391
push eax
push eax
jmp 0x405203
mov dword [0x41608c], 0xffffffff
call fcn.00406c92
mov dword [esp], 1
mov edi, eax
call fcn.004093d6
push eax
jmp 0x405205
xor edi, edi
call fcn.00404c07
call dword [sym.imp.ole32.dll_OleUninitialize]
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_ExitProcess]
je 0x405238
mov dword [esp], esi
mov dword [esp + 4], 0x200010
call fcn.00408491
push esi
push esi
mov dword [esp], 2
jmp 0x405358
cmp dword [0x416074], 0
je 0x40534a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x2d0]
mov dword [esp + 4], 0x28
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
sub esp, 0xc
test eax, eax
je 0x4052df
lea eax, [ebp - 0x2c8]
mov dword [esp + 4], str.SeShutdownPrivilege
lea esi, [ebp - 0x2cc]
mov dword [esp + 8], eax
mov dword [esp], 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], 1
mov dword [ebp - 0x2c0], 2
sub esp, 0xc
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.00409b3f
push ecx
test eax, eax
jne 0x40530d
mov dword [esp + 4], 0x80040002
mov dword [esp], 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push edx
push edx
test eax, eax
je 0x40533d
jmp 0x40534a
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 0x4052f0
mov dword [esp], 9
call fcn.00404246
push eax
mov eax, dword [0x41608c]
cmp eax, 0xffffffff
cmovne edi, eax
mov dword [esp], edi
call ebx
nop
nop