Function at 0x403be3
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:
sub esp, 0x2cc
push ebx
push ebp
push esi
push edi
push 0x20
xor ebp, ebp
mov edi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
pop ecx
mov dword [esp + 0x10], ebp
mov ebx, ebp
mov esi, ecx
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
call dword [sym.imp.ole32.dll_OleInitialize]
push 8
mov dword [0x959d24], eax
call fcn.00406fcf
push ebp
push 0x2b4
mov dword [0x92dd90], eax
lea eax, [esp + 0x30]
push eax
push ebp
push 0x40a288
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push str.NSIS_Error
push 0x92dda0
call fcn.00407254
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0xb11740
call fcn.00407254
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x22
pop ecx
mov dword [0x92dd94], eax
mov eax, 0xb11740
cmp word [0xb11740], cx
jne 0x403c83
mov esi, ecx
mov eax, 0xb11742
push esi
push eax
call fcn.00406b67
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x403d2e
push 0x20
pop ecx
cmp ax, cx
jne 0x403cac
add esi, 2
cmp word [esi], cx
je 0x403ca4
push 0x22
pop eax
mov ebp, ecx
cmp word [esi], ax
jne 0x403cbb
add esi, 2
mov ebp, eax
cmp word [esi], 0x2f
jne 0x403d1a
add esi, 2
cmp word [esi], 0x53
jne 0x403cdb
movzx eax, word [esi + 2]
cmp ax, cx
je 0x403cd8
test ax, ax
jne 0x403cdb
or ebx, 2
push 4
push str.NCRC
push esi
call fcn.00403b88
add esp, 0xc
test eax, eax
jne 0x403d03
movzx eax, word [esi + 8]
push 0x20
pop ecx
cmp ax, cx
je 0x403d00
test ax, ax
jne 0x403d03
or ebx, 4
push 4
lea eax, [esi - 4]
push str.__D
push eax
call fcn.00403b88
add esp, 0xc
test eax, eax
je 0x403d3c
push ebp
push esi
call fcn.00406b67
mov esi, eax
push 0x22
pop eax
cmp word [esi], ax
jne 0x403d2e
add esi, 2
movzx eax, word [esi]
test ax, ax
jne 0x403c9c
jmp 0x403d5a
push 8
lea eax, [esi - 4]
push 0
push eax
call fcn.00408609
add esp, 0xc
lea eax, [esi + 4]
push eax
push 0xb276d0
call fcn.00407254
mov ebp, 0xb7f510
push ebp
push 0xafc8
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.00403b54
test eax, eax
jne 0x403d98
push 0xafc3
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Temp
push ebp
call sub.KERNEL32.dll_lstrcatW
call fcn.00403b54
test eax, eax
je 0x403f30
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xb69580
call ebp
push ebx
call fcn.004037d7
mov edi, eax
test edi, edi
jne 0x403f30
cmp dword [0x959cc0], eax
je 0x403e25
xor ebx, ebx
mov edi, 0xb11740
push ebx
push edi
call fcn.00406b67
mov esi, eax
jmp 0x403de6
push 4
push str.___
push esi
call fcn.00403b88
add esp, 0xc
test eax, eax
je 0x403dea
sub esi, 2
cmp esi, edi
jae 0x403dcf
mov edi, str.Error_launching_installer
cmp esi, 0xb11740
jb 0x403e3f
xor eax, eax
mov word [esi], ax
add esi, 8
push esi
call fcn.00406b86
test eax, eax
je 0x403f2c
push esi
push 0xb276d0
call fcn.00407254
push esi
push 0xb3d660
call fcn.00407254
mov edi, ebx
or dword [0x959dac], 0xffffffff
call fcn.00405d5a
push 1
mov ebp, eax
call fcn.00406c36
jmp 0x403f34
push str.nsu.tmp
mov esi, 0xb7f510
push esi
call sub.KERNEL32.dll_lstrcatW
push 0xb535f0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403f2c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp word [0xb276d0], bx
jne 0x403e8a
push 0xb535f0
push 0xb276d0
call fcn.00407254
push dword [esp + 0x14]
push section..ndata
call fcn.00407254
push 0x40a2e8
push 0x96ff90
call fcn.00407254
push 0x1a
pop esi
mov eax, dword [0x959ccc]
push dword [eax + 0x120]
push 0x80c7e0
call fcn.004064f6
push 0x80c7e0
call ebp
test edi, edi
je 0x403f17
push 1
push 0x80c7e0
push 0xbab430
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x403f17
push ebx
push 0x80c7e0
call fcn.004067e6
mov eax, dword [0x959ccc]
push dword [eax + 0x124]
push 0x80c7e0
call fcn.004064f6
push 0x80c7e0
call fcn.00406d35
test eax, eax
je 0x403f17
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
inc word [0x96ff90]
dec esi
jne 0x403eaa
push ebx
push 0xb7f510
call fcn.004067e6
mov ebp, ebx
jmp 0x403f34
mov ebp, dword [esp + 0x10]
call fcn.00403b12
call dword [sym.imp.ole32.dll_OleUninitialize]
test edi, edi
je 0x403f56
push 0x200010
push edi
call fcn.00407125
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x959d94], 0
je 0x403fde
push 3
call fcn.00406fcf
push 4
mov ebx, eax
call fcn.00406fcf
push 5
mov esi, eax
call fcn.00406fcf
mov edi, eax
test ebx, ebx
je 0x403fc9
test esi, esi
je 0x403fc9
test edi, edi
je 0x403fc9
lea eax, [esp + 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x403fc9
lea eax, [esp + 0x1c]
push eax
push 0x40a2ec
push 0
call esi
xor ecx, ecx
mov dword [esp + 0x18], 1
push ecx
push ecx
push ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x30], 2
push eax
push ecx
push dword [esp + 0x28]
call edi
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403fde
push 9
call fcn.00401424
cmp dword [0x959dac], 0xffffffff
cmovne ebp, dword [0x959dac]
push ebp
jmp 0x403f50