Function at 0x4036c6
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
and dword [esp], 0
push ebx
push ebp
push esi
push edi
push 4
pop ebp
push 0x20
pop eax
push 0x8001
mov ebx, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xbfffffff
mov dword [0x434a00], eax
cmp ax, 6
je 0x403714
push 0
call fcn.0040681c
test eax, eax
je 0x403714
push 0xc00
call eax
mov esi, str.UXTHEME
push esi
call fcn.004060cf
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc esi
add esi, eax
cmp byte [esi], 0
jne 0x403719
push 0xb
call fcn.0040681c
push 9
call fcn.0040681c
push 7
mov dword [0x4339f0], eax
call fcn.0040681c
test eax, eax
je 0x40375e
push 0x1e
call eax
test eax, eax
je 0x40375e
or dword [0x434a00], 0x40000000
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_OleInitialize]
push esi
push 0x2b4
mov dword [0x434af8], eax
lea eax, [esp + 0x34]
push eax
push esi
push 0x4085b0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push str.NSIS_Error
push 0x433a00
call fcn.00406a52
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov esi, 0x43f000
push esi
call fcn.00406a52
push 0x22
pop ecx
mov eax, esi
mov dword [0x4339f4], 0x400000
mov dword [esp + 0x18], ecx
cmp word [0x43f000], cx
jne 0x4037cd
mov edi, ecx
mov eax, 0x43f002
push edi
push eax
call fcn.0040652a
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 0x4038c3
mov esi, eax
push 0x20
pop edx
movzx eax, si
cmp si, dx
jne 0x403805
add ecx, 2
movzx eax, word [ecx]
cmp ax, dx
je 0x4037fa
mov edi, edx
movzx esi, ax
movzx edx, ax
cmp ax, word [esp + 0x18]
jne 0x40381d
movzx edx, word [ecx + 2]
push 0x22
pop eax
mov edi, eax
cmp si, word [esp + 0x18]
lea eax, [ecx + 2]
cmovne eax, ecx
cmp dx, 0x2f
jne 0x403885
add eax, 2
push 0x20
pop edx
cmp word [eax], 0x53
jne 0x403852
movzx ecx, word [eax + 2]
cmp cx, dx
je 0x403848
test cx, cx
jne 0x403852
mov dword [0x434ae0], 1
cmp dword [eax], 0x43004e
jne 0x403874
cmp dword [eax + 4], 0x430052
jne 0x403874
movzx ecx, word [eax + 8]
cmp cx, dx
je 0x403871
test cx, cx
jne 0x403874
or ebp, 4
cmp dword [eax - 4], 0x2f0020
jne 0x403885
cmp dword [eax], 0x3d0044
je 0x4038af
push edi
push eax
call fcn.0040652a
mov ecx, eax
push 0x22
pop esi
movzx eax, word [ecx]
mov edx, eax
cmp ax, si
jne 0x4038a1
add ecx, 2
movzx edx, word [ecx]
movzx esi, dx
test dx, dx
jne 0x4037ef
jmp 0x4038c3
xor ecx, ecx
mov word [eax - 4], cx
add eax, 4
push eax
push 0x43f800
call fcn.00406a52
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x441800
push edi
push 0x400
call esi
call fcn.00403bc4
test eax, eax
jne 0x403935
push 0x3fb
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Temp
push edi
call sub.KERNEL32.dll_lstrcatW
call fcn.00403bc4
test eax, eax
jne 0x403935
push edi
push 0x3fc
call esi
push 0x4085d8
push edi
call sub.KERNEL32.dll_lstrcatW
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push str.TEMP
call esi
push edi
push 0x4085ec
call esi
call fcn.00403bc4
test eax, eax
je 0x403b03
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x441000
call edi
push ebp
call fcn.004033b4
mov ebx, eax
test ebx, ebx
jne 0x403afb
cmp dword [0x434a04], eax
je 0x4039bf
xor ebp, ebp
push ebp
push 0x43f000
call fcn.0040652a
mov esi, eax
mov eax, 0x43f000
jmp 0x403984
cmp dword [esi], 0x5f0020
jne 0x403981
cmp dword [esi + 4], 0x3d003f
je 0x403988
sub esi, 2
cmp esi, eax
jae 0x403970
mov ebx, str.Error_launching_installer
cmp esi, eax
jb 0x4039d2
xor eax, eax
mov word [esi], ax
add esi, 8
push esi
call fcn.0040656c
test eax, eax
je 0x403b03
push esi
push 0x43f800
call fcn.00406a52
push esi
push 0x440000
call fcn.00406a52
mov ebx, ebp
or dword [0x434aec], 0xffffffff
call fcn.00405931
mov ebp, eax
jmp 0x403aff
call fcn.00406430
push str.nsu
push 0x441800
mov esi, eax
call sub.KERNEL32.dll_lstrcatW
test esi, esi
je 0x4039fb
push 0x408600
push 0x441800
call sub.KERNEL32.dll_lstrcatW
push 0x408604
push 0x441800
call sub.KERNEL32.dll_lstrcatW
push 0x440800
push 0x441800
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403b03
push 0x441800
test esi, esi
je 0x403a32
call fcn.00405d31
jmp 0x403a37
call fcn.00405d11
push 0x441800
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp word [0x43f800], bp
jne 0x403a5a
push 0x440800
push 0x43f800
call fcn.00406a52
push dword [esp + 0x14]
push section..ndata
call fcn.00406a52
push 0x1a
mov dword [0x435800], 0x41
pop esi
mov eax, dword [0x434a10]
push dword [eax + 0x120]
push 0x42a538
call fcn.00405dad
push 0x42a538
call edi
test ebx, ebx
je 0x403ae2
push 1
push 0x42a538
push 0x442800
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x403ae2
push ebp
push 0x42a538
call fcn.00406171
mov eax, dword [0x434a10]
push dword [eax + 0x124]
push 0x42a538
call fcn.00405dad
push 0x42a538
call fcn.0040660a
test eax, eax
je 0x403ae2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, ebp
inc word [0x435800]
sub esi, 1
jne 0x403a75
push esi
push 0x441800
call fcn.00406171
jmp 0x403b05
mov ebp, dword [esp + 0x10]
xor esi, esi
jmp 0x403b09
xor esi, esi
mov ebp, dword [esp + 0x10]
call fcn.0040369c
call dword [sym.imp.ole32.dll_OleUninitialize]
test ebx, ebx
je 0x403b2b
push 0x200010
push ebx
call fcn.004069e0
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x434ad4], 0
je 0x403bb0
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 0x403b80
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.0040681c
mov edi, 0x80040002
test eax, eax
je 0x403b9c
push edi
push 0x25
push esi
push esi
push esi
call eax
test eax, eax
je 0x403ba9
push edi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403bb0
push 9
call fcn.00401546
cmp dword [0x434aec], 0xffffffff
cmovne ebp, dword [0x434aec]
push ebp
jmp 0x403b25