Function at 0x14002a280
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 r15d, ecx
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x5c], ecx
mov eax, dword [0x140173a88]
mov ecx, dword [0x14016f824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002a530
cmp r15d, 1
je 0x14002a604
mov r12, qword [0x140173a80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14002a5f7
cmp byte [r12 + 0x60], 0
jne 0x14002a3d6
mov rbp, qword [r12 + 0x10]
test rbp, rbp
je 0x14002a3d6
movsxd rsi, r15d
mov rax, rbp
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbp
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 0x14002a51c
mov rcx, rsi
cmp rbp, rsi
ja 0x14002a384
mov rax, rsi
xor edx, edx
div rbp
mov rcx, rdx
mov rax, qword [r12 + 8]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x14002a3d6
mov rbx, qword [rax]
test rbx, rbx
je 0x14002a3d6
lea r8, [rbp - 1]
mov rax, qword [rbx + 8]
cmp rax, rsi
jne 0x14002a3b3
cmp dword [rbx + 0x10], r15d
je 0x14002a4e3
jmp 0x14002a3ce
cmp edi, 1
jbe 0x14002a528
cmp rax, rbp
jb 0x14002a3c9
xor edx, edx
div rbp
mov rax, rdx
cmp rax, rcx
jne 0x14002a3d6
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14002a39e
lea rbx, [rsp + 0x60]
mov dword [rbx], r15d
lea rcx, [r12 + 0x30]
lea rsi, [rsp + 0x40]
mov rdx, rsi
mov r8, rbx
call fcn.14002a6b0
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14002a5a3
mov rdi, qword [r12 + 0x58]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
test rdi, rdi
je 0x14002a44c
lea rdx, [rsp + 0x40]
mov ecx, r15d
call qword [rdi]
test al, al
jne 0x14002a44c
lea rsi, [rsp + 0x40]
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x14002a44c
mov ecx, dword [rsp + 0x5c]
mov rdx, rsi
call qword [rdi]
test al, al
je 0x14002a436
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x14002a45a
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14002a665
lea rcx, [rsp + 0x40]
call fcn.1400275f0
test al, al
jne 0x14002a627
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.14002a680
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14002a5ea
cmp byte [r12 + 0x60], 0
jne 0x14002a4cb
lea rcx, [r12 + 8]
lea r8, [rsp + 0x5c]
lea r9, [rsp + 0x60]
mov qword [r9], r8
lea rsi, [rsp + 0x28]
mov rdx, rsi
call fcn.14002a7c0
mov rcx, qword [rsi]
add rcx, 0x18
lea rdx, [rsp + 0x40]
call fcn.14002a680
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
lea rcx, [rsp + 0x40]
call fcn.14002a670
jmp 0x14002a4fe
add rbx, 0x18
mov rcx, r14
mov rdx, rbx
call fcn.14002a680
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14010e4a0
mov eax, esi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rbp - 1]
and rcx, rsi
jmp 0x14002a384
and rax, r8
jmp 0x14002a3c9
lea rcx, [0x140173a88]
call fcn.14010bdd8
cmp dword [0x140173a88], 0xffffffff
jne 0x14002a2cc
mov ecx, 0x68
call fcn.14010b888
mov rsi, rax
mov rcx, rax
call fcn.140017190
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, [0x14016df38]
mov qword [rsi + 0x58], rax
mov qword [0x140173a80], rsi
lea rcx, [0x140173a88]
call fcn.14010ba50
jmp 0x14002a2cc
cmp byte [r12 + 0x60], 0
jne 0x14002a5db
lea rbp, [rsi + 0x18]
lea rcx, [r12 + 8]
lea r9, [rsp + 0x28]
mov qword [r9], rbx
lea r15, [rsp + 0x40]
mov rdx, r15
mov r8, rbx
call fcn.14002a7c0
mov rcx, qword [r15]
add rcx, 0x18
mov rdx, rbp
call fcn.14002a680
add rsi, 0x18
mov rcx, r14
mov rdx, rsi
jmp 0x14002a4ed
mov rcx, r12
call fcn.1400067c0
jmp 0x14002a493
mov rcx, r12
call fcn.1400067c0
jmp 0x14002a2ee
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14010e4a0
mov rcx, r14
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.140029ac0
lea rsi, [rsp + 0x28]
lea rbx, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.1400997e0
mov rcx, rbx
mov rdx, rsi
call fcn.140019760
mov rcx, rsi
call fcn.14002a670
movzx eax, byte [rbx + 0x17]
test al, al
jns 0x14002a65c
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x14002a475
xor esi, esi
jmp 0x14002a4d7