Function at 0x403e3f
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
mov dword [0x430928], eax
push ecx
mov dword [esp], 8
call fcn.004070a2
mov dword [0x4309d8], 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], 0x430a08
call fcn.00407326
push edi
push edi
call sub.KERNEL32.dll_GetCommandLineA
mov dword [esp], 0x439000
mov dword [esp + 4], eax
call fcn.00407326
push esi
push esi
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x4309f8], eax
push ebx
cmp byte [0x439000], 0x22
je 0x403f03
mov eax, 0x439000
mov dl, 0x20
jmp 0x403f0a
mov eax, 0x439001
mov dl, 0x22
movsx edx, dl
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00407128
xor ebx, ebx
push ecx
push ecx
mov dword [esp], eax
call fcn.00409598
mov esi, eax
push edx
jmp 0x403fb2
inc eax
mov dl, byte [eax]
cmp dl, 0x20
je 0x403f2d
mov cl, 0x20
cmp dl, 0x22
jne 0x403f3f
inc eax
mov cl, 0x22
cmp byte [eax], 0x2f
jne 0x403f97
inc eax
cmp byte [eax], 0x53
jne 0x403f58
mov dl, byte [eax + 1]
or edx, 0x20
cmp dl, 0x20
jne 0x403f58
or ebx, 2
cmp dword [eax], 0x4352434e
jne 0x403f6e
mov dl, byte [eax + 4]
or edx, 0x20
cmp dl, 0x20
jne 0x403f6e
or ebx, 4
lea edx, [eax - 2]
cmp dword [eax - 2], 0x3d442f20
jne 0x403f97
mov dword [edx], 0
add eax, 2
mov dword [esp + 4], eax
mov dword [esp], 0x439400
call fcn.00407326
push eax
push eax
jmp 0x403fbb
movsx ecx, cl
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00407128
xor edx, edx
push edi
push edi
cmp byte [eax], 0x22
sete dl
add eax, edx
cmp byte [eax], 0
jne 0x403f2e
mov dword [esp + 4], 0x43a400
mov dword [esp], 0x400
call sub.KERNEL32.dll_GetTempPathA
push ecx
push ecx
call fcn.00403ddc
test eax, eax
jne 0x404016
mov dword [esp + 4], 0x3fb
mov dword [esp], 0x43a400
call sub.KERNEL32.dll_GetWindowsDirectoryA
push edx
push edx
mov dword [esp + 4], str.Temp
mov dword [esp], 0x43a400
call fcn.00407292
push eax
push eax
call fcn.00403ddc
test eax, eax
jne 0x404016
mov ebx, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
jmp 0x404032
mov dword [esp], 0x43a000
call sub.KERNEL32.dll_DeleteFileA
push edi
mov dword [esp], ebx
call fcn.004039a9
test eax, eax
push ecx
je 0x404039
mov ebx, eax
xor esi, esi
jmp 0x404214
cmp dword [0x4309b8], 0
je 0x404201
mov dword [esp + 4], 0
mov dword [esp], 0x439000
call fcn.00407128
push edx
push edx
jmp 0x40405f
dec eax
cmp eax, 0x439000
jb 0x404073
cmp dword [eax], 0x3d3f5f20
jne 0x40405e
jmp 0x40436d
mov dword [esp + 4], str.nsu.tmp
mov dword [esp], 0x43a400
call fcn.00407292
push edi
push edi
mov dword [esp + 4], 0x439c00
mov dword [esp], 0x43a400
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
push ebx
push ebx
je 0x404384
jmp 0x4040d2
mov dword [esp + 4], ebx
mov dword [esp], 0x439400
call fcn.00407326
push ecx
push ecx
mov dword [esp + 4], ebx
mov dword [esp], 0x439800
call fcn.00407326
push edx
push edx
jmp 0x404201
mov dword [esp + 4], 0
mov dword [esp], 0x43a400
call sub.KERNEL32.dll_CreateDirectoryA
push eax
push eax
mov dword [esp], 0x43a400
call sub.KERNEL32.dll_SetCurrentDirectoryA
cmp byte [0x439400], 0
push edi
jne 0x404114
mov dword [esp + 4], 0x439c00
mov dword [esp], 0x439400
call fcn.00407326
push ebx
push ebx
mov dword [esp + 4], esi
mov dword [esp], section..ndata
call fcn.00407326
xor esi, esi
mov word [0x434400], 0x41
mov ebx, str.Error_launching_installer
push ecx
push ecx
mov eax, dword [0x430948]
mov eax, dword [eax + 0x120]
mov dword [esp], 0x42b850
mov dword [esp + 4], eax
call fcn.00407417
push edx
push edx
mov dword [esp], 0x42b850
call sub.KERNEL32.dll_DeleteFileA
test ebx, ebx
push eax
je 0x4041d6
mov dword [esp + 8], 1
mov dword [esp + 4], 0x42b850
mov dword [esp], 0x43ac00
call sub.KERNEL32.dll_CopyFileA
sub esp, 0xc
test eax, eax
je 0x4041d6
mov dword [esp + 4], 0
mov dword [esp], 0x42b850
call fcn.00407904
mov eax, dword [0x430948]
push edi
push edi
mov eax, dword [eax + 0x124]
mov dword [esp], 0x42b850
mov dword [esp + 4], eax
call fcn.00407417
push ecx
push ecx
mov dword [esp], 0x42b850
call fcn.00407f18
test eax, eax
push edx
je 0x4041d6
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
xor ebx, ebx
push eax
inc esi
inc byte [0x434400]
cmp esi, 0x1a
jne 0x404136
mov dword [esp + 4], 0
mov dword [esp], 0x43a400
xor si, si
call fcn.00407904
push edi
push edi
jmp 0x404214
mov dword [0x430914], 0xffffffff
call fcn.00406b15
xor ebx, ebx
mov esi, eax
call fcn.00403d9c
call sub.OLE32.dll_OleUninitialize
test ebx, ebx
je 0x404240
mov dword [esp + 4], 0x200010
mov dword [esp], ebx
call fcn.00407e6d
push esi
push esi
mov dword [esp], 2
jmp 0x404368
cmp dword [0x4308fc], 0
je 0x404359
mov dword [esp], 3
call fcn.004070a2
mov dword [ebp - 0x18c], eax
push ebx
mov dword [esp], 4
call fcn.004070a2
mov edi, eax
push ecx
mov dword [esp], 5
call fcn.004070a2
mov ebx, eax
test edi, edi
push edx
je 0x404332
cmp dword [ebp - 0x18c], 0
je 0x404332
test eax, eax
je 0x404332
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 0x404332
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]
sub esp, 0xc
mov eax, dword [ebp - 0x1c]
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 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 0x404359
mov dword [esp], 9
call fcn.004035b6
push ecx
mov eax, dword [0x430914]
cmp eax, 0xffffffff
jne 0x404365
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.00407759
test eax, eax
push edx
jne 0x4040a9
mov ebx, str.Error_launching_installer
jmp 0x404032