Function at 0x4044f8
Capabilities:
Accept command line arguments
Check os version
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
push ebx
sub esp, 0x1bc
mov dword [esp], 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xbfffffff
mov dword [0x42a620], eax
cmp ax, 6
je 0x404543
mov dword [esp], 0
call fcn.00408e4d
push ebx
test eax, eax
je 0x404543
mov dword [esp], 0xc00
call eax
push ecx
mov ebx, str.UXTHEME
mov dword [esp], ebx
call fcn.00408dc2
push edi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax + 1]
push edx
cmp byte [ebx], 0
jne 0x404548
mov dword [esp], 0xb
call fcn.00408e4d
push ecx
mov dword [esp], 9
call fcn.00408e4d
push ebx
mov dword [0x42a624], eax
mov dword [esp], 7
call fcn.00408e4d
push esi
test eax, eax
je 0x4045ac
mov dword [esp], 0x1e
call eax
push edx
test eax, eax
je 0x4045ac
or dword [0x42a620], 0x40000000
call dword [sym.imp.COMCTL32.DLL_InitCommonControls]
mov dword [esp], 0
call dword [sym.imp.ole32.dll_OleInitialize]
push edx
mov dword [section..bss], eax
lea eax, [ebp - 0x178]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x160
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x40c31d
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
sub esp, 0x14
mov dword [esp + 4], str.NSIS_Error
mov dword [esp], 0x42a640
call fcn.004082b3
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, dword [0x40c694]
lea ecx, [ebx + 0x5000]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [ebp - 0x190], ecx
call fcn.004082b3
push esi
push esi
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea edx, [ebx + 0x5001]
push edi
mov dword [0x42a628], eax
movsx eax, byte [ebx + 0x5000]
cmp al, 0x22
je 0x404662
lea edx, [ebx + 0x5000]
mov eax, 0x20
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00407b69
push esi
push esi
xor esi, esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x194], eax
push edi
cmp byte [eax], 0
je 0x40471b
movsx edx, byte [eax]
cmp dl, 0x20
jne 0x404696
inc eax
jmp 0x40468b
cmp dl, 0x22
jne 0x40469e
inc eax
jmp 0x4046a3
mov edx, 0x20
cmp byte [eax], 0x2f
jne 0x4046fe
cmp byte [eax + 1], 0x53
lea edi, [eax + 1]
jne 0x4046c1
test byte [eax + 2], 0xdf
jne 0x4046c1
mov dword [0x415080], 1
cmp dword [eax + 1], 0x4352434e
jne 0x4046d6
test byte [eax + 5], 0xdf
mov ecx, 4
cmove esi, ecx
cmp dword [eax - 1], 0x3d442f20
jne 0x4046fc
mov byte [eax - 1], 0
add eax, 3
mov dword [esp + 4], eax
lea eax, [ebx + 0x5400]
mov dword [esp], eax
call fcn.004082b3
push ecx
push ecx
jmp 0x40471b
mov eax, edi
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00407b69
push edx
push edx
cmp byte [eax], 0x22
jne 0x404682
inc eax
jmp 0x404682
mov eax, dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [ebx + 0x6400]
mov dword [esp], 0x400
mov dword [esp + 4], edi
mov dword [ebp - 0x18c], eax
call eax
push eax
push eax
call fcn.00404438
test eax, eax
je 0x404772
lea eax, [ebx + 0x6000]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
mov dword [esp], esi
call fcn.00404072
mov dword [ebp - 0x18c], eax
push esi
xor esi, esi
test eax, eax
jne 0x404ab5
jmp 0x404813
mov dword [esp + 4], 0x3fb
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push eax
push eax
mov dword [esp + 4], str.Temp
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcatA
push edx
push edx
call fcn.00404438
test eax, eax
jne 0x404744
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x18c]
mov dword [esp], 0x3fc
call eax
push eax
push eax
mov dword [esp + 4], 0x40c32f
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcatA
mov edx, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push eax
push eax
mov dword [ebp - 0x18c], edx
mov dword [esp + 4], edi
mov dword [esp], str.TEMP
call edx
mov edx, dword [ebp - 0x18c]
push eax
push eax
mov dword [esp + 4], edi
mov dword [esp], 0x40c338
call edx
push eax
push eax
call fcn.00404438
test eax, eax
jne 0x404744
mov dword [ebp - 0x18c], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
jmp 0x404ab3
cmp dword [0x416504], 0
je 0x404aa0
mov eax, dword [ebp - 0x190]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00407b69
push ecx
push ecx
cmp dword [ebp - 0x190], eax
ja 0x40489a
cmp dword [eax], 0x3d3f5f20
je 0x40484b
dec eax
jmp 0x404838
lea esi, [eax + 4]
mov byte [eax], 0
mov dword [esp], esi
call fcn.00408a73
push edx
test eax, eax
jne 0x40486d
mov dword [ebp - 0x18c], str.Error_launching_installer
jmp 0x404ab3
lea eax, [ebx + 0x5400]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004082b3
lea eax, [ebx + 0x5800]
push edi
push edi
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004082b3
push eax
push eax
jmp 0x404aa0
call fcn.00408e99
mov dword [esp], edi
lea esi, [ebx + 0x1400]
mov dword [ebp - 0x19c], eax
call sub.KERNEL32.dll_lstrlenA
mov dword [ebp - 0x1a0], eax
lea eax, [ebx + 0x1800]
push edx
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x194]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004082b3
push ecx
push ecx
cmp byte [ebx + 0x5400], 0
jne 0x4048fd
lea eax, [ebx + 0x5c00]
mov dword [esp + 4], eax
lea eax, [ebx + 0x5400]
mov dword [esp], eax
call fcn.004082b3
push eax
push eax
mov word [ebp - 0x194], 1
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x190], 0
lea eax, [ebx + eax + 0x6400]
mov dword [ebp - 0x1a0], eax
movzx eax, word [ebp - 0x194]
mov dword [esp + 4], str.nsu_X.tmp
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1a0]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x416510]
mov eax, dword [eax + 0x120]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.004084ad
cmp dword [ebp - 0x19c], 0
push ecx
push ecx
mov dword [esp], edi
je 0x404971
call fcn.00407998
jmp 0x404976
call fcn.004079fc
push edx
test eax, eax
je 0x4049cf
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
bt eax, 0xa
push ecx
jb 0x404a84
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edx
test eax, eax
je 0x404a84
mov dword [esp + 4], 1
mov dword [esp], edi
call fcn.00408b27
cmp dword [ebp - 0x190], 0
push eax
push eax
jne 0x404a84
mov dword [ebp - 0x190], 1
jmp 0x404923
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ecx
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.004089f6
push eax
push eax
lea eax, [ebx + 0x6c00]
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
sub esp, 0xc
test eax, eax
je 0x40485e
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.004089f6
push eax
push eax
mov eax, dword [0x416510]
mov eax, dword [eax + 0x124]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x198]
mov dword [esp], eax
call fcn.004084ad
push eax
push eax
mov eax, dword [ebp - 0x198]
mov dword [esp], eax
call fcn.00407a2a
push edx
test eax, eax
je 0x404a61
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
jmp 0x404ab3
cmp dword [ebp - 0x190], 0
jne 0x40485e
mov dword [esp], esi
call fcn.00408a3b
push edx
test eax, eax
je 0x4049c0
jmp 0x40485e
inc word [ebp - 0x194]
je 0x40485e
mov dword [ebp - 0x190], 0
jmp 0x404923
mov dword [0x41508c], 0xffffffff
call fcn.0040639a
mov esi, eax
jmp 0x404ab5
xor esi, esi
call fcn.00404493
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [ebp - 0x18c], 0
mov ebx, dword [sym.imp.KERNEL32.dll_ExitProcess]
je 0x404af3
mov eax, dword [ebp - 0x18c]
mov dword [esp + 4], 0x200010
mov dword [esp], eax
call fcn.00407afd
push esi
push esi
mov dword [esp], 2
jmp 0x404c13
cmp dword [0x415074], 0
je 0x404c05
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x17c]
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 0x404b9a
lea eax, [ebp - 0x174]
mov dword [esp + 4], str.SeShutdownPrivilege
lea edi, [ebp - 0x178]
mov dword [esp + 8], eax
mov dword [esp], 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x178], 1
mov dword [ebp - 0x16c], 2
sub esp, 0xc
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
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.00408e4d
push ecx
test eax, eax
jne 0x404bc8
mov dword [esp + 4], 0x80040002
mov dword [esp], 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push edx
push edx
test eax, eax
je 0x404bf8
jmp 0x404c05
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 0x404bab
mov dword [esp], 9
call fcn.00403adf
push eax
mov eax, dword [0x41508c]
cmp eax, 0xffffffff
cmovne esi, eax
mov dword [esp], esi
call ebx
nop
nop
nop