Function at 0x404290
Capabilities:
Accept command line arguments
Copy file
Create directory
Delete file
Get common file path
Get file system object information
Set current directory
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1ac
call sub.COMCTL32.DLL_InitCommonControls
mov dword [esp], 0x8001
call sub.KERNEL32.dll_SetErrorMode
push edi
mov dword [esp], 0
call sub.OLE32.dll_OleInitialize
push edx
mov dword [0x425b40], eax
mov dword [esp], 8
call fcn.00407d7e
push ecx
mov dword [0x425b9c], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x160
lea eax, [ebp - 0x17c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x40b301
call sub.SHELL32.DLL_SHGetFileInfoA
sub esp, 0x14
mov dword [esp + 4], str.NSIS_Error
mov dword [esp], 0x425ba8
call fcn.004078bf
push ebx
push ebx
call sub.KERNEL32.dll_GetCommandLineA
mov dword [esp + 4], eax
mov dword [esp], 0x42e000
call fcn.004078bf
push esi
push esi
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
push edi
mov dword [0x425ba4], eax
cmp byte [0x42e000], 0x22
je 0x404354
mov eax, 0x42e000
mov dl, 0x20
jmp 0x40435b
mov eax, 0x42e001
mov dl, 0x22
movsx edx, dl
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004074c7
push ebx
push ebx
mov dword [esp], eax
call fcn.004098f0
push esi
mov edi, eax
xor ebx, ebx
jmp 0x404405
inc eax
mov dl, byte [eax]
cmp dl, 0x20
je 0x40437e
mov cl, 0x20
cmp dl, 0x22
jne 0x404390
inc eax
mov cl, 0x22
cmp byte [eax], 0x2f
jne 0x4043ea
cmp byte [eax + 1], 0x53
jne 0x4043a9
mov dl, byte [eax + 2]
or edx, 0x20
cmp dl, 0x20
jne 0x4043a9
or ebx, 2
cmp dword [eax + 1], 0x4352434e
jne 0x4043c0
mov dl, byte [eax + 5]
or edx, 0x20
cmp dl, 0x20
jne 0x4043c0
or ebx, 4
cmp dword [eax - 1], 0x3d442f20
je 0x4043cc
inc eax
jmp 0x4043ea
mov dword [eax - 1], 0
add eax, 3
mov dword [esp + 4], eax
mov dword [esp], 0x42e400
call fcn.004078bf
push ecx
push ecx
jmp 0x40440e
movsx ecx, cl
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.004074c7
push edx
push edx
xor edx, edx
cmp byte [eax], 0x22
sete dl
add eax, edx
cmp byte [eax], 0
jne 0x40437f
mov dword [esp + 4], 0x42f400
mov dword [esp], 0x400
call sub.KERNEL32.dll_GetTempPathA
push eax
push eax
call fcn.004041d0
test eax, eax
jne 0x404466
mov dword [esp + 4], 0x3fb
mov dword [esp], 0x42f400
call sub.KERNEL32.dll_GetWindowsDirectoryA
push ecx
push ecx
mov dword [esp + 4], str.Temp
mov dword [esp], 0x42f400
call fcn.004078ef
push esi
push esi
call fcn.004041d0
test eax, eax
je 0x404660
mov dword [esp], 0x42f000
call sub.KERNEL32.dll_DeleteFileA
push esi
mov dword [esp], ebx
call fcn.00403e19
push edx
mov esi, eax
xor ebx, ebx
test eax, eax
jne 0x40466e
cmp dword [0x425b94], 0
je 0x40464d
mov dword [esp + 4], 0
mov dword [esp], 0x42e000
call fcn.004074c7
push ebx
push ebx
jmp 0x4044ae
dec eax
cmp eax, 0x42e000
jb 0x4044c2
cmp dword [eax], 0x3d3f5f20
jne 0x4044ad
jmp 0x4047c7
mov dword [esp + 4], str.nsu.tmp
mov dword [esp], 0x42f400
call fcn.004078ef
push edx
push edx
mov dword [esp + 4], 0x42ec00
mov dword [esp], 0x42f400
call sub.KERNEL32.dll_lstrcmpiA
push ecx
push ecx
test eax, eax
je 0x404667
jmp 0x404521
mov dword [esp + 4], ebx
mov dword [esp], 0x42e400
call fcn.004078bf
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x42e800
call fcn.004078bf
push eax
push eax
jmp 0x40464d
mov dword [esp + 4], 0
mov dword [esp], 0x42f400
call sub.KERNEL32.dll_CreateDirectoryA
push eax
push eax
mov dword [esp], 0x42f400
call sub.KERNEL32.dll_SetCurrentDirectoryA
push eax
cmp byte [0x42e400], 0
jne 0x404563
mov dword [esp + 4], 0x42ec00
mov dword [esp], 0x42e400
call fcn.004078bf
push eax
push eax
mov dword [esp + 4], edi
mov dword [esp], section..ndata
call fcn.004078bf
push eax
push eax
mov word [0x429400], 0x41
mov ebx, 0x1a
mov esi, str.Error_launching_installer
mov eax, dword [0x425b48]
mov eax, dword [eax + 0x120]
mov dword [esp + 4], eax
mov dword [esp], 0x421ce8
call fcn.004079bf
push ecx
push ecx
mov dword [esp], 0x421ce8
call sub.KERNEL32.dll_DeleteFileA
push edi
test esi, esi
je 0x404628
mov dword [esp + 8], 1
mov dword [esp + 4], 0x421ce8
mov dword [esp], 0x42fc00
call sub.KERNEL32.dll_CopyFileA
sub esp, 0xc
test eax, eax
je 0x404628
mov dword [esp + 4], 0
mov dword [esp], 0x421ce8
call fcn.00407dce
push eax
push eax
mov eax, dword [0x425b48]
mov eax, dword [eax + 0x124]
mov dword [esp + 4], eax
mov dword [esp], 0x421ce8
call fcn.004079bf
push eax
push eax
mov dword [esp], 0x421ce8
call fcn.0040735c
push edx
test eax, eax
je 0x404628
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push eax
xor esi, esi
inc byte [0x429400]
dec ebx
jne 0x404588
mov dword [esp + 4], 0
mov dword [esp], 0x42f400
call fcn.00407dce
push edi
push edi
jmp 0x40466c
mov dword [0x425b34], 0xffffffff
call fcn.00405d8a
mov ebx, eax
jmp 0x40466e
mov esi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
jmp 0x40466c
mov esi, str.Error_launching_installer
xor ebx, ebx
call fcn.00404233
call sub.OLE32.dll_OleUninitialize
test esi, esi
je 0x40469a
mov dword [esp + 4], 0x200010
mov dword [esp], esi
call fcn.00407415
push ebx
push ebx
mov dword [esp], 2
jmp 0x4047c2
cmp dword [0x425b1c], 0
je 0x4047b3
mov dword [esp], 3
call fcn.00407d7e
push edi
mov dword [ebp - 0x18c], eax
mov dword [esp], 4
call fcn.00407d7e
push edx
mov edi, eax
mov dword [esp], 5
call fcn.00407d7e
push ecx
mov esi, eax
test edi, edi
je 0x40478c
cmp dword [ebp - 0x18c], 0
je 0x40478c
test eax, eax
je 0x40478c
call sub.KERNEL32.dll_GetCurrentProcess
lea edx, [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x28
mov dword [esp], eax
call dword [ebp - 0x18c]
sub esp, 0xc
test eax, eax
je 0x40478c
lea edx, [ebp - 0x17c]
lea eax, [ebp - 0x178]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SeShutdownPrivilege
mov dword [esp], 0
mov dword [ebp - 0x190], edx
call edi
sub esp, 0xc
mov dword [ebp - 0x17c], 1
mov dword [ebp - 0x170], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov edx, dword [ebp - 0x190]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call esi
sub esp, 0x18
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.USER32.dll_ExitWindowsEx
push esi
push esi
test eax, eax
jne 0x4047b3
mov dword [esp], 9
call fcn.00403823
push ecx
mov eax, dword [0x425b34]
cmp eax, 0xffffffff
je 0x4047bf
mov ebx, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_ExitProcess
mov byte [eax], 0
lea ebx, [eax + 4]
mov dword [esp], ebx
call fcn.00407cce
push edx
test eax, eax
je 0x404667
jmp 0x4044f8