Function at 0x404ada
Capabilities:
Accept command line arguments
Copy file
Delete file
Get common file path
Get file attributes
Get file system object information
Set current directory
Set environment variable
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x3e8]
push ebx
sub esp, 0x42c
mov dword [esp], 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
xor eax, eax
mov dword [ebp - 0x3d4], eax
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x3e8], 0x11c
mov dword [esp], esi
call ebx
push edx
test eax, eax
jne 0x404b5c
mov dword [ebp - 0x3e8], 0x114
mov dword [esp], esi
call ebx
xor eax, eax
cmp word [ebp - 0x3d4], 0x53
push edi
mov byte [ebp - 0x2ce], 4
jne 0x404b55
mov ax, word [ebp - 0x3ba]
sub eax, 0x30
mov word [ebp - 0x2d4], ax
mov ecx, dword [ebp - 0x3e4]
cmp ecx, 9
ja 0x404b71
and dword [ebp - 0x3dc], 0xffff
mov eax, dword [ebp - 0x3dc]
movzx edx, byte [ebp - 0x2ce]
shl ecx, 8
mov dword [0x41b058], eax
mov eax, dword [ebp - 0x2d4]
shl eax, 8
or eax, edx
movzx edx, byte [ebp - 0x3e0]
movzx eax, ax
or edx, ecx
shl edx, 0x10
or eax, edx
mov dword [0x41b05c], eax
shr eax, 0x10
cmp ax, 0x600
je 0x404bc9
xor ebx, ebx
mov dword [esp], ebx
call fcn.00409005
push esi
test eax, eax
je 0x404bc9
mov dword [esp], 0xc00
call eax
push ecx
mov ebx, str.UXTHEME
cmp byte [ebx], 0
je 0x404bec
mov dword [esp], ebx
call fcn.00408f77
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax + 1]
push edx
jmp 0x404bce
mov dword [esp], 0xc
call fcn.00409005
push ebx
mov dword [esp], 0xa
call fcn.00409005
push esi
mov dword [0x44cda4], eax
mov dword [esp], 8
call fcn.00409005
push edi
test eax, eax
je 0x404c31
mov dword [esp], 0x1e
call eax
push ecx
test eax, eax
je 0x404c31
or byte [0x41b05c], 0x80
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
xor ecx, ecx
xor edi, edi
xor esi, esi
mov dword [esp], ecx
call dword [sym.imp.ole32.dll_OleInitialize]
push ebx
mov dword [section..bss], eax
lea eax, [ebp - 0x2cc]
mov dword [esp + 4], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x2b4
mov dword [esp + 8], eax
mov dword [esp], 0x40d0ba
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
sub esp, 0x14
mov dword [esp + 4], str.NSIS_Error
mov dword [esp], 0x44cdc0
call fcn.004089f5
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [0x40d9d4]
lea ecx, [edi + 0x50000]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [ebp - 0x400], ecx
call fcn.004089f5
push eax
push eax
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edx
lea edx, [edi + 0x50002]
mov dword [0x44cda8], eax
movzx eax, word [edi + 0x50000]
cmp ax, 0x22
je 0x404ce1
mov edx, dword [ebp - 0x400]
mov eax, 0x20
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.004082d3
push ebx
push ebx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CharNextW]
xor edx, edx
push esi
mov dword [ebp - 0x404], eax
mov dword [ebp - 0x3fc], edx
cmp word [eax], 0
je 0x404dc8
movzx edx, word [eax]
cmp dx, 0x20
jne 0x404d1f
add eax, 2
jmp 0x404d11
cmp dx, 0x22
jne 0x404d2a
add eax, 2
jmp 0x404d2f
mov edx, 0x20
cmp word [eax], 0x2f
jne 0x404da8
cmp word [eax + 2], 0x53
lea ecx, [eax + 2]
jne 0x404d51
test word [eax + 4], 0xffdf
jne 0x404d51
mov dword [0x41b040], 1
cmp dword [eax + 6], 0x430052
jne 0x404d75
cmp dword [eax + 2], 0x43004e
jne 0x404d75
test word [eax + 0xa], 0xffdf
jne 0x404d75
mov dword [ebp - 0x3fc], 4
cmp dword [eax + 2], 0x3d0044
jne 0x404da6
cmp dword [eax - 2], 0x2f0020
jne 0x404da6
mov word [eax - 2], 0
add eax, 6
mov dword [esp + 4], eax
lea eax, [edi + 0x54000]
mov dword [esp], eax
call fcn.004089f5
push ecx
push ecx
jmp 0x404dc8
mov eax, ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004082d3
push edx
push edx
cmp word [eax], 0x22
jne 0x404d07
add eax, 2
jmp 0x404d07
lea ebx, [edi + 0x64000]
mov dword [esp], 0x2000
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [esp + 4], ebx
call esi
push eax
push eax
call fcn.00404a38
test eax, eax
je 0x404e20
lea eax, [edi + 0x60000]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x3fc]
push ecx
mov dword [esp], eax
call fcn.0040472a
push esi
xor esi, esi
mov dword [ebp - 0x3fc], eax
test eax, eax
jne 0x405168
jmp 0x404eaf
mov dword [esp + 4], 0x1ffb
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push eax
push eax
mov dword [esp + 4], str.Temp
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcatW
push edx
push edx
call fcn.00404a38
test eax, eax
jne 0x404dec
mov dword [esp + 4], ebx
mov dword [esp], 0x1ffc
call esi
push eax
push eax
mov dword [esp + 4], 0x40d0de
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcatW
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], str.TEMP
call esi
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x40d0f0
call esi
push eax
push eax
call fcn.00404a38
test eax, eax
jne 0x404dec
mov dword [ebp - 0x3fc], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
jmp 0x405166
cmp dword [0x42f144], 0
je 0x405146
mov eax, dword [ebp - 0x400]
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.004082d3
push esi
push esi
mov ecx, dword [ebp - 0x400]
cmp eax, ecx
jb 0x404f43
cmp dword [eax + 4], 0x3d003f
je 0x404eea
sub eax, 2
jmp 0x404ed2
cmp dword [eax], 0x5f0020
jne 0x404ee5
lea ebx, [eax + 8]
mov word [eax], 0
mov dword [esp], ebx
call fcn.00408ec3
push edx
test eax, eax
jne 0x404f16
mov dword [ebp - 0x3fc], str.Error_launching_installer
jmp 0x405166
lea eax, [edi + 0x54000]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004089f5
lea eax, [edi + 0x58000]
push esi
push esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004089f5
push edi
push edi
jmp 0x405146
call fcn.00409051
mov dword [esp], ebx
lea esi, [edi + 0x14000]
mov dword [ebp - 0x410], eax
call sub.KERNEL32.dll_lstrlenW
push edx
mov dword [ebp - 0x400], eax
lea eax, [edi + 0x18000]
mov dword [ebp - 0x408], eax
mov eax, dword [ebp - 0x404]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004089f5
push ecx
push ecx
cmp word [edi + 0x54000], 0
jne 0x404fa7
lea eax, [edi + 0x5c000]
mov dword [esp + 4], eax
lea eax, [edi + 0x54000]
mov dword [esp], eax
call fcn.004089f5
push eax
push eax
mov word [ebp - 0x404], 1
mov eax, dword [ebp - 0x400]
lea eax, [edi + eax*2 + 0x64000]
mov dword [ebp - 0x40c], eax
movzx eax, word [ebp - 0x404]
xor edx, edx
mov dword [ebp - 0x400], edx
mov dword [ebp - 0x414], eax
mov eax, dword [ebp - 0x414]
mov dword [esp + 4], str.nsu_X.tmp
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x40c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [0x42f150]
mov eax, dword [eax + 0x120]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00409077
cmp dword [ebp - 0x410], 0
push ecx
push ecx
mov dword [esp], ebx
je 0x405025
call fcn.0040811c
jmp 0x40502a
call fcn.0040817c
push edx
test eax, eax
je 0x405083
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
push ecx
jb 0x405134
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edx
test eax, eax
je 0x405134
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.004095f3
cmp dword [ebp - 0x400], 0
push eax
push eax
jne 0x405134
mov dword [ebp - 0x400], 1
jmp 0x404fd8
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor eax, eax
push ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004095ae
push eax
push eax
lea eax, [edi + 0x6c000]
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
sub esp, 0xc
test eax, eax
je 0x404f07
xor eax, eax
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.004095ae
push eax
push eax
mov eax, dword [0x42f150]
mov eax, dword [eax + 0x124]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x408]
mov dword [esp], eax
call fcn.00409077
push eax
push eax
mov eax, dword [ebp - 0x408]
mov dword [esp], eax
call fcn.004081a8
push edx
test eax, eax
je 0x405111
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
jmp 0x405166
cmp dword [ebp - 0x400], 0
jne 0x404f07
mov dword [esp], esi
call fcn.00408e8b
push ecx
test eax, eax
je 0x405074
jmp 0x404f07
inc word [ebp - 0x404]
jne 0x404fc3
jmp 0x404f07
mov dword [0x41b04c], 0xffffffff
call fcn.00406b72
mov dword [esp], 1
mov esi, eax
call fcn.00408b8e
push eax
jmp 0x405168
xor esi, esi
call fcn.00404a93
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [ebp - 0x3fc], 0
mov ebx, dword [sym.imp.KERNEL32.dll_ExitProcess]
je 0x4051a6
mov eax, dword [ebp - 0x3fc]
mov dword [esp + 4], 0x200010
mov dword [esp], eax
call fcn.00408267
push eax
push eax
mov dword [esp], 2
jmp 0x4052ae
cmp dword [0x41b034], 0
je 0x4052a0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x3ec]
mov dword [esp + 4], 0x28
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
sub esp, 0xc
test eax, eax
je 0x40523f
lea eax, [ebp - 0x2c8]
mov dword [esp + 4], str.SeShutdownPrivilege
lea edi, [ebp - 0x2cc]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
xor eax, eax
sub esp, 0xc
mov dword [ebp - 0x2cc], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3ec]
mov dword [ebp - 0x2c0], 2
mov dword [esp + 8], edi
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
sub esp, 0x18
mov dword [esp], 4
call fcn.00409005
push edi
test eax, eax
jne 0x40526d
mov dword [esp + 4], 0x80040002
mov dword [esp], 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push ecx
push ecx
test eax, eax
je 0x405293
jmp 0x4052a0
xor edx, edx
mov dword [esp + 0x10], 0x80040002
mov dword [esp + 0xc], 0x25
mov dword [esp + 8], edx
mov dword [esp + 4], edx
mov dword [esp], edx
call eax
sub esp, 0x14
test eax, eax
jne 0x405250
mov dword [esp], 9
call fcn.00404298
push eax
mov eax, dword [0x41b04c]
cmp eax, 0xffffffff
cmove eax, esi
mov dword [esp], eax
call ebx