Function at 0x4049f8
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 - 0x214]
push ebx
sub esp, 0x24c
mov dword [esp], 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 0x214], 0x9c
push eax
xor eax, eax
mov dword [ebp - 0x200], eax
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], eax
mov dword [esp], esi
call ebx
push edx
test eax, eax
jne 0x404a85
mov dword [ebp - 0x214], 0x94
mov dword [esp], esi
call ebx
cmp dword [ebp - 0x204], 2
push edi
jne 0x404a85
xor eax, eax
cmp byte [ebp - 0x200], 0x53
mov byte [ebp - 0x17a], 4
jne 0x404a7c
movsx ax, byte [ebp - 0x1f3]
sub eax, 0x30
mov word [ebp - 0x180], ax
jmp 0x404aad
cmp dword [ebp - 0x204], 1
ja 0x404aad
movsx ax, byte [ebp - 0x1ff]
mov byte [ebp - 0x17a], 0
xor edx, edx
cmp al, 0x40
jle 0x404aa6
lea edx, [eax - 0x40]
mov word [ebp - 0x180], dx
mov ecx, dword [ebp - 0x210]
cmp ecx, 9
ja 0x404ac2
and dword [ebp - 0x208], 0xffff
mov eax, dword [ebp - 0x208]
movzx edx, byte [ebp - 0x17a]
shl ecx, 8
mov dword [0x419058], eax
mov eax, dword [ebp - 0x180]
shl eax, 8
or eax, edx
movzx edx, byte [ebp - 0x20c]
movzx eax, ax
or edx, ecx
shl edx, 0x10
or eax, edx
mov dword [0x41905c], eax
shr eax, 0x10
cmp ax, 0x600
je 0x404b1a
xor ebx, ebx
mov dword [esp], ebx
call fcn.00408e7c
push esi
test eax, eax
je 0x404b1a
mov dword [esp], 0xc00
call eax
push ecx
mov ebx, str.UXTHEME
cmp byte [ebx], 0
je 0x404b3d
mov dword [esp], ebx
call fcn.00408df3
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax + 1]
push edx
jmp 0x404b1f
mov dword [esp], 0xc
call fcn.00408e7c
push ebx
mov dword [esp], 0xa
call fcn.00408e7c
push esi
mov dword [0x437224], eax
mov dword [esp], 8
call fcn.00408e7c
push edi
test eax, eax
je 0x404b82
mov dword [esp], 0x1e
call eax
push ecx
test eax, eax
je 0x404b82
or byte [0x41905c], 0x80
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
xor edi, edi
xor ebx, ebx
mov dword [esp], edi
call dword [sym.imp.ole32.dll_OleInitialize]
xor ecx, ecx
push edx
mov dword [section..bss], eax
lea eax, [ebp - 0x178]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x160
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x40c95d
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
sub esp, 0x14
mov dword [esp + 4], str.NSIS_Error
mov dword [esp], 0x437240
call fcn.00408823
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [0x40cf34]
lea ecx, [edi + 0x28000]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [ebp - 0x220], ecx
call fcn.00408823
push eax
push eax
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x437228], eax
push edx
movsx eax, byte [edi + 0x28000]
lea edx, [edi + 0x28001]
cmp al, 0x22
je 0x404c30
mov edx, dword [ebp - 0x220]
mov eax, 0x20
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00408127
push ebx
push ebx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x224], eax
push esi
xor esi, esi
cmp byte [eax], 0
je 0x404ce9
movsx edx, byte [eax]
cmp dl, 0x20
jne 0x404c64
inc eax
jmp 0x404c59
cmp dl, 0x22
jne 0x404c6c
inc eax
jmp 0x404c71
mov edx, 0x20
cmp byte [eax], 0x2f
jne 0x404ccc
cmp byte [eax + 1], 0x53
lea ebx, [eax + 1]
jne 0x404c8f
test byte [eax + 2], 0xdf
jne 0x404c8f
mov dword [0x419040], 1
cmp dword [eax + 1], 0x4352434e
jne 0x404ca4
test byte [eax + 5], 0xdf
mov ecx, 4
cmove esi, ecx
cmp dword [eax - 1], 0x3d442f20
jne 0x404cca
mov byte [eax - 1], 0
add eax, 3
mov dword [esp + 4], eax
lea eax, [edi + 0x2a000]
mov dword [esp], eax
call fcn.00408823
push ecx
push ecx
jmp 0x404ce9
mov eax, ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00408127
push edx
push edx
cmp byte [eax], 0x22
jne 0x404c50
inc eax
jmp 0x404c50
mov eax, dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ebx, [edi + 0x32000]
mov dword [esp], 0x2000
mov dword [esp + 4], ebx
mov dword [ebp - 0x21c], eax
call eax
push eax
push eax
call fcn.00404938
test eax, eax
je 0x404d40
lea eax, [edi + 0x30000]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
mov dword [esp], esi
call fcn.00404586
mov dword [ebp - 0x21c], eax
push esi
xor esi, esi
test eax, eax
jne 0x40508c
jmp 0x404de1
mov dword [esp + 4], 0x1ffb
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push eax
push eax
mov dword [esp + 4], str.Temp
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcatA
push edx
push edx
call fcn.00404938
test eax, eax
jne 0x404d12
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x21c]
mov dword [esp], 0x1ffc
call eax
push eax
push eax
mov dword [esp + 4], 0x40c96f
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcatA
mov edx, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push eax
push eax
mov dword [ebp - 0x21c], edx
mov dword [esp + 4], ebx
mov dword [esp], str.TEMP
call edx
mov edx, dword [ebp - 0x21c]
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x40c978
call edx
push eax
push eax
call fcn.00404938
test eax, eax
jne 0x404d12
mov dword [ebp - 0x21c], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
jmp 0x40508a
cmp dword [0x423104], 0
je 0x40506a
mov eax, dword [ebp - 0x220]
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00408127
push esi
push esi
mov ecx, dword [ebp - 0x220]
cmp eax, ecx
jb 0x404e68
cmp dword [eax], 0x3d3f5f20
je 0x404e19
dec eax
jmp 0x404e04
lea ebx, [eax + 4]
mov byte [eax], 0
mov dword [esp], ebx
call fcn.00408d3f
push edx
test eax, eax
jne 0x404e3b
mov dword [ebp - 0x21c], str.Error_launching_installer
jmp 0x40508a
lea eax, [edi + 0x2a000]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00408823
lea eax, [edi + 0x2c000]
push esi
push esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00408823
push edi
push edi
jmp 0x40506a
call fcn.00408ec8
mov dword [esp], ebx
lea esi, [edi + 0xa000]
mov dword [ebp - 0x22c], eax
call sub.KERNEL32.dll_lstrlenA
mov dword [ebp - 0x220], eax
lea eax, [edi + 0xc000]
push edx
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x224]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00408823
push ecx
push ecx
cmp byte [edi + 0x2a000], 0
jne 0x404ecb
lea eax, [edi + 0x2e000]
mov dword [esp + 4], eax
lea eax, [edi + 0x2a000]
mov dword [esp], eax
call fcn.00408823
push eax
push eax
mov word [ebp - 0x224], 1
mov eax, dword [ebp - 0x220]
lea eax, [edi + eax + 0x32000]
mov dword [ebp - 0x234], eax
movzx eax, word [ebp - 0x224]
xor edx, edx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x230]
mov dword [esp + 4], str.nsu_X.tmp
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x234]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x423110]
mov eax, dword [eax + 0x120]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00408eee
cmp dword [ebp - 0x22c], 0
push ecx
push ecx
mov dword [esp], ebx
je 0x404f49
call fcn.00407f70
jmp 0x404f4e
call fcn.00407fd0
push edx
test eax, eax
je 0x404fa7
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
bt eax, 0xa
push ecx
jb 0x405058
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edx
test eax, eax
je 0x405058
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.00409474
cmp dword [ebp - 0x220], 0
push eax
push eax
jne 0x405058
mov dword [ebp - 0x220], 1
jmp 0x404efc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor eax, eax
push ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0040942f
push eax
push eax
lea eax, [edi + 0x36000]
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 0x404e2c
xor eax, eax
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040942f
push eax
push eax
mov eax, dword [0x423110]
mov eax, dword [eax + 0x124]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x228]
mov dword [esp], eax
call fcn.00408eee
push eax
push eax
mov eax, dword [ebp - 0x228]
mov dword [esp], eax
call fcn.00407ffc
push edx
test eax, eax
je 0x405035
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
jmp 0x40508a
cmp dword [ebp - 0x220], 0
jne 0x404e2c
mov dword [esp], esi
call fcn.00408d07
push ecx
test eax, eax
je 0x404f98
jmp 0x404e2c
inc word [ebp - 0x224]
jne 0x404ee7
jmp 0x404e2c
mov dword [0x41904c], 0xffffffff
call fcn.004069e8
mov dword [esp], 1
mov esi, eax
call fcn.00408a11
push eax
jmp 0x40508c
xor esi, esi
call fcn.00404993
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [ebp - 0x21c], 0
mov ebx, dword [sym.imp.KERNEL32.dll_ExitProcess]
je 0x4050ca
mov eax, dword [ebp - 0x21c]
mov dword [esp + 4], 0x200010
mov dword [esp], eax
call fcn.004080bb
push eax
push eax
mov dword [esp], 2
jmp 0x4051d2
cmp dword [0x419034], 0
je 0x4051c4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x218]
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 0x405163
lea eax, [ebp - 0x174]
mov dword [esp + 4], str.SeShutdownPrivilege
lea edi, [ebp - 0x178]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
xor eax, eax
mov dword [ebp - 0x178], 1
mov dword [ebp - 0x16c], 2
sub esp, 0xc
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 - 0x218]
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.00408e7c
push edi
test eax, eax
jne 0x405191
mov dword [esp + 4], 0x80040002
mov dword [esp], 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push ecx
push ecx
test eax, eax
je 0x4051b7
jmp 0x4051c4
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 0x405174
mov dword [esp], 9
call fcn.00404030
push eax
mov eax, dword [0x41904c]
cmp eax, 0xffffffff
cmove eax, esi
mov dword [esp], eax
call ebx