Function at 0x40414f
Capabilities:
Accept command line arguments
Check os version
Copy file
Delete file
Get common file path
Get file system object information
Set current directory
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1ac
mov dword [esp], 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x404190
mov dword [esp], 0
call fcn.00408063
test eax, eax
push edx
je 0x404190
mov dword [esp], 0xc00
call eax
push eax
mov dword [esp], str.UXTHEME
call fcn.00407fea
push ebx
mov dword [esp], str.USERENV
call fcn.00407fea
push esi
mov dword [esp], str.SETUPAPI
call fcn.00407fea
push edi
mov dword [esp], 0xd
call fcn.00408063
push eax
mov dword [esp], 0xb
call fcn.00408063
push edx
mov dword [0x4369a0], eax
call dword [sym.imp.COMCTL32.DLL_InitCommonControls]
mov dword [esp], 0
call dword [sym.imp.ole32.dll_OleInitialize]
mov dword [0x436918], eax
push ecx
lea eax, [ebp - 0x178]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x160
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x40b2c2
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
sub esp, 0x14
mov dword [esp + 4], str.NSIS_Error
mov dword [esp], 0x4369c0
call fcn.00407a92
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [esp], 0x43f000
mov dword [esp + 4], eax
call fcn.00407a92
push esi
push esi
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4369a8], eax
movsx eax, byte [0x43f000]
mov edx, 0x43f001
push edi
cmp al, 0x22
je 0x40427c
mov edx, 0x43f000
mov eax, 0x20
mov dword [esp], edx
mov dword [esp + 4], eax
xor ebx, ebx
call fcn.00407680
push edx
push edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CharNextA]
push ecx
mov dword [ebp - 0x18c], eax
cmp byte [eax], 0
je 0x40433e
mov cl, byte [eax]
cmp cl, 0x20
jne 0x4042af
inc eax
jmp 0x4042a5
cmp cl, 0x22
mov edx, 0x20
jne 0x4042bf
inc eax
mov edx, 0x22
cmp byte [eax], 0x2f
jne 0x404321
cmp byte [eax + 1], 0x53
lea edi, [eax + 1]
jne 0x4042de
mov cl, byte [eax + 2]
mov esi, ebx
or esi, 2
or ecx, 0x20
cmp cl, 0x20
cmove ebx, esi
cmp dword [eax + 1], 0x4352434e
jne 0x4042f8
mov cl, byte [eax + 5]
mov esi, ebx
or esi, 4
or ecx, 0x20
cmp cl, 0x20
cmove ebx, esi
cmp dword [eax - 1], 0x3d442f20
jne 0x40431f
mov dword [eax - 1], 0
add eax, 3
mov dword [esp], 0x43f400
mov dword [esp + 4], eax
call fcn.00407a92
push edi
push edi
jmp 0x40433e
mov eax, edi
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00407680
xor edx, edx
push esi
push esi
cmp byte [eax], 0x22
sete dl
add eax, edx
jmp 0x40429c
mov dword [esp + 4], 0x440400
mov dword [esp], 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ecx
push ecx
call fcn.004040b4
test eax, eax
je 0x404385
mov dword [esp], 0x440000
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call edi
push eax
mov dword [esp], ebx
xor ebx, ebx
call fcn.00403d9a
test eax, eax
push edx
mov esi, eax
jne 0x4045f5
jmp 0x4043c5
mov dword [esp + 4], 0x3fb
mov dword [esp], 0x440400
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
mov dword [esp + 4], str.Temp
mov dword [esp], 0x440400
call fcn.00407ac4
push edi
push edi
call fcn.004040b4
test eax, eax
jne 0x40435e
mov esi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
jmp 0x4045f3
cmp dword [0x436988], 0
je 0x4045e0
mov dword [esp + 4], 0
mov dword [esp], 0x43f000
call fcn.00407680
push ecx
push ecx
cmp eax, 0x43f000
jb 0x404440
cmp dword [eax], 0x3d3f5f20
je 0x4043fa
dec eax
jmp 0x4043e8
lea ebx, [eax + 4]
mov byte [eax], 0
mov dword [esp], ebx
call fcn.00407f37
test eax, eax
push edx
jne 0x404417
mov esi, str.Error_launching_installer
jmp 0x4045f3
mov dword [esp + 4], ebx
mov dword [esp], 0x43f400
call fcn.00407a92
push edi
push edi
mov dword [esp + 4], ebx
mov dword [esp], 0x43f800
call fcn.00407a92
push eax
push eax
jmp 0x4045e0
call fcn.004080b5
mov dword [esp + 4], str.nsu
mov ebx, eax
mov dword [esp], 0x440400
call fcn.00407ac4
test ebx, ebx
push esi
push esi
je 0x404477
mov dword [esp + 4], 0x40b2d9
mov dword [esp], 0x440400
call fcn.00407ac4
push ecx
push ecx
mov dword [esp + 4], str..tmp
mov dword [esp], 0x440400
call fcn.00407ac4
push eax
push eax
mov dword [esp + 4], 0x43fc00
mov dword [esp], 0x440400
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
push edx
push edx
je 0x40440d
test ebx, ebx
mov dword [esp], 0x440400
je 0x4044be
call fcn.0040748c
jmp 0x4044c3
call fcn.00407527
push eax
mov dword [esp], 0x440400
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [0x43f400], 0
push eax
jne 0x4044f1
mov dword [esp + 4], 0x43fc00
mov dword [esp], 0x43f400
call fcn.00407a92
push eax
push eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], section..ndata
mov ebx, 0x1a
mov esi, str.Error_launching_installer
mov dword [esp + 4], eax
call fcn.00407a92
push eax
push eax
mov word [0x43a400], 0x41
mov eax, dword [0x436920]
mov eax, dword [eax + 0x120]
mov dword [esp], 0x431860
mov dword [esp + 4], eax
call fcn.00407be2
push ecx
push ecx
mov dword [esp], 0x431860
call edi
test esi, esi
push eax
je 0x4045bb
mov dword [esp + 8], 1
mov dword [esp + 4], 0x431860
mov dword [esp], 0x440c00
call dword [sym.imp.KERNEL32.dll_CopyFileA]
sub esp, 0xc
test eax, eax
je 0x4045bb
mov dword [esp + 4], 0
mov dword [esp], 0x431860
call fcn.004080db
push eax
push eax
mov eax, dword [0x436920]
mov eax, dword [eax + 0x124]
mov dword [esp], 0x431860
mov dword [esp + 4], eax
call fcn.00407be2
push eax
push eax
mov dword [esp], 0x431860
call fcn.00407555
test eax, eax
push edx
je 0x4045bb
mov dword [esp], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
inc byte [0x43a400]
dec ebx
jne 0x40451c
mov dword [esp + 4], 0
mov dword [esp], 0x440400
call fcn.004080db
push edi
push edi
jmp 0x4045f3
mov dword [0x43690c], 0xffffffff
call fcn.00405ed9
mov ebx, eax
jmp 0x4045f5
xor ebx, ebx
call fcn.0040410e
call dword [sym.imp.ole32.dll_OleUninitialize]
test esi, esi
je 0x404622
mov dword [esp + 4], 0x200010
mov dword [esp], esi
call fcn.00407612
push ebx
push ebx
mov dword [esp], 2
jmp 0x40478a
cmp dword [0x4368f4], 0
je 0x40477c
mov dword [esp], 5
call fcn.00408063
push esi
mov edi, eax
mov dword [esp], 6
call fcn.00408063
push edx
mov esi, eax
mov dword [esp], 7
call fcn.00408063
test edi, edi
mov dword [ebp - 0x18c], eax
push ecx
setne dl
test esi, esi
setne al
test dl, al
je 0x404711
cmp dword [ebp - 0x18c], 0
je 0x404711
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x17c]
mov dword [esp + 4], 0x28
mov dword [esp], eax
mov dword [esp + 8], edx
call edi
sub esp, 0xc
test eax, eax
je 0x404711
lea eax, [ebp - 0x174]
mov dword [esp + 4], str.SeShutdownPrivilege
mov dword [esp], 0
lea edi, [ebp - 0x178]
mov dword [esp + 8], eax
call esi
mov eax, dword [ebp - 0x17c]
sub esp, 0xc
mov dword [ebp - 0x178], 1
mov dword [ebp - 0x16c], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [ebp - 0x18c]
sub esp, 0x18
mov dword [esp], 8
call fcn.00408063
test eax, eax
push ecx
jne 0x40473f
mov dword [esp + 4], 0x80040002
mov dword [esp], 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
push edx
push edx
je 0x40476f
jmp 0x40477c
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 0x404722
mov dword [esp], 9
call fcn.004038e9
push eax
mov eax, dword [0x43690c]
cmp eax, 0xffffffff
cmovne ebx, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]