Function at 0x404101
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
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1ac
call dword [sym.imp.COMCTL32.DLL_InitCommonControls]
mov dword [esp], 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
mov dword [esp], 0
call dword [sym.imp.ole32.dll_OleInitialize]
push esi
mov dword [0x7c236c], eax
mov dword [esp], 8
call fcn.00407ccb
mov dword [0x7c23c8], eax
lea eax, [ebp - 0x17c]
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x160
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x40b2a9
call dword [sym.imp.SHELL32.DLL_SHGetFileInfoA]
sub esp, 0x14
mov dword [esp + 4], str.NSIS_Error
mov dword [esp], 0x7c23d4
call fcn.004077e9
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [esp], 0x7f5000
mov dword [esp + 4], eax
call fcn.004077e9
push eax
push eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x7f5000], 0x22
push edx
mov edx, 0x7f5001
mov dword [0x7c23d0], eax
mov eax, 0x7f5000
cmove eax, edx
sete dl
lea edx, [edx + edx + 0x20]
movsx edx, dl
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004073c8
push ecx
push ecx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
push ebx
xor ebx, ebx
jmp 0x404285
inc eax
mov dl, byte [eax]
cmp dl, 0x20
je 0x4041f8
cmp dl, 0x22
mov cl, 0x20
jne 0x40420a
inc eax
mov cl, 0x22
cmp byte [eax], 0x2f
jne 0x40426a
cmp byte [eax + 1], 0x53
jne 0x404226
mov dl, byte [eax + 2]
mov esi, ebx
or esi, 2
or edx, 0x20
cmp dl, 0x20
cmove ebx, esi
cmp dword [eax + 1], 0x4352434e
jne 0x404240
mov dl, byte [eax + 5]
mov esi, ebx
or esi, 4
or edx, 0x20
cmp dl, 0x20
cmove ebx, esi
cmp dword [eax - 1], 0x3d442f20
je 0x40424c
inc eax
jmp 0x40426a
mov dword [eax - 1], 0
add eax, 3
mov dword [esp + 4], eax
mov dword [esp], 0x7f7000
call fcn.004077e9
push ecx
push ecx
jmp 0x40428e
movsx ecx, cl
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.004073c8
push edx
push edx
xor edx, edx
cmp byte [eax], 0x22
sete dl
add eax, edx
cmp byte [eax], 0
jne 0x4041f9
mov dword [esp + 4], 0x7ff000
mov dword [esp], 0x2000
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
call fcn.0040405c
test eax, eax
jne 0x4042e8
mov dword [esp + 4], 0x1ffb
mov dword [esp], 0x7ff000
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
mov dword [esp + 4], str.Temp
mov dword [esp], 0x7ff000
call fcn.0040781c
push eax
push eax
call fcn.0040405c
test eax, eax
je 0x4044f6
mov dword [esp], 0x7fd000
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
mov dword [esp], ebx
call fcn.00403d31
push ebx
xor ebx, ebx
test eax, eax
mov esi, eax
jne 0x404504
cmp dword [0x7c23c0], 0
je 0x4044e3
mov dword [esp + 4], 0
mov dword [esp], 0x7f5000
call fcn.004073c8
push edx
push edx
jmp 0x404331
dec eax
cmp eax, 0x7f5000
jb 0x404345
cmp dword [eax], 0x3d3f5f20
jne 0x404330
jmp 0x404660
mov dword [esp + 4], str.nsu.tmp
mov dword [esp], 0x7ff000
call fcn.0040781c
push ecx
push ecx
mov dword [esp + 4], 0x7fb000
mov dword [esp], 0x7ff000
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
push ebx
push ebx
je 0x4044fd
jmp 0x4043a5
mov dword [esp + 4], ebx
mov dword [esp], 0x7f7000
call fcn.004077e9
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x7f9000
call fcn.004077e9
push edx
push edx
jmp 0x4044e3
mov dword [esp + 4], 0
mov dword [esp], 0x7ff000
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push eax
push eax
mov dword [esp], 0x7ff000
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [0x7f7000], 0
push eax
jne 0x4043e9
mov dword [esp + 4], 0x7fb000
mov dword [esp], 0x7f7000
call fcn.004077e9
push eax
push eax
mov dword [esp + 4], edi
mov ebx, 0x1a
mov esi, str.Error_launching_installer
mov dword [esp], section..ndata
call fcn.004077e9
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
mov word [0x7cf000], 0x41
push eax
push eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x18c], eax
mov eax, dword [0x7c2374]
mov eax, dword [eax + 0x120]
mov dword [esp], 0x7ab114
mov dword [esp + 4], eax
call fcn.004078fb
push ecx
push ecx
mov dword [esp], 0x7ab114
call dword [ebp - 0x18c]
test esi, esi
push eax
je 0x4044be
mov dword [esp + 8], 1
mov dword [esp + 4], 0x7ab114
mov dword [esp], 0x803000
call edi
sub esp, 0xc
test eax, eax
je 0x4044be
mov dword [esp + 4], 0
mov dword [esp], 0x7ab114
call fcn.00407d1e
push eax
push eax
mov eax, dword [0x7c2374]
mov eax, dword [eax + 0x124]
mov dword [esp], 0x7ab114
mov dword [esp + 4], eax
call fcn.004078fb
push eax
push eax
mov dword [esp], 0x7ab114
call fcn.00407250
test eax, eax
push edx
je 0x4044be
mov dword [esp], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
inc byte [0x7cf000]
dec ebx
jne 0x40441f
mov dword [esp + 4], 0
mov dword [esp], 0x7ff000
call fcn.00407d1e
push edi
push edi
jmp 0x404502
mov dword [0x7c2360], 0xffffffff
call fcn.00405c71
mov ebx, eax
jmp 0x404504
mov esi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
jmp 0x404502
mov esi, str.Error_launching_installer
xor ebx, ebx
call fcn.004040c0
call dword [sym.imp.ole32.dll_OleUninitialize]
test esi, esi
je 0x404531
mov dword [esp + 4], 0x200010
mov dword [esp], esi
call fcn.0040730e
push ebx
push ebx
mov dword [esp], 2
jmp 0x40465a
cmp dword [0x7c2348], 0
je 0x40464c
mov dword [esp], 3
call fcn.00407ccb
push edi
mov dword [ebp - 0x190], eax
mov dword [esp], 4
call fcn.00407ccb
push edx
mov edi, eax
mov dword [esp], 5
call fcn.00407ccb
test edi, edi
mov esi, eax
push ecx
je 0x404624
cmp dword [ebp - 0x190], 0
je 0x404624
test eax, eax
je 0x404624
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x28
mov dword [esp], eax
call dword [ebp - 0x190]
sub esp, 0xc
test eax, eax
je 0x404624
lea edx, [ebp - 0x17c]
lea eax, [ebp - 0x178]
mov dword [ebp - 0x194], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.SeShutdownPrivilege
mov dword [esp], 0
call edi
mov edx, dword [ebp - 0x194]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x17c], 1
mov dword [ebp - 0x170], 2
sub esp, 0xc
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call esi
sub esp, 0x18
mov dword [esp + 4], 0
mov dword [esp], 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
push esi
push esi
jne 0x40464c
mov dword [esp], 9
call fcn.0040389b
push ecx
mov eax, dword [0x7c2360]
cmp eax, 0xffffffff
cmovne ebx, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov byte [eax], 0
lea ebx, [eax + 4]
mov dword [esp], ebx
call fcn.00407c14
test eax, eax
push edx
je 0x4044fd
jmp 0x40437c