Function at 0x140133340
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rdi, rdx
mov ebx, ecx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x5c], ecx
mov eax, dword [0x140362848]
mov ecx, dword [0x1403576e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140133525
cmp ebx, 9
je 0x140133614
mov rsi, qword [0x140362840]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1401335af
mov dword [rsp + 0x28], ebx
mov bpl, byte [rsi + 0x60]
test bpl, bpl
jne 0x14013340d
lea rcx, [rsi + 8]
lea r14, [rsp + 0x40]
lea r8, [rsp + 0x28]
mov rdx, r14
call fcn.140133640
mov rdx, qword [r14]
test rdx, rdx
je 0x14013340d
add rdx, 0x18
mov rcx, rdi
call fcn.1400d8490
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140156fe0
mov eax, esi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r15, [rsp + 0x60]
mov dword [r15], ebx
lea rcx, [rsi + 0x30]
lea r14, [rsp + 0x40]
mov rdx, r14
mov r8, r15
call fcn.1400fd610
mov r14, qword [r14]
test r14, r14
jne 0x14013356b
mov r15, qword [rsi + 0x58]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x40]
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [0x1402fccc0]
movaps xmmword [rcx], xmm0
call fcn.1400d8550
test r15, r15
je 0x140133489
lea r14, [rsp + 0x40]
mov rax, qword [r15]
mov ecx, ebx
mov rdx, r14
call qword [0x14037e008]
test al, al
jne 0x140133489
mov r15, qword [r15 + 8]
test r15, r15
jne 0x14013346e
movzx eax, byte [rsp + 0x57]
test al, al
js 0x140133497
and eax, 0x7f
jmp 0x14013349c
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14013360d
lea rcx, [rsp + 0x40]
call fcn.1400c9030
test al, al
jne 0x1401335c9
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400d8490
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1401335bc
cmp byte [rsi + 0x60], 0
jne 0x14013350a
lea rcx, [rsi + 8]
lea r8, [rsp + 0x5c]
lea r9, [rsp + 0x60]
mov qword [r9], r8
lea rdi, [rsp + 0x28]
mov rdx, rdi
call fcn.1400fd720
mov rcx, qword [rdi]
add rcx, 0x18
lea rdx, [rsp + 0x40]
call fcn.1400d8490
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
lea rcx, [rsp + 0x40]
call fcn.1400d8480
jmp 0x1401333ef
lea rcx, [0x140362848]
call fcn.1401547b8
cmp dword [0x140362848], 0xffffffff
jne 0x14013338b
mov ecx, 0x68
call fcn.140153bd4
mov rsi, rax
mov rcx, rax
call fcn.14005b5c0
mov qword [0x140362840], rsi
lea rcx, [0x140362848]
call fcn.140153cf4
jmp 0x14013338b
test bpl, bpl
jne 0x1401335a0
lea rbx, [r14 + 0x18]
lea rcx, [rsi + 8]
lea r9, [rsp + 0x28]
mov qword [r9], r15
lea r12, [rsp + 0x40]
mov rdx, r12
mov r8, r15
call fcn.1400fd720
mov rcx, qword [r12]
add rcx, 0x18
mov rdx, rbx
call fcn.1400d8490
add r14, 0x18
mov rcx, rdi
mov rdx, r14
jmp 0x1401333de
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1401333ac
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1401334d5
lea rbx, [rsp + 0x28]
lea r14, [rsp + 0x40]
mov rcx, rbx
mov rdx, r14
call fcn.140124f10
mov rcx, r14
mov rdx, rbx
call fcn.1400d8440
mov rcx, rbx
call fcn.1400d8480
movzx eax, byte [r14 + 0x17]
test al, al
js 0x1401335ff
and eax, 0x7f
jmp 0x140133604
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x1401334b7
xor esi, esi
jmp 0x140133516
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140156fe0
mov rcx, rdi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.14005daf0