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

Disassembly:
sub esp, 0xc
and dword [esp + 4], 0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov bl, 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
mov esi, 0x42b400
mov edi, 0x400
push esi
push edi
mov dword [0x424fc8], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.0040408c
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
jne 0x40412b
push 0x3fb
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push esi
call ebp
call fcn.0040408c
test eax, eax
je 0x40427e
mov esi, 0x424740
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.NSIS_Error
push esi
call fcn.00406c3d
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, 0x42a000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x42a000], 0x22
mov dword [0x424f40], eax
mov eax, esi
jne 0x404175
mov bl, 0x22
mov eax, 0x42a001
mov cl, byte [eax]
mov edi, dword [sym.imp.USER32.dll_CharNextA]
test cl, cl
je 0x40418e
cmp cl, bl
je 0x40418e
push eax
call edi
mov cl, byte [eax]
test cl, cl
jne 0x404181
push eax
call edi
mov esi, eax
mov dword [esp + 0x18], esi
cmp byte [esi], 0x20
jne 0x4041a3
push esi
call edi
mov esi, eax
jmp 0x404197
cmp byte [esi], 0x2f
jne 0x4041ff
inc esi
cmp byte [esi], 0x53
jne 0x4041bc
mov al, byte [esi + 1]
or al, 0x20
cmp al, 0x20
jne 0x4041bc
or dword [esp + 0x14], 2
cmp dword [esi], 0x4352434e
jne 0x4041d2
mov al, byte [esi + 4]
or al, 0x20
cmp al, 0x20
jne 0x4041d2
or dword [esp + 0x14], 4
cmp word [esi], 0x3d44
je 0x4041e8
mov al, byte [esi]
or al, 0x20
cmp al, 0x20
je 0x404197
push esi
call edi
mov esi, eax
jmp 0x4041d9
and byte [esi - 2], 0
add esi, 2
push esi
push 0x42a400
call fcn.00406c3d
mov esi, 0x4210f8
push dword [esp + 0x14]
call fcn.00403a03
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x40427e
cmp dword [0x424f58], ebx
je 0x404275
cmp byte [esi], bl
mov edi, esi
je 0x40422a
inc edi
cmp byte [edi], 0
jne 0x404220
cmp edi, esi
jb 0x40423e
cmp byte [edi], 0x5f
jne 0x40423b
cmp byte [edi + 1], 0x3f
jne 0x40423b
cmp byte [edi + 2], 0x3d
je 0x40423e
dec edi
jmp 0x404226
cmp edi, esi
mov dword [esp + 0x10], str.Error_launching_installer
jb 0x4042b2
and byte [edi - 1], 0
add edi, 3
push edi
call fcn.0040681f
test eax, eax
je 0x40427e
push edi
push 0x42a400
call fcn.00406c3d
push edi
push 0x42a800
call fcn.00406c3d
mov dword [esp + 0x10], ebx
call fcn.004043e1
mov dword [esp + 0x18], eax
call fcn.004043a4
cmp dword [esp + 0x10], 0
pop edi
pop esi
pop ebp
pop ebx
je 0x40429c
push 0x100010
push dword [esp + 4]
call fcn.004064e0
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [esp + 0x14], ebx
mov edi, 0x4208f9
mov esi, 0x4208f8
mov ebx, 0x4204f8
push 0x42b400
push edi
mov byte [0x4208f8], 0x22
call fcn.00406c3d
push str.ANSISu_.exe
push esi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x10], 0
je 0x40438a
push 0x400
push ebx
push dword [0x424f40]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [eax + 0x4204ed]
push 0x40a275
push eax
call fcn.00407148
test eax, eax
je 0x40427e
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40438a
push 0
push edi
call fcn.00406979
cmp byte [0x42a400], 0
je 0x404348
push 0x42a400
push ebx
call fcn.00406c3d
jmp 0x40434e
push ebx
call fcn.004065d0
push 0x40a28c
push esi
call ebp
push dword [esp + 0x18]
push esi
call ebp
push 0x40a284
push esi
call ebp
push ebx
push esi
call ebp
push esi
call fcn.004065a4
push 0x42b400
push esi
call fcn.00406459
test eax, eax
je 0x40438a
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 0x4042c5
jmp 0x40427e