Function at 0x465be0
Capabilities:
Check if file exists
Copy file
Create process on windows
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4cb1
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x465c30
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00442860
push 0
push str.__update_launcher_1
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00469500
test eax, eax
jne 0x465cda
mov dword [ebp - 0x6c], eax
xorps xmm0, xmm0
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x5c], 1
movups xmmword [ebp - 0x7c], xmm0
cmp eax, 0x14
jb 0x46600e
add eax, 0xffffffec
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push ecx
add eax, 0x28
lea ecx, [ebp - 0x7c]
push eax
call fcn.00442860
lea ecx, [ebp - 0x28]
call fcn.004443f0
movups xmm0, xmmword [ebp - 0x7c]
xor eax, eax
lea ecx, [ebp - 0x7c]
mov word [ebp - 0x7c], ax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x6c]
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
jmp 0x465d4c
push 0
push str.__update_launcher_2
lea ecx, [ebp - 0x28]
call fcn.00469500
test eax, eax
jne 0x465d12
mov dword [ebp - 0x6c], eax
xorps xmm0, xmm0
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x5c], 2
movups xmmword [ebp - 0x7c], xmm0
cmp eax, 0x14
jb 0x46600e
jmp 0x465c83
push 0
push str.__update_launcher
lea ecx, [ebp - 0x28]
call fcn.00469500
test eax, eax
jne 0x465fb6
push 0xffffffffffffffff
push 0x12
lea eax, [ebp - 0x58]
mov dword [ebp - 0x5c], 3
push eax
lea ecx, [ebp - 0x28]
call fcn.00469950
push eax
lea ecx, [ebp - 0x28]
call fcn.004613a0
lea ecx, [ebp - 0x58]
call fcn.004443f0
cmp dword [ebp - 0x14], 7
lea edi, [ebp - 0x28]
cmova edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x465da4
test al, 0x11
jne 0x465da4
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x465da4
nop dword [eax]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x3e8
cmp esi, 0x4e20
ja 0x465da4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x465d80
cmp dword [ebp - 0x5c], 1
jne 0x465fb6
lea eax, [ebp - 0x5c]
push eax
call fcn.005adb91
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.005439d0
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x40], ax
xor esi, esi
mov byte [ebp - 4], 2
push 1
mov dword [ebp - 0x64], esi
call fcn.00465270
add esp, 0x10
test al, al
je 0x465e0f
lea eax, [ebp - 0x64]
push eax
push str.filename_after_update
call fcn.00466020
add esp, 8
call fcn.00465190
mov esi, dword [ebp - 0x64]
sub esi, 1
je 0x465ef3
sub esi, 1
je 0x465ea5
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x94]
call fcn.004606f0
push eax
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 4
push eax
call fcn.00543ab0
mov esi, eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.005439d0
add esp, 0x10
push esi
push eax
push dword [ebp - 0x64]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 6
call fcn.00460730
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x40]
call fcn.004613a0
lea ecx, [ebp - 0x7c]
call fcn.004443f0
lea ecx, [ebp - 0xc4]
call fcn.004443f0
lea ecx, [ebp - 0xac]
call fcn.004443f0
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.004443f0
jmp 0x465f0a
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.005439d0
push 0x5d61b0
push eax
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 3
push eax
call fcn.0045da60
add esp, 0x14
lea ecx, [ebp - 0x40]
push eax
call fcn.004613a0
lea ecx, [ebp - 0x94]
call fcn.004443f0
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 2
call fcn.004443f0
jmp 0x465f0a
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.00469260
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
push 0
cmova eax, dword [ebp - 0x40]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp - 0x44], 7
lea edi, [ebp - 0x58]
mov esi, dword [ebp - 0x5c]
lea ecx, [ebp - 0x7c]
cmova edi, dword [ebp - 0x58]
xorps xmm0, xmm0
push 0x14
push str.__update_launcher_2
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
call fcn.00442860
push esi
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0045da60
add esp, 0xc
cmp dword [eax + 0x14], 7
jbe 0x465f73
mov eax, dword [eax]
cmp dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x40]
push 5
cmova ecx, dword [ebp - 0x40]
push edi
push eax
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x94]
call fcn.004443f0
lea ecx, [ebp - 0x7c]
call fcn.004443f0
lea ecx, [ebp - 0x40]
call fcn.004443f0
lea ecx, [ebp - 0x58]
call fcn.004443f0
mov byte [ebp - 0x5d], 1
jmp 0x465fba
mov byte [ebp - 0x5d], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x465ff0
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x465fe6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466013
push ecx
push edx
call fcn.0059a744
add esp, 8
mov al, byte [ebp - 0x5d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059a5ad
mov esp, ebp
pop ebp
ret
call fcn.004581b0
call fcn.005ad975
int3