Function at 0x1400cc280
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x2b0
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 + 0x1a0], rax
mov esi, edx
mov rdi, rcx
mov dword [rcx + 0x88], edx
mov qword [rsp + 0x40], 7
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov word [rsp + 0x28], r14w
lea rdx, [rbp - 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400ccab1
cmp word [rbp - 0x70], r14w
jne 0x1400cc301
mov ebx, r14d
jmp 0x1400cc30d
lea rcx, [rbp - 0x70]
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 - 0x70]
movabs r15, 0x7ffffffffffffffe
mov r9, qword [rsp + 0x38]
cmp rax, rcx
jb 0x1400cc3d1
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, r8
lea rax, [rax + r9*2]
lea rcx, [rbp - 0x70]
cmp rax, rcx
jbe 0x1400cc3d1
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, r8
lea rcx, [rbp - 0x70]
sub rcx, rax
sar rcx, 1
cmp r9, rcx
jae 0x1400cc383
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 0x1400cc3a6
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 0x1400cc469
cmp rbx, r15
jbe 0x1400cc3e3
lea rcx, str.string_too_long
call fcn.1400db810
int3
cmp rdx, rbx
jae 0x1400cc3fa
mov r8, r9
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1400107cc
jmp 0x1400cc415
test rbx, rbx
jne 0x1400cc422
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
setne al
test al, al
je 0x1400cc469
lea rcx, [rsp + 0x28]
cmp rdx, 8
cmovae rcx, r8
test rbx, rbx
je 0x1400cc452
lea r8, [rbx + rbx]
lea rdx, [rbp - 0x70]
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 [rsp + 0x60], 7
mov qword [rsp + 0x58], r14
mov word [rsp + 0x48], r14w
lea rdx, [rdi + 0x48]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x48]
call fcn.1400104e4
nop
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r14
mov word [rsp + 0x68], r14w
lea rcx, str..trace
call fcn.1400ded00
mov r8, rax
lea rdx, str..trace
lea rcx, [rsp + 0x68]
call fcn.140010250
nop
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.1400e42ec
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
test eax, eax
jne 0x1400cc50b
xor bl, bl
jmp 0x1400cc672
cmp word [rbp - 0x70], 0
jne 0x1400cc517
mov rbx, r14
jmp 0x1400cc523
lea rcx, [rbp - 0x70]
call fcn.1400ded00
mov rbx, rax
lea rcx, [rsp + 0x48]
mov r8, qword [rsp + 0x48]
mov r9, qword [rsp + 0x60]
cmp r9, 8
cmovae rcx, r8
lea rax, [rbp - 0x70]
mov rdx, qword [rsp + 0x58]
cmp rax, rcx
jb 0x1400cc5de
lea rax, [rsp + 0x48]
cmp r9, 8
cmovae rax, r8
lea rax, [rax + rdx*2]
lea rcx, [rbp - 0x70]
cmp rax, rcx
jbe 0x1400cc5de
lea rax, [rsp + 0x48]
cmp r9, 8
cmovae rax, r8
lea r8, [rbp - 0x70]
sub r8, rax
sar r8, 1
cmp rdx, r8
jae 0x1400cc58f
lea rcx, str.invalid_string_position
call fcn.1400db848
int3
mov rax, rdx
sub rax, r8
cmp rbx, rax
cmovb rax, rbx
lea rcx, [rax + r8]
cmp rdx, rcx
jae 0x1400cc5b2
lea rcx, str.invalid_string_position
call fcn.1400db848
int3
mov qword [rsp + 0x58], rcx
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
mov word [rax + rcx*2], r14w
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.14001071c
jmp 0x1400cc670
cmp rbx, r15
jbe 0x1400cc5f0
lea rcx, str.string_too_long
call fcn.1400db810
int3
cmp qword [rsp + 0x60], rbx
jae 0x1400cc609
mov r8, rdx
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400107cc
jmp 0x1400cc628
test rbx, rbx
jne 0x1400cc62b
mov qword [rsp + 0x58], r14
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
mov word [rax], r14w
test rbx, rbx
setne al
test al, al
je 0x1400cc670
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
test rbx, rbx
je 0x1400cc655
lea r8, [rbx + rbx]
lea rdx, [rbp - 0x70]
call fcn.1400dc430
mov qword [rsp + 0x58], rbx
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
mov word [rax + rbx*2], r14w
mov bl, 1
cmp qword [rbp - 0x80], 8
jb 0x1400cc683
mov rcx, qword [rsp + 0x68]
call fcn.1400400f0
test bl, bl
je 0x1400cca8b
lea r8, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae r8, qword [rsp + 0x28]
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.1400e42ec
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ebx, eax
test eax, eax
je 0x1400cc6f1
cmp word [rbp - 0x70], 0
jne 0x1400cc6d7
mov rax, r14
jmp 0x1400cc6e0
lea rcx, [rbp - 0x70]
call fcn.1400ded00
mov r8, rax
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x28]
call fcn.140010250
cmp ebx, 1
jne 0x1400cca8b
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
jne 0x1400cc724
mov dword [rdi + 0x88], 0xa
jmp 0x1400cca8b
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r14
mov word [rsp + 0x68], r14w
lea rcx, str..debug
call fcn.1400ded00
mov r8, rax
lea rdx, str..debug
lea rcx, [rsp + 0x68]
call fcn.140010250
nop
lea r8, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae r8, qword [rsp + 0x28]
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.1400e42ec
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
test eax, eax
jne 0x1400cc7a6
xor bl, bl
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x28]
jmp 0x1400cc91c
cmp word [rbp - 0x70], 0
jne 0x1400cc7b2
mov rbx, r14
jmp 0x1400cc7be
lea rcx, [rbp - 0x70]
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 - 0x70]
mov r9, qword [rsp + 0x38]
cmp rax, rcx
jb 0x1400cc878
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, r8
lea rax, [rax + r9*2]
lea rcx, [rbp - 0x70]
cmp rax, rcx
jbe 0x1400cc878
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, r8
lea rcx, [rbp - 0x70]
sub rcx, rax
sar rcx, 1
cmp r9, rcx
jae 0x1400cc82a
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 0x1400cc84d
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 0x1400cc910
cmp rbx, r15
jbe 0x1400cc88a
lea rcx, str.string_too_long
call fcn.1400db810
int3
cmp rdx, rbx
jae 0x1400cc8a1
mov r8, r9
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1400107cc
jmp 0x1400cc8bc
test rbx, rbx
jne 0x1400cc8c9
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
setne al
test al, al
je 0x1400cc91a
lea rcx, [rsp + 0x28]
cmp rdx, 8
cmovae rcx, r8
test rbx, rbx
je 0x1400cc8f9
lea r8, [rbx + rbx]
lea rdx, [rbp - 0x70]
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 r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov bl, 1
cmp qword [rbp - 0x80], 8
jb 0x1400cc937
mov rcx, qword [rsp + 0x68]
call fcn.1400400f0
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x28]
test bl, bl
je 0x1400cc957
lea rcx, [rsp + 0x28]
cmp rdx, 8
cmovae rcx, r8
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x1400cca7c
lea rcx, [rsp + 0x28]
call fcn.1400d5180
test al, al
je 0x1400cca8b
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r14
mov word [rsp + 0x68], r14w
lea rcx, str.asu.trace
call fcn.1400ded00
mov r8, rax
lea rdx, str.asu.trace
lea rcx, [rsp + 0x68]
call fcn.140010250
nop
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x28]
call fcn.1400d50c0
movzx ebx, al
cmp qword [rbp - 0x80], 8
jb 0x1400cc9c0
mov rcx, qword [rsp + 0x68]
call fcn.1400400f0
test bl, bl
je 0x1400cca8b
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400cc9f3
mov dword [rdi + 0x88], 0xa
jmp 0x1400cca8b
lea rcx, [rsp + 0x28]
call fcn.1400d5180
test al, al
je 0x1400cca8b
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r14
mov word [rsp + 0x68], r14w
lea rcx, str.asu.debug
call fcn.1400ded00
mov r8, rax
lea rdx, str.asu.debug
lea rcx, [rsp + 0x68]
call fcn.140010250
nop
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x28]
call fcn.1400d50c0
movzx ebx, al
cmp qword [rbp - 0x80], 8
jb 0x1400cca5c
mov rcx, qword [rsp + 0x68]
call fcn.1400400f0
test bl, bl
je 0x1400cca8b
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400cca8b
cmp esi, 0x14
jle 0x1400cca8b
mov dword [rdi + 0x88], 0x14
cmp qword [rsp + 0x60], 8
jb 0x1400cca9d
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 [rsp + 0x40], 8
jb 0x1400ccac3
mov rcx, qword [rsp + 0x28]
call fcn.1400400f0
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400dc400
lea r11, [rsp + 0x2b0]
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