Function at 0x403e13
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 ebx
mov dword [esp], 0
call sub.OLE32.dll_OleInitialize
push ecx
mov dword [0x7a437c], eax
mov dword [esp], 8
call fcn.0040708e
mov dword [0x7a442c], eax
lea eax, [ebp - 0x17c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x160
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x40b24c
call sub.SHELL32.DLL_SHGetFileInfoA
sub esp, 0x14
mov dword [esp + 4], str.NSIS_Error
mov dword [esp], 0x7a445c
call fcn.00407312
push edi
push edi
call sub.KERNEL32.dll_GetCommandLineA
mov dword [esp], 0x7ad000
mov dword [esp + 4], eax
call fcn.00407312
push esi
push esi
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
cmp byte [0x7ad000], 0x22
push ebx
mov dword [0x7a444c], eax
je 0x403ed7
mov eax, 0x7ad000
mov dl, 0x20
jmp 0x403ede
mov eax, 0x7ad001
mov dl, 0x22
movsx edx, dl
xor ebx, ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00407114
push ecx
push ecx
mov dword [esp], eax
call fcn.0040904c
mov esi, eax
push edx
jmp 0x403f86
inc eax
mov dl, byte [eax]
cmp dl, 0x20
je 0x403f01
cmp dl, 0x22
mov cl, 0x20
jne 0x403f13
inc eax
mov cl, 0x22
cmp byte [eax], 0x2f
jne 0x403f6b
inc eax
cmp byte [eax], 0x53
jne 0x403f2c
mov dl, byte [eax + 1]
or edx, 0x20
cmp dl, 0x20
jne 0x403f2c
or ebx, 2
cmp dword [eax], 0x4352434e
jne 0x403f42
mov dl, byte [eax + 4]
or edx, 0x20
cmp dl, 0x20
jne 0x403f42
or ebx, 4
cmp dword [eax - 2], 0x3d442f20
lea edx, [eax - 2]
jne 0x403f6b
mov dword [edx], 0
add eax, 2
mov dword [esp + 4], eax
mov dword [esp], 0x7ad400
call fcn.00407312
push eax
push eax
jmp 0x403f8f
movsx ecx, cl
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00407114
xor edx, edx
push edi
push edi
cmp byte [eax], 0x22
sete dl
add eax, edx
cmp byte [eax], 0
jne 0x403f02
mov dword [esp + 4], 0x7ae400
mov dword [esp], 0x400
call sub.KERNEL32.dll_GetTempPathA
push ecx
push ecx
call fcn.00403db0
test eax, eax
jne 0x403fea
mov dword [esp + 4], 0x3fb
mov dword [esp], 0x7ae400
call sub.KERNEL32.dll_GetWindowsDirectoryA
push edx
push edx
mov dword [esp + 4], str.Temp
mov dword [esp], 0x7ae400
call fcn.0040727e
push eax
push eax
call fcn.00403db0
test eax, eax
jne 0x403fea
mov ebx, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
jmp 0x404006
mov dword [esp], 0x7ae000
call sub.KERNEL32.dll_DeleteFileA
push edi
mov dword [esp], ebx
call fcn.0040397c
test eax, eax
push ecx
je 0x40400d
mov ebx, eax
xor esi, esi
jmp 0x4041e8
cmp dword [0x7a440c], 0
je 0x4041d5
mov dword [esp + 4], 0
mov dword [esp], 0x7ad000
call fcn.00407114
push edx
push edx
jmp 0x404033
dec eax
cmp eax, 0x7ad000
jb 0x404047
cmp dword [eax], 0x3d3f5f20
jne 0x404032
jmp 0x404341
mov dword [esp + 4], str.nsu.tmp
mov dword [esp], 0x7ae400
call fcn.0040727e
push edi
push edi
mov dword [esp + 4], 0x7adc00
mov dword [esp], 0x7ae400
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
push ebx
push ebx
je 0x404358
jmp 0x4040a6
mov dword [esp + 4], ebx
mov dword [esp], 0x7ad400
call fcn.00407312
push ecx
push ecx
mov dword [esp + 4], ebx
mov dword [esp], 0x7ad800
call fcn.00407312
push edx
push edx
jmp 0x4041d5
mov dword [esp + 4], 0
mov dword [esp], 0x7ae400
call sub.KERNEL32.dll_CreateDirectoryA
push eax
push eax
mov dword [esp], 0x7ae400
call sub.KERNEL32.dll_SetCurrentDirectoryA
cmp byte [0x7ad400], 0
push edi
jne 0x4040e8
mov dword [esp + 4], 0x7adc00
mov dword [esp], 0x7ad400
call fcn.00407312
push ebx
push ebx
mov dword [esp + 4], esi
mov ebx, str.Error_launching_installer
xor esi, esi
mov dword [esp], section..ndata
call fcn.00407312
mov word [0x7a8400], 0x41
push ecx
push ecx
mov eax, dword [0x7a439c]
mov eax, dword [eax + 0x120]
mov dword [esp], 0x7a0514
mov dword [esp + 4], eax
call fcn.00407403
push edx
push edx
mov dword [esp], 0x7a0514
call sub.KERNEL32.dll_DeleteFileA
test ebx, ebx
push eax
je 0x4041aa
mov dword [esp + 8], 1
mov dword [esp + 4], 0x7a0514
mov dword [esp], 0x7aec00
call sub.KERNEL32.dll_CopyFileA
sub esp, 0xc
test eax, eax
je 0x4041aa
mov dword [esp + 4], 0
mov dword [esp], 0x7a0514
call fcn.004078ec
mov eax, dword [0x7a439c]
push edi
push edi
mov eax, dword [eax + 0x124]
mov dword [esp], 0x7a0514
mov dword [esp + 4], eax
call fcn.00407403
push ecx
push ecx
mov dword [esp], 0x7a0514
call fcn.00407efa
test eax, eax
push edx
je 0x4041aa
mov dword [esp], eax
xor ebx, ebx
call sub.KERNEL32.dll_CloseHandle
push eax
inc esi
inc byte [0x7a8400]
cmp esi, 0x1a
jne 0x40410a
mov dword [esp + 4], 0
xor si, si
mov dword [esp], 0x7ae400
call fcn.004078ec
push edi
push edi
jmp 0x4041e8
mov dword [0x7a4368], 0xffffffff
xor ebx, ebx
call fcn.00406b03
mov esi, eax
call fcn.00403d70
call sub.OLE32.dll_OleUninitialize
test ebx, ebx
je 0x404214
mov dword [esp + 4], 0x200010
mov dword [esp], ebx
call fcn.00407e4f
push esi
push esi
mov dword [esp], 2
jmp 0x40433c
cmp dword [0x7a4350], 0
je 0x40432d
mov dword [esp], 3
call fcn.0040708e
push ebx
mov dword [ebp - 0x18c], eax
mov dword [esp], 4
call fcn.0040708e
push ecx
mov edi, eax
mov dword [esp], 5
call fcn.0040708e
test edi, edi
mov ebx, eax
push edx
je 0x404306
cmp dword [ebp - 0x18c], 0
je 0x404306
test eax, eax
je 0x404306
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 0x404306
lea edx, [ebp - 0x17c]
lea eax, [ebp - 0x178]
mov dword [ebp - 0x190], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.SeShutdownPrivilege
mov dword [esp], 0
call edi
mov edx, dword [ebp - 0x190]
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 ebx
sub esp, 0x18
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.USER32.dll_ExitWindowsEx
test eax, eax
push ebx
push ebx
jne 0x40432d
mov dword [esp], 9
call fcn.004035b2
push ecx
mov eax, dword [0x7a4368]
cmp eax, 0xffffffff
jne 0x404339
mov eax, esi
mov dword [esp], eax
call sub.KERNEL32.dll_ExitProcess
mov byte [eax], 0
lea ebx, [eax + 4]
mov dword [esp], ebx
call fcn.00407741
test eax, eax
push edx
jne 0x40407d
mov ebx, str.Error_launching_installer
jmp 0x404006