Function at 0x4037ad
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, 0x2d0
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov edi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
push 0x8001
mov dword [esp + 0x14], ebx
mov ebp, ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xbfffffff
mov dword [0x435a20], eax
cmp ax, 6
je 0x4037f6
push ebx
call fcn.004068f3
test eax, eax
je 0x4037f6
push 0xc00
call eax
mov esi, str.UXTHEME
push esi
call fcn.004061ab
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc esi
add esi, eax
cmp byte [esi], bl
jne 0x4037fb
push 0xb
call fcn.004068f3
push 9
call fcn.004068f3
push 7
mov dword [0x434a10], eax
call fcn.004068f3
test eax, eax
je 0x40383f
push 0x1e
call eax
test eax, eax
je 0x40383f
or dword [0x435a20], 0x40000000
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push ebx
push 0x2b4
mov dword [0x435a80], eax
lea eax, [esp + 0x34]
push eax
push ebx
push 0x4095d4
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push str.NSIS_Error
push 0x434a20
call fcn.00406b27
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x440000
call fcn.00406b27
movzx ecx, word [0x440000]
mov edx, 0x440002
push 0x22
pop esi
push 0x20
pop ebx
cmp cx, si
mov dword [0x434a14], 0x400000
mov eax, esi
mov dword [esp + 0x18], esi
cmovne eax, ebx
movzx eax, ax
push eax
mov eax, 0x440000
cmove eax, edx
push eax
call fcn.00406603
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
mov dword [esp + 0x14], ecx
movzx eax, word [ecx]
test ax, ax
je 0x4039ae
mov esi, eax
movzx eax, si
cmp si, bx
jne 0x4038f0
add ecx, 2
movzx eax, word [ecx]
cmp ax, bx
je 0x4038e5
movzx esi, ax
movzx edx, ax
cmp ax, word [esp + 0x18]
jne 0x403906
movzx edx, word [ecx + 2]
push 0x22
pop eax
mov ebx, eax
cmp si, word [esp + 0x18]
lea eax, [ecx + 2]
cmovne eax, ecx
cmp dx, 0x2f
jne 0x40396e
add eax, 2
push 0x20
pop edx
cmp word [eax], 0x53
jne 0x40393b
movzx ecx, word [eax + 2]
cmp cx, dx
je 0x403931
test cx, cx
jne 0x40393b
mov dword [0x435b00], 1
cmp dword [eax], 0x43004e
jne 0x40395d
cmp dword [eax + 4], 0x430052
jne 0x40395d
movzx ecx, word [eax + 8]
cmp cx, dx
je 0x40395a
test cx, cx
jne 0x40395d
or ebp, 4
cmp dword [eax - 4], 0x2f0020
jne 0x40396e
cmp dword [eax], 0x3d0044
je 0x40399a
push ebx
push eax
call fcn.00406603
mov ecx, eax
push 0x22
pop ebx
movzx eax, word [ecx]
mov edx, eax
cmp ax, bx
jne 0x40398a
add ecx, 2
movzx edx, word [ecx]
movzx esi, dx
test dx, dx
je 0x4039ae
push 0x20
pop ebx
jmp 0x4038dd
xor ecx, ecx
mov word [eax - 4], cx
add eax, 4
push eax
push 0x440800
call fcn.00406b27
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, 0x442800
push ebx
push 0x400
call esi
call fcn.00403cad
test eax, eax
jne 0x403a20
push 0x3fb
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Temp
push ebx
call sub.KERNEL32.dll_lstrcatW
call fcn.00403cad
test eax, eax
jne 0x403a20
push ebx
push 0x3fc
call esi
push 0x4095fc
push ebx
call sub.KERNEL32.dll_lstrcatW
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
push str.TEMP
call esi
push ebx
push 0x409610
call esi
call fcn.00403cad
test eax, eax
je 0x403bec
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x442000
call ebx
push ebp
call fcn.00403413
mov edi, eax
test edi, edi
jne 0x403bec
cmp dword [0x435a28], eax
je 0x403aaa
xor ebp, ebp
push ebp
push 0x440000
call fcn.00406603
mov esi, eax
mov eax, 0x440000
jmp 0x403a6f
cmp dword [esi], 0x5f0020
jne 0x403a6c
cmp dword [esi + 4], 0x3d003f
je 0x403a73
sub esi, 2
cmp esi, eax
jae 0x403a5b
mov edi, str.Error_launching_installer
cmp esi, eax
jb 0x403abd
xor eax, eax
mov word [esi], ax
add esi, 8
push esi
call fcn.00406645
test eax, eax
je 0x403be8
push esi
push 0x440800
call fcn.00406b27
push esi
push 0x441000
call fcn.00406b27
mov edi, ebp
or dword [0x435b0c], 0xffffffff
call fcn.00405a0d
mov ebx, eax
jmp 0x403bf0
call fcn.00406509
push str.nsu
push 0x442800
mov esi, eax
call sub.KERNEL32.dll_lstrcatW
test esi, esi
je 0x403ae6
push 0x409624
push 0x442800
call sub.KERNEL32.dll_lstrcatW
push 0x409628
push 0x442800
call sub.KERNEL32.dll_lstrcatW
push 0x441800
push 0x442800
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403be8
push 0x442800
test esi, esi
je 0x403b1d
call fcn.00405e0d
jmp 0x403b22
call fcn.00405ded
push 0x442800
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp word [0x440800], bp
jne 0x403b45
push 0x441800
push 0x440800
call fcn.00406b27
push dword [esp + 0x14]
push section..ndata
call fcn.00406b27
push 0x1a
mov dword [0x436800], 0x41
pop esi
mov eax, dword [0x435a34]
push dword [eax + 0x120]
push 0x42b548
call fcn.00405e89
push 0x42b548
call ebx
test edi, edi
je 0x403bcd
push 1
push 0x42b548
push 0x443800
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x403bcd
push ebp
push 0x42b548
call fcn.0040624a
mov eax, dword [0x435a34]
push dword [eax + 0x124]
push 0x42b548
call fcn.00405e89
push 0x42b548
call fcn.004066e3
test eax, eax
je 0x403bcd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebp
inc word [0x436800]
sub esi, 1
jne 0x403b60
push esi
push 0x442800
call fcn.0040624a
mov ebx, esi
jmp 0x403bf2
mov ebx, ebp
jmp 0x403bf0
mov ebx, dword [esp + 0x10]
xor esi, esi
call fcn.0040376b
call dword [sym.imp.ole32.dll_OleUninitialize]
test edi, edi
je 0x403c14
push 0x200010
push edi
call fcn.00406ab5
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x435af4], 0
je 0x403c99
lea eax, [esp + 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403c69
lea eax, [esp + 0x20]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 1
push eax
push esi
push dword [esp + 0x28]
mov dword [esp + 0x40], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 4
call fcn.004068f3
mov edi, 0x80040002
test eax, eax
je 0x403c85
push edi
push 0x25
push esi
push esi
push esi
call eax
test eax, eax
je 0x403c92
push edi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403c99
push 9
call fcn.00401533
cmp dword [0x435b0c], 0xffffffff
cmovne ebx, dword [0x435b0c]
push ebx
jmp 0x403c0e