Function at 0x14004dc30
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 r15, rdx
mov r13d, ecx
mov rax, qword [0x140173028]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x6c], ecx
mov eax, dword [0x14017f758]
mov ecx, dword [0x14017c9f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004ded7
cmp r13d, 9
je 0x14004dfc6
mov r12, qword [0x14017f750]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004dfac
cmp byte [r12 + 0x60], 0
jne 0x14004dd8a
mov rbx, qword [r12 + 0x10]
test rbx, rbx
je 0x14004dd8a
movsxd rdi, r13d
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
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 rbp, 0x101010101010101
imul rbp, rax
shr rbp, 0x38
cmp rbp, 1
jbe 0x14004deb6
mov rcx, rdi
cmp rbx, rdi
ja 0x14004dd3c
mov rax, rdi
xor edx, edx
div rbx
mov rcx, rdx
mov rax, qword [r12 + 8]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x14004dd8a
mov rsi, qword [rax]
test rsi, rsi
je 0x14004dd8a
lea r8, [rbx - 1]
mov rax, qword [rsi + 8]
cmp rax, rdi
jne 0x14004dd6b
cmp dword [rsi + 0x10], r13d
je 0x14004df6b
jmp 0x14004dd82
cmp ebp, 1
jbe 0x14004decf
cmp rax, rbx
jae 0x14004dec2
cmp rax, rcx
jne 0x14004dd8a
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14004dd56
lea r14, [rsp + 0x70]
mov dword [r14], r13d
lea rcx, [r12 + 0x30]
lea rsi, [rsp + 0x50]
mov rdx, rsi
mov r8, r14
call fcn.1400d1f70
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14004df1d
mov rdi, qword [r12 + 0x58]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x50]
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [0x14014df90]
movaps xmmword [rcx], xmm0
call fcn.14004bc40
test rdi, rdi
je 0x14004de09
lea rsi, [rsp + 0x50]
mov rax, qword [rdi]
mov ecx, r13d
mov rdx, rsi
call qword [0x140192010]
test al, al
jne 0x14004de09
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x14004dded
movzx eax, byte [rsp + 0x67]
test al, al
jns 0x14004de17
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14004e02f
lea rcx, [rsp + 0x50]
call fcn.14004c400
test al, al
jne 0x14004dff1
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.14004bdb0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004dfb9
cmp byte [r12 + 0x60], 0
jne 0x14004de9b
lea rcx, [r12 + 8]
lea r8, [rsp + 0x6c]
mov qword [rsp + 0x70], r8
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [0x140153f06]
lea rsi, [rsp + 0x38]
mov rdx, rsi
call fcn.1400d2080
mov rcx, qword [rsi]
add rcx, 0x18
lea rdx, [rsp + 0x50]
call fcn.14004bdb0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
lea rcx, [rsp + 0x50]
call fcn.14004bda0
jmp 0x14004df86
lea rcx, [rbx - 1]
and rcx, rdi
jmp 0x14004dd3c
xor edx, edx
div rbx
mov rax, rdx
jmp 0x14004dd7d
and rax, r8
jmp 0x14004dd7d
lea rcx, [0x14017f758]
call fcn.1400828b0
cmp dword [0x14017f758], 0xffffffff
jne 0x14004dc84
mov ecx, 0x68
call fcn.140082758
mov rsi, rax
mov rcx, rax
call fcn.1400d1ef0
mov qword [0x14017f750], rsi
lea rcx, [0x14017f758]
call fcn.140082948
jmp 0x14004dc84
cmp byte [r12 + 0x60], 0
jne 0x14004df6b
lea rdi, [rsi + 0x18]
lea rcx, [r12 + 8]
lea rax, [rsp + 0x38]
mov qword [rax], r14
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea r9, [0x140153f06]
lea rbx, [rsp + 0x50]
mov rdx, rbx
mov r8, r14
call fcn.1400d2080
mov rcx, qword [rbx]
add rcx, 0x18
mov rdx, rdi
call fcn.14004bdb0
add rsi, 0x18
mov rcx, r15
mov rdx, rsi
call fcn.14004bdb0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140083c00
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r12
call fcn.140051230
jmp 0x14004dca6
mov rcx, r12
call fcn.140051230
jmp 0x14004de50
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140083c00
mov rcx, r15
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400d33a0
lea rsi, [rsp + 0x38]
lea rdi, [rsp + 0x50]
mov rcx, rsi
mov rdx, rdi
call fcn.1400d2630
mov rcx, rdi
mov rdx, rsi
call fcn.14004be10
mov rcx, rsi
call fcn.14004bda0
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x14004e026
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x14004de32
xor esi, esi
jmp 0x14004dea7