Function at 0x1400472b0
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 [0x140163028]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x5c], ecx
mov eax, dword [0x140169408]
mov ecx, dword [0x1401666f4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140047560
cmp r15d, 1
je 0x140047634
mov r12, qword [0x140169400]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140047627
cmp byte [r12 + 0x60], 0
jne 0x140047406
mov rbp, qword [r12 + 0x10]
test rbp, rbp
je 0x140047406
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 0x14004754c
mov rcx, rsi
cmp rbp, rsi
ja 0x1400473b4
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 0x140047406
mov rbx, qword [rax]
test rbx, rbx
je 0x140047406
lea r8, [rbp - 1]
mov rax, qword [rbx + 8]
cmp rax, rsi
jne 0x1400473e3
cmp dword [rbx + 0x10], r15d
je 0x140047513
jmp 0x1400473fe
cmp edi, 1
jbe 0x140047558
cmp rax, rbp
jb 0x1400473f9
xor edx, edx
div rbp
mov rax, rdx
cmp rax, rcx
jne 0x140047406
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400473ce
lea rbx, [rsp + 0x60]
mov dword [rbx], r15d
lea rcx, [r12 + 0x30]
lea rsi, [rsp + 0x40]
mov rdx, rsi
mov r8, rbx
call fcn.1400476d0
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1400475d3
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 0x14004747c
lea rdx, [rsp + 0x40]
mov ecx, r15d
call qword [rdi]
test al, al
jne 0x14004747c
lea rsi, [rsp + 0x40]
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x14004747c
mov ecx, dword [rsp + 0x5c]
mov rdx, rsi
call qword [rdi]
test al, al
je 0x140047466
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x14004748a
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140047695
lea rcx, [rsp + 0x40]
call fcn.14002d360
test al, al
jne 0x140047657
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.1400476a0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004761a
cmp byte [r12 + 0x60], 0
jne 0x1400474fb
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.1400477e0
mov rcx, qword [rsi]
add rcx, 0x18
lea rdx, [rsp + 0x40]
call fcn.1400476a0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
lea rcx, [rsp + 0x40]
call fcn.14004e3d0
jmp 0x14004752e
add rbx, 0x18
mov rcx, r14
mov rdx, rbx
call fcn.1400476a0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140107cc0
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 0x1400473b4
and rax, r8
jmp 0x1400473f9
lea rcx, [0x140169408]
call fcn.1401050e8
cmp dword [0x140169408], 0xffffffff
jne 0x1400472fc
mov ecx, 0x68
call fcn.140105030
mov rsi, rax
mov rcx, rax
call fcn.14000cc90
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, [0x140164e38]
mov qword [rsi + 0x58], rax
mov qword [0x140169400], rsi
lea rcx, [0x140169408]
call fcn.1401052d4
jmp 0x1400472fc
cmp byte [r12 + 0x60], 0
jne 0x14004760b
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.1400477e0
mov rcx, qword [r15]
add rcx, 0x18
mov rdx, rbp
call fcn.1400476a0
add rsi, 0x18
mov rcx, r14
mov rdx, rsi
jmp 0x14004751d
mov rcx, r12
call fcn.1400071b0
jmp 0x1400474c3
mov rcx, r12
call fcn.1400071b0
jmp 0x14004731e
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140107cc0
mov rcx, r14
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.14003c6c0
lea rsi, [rsp + 0x28]
lea rbx, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.140066570
mov rcx, rbx
mov rdx, rsi
call fcn.14004e400
mov rcx, rsi
call fcn.14004e3d0
movzx eax, byte [rbx + 0x17]
test al, al
jns 0x14004768c
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x1400474a5
xor esi, esi
jmp 0x140047507