Function at 0x40404c
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, 0x2d4
push ebx
push ebp
push esi
push edi
push 0x20
xor ebp, ebp
pop esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [esp + 0x14], ebp
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 [0x4357d8], eax
call fcn.00406e39
mov dword [0x435744], eax
push ebp
lea eax, [esp + 0x34]
push 0x2b4
push eax
push ebp
push 0x42c7e8
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push str.NSIS_Error
push 0x434740
call fcn.00406aad
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, 0x440000
push eax
push edi
call fcn.00406aad
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp word [0x440000], 0x22
mov dword [0x435740], eax
mov eax, edi
jne 0x4040ec
push 0x22
mov eax, 0x440002
pop esi
push esi
push eax
call fcn.0040650b
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
mov dword [esp + 0x1c], esi
jmp 0x404191
push 0x20
pop ebx
cmp ax, bx
jne 0x404114
inc esi
inc esi
cmp word [esi], bx
je 0x40410d
cmp word [esi], 0x22
jne 0x40411f
inc esi
push 0x22
inc esi
pop ebx
cmp word [esi], 0x2f
jne 0x404180
inc esi
inc esi
cmp word [esi], 0x53
jne 0x404141
mov ax, word [esi + 2]
cmp ax, 0x20
je 0x40413c
cmp ax, bp
jne 0x404141
or dword [esp + 0x14], 2
push 4
push str.NCRC
push esi
call fcn.00403ff4
add esp, 0xc
test eax, eax
jne 0x404169
mov ax, word [esi + 8]
cmp ax, 0x20
je 0x404164
cmp ax, bp
jne 0x404169
or dword [esp + 0x14], 4
push 4
lea eax, [esi - 4]
push 0x40a2bc
push eax
call fcn.00403ff4
add esp, 0xc
test eax, eax
je 0x40419f
push ebx
push esi
call fcn.0040650b
mov esi, eax
cmp word [esi], 0x22
jne 0x404191
inc esi
inc esi
mov ax, word [esi]
cmp ax, bp
jne 0x404105
jmp 0x4041bc
push 8
lea eax, [esi - 4]
push ebp
push eax
call fcn.00407250
add esp, 0xc
add esi, 4
push esi
push 0x440800
call fcn.00406aad
mov ebx, 0x442800
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.00403fc0
test eax, eax
jne 0x4041fa
push 0x3fb
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Temp
push ebx
call sub.KERNEL32.dll_lstrcatW
call fcn.00403fc0
test eax, eax
je 0x404289
push 0x442000
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x14]
call fcn.00402ce1
cmp eax, ebp
mov dword [esp + 0x10], eax
jne 0x404289
cmp dword [0x43575c], ebp
je 0x404279
push ebp
push edi
call fcn.0040650b
mov esi, eax
jmp 0x40423f
push 4
push 0x40a2a4
push esi
call fcn.00403ff4
add esp, 0xc
test eax, eax
je 0x404243
dec esi
dec esi
cmp esi, edi
jae 0x404229
cmp esi, edi
mov dword [esp + 0x10], str.Error_launching_installer
jb 0x4042b4
mov word [esi], bp
add esi, 8
push esi
call fcn.004065e6
test eax, eax
je 0x404289
push esi
push 0x440800
call fcn.00406aad
push esi
push 0x441000
call fcn.00406aad
mov dword [esp + 0x10], ebp
or dword [0x4357cc], 0xffffffff
call fcn.00404500
mov dword [esp + 0x18], eax
call fcn.00404426
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [esp + 0x10], ebp
je 0x40438b
push 0x200010
push dword [esp + 0x14]
call fcn.004062a3
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x40a290
push ebx
call sub.KERNEL32.dll_lstrcatW
mov esi, 0x441800
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404289
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp word [0x440800], bp
jne 0x4042f3
push esi
push 0x440800
call fcn.00406aad
push dword [esp + 0x1c]
push section..ndata
call fcn.00406aad
push 0x40a28c
push 0x436800
call fcn.00406aad
push 0x1a
mov esi, 0x42bfe8
pop edi
mov eax, dword [0x435750]
push dword [eax + 0x10c]
push esi
call fcn.00406ae7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x10], ebp
je 0x404375
push 1
push esi
push 0x443800
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x404375
push ebp
push esi
call fcn.00406947
mov eax, dword [0x435750]
push dword [eax + 0x110]
push esi
call fcn.00406ae7
push esi
call fcn.00406242
cmp eax, ebp
je 0x404375
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebp
inc word [0x436800]
dec edi
jne 0x404318
push ebp
push ebx
call fcn.00406947
jmp 0x404289
cmp dword [0x4357b4], ebp
je 0x40440e
push 3
call fcn.00406e39
push 4
mov ebx, eax
call fcn.00406e39
push 5
mov esi, eax
call fcn.00406e39
cmp ebx, ebp
mov edi, eax
je 0x4043fa
cmp esi, ebp
je 0x4043fa
cmp edi, ebp
je 0x4043fa
lea eax, [esp + 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x4043fa
lea eax, [esp + 0x24]
push eax
push str.SeShutdownPrivilege
push ebp
call esi
push ebp
push ebp
lea eax, [esp + 0x28]
push ebp
push eax
push ebp
push dword [esp + 0x30]
mov dword [esp + 0x38], 1
mov dword [esp + 0x44], 2
call edi
push ebp
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x40440e
push 9
call fcn.004012fc
mov eax, dword [0x4357cc]
cmp eax, 0xffffffff
je 0x40441c
mov dword [esp + 0x18], eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_ExitProcess]