Function at 0x40416d
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 [0x452a70], eax
mov dword [esp], 8
call fcn.00407e2f
mov dword [0x452b40], eax
push edi
lea eax, [ebp - 0x178]
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], 0x452b80
call fcn.004078d2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [esp], 0x485000
mov dword [esp + 4], eax
call fcn.004078d2
push eax
push eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x452b48], eax
movsx eax, byte [0x485000]
push edx
mov edx, 0x485001
cmp al, 0x22
je 0x40423f
mov edx, 0x485000
mov eax, 0x20
mov dword [esp], edx
mov dword [esp + 4], eax
xor ebx, ebx
call fcn.004074c0
push edx
push edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CharNextA]
push ecx
mov dword [ebp - 0x18c], eax
cmp byte [eax], 0
je 0x404301
mov cl, byte [eax]
cmp cl, 0x20
jne 0x404272
inc eax
jmp 0x404268
cmp cl, 0x22
mov edx, 0x20
jne 0x404282
inc eax
mov edx, 0x22
cmp byte [eax], 0x2f
jne 0x4042e4
cmp byte [eax + 1], 0x53
lea edi, [eax + 1]
jne 0x4042a1
mov cl, byte [eax + 2]
mov esi, ebx
or esi, 2
or ecx, 0x20
cmp cl, 0x20
cmove ebx, esi
cmp dword [eax + 1], 0x4352434e
jne 0x4042bb
mov cl, byte [eax + 5]
mov esi, ebx
or esi, 4
or ecx, 0x20
cmp cl, 0x20
cmove ebx, esi
cmp dword [eax - 1], 0x3d442f20
jne 0x4042e2
mov dword [eax - 1], 0
add eax, 3
mov dword [esp], 0x487000
mov dword [esp + 4], eax
call fcn.004078d2
push edi
push edi
jmp 0x404301
mov eax, edi
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004074c0
xor edx, edx
push esi
push esi
cmp byte [eax], 0x22
sete dl
add eax, edx
jmp 0x40425f
mov dword [esp + 4], 0x48f000
mov dword [esp], 0x2000
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ecx
push ecx
call fcn.004040c8
test eax, eax
je 0x404348
mov dword [esp], 0x48d000
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call edi
push eax
mov dword [esp], ebx
xor ebx, ebx
call fcn.00403dae
test eax, eax
push edx
mov esi, eax
jne 0x4044fe
jmp 0x404388
mov dword [esp + 4], 0x1ffb
mov dword [esp], 0x48f000
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
mov dword [esp + 4], str.Temp
mov dword [esp], 0x48f000
call fcn.00407905
push edi
push edi
call fcn.004040c8
test eax, eax
jne 0x404321
mov esi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
jmp 0x4044fc
cmp dword [0x452b08], 0
je 0x4043f4
mov dword [esp + 4], 0
mov dword [esp], 0x485000
call fcn.004074c0
push ecx
push ecx
cmp eax, 0x485000
jb 0x40440a
cmp dword [eax], 0x3d3f5f20
je 0x4043b9
dec eax
jmp 0x4043a7
lea ebx, [eax + 4]
mov byte [eax], 0
mov dword [esp], ebx
call fcn.00407d7c
test eax, eax
push ecx
je 0x404656
mov dword [esp + 4], ebx
mov dword [esp], 0x487000
call fcn.004078d2
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x489000
call fcn.004078d2
push edx
push edx
mov dword [0x452a64], 0xffffffff
call fcn.00405df8
mov ebx, eax
jmp 0x4044fe
mov dword [esp + 4], str.nsu.tmp
mov dword [esp], 0x48f000
call fcn.00407905
push eax
push eax
mov dword [esp + 4], 0x48b000
mov dword [esp], 0x48f000
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
push edx
push edx
je 0x404656
mov dword [esp + 4], 0
mov dword [esp], 0x48f000
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push eax
push eax
mov dword [esp], 0x48f000
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [0x487000], 0
push eax
jne 0x404483
mov dword [esp + 4], 0x48b000
mov dword [esp], 0x487000
call fcn.004078d2
push eax
push eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], section..ndata
mov ebx, 0x1a
mov esi, str.Error_launching_installer
mov dword [esp + 4], eax
call fcn.004078d2
push eax
push eax
mov word [0x45f000], 0x41
mov eax, dword [0x452a80]
mov eax, dword [eax + 0x120]
mov dword [esp], 0x43a4c0
mov dword [esp + 4], eax
call fcn.00407a22
push ecx
push ecx
mov dword [esp], 0x43a4c0
call edi
test esi, esi
push eax
jne 0x404660
inc byte [0x45f000]
dec ebx
jne 0x4044ae
mov dword [esp + 4], 0
mov dword [esp], 0x48f000
call fcn.00407e82
push ebx
push ebx
xor ebx, ebx
call fcn.0040412c
call dword [sym.imp.ole32.dll_OleUninitialize]
test esi, esi
je 0x40452b
mov dword [esp + 4], 0x200010
mov dword [esp], esi
call fcn.00407452
push ecx
push ecx
mov dword [esp], 2
jmp 0x404650
cmp dword [0x452a4c], 0
je 0x404642
mov dword [esp], 3
call fcn.00407e2f
push edx
mov edi, eax
mov dword [esp], 4
call fcn.00407e2f
push ecx
mov esi, eax
mov dword [esp], 5
call fcn.00407e2f
test esi, esi
push edx
mov dword [ebp - 0x18c], eax
setne dl
test edi, edi
setne al
test dl, al
je 0x40461a
cmp dword [ebp - 0x18c], 0
je 0x40461a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x17c]
mov dword [esp + 4], 0x28
mov dword [esp], eax
mov dword [esp + 8], edx
call edi
sub esp, 0xc
test eax, eax
je 0x40461a
lea eax, [ebp - 0x174]
mov dword [esp + 4], str.SeShutdownPrivilege
mov dword [esp], 0
lea edi, [ebp - 0x178]
mov dword [esp + 8], eax
call esi
mov eax, dword [ebp - 0x17c]
sub esp, 0xc
mov dword [ebp - 0x178], 1
mov dword [ebp - 0x16c], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [ebp - 0x18c]
sub esp, 0x18
mov dword [esp + 4], 0
mov dword [esp], 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
push edi
push edi
jne 0x404642
mov dword [esp], 9
call fcn.004038ff
push esi
mov eax, dword [0x452a64]
cmp eax, 0xffffffff
cmovne ebx, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, str.Error_launching_installer
jmp 0x4044fc
mov dword [esp + 8], 1
mov dword [esp + 4], 0x43a4c0
mov dword [esp], 0x493000
call dword [sym.imp.KERNEL32.dll_CopyFileA]
sub esp, 0xc
test eax, eax
je 0x4044dd
mov dword [esp + 4], 0
mov dword [esp], 0x43a4c0
call fcn.00407e82
push eax
push eax
mov eax, dword [0x452a80]
mov eax, dword [eax + 0x124]
mov dword [esp], 0x43a4c0
mov dword [esp + 4], eax
call fcn.00407a22
push eax
push eax
mov dword [esp], 0x43a4c0
call fcn.00407394
test eax, eax
push edx
je 0x4044dd
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
xor esi, esi
jmp 0x4044dd