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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
xor ebp, ebp
mov byte [esp + 0x13], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebp
call dword [sym.imp.ole32.dll_OleInitialize]
mov esi, 0x42a400
mov edi, 0x400
push esi
push edi
mov dword [0x423fa8], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.0040401f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
jne 0x4040bd
push 0x3fb
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push esi
call ebx
call fcn.0040401f
test eax, eax
je 0x404216
mov esi, 0x423720
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.NSIS_Error
push esi
call sub.KERNEL32.dll_lstrcpyA
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, 0x429000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x429000], 0x22
mov dword [0x423f20], eax
mov eax, esi
jne 0x40410a
mov byte [esp + 0x13], 0x22
mov eax, 0x429001
mov edi, dword [sym.imp.USER32.dll_CharNextA]
jmp 0x40411b
cmp cl, byte [esp + 0x13]
je 0x404121
push eax
call edi
mov cl, byte [eax]
test cl, cl
jne 0x404112
push eax
call edi
mov esi, eax
mov dword [esp + 0x1c], esi
jmp 0x404131
push esi
call edi
mov esi, eax
cmp byte [esi], 0x20
je 0x40412c
cmp byte [esi], 0x2f
jne 0x40417f
inc esi
cmp byte [esi], 0x53
jne 0x40414d
mov al, byte [esi + 1]
or al, 0x20
cmp al, 0x20
jne 0x40414d
or ebp, 2
cmp dword [esi], 0x4352434e
jne 0x404161
mov al, byte [esi + 4]
or al, 0x20
cmp al, 0x20
jne 0x404161
or ebp, 4
cmp word [esi], 0x3d44
jne 0x4041af
and byte [esi - 2], 0
add esi, 2
push esi
push 0x429400
call sub.KERNEL32.dll_lstrcpyA
mov esi, 0x4200f8
push ebp
call fcn.004039b8
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x404216
cmp dword [0x423f38], ebp
je 0x40420d
cmp byte [esi], 0
mov edi, esi
je 0x4041bc
inc edi
cmp byte [edi], 0
jne 0x4041a2
jmp 0x4041ce
push esi
call edi
mov esi, eax
mov al, byte [esi]
or al, 0x20
cmp al, 0x20
jne 0x4041aa
jmp 0x404131
cmp byte [edi], 0x5f
jne 0x4041cd
cmp byte [edi + 1], 0x3f
jne 0x4041cd
cmp byte [edi + 2], 0x3d
je 0x4041d2
dec edi
cmp edi, esi
jae 0x4041bc
cmp edi, esi
mov dword [esp + 0x14], str.Error_launching_installer
jb 0x404286
and byte [edi - 1], 0
add edi, 3
push edi
call fcn.0040657e
test eax, eax
je 0x404216
push edi
push 0x429400
call sub.KERNEL32.dll_lstrcpyA
push edi
push 0x429800
call sub.KERNEL32.dll_lstrcpyA
mov dword [esp + 0x14], ebp
call fcn.00404379
mov dword [esp + 0x1c], eax
mov eax, dword [0x423f34]
pop edi
pop esi
pop ebp
cmp eax, 0xffffffff
pop ebx
je 0x40422b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x409094]
cmp eax, 0xffffffff
je 0x40423c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 4], 0
je 0x404251
push 0x100010
push dword [esp + 8]
call fcn.004063f4
cmp byte [0x42a800], 0
je 0x404266
push 1
push 0x42a800
call fcn.00406445
mov eax, dword [0x423708]
test eax, eax
je 0x404276
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [esp + 0x18], ebp
mov edi, 0x41f8f9
mov esi, 0x41f8f8
mov ebp, 0x41f4f8
push 0x42a400
push edi
mov byte [0x41f8f8], 0x22
call sub.KERNEL32.dll_lstrcpyA
push str.ANSISu_.exe
push esi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x14], 0
je 0x40435f
push 0x400
push ebp
push dword [0x423f20]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [eax + 0x41f4ed]
push 0x40927d
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x404216
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40435f
push 0
push edi
call fcn.004066db
cmp byte [0x429400], 0
je 0x40431d
push 0x429400
push ebp
call sub.KERNEL32.dll_lstrcpyA
jmp 0x404323
push ebp
call fcn.004064da
push 0x409294
push esi
call ebx
push dword [esp + 0x1c]
push esi
call ebx
push str.___
push esi
call ebx
push ebp
push esi
call ebx
push esi
call fcn.004064ae
push 0x42a400
push esi
call fcn.0040637c
test eax, eax
je 0x40435f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esp + 0x14], 0
inc byte [str.ANSISu_.exe]
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 0x1a
jl 0x404299
jmp 0x404216