Function at 0x404150
Capabilities:
Accept command line arguments
Copy file
Delete file
Get common file path
Terminate process

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
xor ebx, ebx
mov byte [esp + 0x14], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push str.NSIS_Error
push 0x46da20
mov dword [0x475ac8], eax
call fcn.00406d14
mov esi, 0x4da000
mov edi, 0x4000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.0040411c
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
jne 0x4041c9
push 0x3ffb
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push esi
call ebp
call fcn.0040411c
test eax, eax
je 0x404316
mov esi, 0x4c6000
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x4c6000], 0x22
mov dword [0x475a20], eax
jne 0x404204
mov byte [esp + 0x14], 0x22
mov esi, 0x4c6001
push dword [esp + 0x14]
push esi
call fcn.0040683c
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
mov dword [esp + 0x18], edi
mov cl, byte [eax]
test cl, cl
je 0x404296
cmp cl, 0x20
jne 0x40422c
inc eax
cmp byte [eax], 0x20
je 0x404226
cmp byte [eax], 0x22
mov byte [esp + 0x14], 0x20
jne 0x40423c
inc eax
mov byte [esp + 0x14], 0x22
cmp byte [eax], 0x2f
jne 0x404272
inc eax
cmp byte [eax], 0x53
jne 0x404255
mov cl, byte [eax + 1]
or cl, 0x20
cmp cl, 0x20
jne 0x404255
or ebx, 2
cmp dword [eax], 0x4352434e
jne 0x40426b
mov cl, byte [eax + 4]
or cl, 0x20
cmp cl, 0x20
jne 0x40426b
or ebx, 4
cmp word [eax], 0x3d44
je 0x404284
push dword [esp + 0x14]
push eax
call fcn.0040683c
cmp byte [eax], 0x22
jne 0x40421b
inc eax
jmp 0x40421b
and byte [eax - 1], 0
add eax, 2
push eax
push 0x4ca000
call fcn.00406d14
push ebx
call fcn.00403a93
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x404316
cmp dword [0x475a34], ebx
je 0x404305
push ebx
push edi
call fcn.0040683c
mov esi, eax
cmp esi, edi
jb 0x4042cf
cmp byte [esi], 0x5f
jne 0x4042cc
cmp byte [esi + 1], 0x3f
jne 0x4042cc
cmp byte [esi + 2], 0x3d
je 0x4042cf
dec esi
jmp 0x4042b7
cmp esi, edi
mov dword [esp + 0x10], str.Error_launching_installer
jb 0x40434c
and byte [esi], 0
add esi, 3
push esi
call fcn.004068f3
test eax, eax
je 0x404316
push esi
push 0x4ca000
call fcn.00406d14
push esi
push 0x4ce000
call fcn.00406d14
mov dword [esp + 0x10], ebx
call fcn.0040449e
push 1
mov dword [0x4377a4], eax
call fcn.0040701a
call fcn.0040443f
cmp dword [esp + 0x10], 0
pop edi
pop esi
pop ebp
pop ebx
je 0x404334
push 0x100010
push dword [esp + 4]
call fcn.004065e1
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x4377a4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [esp + 0x14], ebx
mov edi, 0x4377a9
mov esi, 0x4377a8
mov ebx, 0x4337a4
push 0x4da000
push edi
mov byte [0x4377a8], 0x22
call fcn.00406d14
push str.ANSISu_.exe
push esi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x10], 0
je 0x404425
push 0x4000
push ebx
push dword [0x475a20]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [eax + 0x433799]
push 0x40a7cd
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x404316
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x404425
push 0
push edi
call fcn.00406a50
cmp byte [0x4ca000], 0
je 0x4043e3
push 0x4ca000
push ebx
call fcn.00406d14
jmp 0x4043e9
push ebx
call fcn.00406858
push 0x40a7e4
push esi
call ebp
push dword [esp + 0x18]
push esi
call ebp
push str.___
push esi
call ebp
push ebx
push esi
call ebp
push esi
call fcn.00406810
push 0x4da000
push esi
call fcn.0040655a
test eax, eax
je 0x404425
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esp + 0x10], 0
inc byte [str.ANSISu_.exe]
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x1a
jl 0x40435f
jmp 0x404316