Function at 0x140035de0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rdi, rdx
mov ebx, ecx
mov rax, qword [0x140139028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movabs r12, 0xfffffffc00000000
mov dword [rsp + 0x64], ecx
mov eax, dword [0x14014aa18]
mov ecx, dword [0x140147910]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002d2c9
cmp ebx, 9
je 0x14002d4a8
mov rsi, qword [0x14014aa10]
and r12, rsi
cmp r12, qword [0x14013b508]
jne 0x14002ceeb
mov rcx, rsi
call fcn.140058e70
test rsi, rsi
je 0x14002d49b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14002d417
mov r9b, byte [rsi + 0x60]
movabs r15, 0x5555555555555555
movabs r14, 0x3333333333333333
movabs r10, 0xf0f0f0f0f0f0f0f
movabs r11, 0x101010101010101
movsxd rcx, ebx
test r9b, r9b
jne 0x14002d0a9
mov r13, qword [rsi + 0x10]
test r13, r13
je 0x14002d0a9
mov rax, r13
shr rax, 1
and rax, r15
mov rdx, r13
sub rdx, rax
mov rax, rdx
and rax, r14
shr rdx, 2
and rdx, r14
add rdx, rax
mov rbp, rdx
shr rbp, 4
add rbp, rdx
and rbp, r10
imul rbp, r11
shr rbp, 0x38
cmp rbp, 1
jbe 0x14002d05e
mov r8, rcx
cmp r13, rcx
ja 0x14002cf9b
mov rax, rcx
xor edx, edx
div r13
mov r8, rdx
mov rax, qword [rsi + 8]
mov rax, qword [rax + r8*8]
test rax, rax
je 0x14002d0a9
mov r10, qword [rax]
test r10, r10
je 0x14002d34e
mov r15, r11
lea r11, [r13 - 1]
mov rax, qword [r10 + 8]
cmp rax, rcx
jne 0x14002d06f
cmp dword [r10 + 0x10], ebx
jne 0x14002d086
lea rdx, [r10 + 0x18]
cmp rdx, rdi
je 0x14002d003
cmp byte [rdi + 0x17], 0
movzx r8d, byte [r10 + 0x2f]
js 0x14002d35d
test r8b, r8b
jns 0x14002d04e
mov rdx, qword [r10 + 0x18]
mov r8, qword [r10 + 0x20]
mov rcx, rdi
call fcn.140007af0
xor r14d, r14d
xor r15d, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp r12, qword [0x14013b508]
jne 0x14002d023
mov rcx, rsi
call fcn.140058fd0
mov bl, 1
test r14b, r14b
jne 0x14002d0c6
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400a19c0
mov eax, ebx
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rdx + 0x10]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rdi], xmm0
jmp 0x14002d003
lea r8, [r13 - 1]
and r8, rcx
jmp 0x14002cf9b
and rax, r11
jmp 0x14002d081
cmp ebp, 1
jbe 0x14002d06a
cmp rax, r13
jb 0x14002d081
xor edx, edx
div r13
mov rax, rdx
cmp rax, r8
jne 0x14002d092
mov r10, qword [r10]
test r10, r10
jne 0x14002cfbf
mov r11, r15
movabs r10, 0xf0f0f0f0f0f0f0f
movabs r15, 0x5555555555555555
mov dword [rsp + 0x68], ebx
mov r13, qword [rsi + 0x38]
test r13, r13
jne 0x14002d232
mov r15, qword [rsi + 0x58]
mov r14b, 1
jmp 0x14002d009
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
test r15, r15
je 0x14002d114
mov ebx, dword [rsp + 0x64]
lea r14, [rsp + 0x40]
mov rax, qword [r15]
mov ecx, ebx
mov rdx, r14
call qword [0x14012df40]
test al, al
jne 0x14002d100
mov r15, qword [r15 + 8]
test r15, r15
jne 0x14002d0e5
mov al, byte [rsp + 0x57]
test al, al
js 0x14002d49e
movzx eax, al
test rax, rax
jne 0x14002d143
xor ebx, ebx
cmp byte [rsp + 0x57], 0
jns 0x14002d02e
mov rcx, qword [rsp + 0x40]
call fcn.14009f888
jmp 0x14002d02e
mov rax, qword [rsp + 0x50]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rdi], xmm0
jmp 0x14002d184
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.14007c7c0
test al, al
jne 0x14002d4cd
cmp rbx, rdi
je 0x14002d184
cmp byte [rdi + 0x17], 0
movzx r8d, byte [rsp + 0x57]
js 0x14002d44f
test r8b, r8b
jns 0x14002d130
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov rcx, rdi
call fcn.140007af0
cmp r12, qword [0x14013b508]
jne 0x14002d195
mov rcx, rsi
call fcn.140058e70
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14002d425
cmp byte [rsi + 0x60], 0
jne 0x14002d1fa
lea rcx, [rsi + 8]
lea r8, [rsp + 0x64]
lea r9, [rsp + 0x68]
mov qword [r9], r8
lea rdi, [rsp + 0x28]
mov rdx, rdi
call fcn.14002d560
mov rax, qword [rdi]
lea rcx, [rax + 0x18]
cmp rcx, rbx
je 0x14002d1fa
cmp byte [rax + 0x2f], 0
movzx r8d, byte [rsp + 0x57]
js 0x14002d433
test r8b, r8b
jns 0x14002d21f
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
call fcn.140007af0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov bl, 1
cmp r12, qword [0x14013b508]
jne 0x14002d116
mov rcx, rsi
call fcn.140058fd0
jmp 0x14002d116
mov rax, qword [rsp + 0x50]
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
jmp 0x14002d1fa
mov rax, r13
shr rax, 1
and rax, r15
mov rdx, r13
sub rdx, rax
mov rax, rdx
and rax, r14
shr rdx, 2
and rdx, r14
add rdx, rax
mov r15, rdx
shr r15, 4
add r15, rdx
and r15, r10
imul r15, r11
shr r15, 0x38
cmp r15, 1
ja 0x14002d51a
lea r8, [r13 - 1]
and r8, rcx
mov rax, qword [rsi + 0x30]
mov rax, qword [rax + r8*8]
test rax, rax
je 0x14002d0ba
mov r14, qword [rax]
test r14, r14
je 0x14002d0ba
lea r10, [r13 - 1]
mov rax, qword [r14 + 8]
cmp rax, rcx
je 0x14002d377
cmp r15d, 1
ja 0x14002d547
and rax, r10
cmp rax, r8
jne 0x14002d0ba
mov r14, qword [r14]
test r14, r14
je 0x14002d0ba
jmp 0x14002d298
lea rcx, [0x14014aa18]
call fcn.14009f910
cmp dword [0x14014aa18], 0xffffffff
jne 0x14002cec7
mov ecx, 0x68
call fcn.14009f7f4
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], 0
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 r14, [0x14013b4b0]
mov rax, r14
and rax, r12
cmp rax, qword [0x14013b508]
je 0x14002d536
mov qword [rsi + 0x58], r14
mov qword [0x14014aa10], rsi
lea rcx, [0x14014aa18]
call fcn.14009f8b0
jmp 0x14002cec7
movabs r10, 0xf0f0f0f0f0f0f0f
jmp 0x14002d0a9
test r8b, r8b
jns 0x14002d36a
mov r8, qword [r10 + 0x20]
mov rdx, qword [r10 + 0x18]
mov rcx, rdi
call fcn.140007be0
jmp 0x14002d003
cmp dword [r14 + 0x10], ebx
jne 0x14002d2bb
test r9b, r9b
jne 0x14002d3d5
lea rcx, [rsi + 8]
lea r8, [rsp + 0x68]
lea r9, [rsp + 0x28]
mov qword [r9], r8
lea rbx, [rsp + 0x40]
mov rdx, rbx
call fcn.14002d560
mov rax, qword [rbx]
cmp rax, r14
je 0x14002d3d5
lea rdx, [r14 + 0x18]
lea rcx, [rax + 0x18]
cmp byte [rax + 0x2f], 0
movzx r8d, byte [r14 + 0x2f]
js 0x14002d46e
test r8b, r8b
jns 0x14002d407
mov rdx, qword [r14 + 0x18]
mov r8, qword [r14 + 0x20]
call fcn.140007af0
lea rdx, [r14 + 0x18]
cmp rdx, rdi
je 0x14002d003
cmp byte [rdi + 0x17], 0
movzx r8d, byte [r14 + 0x2f]
js 0x14002d485
test r8b, r8b
jns 0x14002d04e
mov rdx, qword [r14 + 0x18]
mov r8, qword [r14 + 0x20]
jmp 0x14002cffb
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
jmp 0x14002d3d5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x14002cf05
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x14002d1a6
test r8b, r8b
cmovs r8, qword [rsp + 0x48]
cmovs rbx, qword [rsp + 0x40]
mov rdx, rbx
call fcn.140007be0
jmp 0x14002d1fa
test r8b, r8b
cmovs r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
cmovns rdx, rbx
mov rcx, rdi
call fcn.140007be0
jmp 0x14002d184
test r8b, r8b
jns 0x14002d47b
mov r8, qword [r14 + 0x20]
mov rdx, qword [r14 + 0x18]
call fcn.140007be0
jmp 0x14002d3d5
test r8b, r8b
jns 0x14002d36a
mov r8, qword [r14 + 0x20]
mov rdx, qword [r14 + 0x18]
jmp 0x14002d36a
int3
mov rax, qword [rsp + 0x48]
jmp 0x14002d10f
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400a19c0
mov rcx, rdi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x140035de0
lea r14, [rsp + 0x28]
lea r15, [rsp + 0x40]
mov rcx, r14
mov rdx, r15
call fcn.140033150
mov rcx, r15
mov rdx, r14
call fcn.140033eb0
cmp byte [r14 + 0x17], 0
jns 0x14002d4fe
mov rcx, qword [rsp + 0x28]
call fcn.14009f888
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x14002d50c
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x14002d158
jmp 0x14002d114
mov r8, rcx
cmp r13, rcx
ja 0x14002d277
mov rax, rcx
xor edx, edx
div r13
mov r8, rdx
jmp 0x14002d277
lea rcx, [0x14013b4b0]
call fcn.14005e8f0
jmp 0x14002d332
cmp rax, r13
jb 0x14002d2b2
xor edx, edx
div r13
mov rax, rdx
jmp 0x14002d2b2
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2c8
mov rsi, rcx
mov rax, qword [0x140139028]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
movaps xmm0, xmmword [0x140118af0]
lea rbx, [rsp + 0x60]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, [0x140126b5a]
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r9d, 0x42a
call fcn.1400595f0
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call fcn.1400787e0
mov qword [rsp + 0xa8], 0xa
mov al, byte [0x14014a82a]
test al, al
jne 0x140035f3d
lea rbx, [rsp + 0xb0]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400a3b00
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 0x140035f0b
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.14009ffb0
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14008e460
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.14002dbb0
cmp byte [rsi + 0x17], 0
jns 0x140035edd
mov rcx, qword [rsi]
call fcn.14009f888
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi], xmm0
mov byte [rsp + 0x5f], 0
mov word [rsp + 0x48], 0
cmp byte [rsp + 0x47], 0
jns 0x140035f0b
mov rcx, qword [rsp + 0x30]
call fcn.14009f888
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x60]
call fcn.14007fc60
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.1400a19c0
mov eax, ebx
add rsp, 0x2c8
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx ecx, al
lea r9, [rsp + 0x48]
mov qword [r9], rdi
lea rax, str.ScopedBlockingCall
lea r8, [rsp + 0x30]
mov qword [r8], rax
lea rdx, [rsp + 0xa8]
call fcn.1400794f0
jmp 0x140035e67