Function at 0x140022990
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r14, rdx
mov ebp, ecx
mov rax, qword [0x1400a52f8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x6c], ecx
mov eax, dword [0x1400a88e0]
mov ecx, dword [0x1400a8940]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140022a0b
cmp ebp, 1
jne 0x140022a81
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14005ecd0
mov rcx, r14
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp 0x140030240
lea rcx, [0x1400a88e0]
call fcn.14005ea60
cmp dword [0x1400a88e0], 0xffffffff
jne 0x1400229db
mov ecx, 0x68
call fcn.14005e874
mov rsi, rax
mov rcx, rax
call fcn.140030360
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
movups xmmword [rsi + 0x18], xmm0
mov dword [rsi + 0x28], 0x3f800000
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x40], xmm0
mov dword [rsi + 0x50], 0x3f800000
mov byte [rsi + 0x60], 0
lea rax, [0x1400a52b0]
mov qword [rsi + 0x58], rax
mov qword [0x1400a88d8], rsi
lea rcx, [0x1400a88e0]
call fcn.14005eaf8
cmp ebp, 1
je 0x1400229e4
mov r15, qword [0x1400a88d8]
mov rcx, r15
call fcn.140030370
mov r8b, byte [r15 + 0x60]
movsxd r10, ebp
test r8b, r8b
je 0x140022b33
mov dword [rsp + 0x70], ebp
mov rdi, qword [r15 + 0x38]
test rdi, rdi
je 0x140022c38
mov rax, rdi
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rdi
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 rbx, 0x101010101010101
imul rbx, rax
shr rbx, 0x38
cmp rbx, 1
jbe 0x140022bc2
mov rcx, r10
cmp rdi, r10
ja 0x140022bc9
mov rax, r10
xor edx, edx
div rdi
mov rcx, rdx
jmp 0x140022bc9
mov r9, qword [r15 + 0x10]
test r9, r9
je 0x140022aa0
mov rax, r9
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, r9
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 rdi, 0x101010101010101
imul rdi, rax
shr rdi, 0x38
cmp rdi, 1
jbe 0x140022d84
mov rcx, r10
cmp r9, r10
ja 0x140022d8b
mov rax, r10
xor edx, edx
div r9
mov rcx, rdx
jmp 0x140022d8b
lea rcx, [rdi - 1]
and rcx, r10
mov rax, qword [r15 + 0x30]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x140022c38
mov rsi, qword [rax]
test rsi, rsi
je 0x140022c38
lea r9, [rdi - 1]
jmp 0x140022c01
cmp dword [rsi + 0x10], ebp
je 0x140022def
mov rsi, qword [rsi]
test rsi, rsi
je 0x140022c38
mov rax, qword [rsi + 8]
cmp rax, r10
je 0x140022bf0
cmp ebx, 1
jbe 0x140022c30
cmp rax, rdi
jb 0x140022c1c
xor edx, edx
div rdi
mov rax, rdx
cmp rax, rcx
je 0x140022bf9
jmp 0x140022c38
and rax, r9
cmp rax, rcx
je 0x140022bf9
mov rdi, qword [r15 + 0x58]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea rcx, [rsp + 0x50]
call fcn.14001f8f0
test rdi, rdi
je 0x140022c86
lea rdx, [rsp + 0x50]
mov ecx, ebp
call qword [rdi]
test al, al
jne 0x140022c86
lea rsi, [rsp + 0x50]
nop word cs:[rax + rax]
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x140022c86
mov ecx, dword [rsp + 0x6c]
mov rdx, rsi
call qword [rdi]
test al, al
je 0x140022c70
movzx eax, byte [rsp + 0x67]
test al, al
jns 0x140022c94
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140022d56
lea rcx, [rsp + 0x50]
call fcn.140020ad0
test al, al
je 0x140022ce6
lea rsi, [rsp + 0x38]
lea rdi, [rsp + 0x50]
mov rcx, rsi
mov rdx, rdi
call fcn.14002ff00
mov rcx, rdi
mov rdx, rsi
call fcn.14001f9b0
mov rcx, rsi
call fcn.14001f980
movzx eax, byte [rsp + 0x67]
test al, al
jns 0x140022ce1
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140022d56
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.14001f990
mov rcx, r15
call fcn.140030370
cmp byte [r15 + 0x60], 0
jne 0x140022d48
lea rcx, [r15 + 8]
lea r8, [rsp + 0x6c]
mov qword [rsp + 0x70], r8
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [0x1400874d8]
lea rdx, [rsp + 0x38]
call fcn.140022e60
mov rcx, qword [rsp + 0x38]
add rcx, 0x18
lea rdx, [rsp + 0x50]
call fcn.14001f990
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
jmp 0x140022d58
xor esi, esi
lea rcx, [rsp + 0x50]
call fcn.14001f980
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14005ecd0
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [r9 - 1]
and rcx, r10
mov rax, qword [r15 + 8]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x140022aa0
mov rsi, qword [rax]
test rsi, rsi
je 0x140022aa0
lea rbx, [r9 - 1]
jmp 0x140022dc5
cmp dword [rsi + 0x10], ebp
je 0x140022e3c
mov rsi, qword [rsi]
test rsi, rsi
je 0x140022aa0
mov rax, qword [rsi + 8]
cmp rax, r10
je 0x140022db0
cmp edi, 1
jbe 0x140022de2
cmp rax, r9
jb 0x140022de5
xor edx, edx
div r9
mov rax, rdx
jmp 0x140022de5
and rax, rbx
cmp rax, rcx
je 0x140022db9
jmp 0x140022aa0
test r8b, r8b
jne 0x140022e3c
lea rdi, [rsi + 0x18]
lea rcx, [r15 + 8]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], r8
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x1400874d8]
lea rdx, [rsp + 0x50]
call fcn.140022e60
mov rcx, qword [rsp + 0x50]
add rcx, 0x18
mov rdx, rdi
call fcn.14001f990
add rsi, 0x18
mov rcx, r14
mov rdx, rsi
call fcn.14001f990
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
jmp 0x140022d62
push rsi
push rdi
push rbx
sub rsp, 0x290
mov rsi, rcx
mov rax, qword [0x1400a52f8]
xor rax, rsp
mov qword [rsp + 0x288], rax
lea rdx, [0x1400889c8]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x80]
mov rcx, rbx
mov r9d, 0x370
call fcn.140031390
lea rcx, [rsp + 0x68]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.140034d60
mov word [rsp + 0x80], 0
lea rbx, [rsp + 0x80]
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x140030338
mov qword [rsp + 0x28], rbx
cmp word [rsp + 0x80], 0
je 0x1400302f1
xor eax, eax
nop word cs:[rax + rax]
nop dword [rax + rax]
cmp word [rsp + rax*2 + 0x82], 0
lea rax, [rax + 1]
jne 0x1400302e0
jmp 0x1400302f3
xor eax, eax
mov qword [rsp + 0x30], rax
lea rdi, [rsp + 0x38]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14001f930
lea rbx, [rsp + 0x50]
mov rcx, rdi
mov rdx, rbx
call fcn.140020a30
mov rcx, rsi
mov rdx, rbx
call fcn.14001f9b0
mov rcx, rbx
call fcn.14001f980
mov rcx, rdi
call fcn.14001f980
mov dil, 1
lea rcx, [rsp + 0x68]
call fcn.140034e90
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.14005ecd0
mov eax, edi
add rsp, 0x290
pop rbx
pop rdi
pop rsi
ret