Function at 0x403a0b
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
lea ebp, [esp - 0x78]
sub esp, 0x3f0
push ebx
push esi
push edi
push 0x20
pop edi
xor ebx, ebx
push 0x8001
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x70], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [ebp + 0x74], ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0xc4]
push eax
mov dword [ebp - 0xb0], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp - 0xc4], 0x11c
call esi
test eax, eax
jne 0x403a93
lea eax, [ebp - 0xc4]
push eax
mov dword [ebp - 0xc4], 0x114
call esi
mov ecx, dword [ebp - 0x96]
xor eax, eax
add ecx, 0xffffffd0
cmp word [ebp - 0xb0], 0x53
mov byte [ebp + 0x56], 4
setne al
dec eax
and eax, ecx
mov word [ebp + 0x50], ax
cmp dword [ebp - 0xc0], 0xa
jae 0x403aa6
and dword [ebp - 0xb8], 0xffff
mov eax, dword [ebp - 0xb8]
movzx ecx, byte [ebp - 0xbc]
mov dword [0x434af8], eax
movzx ax, byte [ebp - 0xc0]
shl ax, 8
movzx eax, ax
or eax, ecx
movzx cx, byte [ebp + 0x50]
shl cx, 8
shl eax, 0x10
movzx ecx, cx
or eax, ecx
movzx ecx, byte [ebp + 0x56]
or eax, ecx
mov dword [0x434afc], eax
mov eax, 0x600
cmp word [0x434afe], ax
je 0x403b04
push ebx
call fcn.0040663c
cmp eax, ebx
je 0x403b04
push 0xc00
call eax
mov esi, str.UXTHEME
push esi
call fcn.004065cc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x403b09
push 0xb
call fcn.0040663c
push 9
call fcn.0040663c
push 7
mov dword [0x434a00], eax
call fcn.0040663c
cmp eax, ebx
je 0x403b4b
push 0x1e
call eax
test eax, eax
je 0x403b4b
or byte [0x434afc], 0x80
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push ebx
push 0x2b4
mov dword [0x434b00], eax
lea eax, [ebp - 0x378]
push eax
push ebx
push 0x4085c0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push str.NSIS_Error
push 0x433a00
call fcn.004064b7
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ebx, 0x43f000
push ebx
call fcn.004064b7
push 0x22
pop esi
mov dword [0x434a08], 0x400000
mov eax, ebx
cmp word [0x43f000], si
jne 0x403bb6
mov edi, esi
mov eax, 0x43f002
push edi
push eax
call fcn.00405ffb
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp + 0x6c], eax
jmp 0x403c4e
push 0x20
pop edx
cmp cx, dx
jne 0x403bdb
inc eax
inc eax
cmp word [eax], dx
je 0x403bd4
mov edi, edx
cmp word [eax], si
jne 0x403be6
inc eax
inc eax
mov edi, esi
cmp word [eax], 0x2f
jne 0x403c40
inc eax
inc eax
cmp word [eax], 0x53
jne 0x403c0c
movzx ecx, word [eax + 2]
cmp cx, dx
je 0x403c02
test cx, cx
jne 0x403c0c
mov dword [0x434ae0], 1
cmp dword [eax], 0x43004e
jne 0x403c2f
cmp dword [eax + 4], 0x430052
jne 0x403c2f
movzx ecx, word [eax + 8]
cmp cx, dx
je 0x403c2b
test cx, cx
jne 0x403c2f
or dword [ebp + 0x74], 4
cmp dword [eax - 4], 0x2f0020
jne 0x403c40
cmp dword [eax], 0x3d0044
je 0x403c5c
push edi
push eax
call fcn.00405ffb
cmp word [eax], si
jne 0x403c4e
inc eax
inc eax
movzx ecx, word [eax]
test cx, cx
jne 0x403bcc
jmp 0x403c70
xor ecx, ecx
mov word [eax - 4], cx
add eax, 4
push eax
push 0x43f800
call fcn.004064b7
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x441800
push esi
push 0x400
call edi
call fcn.004039b0
test eax, eax
jne 0x403ce2
push 0x3fb
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Temp
push esi
call sub.KERNEL32.dll_lstrcatW
call fcn.004039b0
test eax, eax
jne 0x403ce2
push esi
push 0x3fc
call edi
push 0x408594
push esi
call sub.KERNEL32.dll_lstrcatW
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
push str.TEMP
call edi
push esi
push 0x408580
call edi
call fcn.004039b0
test eax, eax
je 0x403e81
push 0x441000
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp + 0x74]
call fcn.00403688
xor edi, edi
mov dword [ebp + 0x70], eax
cmp eax, edi
jne 0x403e83
cmp dword [0x434a68], edi
je 0x403d69
push edi
push ebx
call fcn.00405ffb
mov edi, eax
jmp 0x403d28
cmp dword [edi], 0x5f0020
jne 0x403d26
cmp dword [edi + 4], 0x3d003f
je 0x403d2c
dec edi
dec edi
cmp edi, ebx
jae 0x403d15
mov dword [ebp + 0x70], str.Error_launching_installer
cmp edi, ebx
jb 0x403d7d
xor eax, eax
mov word [edi], ax
add edi, 8
push edi
call fcn.0040682a
test eax, eax
je 0x403e81
push edi
push 0x43f800
call fcn.004064b7
push edi
push 0x440000
call fcn.004064b7
and dword [ebp + 0x70], 0
xor edi, edi
or dword [0x434aec], 0xffffffff
call fcn.00405ba0
mov dword [ebp + 0x68], eax
jmp 0x403e83
call fcn.00406727
push 0x408574
push esi
mov dword [ebp + 0x74], eax
call sub.KERNEL32.dll_lstrcatW
cmp dword [ebp + 0x74], 0
je 0x403da1
push 0x408570
push esi
call sub.KERNEL32.dll_lstrcatW
push str..tmp
push esi
call sub.KERNEL32.dll_lstrcatW
mov edi, 0x440800
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403e81
xor ebx, ebx
push esi
cmp dword [ebp + 0x74], ebx
je 0x403dd0
call fcn.00405e79
jmp 0x403dd5
call fcn.00405efb
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp word [0x43f800], bx
jne 0x403df0
push edi
push 0x43f800
call fcn.004064b7
push dword [ebp + 0x6c]
push section..ndata
call fcn.004064b7
mov dword [0x435800], 0x41
mov dword [ebp + 0x74], 0x1a
mov edi, 0x42a538
mov eax, dword [0x434a0c]
push dword [eax + 0x120]
push edi
call fcn.004068b2
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x70], ebx
je 0x403e6e
push 1
push edi
push 0x442800
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x403e6e
push ebx
push edi
call fcn.00406c6f
mov eax, dword [0x434a0c]
push dword [eax + 0x124]
push edi
call fcn.004068b2
push edi
call fcn.00405f18
cmp eax, ebx
je 0x403e6e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x70], ebx
inc word [0x435800]
dec dword [ebp + 0x74]
jne 0x403e13
push ebx
push esi
call fcn.00406c6f
xor edi, edi
call fcn.004039e1
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [ebp + 0x70], edi
je 0x403ea8
push 0x200010
push dword [ebp + 0x70]
call fcn.00405f95
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x434ad4], edi
je 0x403f26
lea eax, [ebp + 0x6c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403ef6
lea eax, [ebp + 0x5c]
push eax
push str.SeShutdownPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push edi
push edi
push edi
lea eax, [ebp + 0x58]
push eax
push edi
push dword [ebp + 0x6c]
mov dword [ebp + 0x58], 1
mov dword [ebp + 0x64], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 4
call fcn.0040663c
mov esi, 0x80040002
cmp eax, edi
je 0x403f12
push esi
push 0x25
push edi
push edi
push edi
call eax
test eax, eax
je 0x403f1f
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403f26
push 9
call fcn.0040141a
mov eax, dword [0x434aec]
cmp eax, 0xffffffff
je 0x403f33
mov dword [ebp + 0x68], eax
push dword [ebp + 0x68]
jmp 0x403ea2