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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1d8]
sub rsp, 0x2d0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x14015b138]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov ebx, 4
test ecx, ecx
cmovns ebx, ecx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
cmp eax, 1
jne 0x1400159b9
lea edi, [rax + 5]
jmp 0x140015d2f
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.1400cf640
lea rdx, [rbp - 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
movdqa xmm0, xmmword [0x14012d1d0]
movdqu xmmword [rbp - 0x68], xmm0
xor r14d, r14d
mov word [rbp - 0x78], r14w
lea rax, [rbp - 0x50]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], r14w
jne 0x140015a00
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x78]
call fcn.1400149d0
nop
movdqa xmm0, xmmword [0x14012d1d0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], r14w
movdqa xmm0, xmmword [0x14012d1e0]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
mov r8d, 8
lea rdx, str.adpdebug
lea rcx, [rsp + 0x68]
call fcn.140003a60
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x68]
call fcn.140008860
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140015aa3
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015a9e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015d63
call fcn.1400cd424
movdqa xmm0, xmmword [0x14012d1e0]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x78]
call fcn.14001c9a0
cmp qword [rax + 0x18], 8
jb 0x140015ad3
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete dil
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140015b25
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015b20
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015d69
call fcn.1400cd424
movdqa xmm0, xmmword [0x14012d1d0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r14w
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140015b7b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015b76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015d69
call fcn.1400cd424
mov eax, 5
test dil, dil
cmovne ebx, eax
movdqa xmm0, xmmword [0x14012d1d0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], r14w
movdqa xmm0, xmmword [0x14012d1e0]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
mov edi, 6
mov r8d, edi
lea rdx, str.adpdev
lea rcx, [rsp + 0x68]
call fcn.140003a60
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x68]
call fcn.140008860
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140015c13
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015c0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015d6f
call fcn.1400cd424
movdqa xmm0, xmmword [0x14012d1e0]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x78]
call fcn.14001c9a0
cmp qword [rax + 0x18], 8
jb 0x140015c43
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete sil
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140015c95
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015c90
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015d75
call fcn.1400cd424
movdqa xmm0, xmmword [0x14012d1d0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r14w
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140015ceb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015ce6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015d75
call fcn.1400cd424
test sil, sil
cmovne ebx, edi
mov edi, ebx
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140015d2f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015d2a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015d5d
call fcn.1400cd424
mov eax, edi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400cd400
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400d20f4
nop
call fcn.1400d20f4
nop
call fcn.1400d20f4
nop
call fcn.1400d20f4
nop
call fcn.1400d20f4
int3