Function at 0x140018fc0
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 rdi, rdx
mov r12d, ecx
mov rax, qword [0x1400f6398]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x6c], ecx
mov eax, dword [0x1400f9a88]
mov ecx, dword [0x1400f9b20]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001932c
cmp r12d, 1
je 0x140019406
mov qword [rsp + 0x30], rdi
mov rdi, qword [0x1400f9a80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140019431
mov r8b, byte [rdi + 0x60]
movsxd r13, r12d
movabs r14, 0x5555555555555555
movabs r11, 0x3333333333333333
movabs r10, 0xf0f0f0f0f0f0f0f
movabs r9, 0x101010101010101
test r8b, r8b
jne 0x140019122
mov rbp, qword [rdi + 0x10]
test rbp, rbp
je 0x140019122
mov rax, rbp
shr rax, 1
and rax, r14
mov rcx, rbp
sub rcx, rax
mov rax, rcx
and rax, r11
shr rcx, 2
and rcx, r11
add rcx, rax
mov rsi, rcx
shr rsi, 4
add rsi, rcx
and rsi, r10
imul rsi, r9
shr rsi, 0x38
cmp rsi, 1
jbe 0x140019283
mov rcx, r13
cmp rbp, r13
ja 0x1400190d1
mov rax, r13
xor edx, edx
div rbp
mov rcx, rdx
mov rax, qword [rdi + 8]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x140019122
mov rbx, qword [rax]
test rbx, rbx
je 0x140019122
lea r15, [rbp - 1]
mov rax, qword [rbx + 8]
cmp rax, r13
jne 0x1400190ff
cmp dword [rbx + 0x10], r12d
je 0x140019240
jmp 0x14001911a
cmp esi, 1
jbe 0x14001928f
cmp rax, rbp
jb 0x140019115
xor edx, edx
div rbp
mov rax, rdx
cmp rax, rcx
jne 0x140019122
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400190ea
mov dword [rsp + 0x70], r12d
mov rbx, qword [rdi + 0x38]
test rbx, rbx
jne 0x140019297
mov rbx, qword [rdi + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x50]
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rcx], xmm0
call fcn.140016ab0
test rbx, rbx
je 0x140019191
lea rdx, [rsp + 0x50]
mov ecx, r12d
call qword [rbx]
test al, al
jne 0x140019191
lea rsi, [rsp + 0x50]
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140019191
mov ecx, dword [rsp + 0x6c]
mov rdx, rsi
call qword [rbx]
test al, al
je 0x14001917b
movzx eax, byte [rsp + 0x67]
test al, al
jns 0x14001919f
mov rax, qword [rsp + 0x58]
test rax, rax
mov rsi, qword [rsp + 0x30]
je 0x140019481
lea rcx, [rsp + 0x50]
call fcn.140016ad0
test al, al
jne 0x14001943e
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400194d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140019488
cmp byte [rdi + 0x60], 0
jne 0x140019228
lea rcx, [rdi + 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, [0x1400bfe28]
lea rsi, [rsp + 0x38]
mov rdx, rsi
call fcn.1400195b0
mov rcx, qword [rsi]
add rcx, 0x18
lea rdx, [rsp + 0x50]
call fcn.1400194d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
lea rcx, [rsp + 0x50]
call fcn.1400136d0
jmp 0x14001925d
add rbx, 0x18
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call fcn.1400194d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14008b870
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rbp - 1]
and rcx, r13
jmp 0x1400190d1
and rax, r15
jmp 0x140019115
mov rax, rbx
shr rax, 1
and rax, r14
mov rcx, rbx
sub rcx, rax
mov rax, rcx
and rax, r11
shr rcx, 2
and rcx, r11
add rcx, rax
mov rbp, rcx
shr rbp, 4
add rbp, rcx
and rbp, r10
imul rbp, r9
shr rbp, 0x38
cmp rbp, 1
ja 0x140019495
lea rcx, [rbx - 1]
and rcx, r13
mov rax, qword [rdi + 0x30]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x140019134
mov r14, qword [rax]
test r14, r14
je 0x140019134
lea rsi, [rbx - 1]
mov rax, qword [r14 + 8]
cmp rax, r13
je 0x14001939f
cmp ebp, 1
ja 0x1400194b1
and rax, rsi
cmp rax, rcx
jne 0x140019134
mov r14, qword [r14]
test r14, r14
jne 0x1400192fd
jmp 0x140019134
lea rcx, [0x1400f9a88]
call fcn.1400897dc
cmp dword [0x1400f9a88], 0xffffffff
jne 0x140019014
mov ecx, 0x68
call fcn.140089790
mov rsi, rax
mov rcx, rax
call fcn.1400136e0
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, [0x1400f6340]
mov qword [rsi + 0x58], rax
mov qword [0x1400f9a80], rsi
lea rcx, [0x1400f9a88]
call fcn.140089cd8
jmp 0x140019014
cmp dword [r14 + 0x10], r12d
jne 0x14001931f
test r8b, r8b
jne 0x1400193f5
lea rsi, [r14 + 0x18]
lea rcx, [rdi + 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, [0x1400bfe28]
lea rbx, [rsp + 0x50]
mov rdx, rbx
call fcn.1400195b0
mov rcx, qword [rbx]
add rcx, 0x18
mov rdx, rsi
call fcn.1400194d0
add r14, 0x18
mov rcx, qword [rsp + 0x30]
mov rdx, r14
jmp 0x14001924c
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14008b870
mov rcx, rdi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x140025630
mov rcx, rdi
call fcn.1400019f0
jmp 0x14001903b
lea rsi, [rsp + 0x38]
lea rbx, [rsp + 0x50]
mov rcx, rsi
mov rdx, rbx
call fcn.140026280
mov rcx, rbx
mov rdx, rsi
call fcn.1400226c0
mov rcx, rsi
call fcn.1400136d0
movzx eax, byte [rbx + 0x17]
test al, al
jns 0x140019473
mov rax, qword [rsp + 0x58]
test rax, rax
mov rsi, qword [rsp + 0x30]
jne 0x1400191bf
xor esi, esi
jmp 0x140019234
mov rcx, rdi
call fcn.1400019f0
jmp 0x1400191dd
mov rcx, r13
cmp rbx, r13
ja 0x1400192dc
mov rax, r13
xor edx, edx
div rbx
mov rcx, rdx
jmp 0x1400192dc
cmp rax, rbx
jb 0x140019316
xor edx, edx
div rbx
mov rax, rdx
jmp 0x140019316
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2c8
mov r14, rcx
mov rax, qword [0x1400f6398]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
movaps xmm0, xmmword [section..rdata]
lea rdi, [rsp + 0x60]
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, [0x1400bfed5]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov r9d, 0x3aa
call fcn.14000a300
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14000a4d0
lea rbx, [rsp + 0xb0]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14008ea40
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 0x140025742
mov qword [rsp + 0x20], rbx
cmp word [rsp + 0xb0], 0
je 0x140025774
xor ecx, ecx
lea rax, [rcx + 1]
cmp word [rsp + rcx*2 + 0xb2], 0
mov rcx, rax
jne 0x1400256ef
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
call fcn.140012520
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.140023a80
mov rcx, r14
mov rdx, rsi
call fcn.1400226c0
mov rcx, rsi
call fcn.1400136d0
mov rcx, rbx
call fcn.1400136d0
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x60]
call fcn.14000a320
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.14008b870
mov eax, ebx
add rsp, 0x2c8
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x140025701