Function at 0x140066e20
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov r14, rdx
mov r12d, ecx
mov rax, qword [0x140166028]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x5c], ecx
mov eax, dword [0x14016c508]
mov ecx, dword [0x140169930]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400670cb
cmp r12d, 1
je 0x140067191
mov r15, qword [0x14016c500]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140067184
cmp byte [r15 + 0x60], 0
jne 0x140066f73
mov rbx, qword [r15 + 0x10]
test rbx, rbx
je 0x140066f73
movsxd rsi, r12d
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov rdx, rax
and rdx, rcx
shr rax, 2
and rax, rcx
add rax, rdx
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rcx
movabs rbp, 0x101010101010101
imul rbp, rax
shr rbp, 0x38
cmp rbp, 1
jbe 0x1400670b7
mov rcx, rsi
cmp rbx, rsi
ja 0x140066f22
mov rax, rsi
xor edx, edx
div rbx
mov rcx, rdx
mov rax, qword [r15 + 8]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x140066f73
mov rdi, qword [rax]
test rdi, rdi
je 0x140066f73
lea r8, [rbx - 1]
mov rax, qword [rdi + 8]
cmp rax, rsi
jne 0x140066f50
cmp dword [rdi + 0x10], r12d
je 0x14006707e
jmp 0x140066f6b
cmp ebp, 1
jbe 0x1400670c3
cmp rax, rbx
jb 0x140066f66
xor edx, edx
div rbx
mov rax, rdx
cmp rax, rcx
jne 0x140066f73
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140066f3b
lea rdi, [rsp + 0x60]
mov dword [rdi], r12d
lea rcx, [r15 + 0x30]
lea rsi, [rsp + 0x40]
mov rdx, rsi
mov r8, rdi
call fcn.1400c2470
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14006713e
mov rdi, qword [r15 + 0x58]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x40]
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [0x14011b490]
movaps xmmword [rcx], xmm0
call fcn.140047940
test rdi, rdi
je 0x140066fe9
lea rsi, [rsp + 0x40]
mov ecx, r12d
mov rdx, rsi
call qword [rdi]
test al, al
jne 0x140066fe9
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x140066fd4
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x140066ff7
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400671f2
lea rcx, [rsp + 0x40]
call fcn.140067310
test al, al
jne 0x1400671b4
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.140067210
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400671f9
cmp byte [r15 + 0x60], 0
jne 0x140067066
lea rcx, [r15 + 8]
lea r8, [rsp + 0x5c]
lea r9, [rsp + 0x60]
mov qword [r9], r8
lea rsi, [rsp + 0x28]
mov rdx, rsi
call fcn.1400c2580
mov rcx, qword [rsi]
add rcx, 0x18
lea rdx, [rsp + 0x40]
call fcn.140067210
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
lea rcx, [rsp + 0x40]
call fcn.140069d20
jmp 0x140067099
add rdi, 0x18
mov rcx, r14
mov rdx, rdi
call fcn.140067210
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14007ed30
mov eax, esi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rbx - 1]
and rcx, rsi
jmp 0x140066f22
and rax, r8
jmp 0x140066f66
lea rcx, [0x14016c508]
call fcn.14007c144
cmp dword [0x14016c508], 0xffffffff
jne 0x140066e6c
mov ecx, 0x68
call fcn.14007c0a8
mov rsi, rax
mov rcx, rax
call fcn.14005b7f0
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
movups xmmword [rsi + 0x18], xmm0
mov eax, 0x3f800000
mov dword [rsi + 0x28], eax
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x40], xmm0
mov dword [rsi + 0x50], eax
mov byte [rsi + 0x60], 0
lea rax, [0x140167ea0]
mov qword [rsi + 0x58], rax
mov qword [0x14016c500], rsi
lea rcx, [0x14016c508]
call fcn.14007c0e4
jmp 0x140066e6c
cmp byte [r15 + 0x60], 0
jne 0x140067175
lea rbx, [rsi + 0x18]
lea rcx, [r15 + 8]
lea r9, [rsp + 0x28]
mov qword [r9], rdi
lea r12, [rsp + 0x40]
mov rdx, r12
mov r8, rdi
call fcn.1400c2580
mov rcx, qword [r12]
add rcx, 0x18
mov rdx, rbx
call fcn.140067210
add rsi, 0x18
mov rcx, r14
mov rdx, rsi
jmp 0x140067088
mov rcx, r15
call fcn.1400428d0
jmp 0x140066e8e
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14007ed30
mov rcx, r14
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp 0x1400ae470
lea rsi, [rsp + 0x28]
lea rdi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call fcn.1400cd5c0
mov rcx, rdi
mov rdx, rsi
call fcn.140069d30
mov rcx, rsi
call fcn.140069d20
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1400671e9
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x140067012
xor esi, esi
jmp 0x140067072
mov rcx, r15
call fcn.1400428d0
jmp 0x140067030
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2d8
mov r14, rcx
mov rax, qword [0x140166028]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x270]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x14011b490]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x14011e1d9]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x462
call fcn.140047b70
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14004ac60
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140081440
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
dec edi
cmp edi, 0x103
ja 0x1400ae573
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.14007c4b0
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.140069d70
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.140067820
mov rcx, r14
mov rdx, rsi
call fcn.140069d30
mov rcx, rsi
call fcn.140069d20
mov rcx, rbx
call fcn.140069d20
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x270]
call fcn.14004a8e0
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.14007ed30
mov eax, ebx
add rsp, 0x2d8
pop rbx
pop rdi
pop rsi
pop r14
ret