Function at 0x140047030
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rdi, rdx
mov ebx, ecx
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x64], ecx
mov eax, dword [0x1402c5490]
mov ecx, dword [0x1402c2098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140047457
cmp ebx, 9
je 0x140047602
mov rsi, qword [0x1402c5488]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400475e9
mov r9b, byte [rsi + 0x60]
movabs r15, 0x5555555555555555
movabs r14, 0x3333333333333333
movabs r11, 0xf0f0f0f0f0f0f0f
movabs r10, 0x101010101010101
movsxd rcx, ebx
cmp r9b, 1
je 0x14004723c
mov r12, qword [rsi + 0x10]
test r12, r12
je 0x14004723c
mov rax, r12
shr rax, 1
and rax, r15
mov rdx, r12
sub rdx, rax
mov rax, rdx
and rax, r14
shr rdx, 2
and rdx, r14
add rdx, rax
mov rbp, rdx
shr rbp, 4
add rbp, rdx
and rbp, r11
imul rbp, r10
shr rbp, 0x38
cmp rbp, 1
jbe 0x1400471c0
mov r8, rcx
cmp r12, rcx
ja 0x140047135
mov rax, rcx
xor edx, edx
div r12
mov r8, rdx
mov rax, qword [rsi + 8]
mov rax, qword [rax + r8*8]
test rax, rax
je 0x14004723c
mov r13, qword [rax]
test r13, r13
je 0x14004723c
cmp ebp, 2
jb 0x1400471f2
mov rax, qword [r13 + 8]
cmp rax, rcx
jne 0x14004721d
cmp dword [r13 + 0x10], ebx
jne 0x14004722f
lea rdx, [r13 + 0x18]
cmp rdi, rdx
je 0x14004719d
cmp byte [rdi + 0x17], 0
movzx r8d, byte [r13 + 0x2f]
js 0x14004743d
test r8b, r8b
js 0x1400471e0
mov rax, qword [rdx + 0x10]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rdi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
cmp rcx, qword [0x1402b3040]
je 0x1400471cd
call fcn.14019d280
int3
lea r8, [r12 - 1]
and r8, rcx
jmp 0x140047135
mov eax, esi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [r13 + 0x18]
mov r8, qword [r13 + 0x20]
mov rcx, rdi
call fcn.14000bbb0
jmp 0x14004719d
dec r12
mov rax, qword [r13 + 8]
cmp rax, rcx
jne 0x14004720a
cmp dword [r13 + 0x10], ebx
je 0x140047172
jmp 0x140047212
and rax, r12
cmp rax, r8
jne 0x14004723c
mov r13, qword [r13]
test r13, r13
jne 0x1400471f5
jmp 0x14004723c
cmp rax, r12
jb 0x14004722a
xor edx, edx
div r12
mov rax, rdx
cmp rax, r8
jne 0x14004723c
mov r13, qword [r13]
test r13, r13
jne 0x14004715b
mov dword [rsp + 0x68], ebx
mov r12, qword [rsi + 0x38]
test r12, r12
jne 0x1400473a6
mov r15, qword [rsi + 0x58]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
test r15, r15
je 0x1400472a4
lea r14, [rsp + 0x40]
mov rax, qword [r15]
mov ecx, ebx
mov rdx, r14
call qword [0x1402a4958]
test al, al
jne 0x140047290
mov r15, qword [r15 + 8]
test r15, r15
jne 0x140047275
mov al, byte [rsp + 0x57]
test al, al
js 0x1400475f8
movzx eax, al
test rax, rax
jne 0x1400472d4
xor esi, esi
cmp byte [rsp + 0x57], 0
jns 0x1400471a9
mov rcx, qword [rsp + 0x40]
call fcn.14019aab4
jmp 0x1400471a9
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov rcx, rdi
call fcn.14000bbb0
jmp 0x140047314
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.140150e60
test al, al
jne 0x140047634
cmp rdi, rbx
je 0x140047314
cmp byte [rdi + 0x17], 0
movzx r8d, byte [rsp + 0x57]
js 0x1400475ca
test r8b, r8b
js 0x1400472c0
mov rax, qword [rsp + 0x50]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rdi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140047627
cmp byte [rsi + 0x60], 0
jne 0x140047384
lea rcx, [rsi + 8]
lea r8, [rsp + 0x64]
lea r9, [rsp + 0x68]
mov qword [r9], r8
lea rdi, [rsp + 0x28]
mov rdx, rdi
call fcn.1400476f0
mov rax, qword [rdi]
test rax, rax
je 0x1400475f6
lea rcx, [rax + 0x18]
cmp rcx, rbx
je 0x140047384
cmp byte [rax + 0x2f], 0
movzx r8d, byte [rsp + 0x57]
js 0x1400475ae
test r8b, r8b
js 0x140047395
mov rax, qword [rsp + 0x50]
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
jmp 0x1400472a6
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
call fcn.14000bbb0
jmp 0x140047384
mov rax, r12
shr rax, 1
and rax, r15
mov rdx, r12
sub rdx, rax
mov rax, rdx
and rax, r14
shr rdx, 2
and rdx, r14
add rdx, rax
mov r15, rdx
shr r15, 4
add r15, rdx
and r15, r11
imul r15, r10
shr r15, 0x38
cmp r15, 1
ja 0x140047694
lea r8, [r12 - 1]
and r8, rcx
mov rax, qword [rsi + 0x30]
mov rax, qword [rax + r8*8]
test rax, rax
je 0x14004724d
mov r14, qword [rax]
test r14, r14
je 0x14004724d
cmp r15d, 2
jae 0x1400476bc
dec r12
mov rax, qword [r14 + 8]
cmp rax, rcx
je 0x1400474e3
and rax, r12
cmp rax, r8
jne 0x14004724d
mov r14, qword [r14]
test r14, r14
je 0x14004724d
jmp 0x140047416
test r8b, r8b
jns 0x14004744a
mov r8, qword [r13 + 0x20]
mov rdx, qword [r13 + 0x18]
mov rcx, rdi
call fcn.14000bcb0
jmp 0x14004719d
lea rcx, [0x1402c5490]
call fcn.14019ae60
cmp dword [0x1402c5490], 0xffffffff
jne 0x14004707d
mov ecx, 0x68
call fcn.14019aa78
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], 0
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 r14, [0x1402b5688]
movabs rax, 0xfffffffc00000000
and rax, r14
cmp rax, qword [0x1402b5708]
je 0x140047683
mov qword [rsi + 0x58], r14
mov qword [0x1402c5488], rsi
lea rcx, [0x1402c5490]
call fcn.14019ad84
jmp 0x14004707d
cmp dword [r14 + 0x10], ebx
jne 0x14004742f
test r9b, r9b
jne 0x140047547
lea rcx, [rsi + 8]
lea r8, [rsp + 0x68]
lea r9, [rsp + 0x28]
mov qword [r9], r8
lea rbx, [rsp + 0x40]
mov rdx, rbx
call fcn.1400476f0
mov rax, qword [rbx]
test rax, rax
je 0x1400475f6
cmp rax, r14
je 0x140047547
lea rdx, [r14 + 0x18]
lea rcx, [rax + 0x18]
cmp byte [rax + 0x2f], 0
movzx r8d, byte [r14 + 0x2f]
js 0x140047584
test r8b, r8b
js 0x140047575
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
lea rdx, [r14 + 0x18]
cmp rdi, rdx
je 0x14004719d
cmp byte [rdi + 0x17], 0
movzx r8d, byte [r14 + 0x2f]
js 0x140047598
test r8b, r8b
jns 0x14004718f
mov rdx, qword [r14 + 0x18]
mov r8, qword [r14 + 0x20]
jmp 0x1400471e8
mov rdx, qword [r14 + 0x18]
mov r8, qword [r14 + 0x20]
call fcn.14000bbb0
jmp 0x140047547
test r8b, r8b
jns 0x140047591
mov r8, qword [r14 + 0x20]
mov rdx, qword [r14 + 0x18]
call fcn.14000bcb0
jmp 0x140047547
test r8b, r8b
jns 0x14004744a
mov r8, qword [r14 + 0x20]
mov rdx, qword [r14 + 0x18]
jmp 0x14004744a
test r8b, r8b
cmovs r8, qword [rsp + 0x48]
cmovs rbx, qword [rsp + 0x40]
mov rdx, rbx
call fcn.14000bcb0
jmp 0x140047384
test r8b, r8b
cmovs r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
cmovns rdx, rbx
mov rcx, rdi
call fcn.14000bcb0
jmp 0x140047314
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14004709e
ud2
mov rax, qword [rsp + 0x48]
jmp 0x14004729f
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14019d280
mov rcx, rdi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140064560
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140047325
lea r14, [rsp + 0x28]
lea r15, [rsp + 0x40]
mov rcx, r14
mov rdx, r15
call fcn.14005beb0
mov rcx, r15
mov rdx, r14
call fcn.140066ae0
cmp byte [r14 + 0x17], 0
jns 0x140047665
mov rcx, qword [rsp + 0x28]
call fcn.14019aab4
movsx rax, byte [rsp + 0x57]
test rax, rax
jns 0x140047675
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x1400472e9
jmp 0x1400472a4
lea rcx, [0x1402b5688]
call fcn.140004d30
jmp 0x1400474c7
mov r8, rcx
cmp r12, rcx
ja 0x1400473ec
mov rax, rcx
xor edx, edx
div r12
mov r8, rdx
jmp 0x1400473ec
cmp dword [r14 + 0x10], ebx
je 0x1400474ed
jmp 0x1400476db
mov rax, qword [r14 + 8]
cmp rax, rcx
je 0x1400476b0
cmp rax, r12
jb 0x1400476d2
xor edx, edx
div r12
mov rax, rdx
cmp rax, r8
jne 0x14004724d
mov r14, qword [r14]
test r14, r14
je 0x14004724d
jmp 0x1400476bc