Function at 0x1400cfd70
Capabilities:
Check if file exists
Move file

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2d0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140176810]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rsi, rcx
mov qword [rsp + 0x40], 7
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov word [rsp + 0x28], r14w
lea rdi, [rcx + 0x68]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.1400104e4
nop
lea r8, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae r8, qword [rsp + 0x28]
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.1400e42ec
lea rcx, [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
cmp word [rbp - 0x50], r14w
jne 0x1400cfe14
mov ebx, r14d
jmp 0x1400cfe20
lea rcx, [rbp - 0x50]
call fcn.1400ded00
mov rbx, rax
lea rcx, [rsp + 0x28]
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
cmovae rcx, r8
lea rax, [rbp - 0x50]
movabs r15, 0x7ffffffffffffffe
mov r9, qword [rsp + 0x38]
cmp rax, rcx
jb 0x1400cfee4
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, r8
lea rax, [rax + r9*2]
lea rcx, [rbp - 0x50]
cmp rax, rcx
jbe 0x1400cfee4
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, r8
lea rcx, [rbp - 0x50]
sub rcx, rax
sar rcx, 1
cmp r9, rcx
jae 0x1400cfe96
lea rcx, str.invalid_string_position
call fcn.1400db848
int3
mov rax, r9
sub rax, rcx
cmp rbx, rax
cmovb rax, rbx
lea r10, [rax + rcx]
cmp r9, r10
jae 0x1400cfeb9
lea rcx, str.invalid_string_position
call fcn.1400db848
int3
mov qword [rsp + 0x38], r10
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, r8
mov word [rax + r10*2], r14w
mov r8, rcx
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.14001071c
jmp 0x1400cff77
cmp rbx, r15
jbe 0x1400cfef6
lea rcx, str.string_too_long
call fcn.1400db810
int3
cmp rdx, rbx
jae 0x1400cff0d
mov r8, r9
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1400107cc
jmp 0x1400cff28
test rbx, rbx
jne 0x1400cff37
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, r8
mov word [rax], r14w
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
test rbx, rbx
je 0x1400cff77
lea rcx, [rsp + 0x28]
cmp rdx, 8
cmovae rcx, r8
test rbx, rbx
je 0x1400cff60
lea r8, [rbx + rbx]
lea rdx, [rbp - 0x50]
call fcn.1400dc430
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, r8
mov word [rax + rbx*2], r14w
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r14
mov word [rsp + 0x68], r14w
lea rcx, [rsp + 0x68]
call fcn.1400d4fc0
lea r8, [rsp + 0x68]
lea rdx, [0x14013cd40]
lea rcx, [rbp - 0x78]
call fcn.140022c70
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400156e0
nop
cmp qword [rbp - 0x60], 8
jb 0x1400cffcf
mov rcx, qword [rbp - 0x78]
call fcn.1400400f0
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r14
mov word [rsp + 0x48], r14w
lea rdx, [0x140137a68]
mov rcx, rdi
call fcn.140029c94
cmp rax, 0xffffffffffffffff
je 0x1400d005c
mov r9, qword [rdi + 0x10]
mov r8, rax
lea rdx, [rbp - 0x78]
mov rcx, rdi
call fcn.140013198
mov rbx, rax
lea rax, [rsp + 0x48]
cmp rax, rbx
je 0x1400d004c
cmp qword [rsp + 0x60], 8
jb 0x1400d002a
mov rcx, qword [rsp + 0x48]
call fcn.1400400f0
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r14
mov word [rsp + 0x48], r14w
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140010474
nop
cmp qword [rbp - 0x60], 8
jb 0x1400d005c
mov rcx, qword [rbp - 0x78]
call fcn.1400400f0
lea r8, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae r8, qword [rsp + 0x28]
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.1400e42ec
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
lea rcx, [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
test eax, eax
je 0x1400d0203
cmp word [rbp - 0x50], 0
jne 0x1400d00aa
mov rbx, r14
jmp 0x1400d00b6
lea rcx, [rbp - 0x50]
call fcn.1400ded00
mov rbx, rax
lea rcx, [rsp + 0x28]
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
cmovae rcx, r8
lea rax, [rbp - 0x50]
mov r9, qword [rsp + 0x38]
cmp rax, rcx
jb 0x1400d0170
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, r8
lea rax, [rax + r9*2]
lea rcx, [rbp - 0x50]
cmp rax, rcx
jbe 0x1400d0170
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, r8
lea rcx, [rbp - 0x50]
sub rcx, rax
sar rcx, 1
cmp r9, rcx
jae 0x1400d0122
lea rcx, str.invalid_string_position
call fcn.1400db848
int3
mov rax, r9
sub rax, rcx
cmp rbx, rax
cmovb rax, rbx
lea r10, [rax + rcx]
cmp r9, r10
jae 0x1400d0145
lea rcx, str.invalid_string_position
call fcn.1400db848
int3
mov qword [rsp + 0x38], r10
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, r8
mov word [rax + r10*2], r14w
mov r8, rcx
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.14001071c
jmp 0x1400d0203
cmp rbx, r15
jbe 0x1400d0182
lea rcx, str.string_too_long
call fcn.1400db810
int3
cmp rdx, rbx
jae 0x1400d0199
mov r8, r9
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1400107cc
jmp 0x1400d01b4
test rbx, rbx
jne 0x1400d01c3
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, r8
mov word [rax], r14w
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
test rbx, rbx
je 0x1400d020d
lea rcx, [rsp + 0x28]
cmp rdx, 8
cmovae rcx, r8
test rbx, rbx
je 0x1400d01ec
lea r8, [rbx + rbx]
lea rdx, [rbp - 0x50]
call fcn.1400dc430
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, r8
mov word [rax + rbx*2], r14w
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
cmp rdx, 8
cmovae rcx, r8
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x1400d0281
cmp qword [rdi + 0x10], 0
je 0x1400d0281
cmp qword [rsp + 0x38], 0
je 0x1400d0281
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
cmp qword [rdi + 0x18], 8
jb 0x1400d024f
mov rdi, qword [rdi]
mov rcx, rdi
call fcn.1400e42b4
test eax, eax
jne 0x1400d0281
lea rcx, [rsi + 0xe0]
lea rax, [rsp + 0x28]
cmp rcx, rax
je 0x1400d027d
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x28]
call fcn.1400104e4
mov bl, 1
jmp 0x1400d0283
xor bl, bl
cmp qword [rsp + 0x60], 8
jb 0x1400d0295
mov rcx, qword [rsp + 0x48]
call fcn.1400400f0
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r14
mov word [rsp + 0x48], r14w
cmp qword [rbp - 0x80], 8
jb 0x1400d02ba
mov rcx, qword [rsp + 0x68]
call fcn.1400400f0
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r14
mov word [rsp + 0x68], r14w
cmp qword [rsp + 0x40], 8
jb 0x1400d02df
mov rcx, qword [rsp + 0x28]
call fcn.1400400f0
movzx eax, bl
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400dc400
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret