Function at 0x140013ee0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x218]
sub rsp, 0x310
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rbp + 0x200], rax
lea rcx, [rbp - 0x58]
call fcn.140013790
nop
movabs rsi, 0x7fffffffffffffff
cmp qword [rbp - 0x48], 0
je 0x1400141f7
lea r8, str.NVIDIA_CorporationFrameViewSDKdownloader
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x68]
call fcn.14001b1f0
nop
lea r8, str.mouseLut.json
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.14001b1f0
nop
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor edi, edi
test eax, eax
je 0x1400140e1
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.140013830
nop
mov rcx, rax
call fcn.1400139b0
test al, al
sete bl
mov rax, qword [rsp + 0x38]
cmp rax, 0x10
jb 0x140013ffe
inc rax
mov rcx, qword [rsp + 0x20]
cmp rax, 0x1000
jb 0x140013ff9
test cl, 0x1f
je 0x140013fc9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140013fd9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140013fe9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140013ff6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140025050
test bl, bl
jne 0x1400140f9
mov r8d, 0x104
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rdi
mov word [rsp + 0x20], di
cmp word [rbp - 0x10], 0
jne 0x140014037
mov r8, rdi
jmp 0x14001404b
lea rax, [rbp - 0x10]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140014040
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x20]
call fcn.14000c920
nop
lea r8, [0x14002c158]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x38]
call fcn.1400105a0
nop
lea rcx, [rsp + 0x20]
call fcn.140005a90
lea r8, str._binmouseLut.json
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x78]
call fcn.14001b1f0
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rdx, qword [rbp - 0x78]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov r8d, 9
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
lea rcx, [rbp - 0x78]
test eax, eax
jne 0x1400140d2
call fcn.140005a90
nop
lea rcx, [rbp - 0x38]
call fcn.140005a90
jmp 0x1400140f9
call fcn.140005a90
nop
lea rcx, [rbp - 0x38]
call fcn.140005a90
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rax, qword [rsp + 0x60]
cmp rax, 8
jb 0x140014166
inc rax
mov rcx, qword [rsp + 0x48]
cmp rax, rsi
jbe 0x140014118
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rax, rax
cmp rax, 0x1000
jb 0x140014161
test byte [rsp + 0x48], 0x1f
je 0x140014131
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140014141
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140014151
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14001415e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140025050
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x48], di
mov rax, qword [rbp - 0x80]
cmp rax, 8
jb 0x1400141e5
inc rax
mov rcx, qword [rsp + 0x68]
cmp rax, rsi
jbe 0x140014197
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rax, rax
cmp rax, 0x1000
jb 0x1400141e0
test byte [rsp + 0x68], 0x1f
je 0x1400141b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400141c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400141d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1400141dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140025050
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x68], di
mov rax, qword [rbp - 0x40]
cmp rax, 8
jb 0x140014260
inc rax
mov rcx, qword [rbp - 0x58]
cmp rax, rsi
jbe 0x140014214
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rax, rax
cmp rax, 0x1000
jb 0x14001425b
test cl, 0x1f
je 0x14001422b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14001423b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14001424b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140014258
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140025050
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140024b90
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret