Function at 0x40344d
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:
sub esp, 0x17c
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov byte [esp + 0x10], 0x20
push 0x8001
mov dword [esp + 0x18], ebp
mov edi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x403491
push ebx
call fcn.004061a4
test eax, eax
je 0x403491
push 0xc00
call eax
mov esi, str.UXTHEME
push esi
call fcn.00405bae
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc esi
add esi, eax
cmp byte [esi], bl
jne 0x403496
push 9
call fcn.004061a4
push 7
call fcn.004061a4
mov dword [0x7a2410], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0
push 0x160
mov dword [0x7a2c80], eax
lea eax, [esp + 0x34]
push eax
push 0
push 0x408462
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x7a2420
call fcn.004063b7
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov esi, 0x7a8000
push esi
call fcn.004063b7
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x7a8000], 0x22
mov dword [0x7a2414], eax
mov eax, esi
jne 0x40352c
mov byte [esp + 0x10], 0x22
mov eax, 0x7a8001
push dword [esp + 0x10]
push eax
call fcn.00405e9e
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esp + 0x18], eax
jmp 0x4035ad
push 0x20
pop edx
cmp cl, dl
jne 0x40354f
inc eax
cmp byte [eax], dl
je 0x40354a
cmp byte [eax], 0x22
mov byte [esp + 0x10], dl
jne 0x40355e
inc eax
mov byte [esp + 0x10], 0x22
cmp byte [eax], 0x2f
jne 0x40359d
inc eax
cmp byte [eax], 0x53
jne 0x40357e
mov cl, byte [eax + 1]
cmp cl, dl
je 0x403574
test cl, cl
jne 0x40357e
mov dword [0x7a2d00], 1
cmp dword [eax], 0x4352434e
jne 0x403594
mov cl, byte [eax + 4]
cmp cl, dl
je 0x403591
test cl, cl
jne 0x403594
or ebx, 4
cmp dword [eax - 2], 0x3d442f20
je 0x4035b5
push dword [esp + 0x10]
push eax
call fcn.00405e9e
cmp byte [eax], 0x22
jne 0x4035ad
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x403543
jmp 0x4035c7
mov byte [eax - 2], 0
add eax, 2
push eax
push 0x7a8400
call fcn.004063b7
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x7a9400
push 0x400
call esi
call fcn.004038c3
test eax, eax
jne 0x40364d
push 0x3fb
push 0x7a9400
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push 0x7a9400
call sub.KERNEL32.dll_lstrcatA
call fcn.004038c3
test eax, eax
jne 0x40364d
push 0x7a9400
push 0x3fc
call esi
push 0x408478
mov esi, 0x7a9400
push esi
call sub.KERNEL32.dll_lstrcatA
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str.TEMP
call esi
push 0x7a9400
push 0x408484
call esi
call fcn.004038c3
test eax, eax
je 0x403808
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x7a9000
call ebp
push ebx
call fcn.004030cd
mov edi, eax
test edi, edi
jne 0x403804
cmp dword [0x7a2c24], eax
je 0x4036c9
xor ebx, ebx
push ebx
push 0x7a8000
call fcn.00405e9e
mov esi, eax
mov eax, 0x7a8000
jmp 0x403691
cmp dword [esi], 0x3d3f5f20
je 0x403695
dec esi
cmp esi, eax
jae 0x403688
mov edi, str.Error_launching_installer
cmp esi, eax
jb 0x4036dc
mov byte [esi], bl
add esi, 4
push esi
call fcn.00405edb
test eax, eax
je 0x403800
push esi
push 0x7a8400
call fcn.004063b7
push esi
push 0x7a8800
call fcn.004063b7
mov edi, ebx
or dword [0x7a2d0c], 0xffffffff
call fcn.004054df
mov ebp, eax
jmp 0x403808
call fcn.00405de8
push str.nsu
push 0x7a9400
mov esi, eax
call sub.KERNEL32.dll_lstrcatA
test esi, esi
je 0x403705
push 0x408490
push 0x7a9400
call sub.KERNEL32.dll_lstrcatA
push str..tmp
push 0x7a9400
call sub.KERNEL32.dll_lstrcatA
push 0x7a8c00
push 0x7a9400
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403800
push 0x7a9400
test esi, esi
je 0x40373c
call fcn.004058c1
jmp 0x403741
call fcn.004058a1
push 0x7a9400
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [0x7a8400], bl
jne 0x403763
push 0x7a8c00
push 0x7a8400
call fcn.004063b7
push dword [esp + 0x18]
push section..ndata
call fcn.004063b7
push 0x41
pop eax
push 0x1a
mov word [0x7a3400], ax
pop esi
mov eax, dword [0x7a2c30]
push dword [eax + 0x120]
push 0x79ddf0
call fcn.0040593f
push 0x79ddf0
call ebp
test edi, edi
je 0x4037ea
push 1
push 0x79ddf0
push 0x7a9c00
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4037ea
push ebx
push 0x79ddf0
call fcn.00405c4d
mov eax, dword [0x7a2c30]
push dword [eax + 0x124]
push 0x79ddf0
call fcn.0040593f
push 0x79ddf0
call fcn.00405f76
test eax, eax
je 0x4037ea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
inc byte [0x7a3400]
sub esi, 1
jne 0x40377d
push ebx
push 0x7a9400
call fcn.00405c4d
mov ebp, ebx
jmp 0x403808
mov ebp, dword [esp + 0x14]
call fcn.0040340b
call dword [sym.imp.ole32.dll_OleUninitialize]
test edi, edi
je 0x40382a
push 0x200010
push edi
call fcn.00406345
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x7a2cf4], 0
je 0x4038af
lea eax, [esp + 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 2
xor ebx, ebx
pop edi
test eax, eax
je 0x403880
lea eax, [esp + 0x20]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 1
push eax
push ebx
push dword [esp + 0x2c]
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 4
call fcn.004061a4
mov esi, 0x80040002
test eax, eax
je 0x40389c
push esi
push 0x25
push ebx
push ebx
push ebx
call eax
test eax, eax
je 0x4038a8
push esi
push edi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4038af
push 9
call fcn.00401434
cmp dword [0x7a2d0c], 0xffffffff
cmovne ebp, dword [0x7a2d0c]
push ebp
jmp 0x403824