Function at 0x4044da
Capabilities:
Accept command line arguments
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
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x3e8]
push ebx
sub esp, 0x41c
mov dword [esp], 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x3d4], 0
push edi
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x3e8], 0x11c
mov dword [esp], esi
call ebx
push edx
test eax, eax
jne 0x404566
mov dword [esp], esi
mov dword [ebp - 0x3e8], 0x114
call ebx
xor eax, eax
cmp word [ebp - 0x3d4], 0x53
mov byte [ebp - 0x2ce], 4
push esi
jne 0x40455f
mov ax, word [ebp - 0x3ba]
sub eax, 0x30
mov word [ebp - 0x2d4], ax
mov ecx, dword [ebp - 0x3e4]
cmp ecx, 9
ja 0x40457b
and dword [ebp - 0x3dc], 0xffff
mov eax, dword [ebp - 0x3dc]
shl ecx, 8
mov dword [0x414058], eax
movzx eax, byte [ebp - 0x2d4]
shl eax, 8
mov edx, eax
movzx eax, byte [ebp - 0x2ce]
or eax, edx
movzx edx, byte [ebp - 0x3e0]
movzx eax, ax
or edx, ecx
shl edx, 0x10
or eax, edx
mov dword [0x41405c], eax
shr eax, 0x10
cmp ax, 0x600
je 0x4045d8
mov dword [esp], 0
call fcn.00408fb8
push ebx
test eax, eax
je 0x4045d8
mov dword [esp], 0xc00
call eax
push ecx
mov ebx, str.UXTHEME
mov dword [esp], ebx
call fcn.00408f28
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax + 1]
push edx
cmp byte [ebx], 0
jne 0x4045dd
mov dword [esp], 0xb
call fcn.00408fb8
push ebx
mov dword [esp], 9
call fcn.00408fb8
push esi
mov dword [0x7a9284], eax
mov dword [esp], 7
call fcn.00408fb8
push edi
test eax, eax
je 0x40463e
mov dword [esp], 0x1e
call eax
push ecx
test eax, eax
je 0x40463e
or byte [0x41405c], 0x80
call dword [sym.imp.COMCTL32.DLL_InitCommonControls]
mov dword [esp], 0
call dword [sym.imp.ole32.dll_OleInitialize]
push edi
mov dword [section..bss], eax
lea eax, [ebp - 0x2cc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x2b4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x40b41a
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
sub esp, 0x14
mov dword [esp + 4], str.NSIS_Error
mov dword [esp], 0x7a92a0
call fcn.00408470
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, dword [0x40b8b4]
add ecx, 0xa000
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [ebp - 0x3fc], ecx
call fcn.00408470
push eax
push eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x7a9288], eax
mov eax, dword [0x40b8b4]
push edx
movzx eax, word [eax + 0xa000]
cmp ax, 0x22
jne 0x4046f8
mov ecx, dword [0x40b8b4]
lea edx, [ecx + 0xa002]
jmp 0x404703
mov edx, dword [ebp - 0x3fc]
mov eax, 0x20
mov dword [esp], edx
xor edi, edi
mov dword [esp + 4], eax
call fcn.00407d01
push ebx
push ebx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x400], eax
push esi
cmp word [eax], 0
je 0x4047e4
movzx edx, word [eax]
cmp dx, 0x20
jne 0x40473b
add eax, 2
jmp 0x40472d
cmp dx, 0x22
jne 0x404746
add eax, 2
jmp 0x40474b
mov edx, 0x20
cmp word [eax], 0x2f
jne 0x4047c4
cmp word [eax + 2], 0x53
lea ebx, [eax + 2]
jne 0x40476d
test word [eax + 4], 0xffdf
jne 0x40476d
mov dword [0x414040], 1
cmp dword [eax + 6], 0x430052
jne 0x40478d
cmp dword [eax + 2], 0x43004e
jne 0x40478d
test word [eax + 0xa], 0xffdf
mov ecx, 4
cmove edi, ecx
cmp dword [eax + 2], 0x3d0044
jne 0x4047c2
cmp dword [eax - 2], 0x2f0020
jne 0x4047c2
mov word [eax - 2], 0
add eax, 6
mov dword [esp + 4], eax
mov eax, dword [0x40b8b4]
add eax, 0xa800
mov dword [esp], eax
call fcn.00408470
push ecx
push ecx
jmp 0x4047e4
mov eax, ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00407d01
push edx
push edx
cmp word [eax], 0x22
jne 0x404723
add eax, 2
jmp 0x404723
mov eax, dword [0x40b8b4]
mov dword [esp], 0x400
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [eax + 0xc800]
mov dword [esp + 4], ebx
call esi
push eax
push eax
call fcn.00404438
test eax, eax
je 0x40483b
mov eax, dword [0x40b8b4]
add eax, 0xc000
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edx
mov dword [esp], edi
xor edi, edi
call fcn.00404116
mov esi, eax
push ecx
test eax, eax
jne 0x404b16
jmp 0x4048c5
mov dword [esp + 4], 0x3fb
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 eax
push eax
call fcn.00404438
test eax, eax
jne 0x40480d
mov dword [esp + 4], ebx
mov dword [esp], 0x3fc
call esi
push esi
push esi
mov dword [esp + 4], 0x40b43e
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], 0x40b450
call esi
push eax
push eax
call fcn.00404438
test eax, eax
jne 0x40480d
mov esi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
jmp 0x404b14
cmp dword [0x416924], 0
je 0x404b01
mov eax, dword [ebp - 0x3fc]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00407d01
push ecx
push ecx
cmp dword [ebp - 0x3fc], eax
ja 0x40495c
cmp dword [eax + 4], 0x3d003f
je 0x404900
sub eax, 2
jmp 0x4048ea
cmp dword [eax], 0x5f0020
jne 0x4048fb
lea ebx, [eax + 8]
mov word [eax], 0
mov dword [esp], ebx
call fcn.00408bf4
push edx
test eax, eax
jne 0x404927
mov esi, str.Error_launching_installer
jmp 0x404b14
mov eax, dword [0x40b8b4]
mov dword [esp + 4], ebx
add eax, 0xa800
mov dword [esp], eax
call fcn.00408470
push eax
push eax
mov eax, dword [0x40b8b4]
add eax, 0xb000
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00408470
push eax
push eax
jmp 0x404b01
call fcn.00409004
mov dword [esp + 4], str.nsu
mov dword [esp], ebx
mov esi, eax
call sub.KERNEL32.dll_lstrcatW
push eax
push eax
test esi, esi
je 0x40498b
mov dword [esp + 4], 0x40b462
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcatW
push edi
push edi
mov dword [esp + 4], str..tmp
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcatW
mov eax, dword [0x40b8b4]
push edx
push edx
lea edi, [eax + 0xb800]
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push ecx
push ecx
test eax, eax
je 0x40491d
mov dword [esp], ebx
test esi, esi
je 0x4049cd
call fcn.00407b00
jmp 0x4049d2
call fcn.00407b94
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
mov eax, dword [0x40b8b4]
cmp word [eax + 0xa800], 0
jne 0x4049ff
add eax, 0xa800
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00408470
push eax
push eax
mov eax, dword [ebp - 0x400]
mov edi, 0x1a
mov esi, str.Error_launching_installer
mov dword [esp + 4], eax
mov eax, dword [0x40b8b4]
mov dword [esp], eax
call fcn.00408470
push eax
push eax
mov eax, dword [0x40b8b4]
mov dword [eax + 0x800], 0x41
mov eax, dword [0x416930]
mov eax, dword [eax + 0x120]
mov dword [esp], 0x7aa2a0
mov dword [esp + 4], eax
call fcn.00408615
push ecx
push ecx
mov dword [esp], 0x7aa2a0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
test esi, esi
je 0x404ada
mov eax, dword [0x40b8b4]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x7aa2a0
add eax, 0xd800
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
sub esp, 0xc
test eax, eax
je 0x404ada
mov dword [esp + 4], 0
mov dword [esp], 0x7aa2a0
call fcn.00408b77
push eax
push eax
mov eax, dword [0x416930]
mov eax, dword [eax + 0x124]
mov dword [esp], 0x7aa2a0
mov dword [esp + 4], eax
call fcn.00408615
push eax
push eax
mov dword [esp], 0x7aa2a0
call fcn.00407bc2
push edx
test eax, eax
je 0x404ada
mov dword [esp], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, dword [0x40b8b4]
inc word [eax + 0x800]
dec edi
jne 0x404a31
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00408b77
push edi
push edi
jmp 0x404b14
mov dword [0x41404c], 0xffffffff
call fcn.004064ea
mov edi, eax
jmp 0x404b16
xor edi, edi
call fcn.00404493
call dword [sym.imp.ole32.dll_OleUninitialize]
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_ExitProcess]
je 0x404b49
mov dword [esp], esi
mov dword [esp + 4], 0x200010
call fcn.00407c95
push esi
push esi
mov dword [esp], 2
jmp 0x404c69
cmp dword [0x414034], 0
je 0x404c5b
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 0x404bf0
lea eax, [ebp - 0x2c8]
mov dword [esp + 4], str.SeShutdownPrivilege
lea esi, [ebp - 0x2cc]
mov dword [esp + 8], eax
mov dword [esp], 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x3ec]
mov dword [ebp - 0x2cc], 1
mov dword [ebp - 0x2c0], 2
sub esp, 0xc
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
sub esp, 0x18
mov dword [esp], 4
call fcn.00408fb8
push ecx
test eax, eax
jne 0x404c1e
mov dword [esp + 4], 0x80040002
mov dword [esp], 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push edx
push edx
test eax, eax
je 0x404c4e
jmp 0x404c5b
mov dword [esp + 0x10], 0x80040002
mov dword [esp + 0xc], 0x25
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call eax
sub esp, 0x14
test eax, eax
jne 0x404c01
mov dword [esp], 9
call fcn.00403caf
push eax
mov eax, dword [0x41404c]
cmp eax, 0xffffffff
cmovne edi, eax
mov dword [esp], edi
call ebx
nop