Function at 0x14004c260
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r14, rdx
mov r12d, ecx
mov rax, qword [0x140134028]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x6c], ecx
call fcn.14004a720
cmp r12d, 9
je 0x14004a653
mov r13, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004a67e
mov r9b, byte [r13 + 0x60]
movabs r11, 0x5555555555555555
movabs r15, 0x3333333333333333
movabs r10, 0xf0f0f0f0f0f0f0f
movabs rbx, 0x101010101010101
movsxd r8, r12d
test r9b, r9b
jne 0x14004a3df
mov rsi, qword [r13 + 0x10]
test rsi, rsi
je 0x14004a3df
mov rax, rsi
shr rax, 1
and rax, r11
mov rcx, rsi
sub rcx, rax
mov rax, rcx
and rax, r15
shr rcx, 2
and rcx, r15
add rcx, rax
mov rbp, rcx
shr rbp, 4
add rbp, rcx
and rbp, r10
imul rbp, rbx
shr rbp, 0x38
cmp rbp, 1
jbe 0x14004a53d
mov rcx, r8
cmp rsi, r8
ja 0x14004a388
mov rax, r8
xor edx, edx
div rsi
mov rcx, rdx
mov rax, qword [r13 + 8]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x14004a3df
mov rdi, qword [rax]
test rdi, rdi
je 0x14004a3df
lea r10, [rsi - 1]
mov rax, qword [rdi + 8]
cmp rax, r8
jne 0x14004a3b6
cmp dword [rdi + 0x10], r12d
je 0x14004a456
jmp 0x14004a3cd
cmp ebp, 1
jbe 0x14004a556
cmp rax, rsi
jae 0x14004a549
cmp rax, rcx
jne 0x14004a3d5
mov rdi, qword [rdi]
test rdi, rdi
jne 0x14004a3a1
movabs r10, 0xf0f0f0f0f0f0f0f
mov dword [rsp + 0x70], r12d
mov rdi, qword [r13 + 0x38]
test rdi, rdi
jne 0x14004a55e
mov rsi, qword [r13 + 0x58]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x50]
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [0x14011b1d0]
movaps xmmword [rcx], xmm0
call fcn.14006bce0
test rsi, rsi
je 0x14004a446
lea rdi, [rsp + 0x50]
mov rax, qword [rsi]
mov ecx, r12d
mov rdx, rdi
call qword [0x140158008]
test al, al
jne 0x14004a446
mov rsi, qword [rsi + 8]
test rsi, rsi
jne 0x14004a42a
movzx eax, byte [rsp + 0x67]
test al, al
jns 0x14004a497
mov rax, qword [rsp + 0x58]
jmp 0x14004a49a
add rdi, 0x18
mov rcx, r14
mov rdx, rdi
call fcn.14006be00
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400884b0
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
and eax, 0x7f
test rax, rax
je 0x14004a6db
lea rcx, [rsp + 0x50]
call fcn.14006c9a0
test al, al
jne 0x14004a68b
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.14006be00
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004a6c2
cmp byte [r13 + 0x60], 0
jne 0x14004a522
mov rcx, r13
add rcx, 8
lea r8, [rsp + 0x6c]
lea rax, [rsp + 0x70]
mov qword [rax], r8
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea r9, [0x14011dad0]
lea rdi, [rsp + 0x38]
mov rdx, rdi
call fcn.14004a7f0
mov rcx, qword [rdi]
add rcx, 0x18
lea rdx, [rsp + 0x50]
call fcn.14006be00
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
lea rcx, [rsp + 0x50]
call fcn.14006bdf0
jmp 0x14004a471
lea rcx, [rsi - 1]
and rcx, r8
jmp 0x14004a388
xor edx, edx
div rsi
mov rax, rdx
jmp 0x14004a3c8
and rax, r10
jmp 0x14004a3c8
mov rax, rdi
shr rax, 1
and rax, r11
mov rcx, rdi
sub rcx, rax
mov rax, rcx
and rax, r15
shr rcx, 2
and rcx, r15
add rcx, rax
mov rsi, rcx
shr rsi, 4
add rsi, rcx
and rsi, r10
imul rsi, rbx
shr rsi, 0x38
cmp rsi, 1
ja 0x14004a6e2
lea rcx, [rdi - 1]
and rcx, r8
mov rax, qword [r13 + 0x30]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x14004a3f1
mov r15, qword [rax]
test r15, r15
je 0x14004a3f1
lea rbp, [rdi - 1]
mov rax, qword [r15 + 8]
cmp rax, r8
je 0x14004a5ef
cmp esi, 1
ja 0x14004a6fe
and rax, rbp
cmp rax, rcx
jne 0x14004a3f1
mov r15, qword [r15]
test r15, r15
jne 0x14004a5c4
jmp 0x14004a3f1
cmp dword [r15 + 0x10], r12d
jne 0x14004a5e2
test r9b, r9b
jne 0x14004a644
lea rdi, [r15 + 0x18]
mov rcx, r13
add rcx, 8
lea r8, [rsp + 0x70]
lea rax, [rsp + 0x38]
mov qword [rax], r8
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea r9, [0x14011dad0]
lea rbx, [rsp + 0x50]
mov rdx, rbx
call fcn.14004a7f0
mov rcx, qword [rbx]
add rcx, 0x18
mov rdx, rdi
call fcn.14006be00
add r15, 0x18
mov rcx, r14
mov rdx, r15
jmp 0x14004a460
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400884b0
mov rcx, r14
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x14004c260
mov rcx, r13
call fcn.140071470
jmp 0x14004a2f2
lea rdi, [rsp + 0x38]
lea rbx, [rsp + 0x50]
mov rcx, rdi
mov rdx, rbx
call fcn.14004bd40
mov rcx, rbx
mov rdx, rdi
call fcn.14006be70
mov rcx, rdi
call fcn.14006bdf0
movzx eax, byte [rbx + 0x17]
test al, al
jns 0x14004a6cf
mov rax, qword [rsp + 0x58]
jmp 0x14004a6d2
mov rcx, r13
call fcn.140071470
jmp 0x14004a4d3
and eax, 0x7f
test rax, rax
jne 0x14004a4b5
xor esi, esi
jmp 0x14004a52e
mov rcx, r8
cmp rdi, r8
ja 0x14004a5a3
mov rax, r8
xor edx, edx
div rdi
mov rcx, rdx
jmp 0x14004a5a3
cmp rax, rdi
jb 0x14004a5d9
xor edx, edx
div rdi
mov rax, rdx
jmp 0x14004a5d9
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2d8
mov r14, rcx
mov rax, qword [0x140134028]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x270]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x14011b1d0]
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, [0x14011dc13]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x3bb
call fcn.14006cbc0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140070820
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14008a5d0
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
add edi, 0xfffffefb
cmp edi, 0xfffffefc
jb 0x14004c367
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.1400aad10
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.14006bd20
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.140048590
mov rcx, r14
mov rdx, rsi
call fcn.14006be70
mov rcx, rsi
call fcn.14006bdf0
mov rcx, rbx
call fcn.14006bdf0
cmp edi, 0xfffffefc
setae bl
lea rcx, [rsp + 0x270]
call fcn.140070880
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400884b0
mov eax, ebx
add rsp, 0x2d8
pop rbx
pop rdi
pop rsi
pop r14
ret