Function at 0x14004c0d0
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 r14, rdx
mov r12d, ecx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x6c], ecx
mov eax, dword [0x14021b2f0]
mov ecx, dword [0x140216fcc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004c436
cmp r12d, 1
je 0x14004c50e
mov r13, qword [0x14021b2e8]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004c539
mov r10b, byte [r13 + 0x60]
movabs r11, 0x5555555555555555
movabs r15, 0x3333333333333333
movabs r8, 0xf0f0f0f0f0f0f0f
movabs rbx, 0x101010101010101
movsxd r9, r12d
test r10b, r10b
jne 0x14004c237
mov rdi, qword [r13 + 0x10]
test rdi, rdi
je 0x14004c237
mov rax, rdi
shr rax, 1
and rax, r11
mov rcx, rdi
sub rcx, rax
mov rax, rcx
and rax, r15
shr rcx, 2
and rcx, r15
add rcx, rax
mov rbp, rcx
shr rbp, 4
add rbp, rcx
and rbp, r8
imul rbp, rbx
shr rbp, 0x38
cmp rbp, 1
jbe 0x14004c38d
mov rcx, r9
cmp rdi, r9
ja 0x14004c1dc
mov rax, r9
xor edx, edx
div rdi
mov rcx, rdx
mov rax, qword [r13 + 8]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x14004c237
mov rsi, qword [rax]
test rsi, rsi
je 0x14004c237
lea r8, [rdi - 1]
mov rax, qword [rsi + 8]
cmp rax, r9
jne 0x14004c20a
cmp dword [rsi + 0x10], r12d
je 0x14004c29e
jmp 0x14004c225
cmp ebp, 1
jbe 0x14004c399
cmp rax, rdi
jb 0x14004c220
xor edx, edx
div rdi
mov rax, rdx
cmp rax, rcx
jne 0x14004c22d
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14004c1f5
movabs r8, 0xf0f0f0f0f0f0f0f
mov dword [rsp + 0x70], r12d
mov rcx, qword [r13 + 0x38]
test rcx, rcx
jne 0x14004c3a1
mov rdi, qword [r13 + 0x58]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x50]
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [0x1401d9dd0]
movaps xmmword [rcx], xmm0
call fcn.1400d7a40
test rdi, rdi
je 0x14004c2df
lea rsi, [rsp + 0x50]
mov ecx, r12d
mov rdx, rsi
call qword [rdi]
test al, al
jne 0x14004c2df
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x14004c2df
mov r12d, dword [rsp + 0x6c]
jmp 0x14004c282
add rsi, 0x18
mov rcx, r14
mov rdx, rsi
call fcn.140048830
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401013e0
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, byte [rsp + 0x67]
test al, al
jns 0x14004c2ed
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14004c584
lea rcx, [rsp + 0x50]
call fcn.1400d91f0
test al, al
jne 0x14004c546
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.140048830
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004c58b
cmp byte [r13 + 0x60], 0
jne 0x14004c372
lea rcx, [r13 + 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, [0x1401e77ef]
lea rsi, [rsp + 0x38]
mov rdx, rsi
call fcn.14004ca20
mov rcx, qword [rsi]
add rcx, 0x18
lea rdx, [rsp + 0x50]
call fcn.140048830
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
lea rcx, [rsp + 0x50]
call fcn.1400d7bc0
jmp 0x14004c2b9
lea rcx, [rdi - 1]
and rcx, r9
jmp 0x14004c1dc
and rax, r8
jmp 0x14004c220
mov rax, rcx
shr rax, 1
and rax, r11
mov rdx, rcx
sub rdx, rax
mov rax, rdx
and rax, r15
shr rdx, 2
and rdx, r15
add rdx, rax
mov rsi, rdx
shr rsi, 4
add rsi, rdx
and rsi, r8
imul rsi, rbx
shr rsi, 0x38
cmp rsi, 1
ja 0x14004c598
lea r8, [rcx - 1]
and r8, r9
mov rax, qword [r13 + 0x30]
mov rax, qword [rax + r8*8]
test rax, rax
je 0x14004c249
mov r15, qword [rax]
test r15, r15
je 0x14004c249
lea rbp, [rcx - 1]
mov rax, qword [r15 + 8]
cmp rax, r9
je 0x14004c4a9
cmp esi, 1
ja 0x14004c5b4
and rax, rbp
cmp rax, r8
jne 0x14004c249
mov r15, qword [r15]
test r15, r15
jne 0x14004c407
jmp 0x14004c249
lea rcx, [0x14021b2f0]
call fcn.140100680
cmp dword [0x14021b2f0], 0xffffffff
jne 0x14004c124
mov ecx, 0x68
call fcn.140100528
mov rsi, rax
mov rcx, rax
call fcn.1400e44f0
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, [0x140215350]
mov qword [rsi + 0x58], rax
mov qword [0x14021b2e8], rsi
lea rcx, [0x14021b2f0]
call fcn.140100718
jmp 0x14004c124
cmp dword [r15 + 0x10], r12d
jne 0x14004c429
test r10b, r10b
jne 0x14004c4ff
lea rsi, [r15 + 0x18]
lea rcx, [r13 + 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, [0x1401e77ef]
lea rbx, [rsp + 0x50]
mov rdx, rbx
call fcn.14004ca20
mov rcx, qword [rbx]
add rcx, 0x18
mov rdx, rsi
call fcn.140048830
add r15, 0x18
mov rcx, r14
mov rdx, r15
jmp 0x14004c2a8
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401013e0
mov rcx, r14
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400520c0
mov rcx, r13
call fcn.1400e4500
jmp 0x14004c146
lea rsi, [rsp + 0x38]
lea rbx, [rsp + 0x50]
mov rcx, rsi
mov rdx, rbx
call fcn.140050fe0
mov rcx, rbx
mov rdx, rsi
call fcn.1400d7bd0
mov rcx, rsi
call fcn.1400d7bc0
movzx eax, byte [rbx + 0x17]
test al, al
jns 0x14004c57b
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x14004c308
xor esi, esi
jmp 0x14004c37e
mov rcx, r13
call fcn.1400e4500
jmp 0x14004c326
mov r8, r9
cmp rcx, r9
ja 0x14004c3e6
mov rax, r9
xor edx, edx
div rcx
mov r8, rdx
jmp 0x14004c3e6
cmp rax, rcx
jb 0x14004c420
xor edx, edx
div rcx
mov rax, rdx
jmp 0x14004c420