Function at 0x140013eb0
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.140013760
nop
movabs rsi, 0x7fffffffffffffff
cmp qword [rbp - 0x48], 0
je 0x1400141c7
lea r8, str.NVIDIA_CorporationFrameViewSDKdownloader
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x68]
call fcn.14001b1c0
nop
lea r8, str.mouseLut.json
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.14001b1c0
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 0x1400140b1
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.140013800
nop
mov rcx, rax
call fcn.140013980
test al, al
sete bl
mov rax, qword [rsp + 0x38]
cmp rax, 0x10
jb 0x140013fce
inc rax
mov rcx, qword [rsp + 0x20]
cmp rax, 0x1000
jb 0x140013fc9
test cl, 0x1f
je 0x140013f99
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 0x140013fa9
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 0x140013fb9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140013fc6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140025020
test bl, bl
jne 0x1400140c9
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 0x140014007
mov r8, rdi
jmp 0x14001401b
lea rax, [rbp - 0x10]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140014010
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x20]
call fcn.14000c8c0
nop
lea r8, [0x14002c158]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x38]
call fcn.140010540
nop
lea rcx, [rsp + 0x20]
call fcn.140005a30
lea r8, str._binmouseLut.json
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x78]
call fcn.14001b1c0
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 0x1400140a2
call fcn.140005a30
nop
lea rcx, [rbp - 0x38]
call fcn.140005a30
jmp 0x1400140c9
call fcn.140005a30
nop
lea rcx, [rbp - 0x38]
call fcn.140005a30
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 0x140014136
inc rax
mov rcx, qword [rsp + 0x48]
cmp rax, rsi
jbe 0x1400140e8
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 0x140014131
test byte [rsp + 0x48], 0x1f
je 0x140014101
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 0x140014111
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 0x140014121
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14001412e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140025020
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x48], di
mov rax, qword [rbp - 0x80]
cmp rax, 8
jb 0x1400141b5
inc rax
mov rcx, qword [rsp + 0x68]
cmp rax, rsi
jbe 0x140014167
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 0x1400141b0
test byte [rsp + 0x68], 0x1f
je 0x140014180
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 0x140014190
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 0x1400141a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1400141ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140025020
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x68], di
mov rax, qword [rbp - 0x40]
cmp rax, 8
jb 0x140014230
inc rax
mov rcx, qword [rbp - 0x58]
cmp rax, rsi
jbe 0x1400141e4
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 0x14001422b
test cl, 0x1f
je 0x1400141fb
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 0x14001420b
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 0x14001421b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140014228
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140025020
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140024b60
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