Function at 0x140013cc0
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.140013570
nop
movabs rsi, 0x7fffffffffffffff
cmp qword [rbp - 0x48], 0
je 0x140013fd7
lea r8, str.NVIDIA_CorporationFrameViewSDKdownloader
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x68]
call fcn.14001afd0
nop
lea r8, str.mouseLut.json
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.14001afd0
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 0x140013ec1
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.140013610
nop
mov rcx, rax
call fcn.140013790
test al, al
sete bl
mov rax, qword [rsp + 0x38]
cmp rax, 0x10
jb 0x140013dde
inc rax
mov rcx, qword [rsp + 0x20]
cmp rax, 0x1000
jb 0x140013dd9
test cl, 0x1f
je 0x140013da9
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 0x140013db9
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 0x140013dc9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140013dd6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140024e30
test bl, bl
jne 0x140013ed9
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 0x140013e17
mov r8, rdi
jmp 0x140013e2b
lea rax, [rbp - 0x10]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140013e20
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x20]
call fcn.14000c700
nop
lea r8, [0x14002beb8]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x38]
call fcn.140010380
nop
lea rcx, [rsp + 0x20]
call fcn.140005870
lea r8, str._binmouseLut.json
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x78]
call fcn.14001afd0
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 0x140013eb2
call fcn.140005870
nop
lea rcx, [rbp - 0x38]
call fcn.140005870
jmp 0x140013ed9
call fcn.140005870
nop
lea rcx, [rbp - 0x38]
call fcn.140005870
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 0x140013f46
inc rax
mov rcx, qword [rsp + 0x48]
cmp rax, rsi
jbe 0x140013ef8
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 0x140013f41
test byte [rsp + 0x48], 0x1f
je 0x140013f11
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 0x140013f21
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 0x140013f31
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140013f3e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140024e30
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x48], di
mov rax, qword [rbp - 0x80]
cmp rax, 8
jb 0x140013fc5
inc rax
mov rcx, qword [rsp + 0x68]
cmp rax, rsi
jbe 0x140013f77
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 0x140013fc0
test byte [rsp + 0x68], 0x1f
je 0x140013f90
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 0x140013fa0
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 0x140013fb0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140013fbd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140024e30
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x68], di
mov rax, qword [rbp - 0x40]
cmp rax, 8
jb 0x140014040
inc rax
mov rcx, qword [rbp - 0x58]
cmp rax, rsi
jbe 0x140013ff4
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 0x14001403b
test cl, 0x1f
je 0x14001400b
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 0x14001401b
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 0x14001402b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140014038
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140024e30
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140024970
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