Function at 0x1400516c0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2b8
mov rsi, rcx
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
movaps xmm0, xmmword [0x1400c9a30]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, [0x1400d5367]
lea r8, [0x1400d5304]
lea rdi, [rsp + 0xa0]
mov rcx, rdi
mov r9d, 0x43c
call fcn.140059890
lea rcx, [rsp + 0x60]
mov rdx, rdi
xor r8d, r8d
call fcn.140065100
lea rbx, [rsp + 0xa0]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400bc700
mov word [rsp + 0xa0], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
dec edi
cmp edi, 0x103
ja 0x140051541
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.1400a7388
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140059a10
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.14005b210
mov rcx, rsi
mov rdx, r14
call fcn.140059be0
mov rcx, r14
call fcn.140059b70
mov rcx, rbx
call fcn.140059b70
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x60]
call fcn.140065180
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.14008cf80
mov eax, ebx
add rsp, 0x2b8
pop rbx
pop rdi
pop rsi
pop r14
ret
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rdx
mov ebx, ecx
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x74], ecx
mov eax, dword [0x1400f9260]
mov ecx, dword [0x1400f65f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140051bf8
cmp ebx, 9
jne 0x140051739
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14008cf80
mov rcx, rdi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp 0x140051440
mov rsi, qword [0x1400f9258]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x140051755
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
movzx r10d, byte [rsi + 0x60]
movsxd rcx, ebx
cmp r10b, 1
je 0x1400518b3
mov r11, qword [rsi + 0x10]
test r11, r11
je 0x1400518b3
mov rax, r11
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, r11
sub rax, rdx
movabs rdx, 0x3333333333333333
mov r8, rax
and r8, rdx
shr rax, 2
and rax, rdx
add rax, r8
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r14, 0x101010101010101
imul r14, rax
shr r14, 0x38
cmp r14, 1
ja 0x1400517df
lea r8, [r11 - 1]
and r8, rcx
jmp 0x14005180a
mov r8, rcx
cmp r11, rcx
ja 0x14005180a
mov rax, rcx
or rax, r11
shr rax, 0x20
je 0x140051800
mov rax, rcx
xor edx, edx
div r11
mov r8, rdx
jmp 0x14005180a
mov eax, ebx
xor edx, edx
div r11d
mov r8d, edx
mov rax, qword [rsi + 8]
mov rax, qword [rax + r8*8]
test rax, rax
je 0x1400518b3
mov r9, qword [rax]
test r9, r9
je 0x1400518b3
cmp r14d, 2
jae 0x140051852
dec r11
jmp 0x1400518a2
cmp dword [r9 + 0x10], ebx
je 0x140051bd6
mov r9, qword [r9]
test r9, r9
je 0x1400518b3
mov rax, qword [r9 + 8]
cmp rax, rcx
je 0x140051840
cmp rax, r11
jb 0x140051880
mov rdx, rax
or rdx, r11
shr rdx, 0x20
je 0x140051876
xor edx, edx
div r11
mov rax, rdx
jmp 0x140051880
xor edx, edx
div r11d
mov eax, edx
nop dword [rax]
cmp rax, r8
je 0x14005184a
jmp 0x1400518b3
cmp dword [r9 + 0x10], ebx
je 0x140051bd6
mov r9, qword [r9]
test r9, r9
je 0x1400518b3
mov rax, qword [r9 + 8]
cmp rax, rcx
je 0x140051890
and rax, r11
cmp rax, r8
je 0x14005189a
mov dword [rsp + 0x78], ebx
mov r9, qword [rsi + 0x38]
test r9, r9
je 0x140051a03
mov rax, r9
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, r9
sub rax, rdx
movabs rdx, 0x3333333333333333
mov r8, rax
and r8, rdx
shr rax, 2
and rax, rdx
add rax, r8
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r11, 0x101010101010101
imul r11, rax
shr r11, 0x38
cmp r11, 1
ja 0x14005192f
lea r8, [r9 - 1]
and r8, rcx
jmp 0x14005195a
mov r8, rcx
cmp r9, rcx
ja 0x14005195a
mov rax, rcx
or rax, r9
shr rax, 0x20
je 0x140051950
mov rax, rcx
xor edx, edx
div r9
mov r8, rdx
jmp 0x14005195a
mov eax, ecx
xor edx, edx
div r9d
mov r8d, edx
mov rax, qword [rsi + 0x30]
mov rax, qword [rax + r8*8]
test rax, rax
je 0x140051a03
mov r14, qword [rax]
test r14, r14
je 0x140051a03
cmp r11d, 2
jae 0x1400519a2
dec r9
jmp 0x1400519f2
cmp dword [r14 + 0x10], ebx
je 0x140051b78
mov r14, qword [r14]
test r14, r14
je 0x140051a03
mov rax, qword [r14 + 8]
cmp rax, rcx
je 0x140051990
cmp rax, r9
jb 0x1400519c4
mov rdx, rax
or rdx, r9
shr rdx, 0x20
je 0x1400519cb
xor edx, edx
div r9
mov rax, rdx
cmp rax, r8
je 0x14005199a
jmp 0x140051a03
xor edx, edx
div r9d
mov eax, edx
cmp rax, r8
je 0x14005199a
jmp 0x140051a03
cmp dword [r14 + 0x10], ebx
je 0x140051b78
mov r14, qword [r14]
test r14, r14
je 0x140051a03
mov rax, qword [r14 + 8]
cmp rax, rcx
je 0x1400519e0
and rax, r9
cmp rax, r8
je 0x1400519ea
mov r15, qword [rsi + 0x58]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], rax
movaps xmm0, xmmword [0x1400c9a30]
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.1400599d0
test r15, r15
je 0x140051a5b
lea r14, [rsp + 0x50]
nop
mov rax, qword [r15]
mov ecx, ebx
mov rdx, r14
call qword [0x1400ddbf8]
test al, al
jne 0x140051a5b
mov r15, qword [r15 + 8]
test r15, r15
jne 0x140051a40
movsx rax, byte [rsp + 0x67]
test rax, rax
jns 0x140051a6b
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140051add
lea rcx, [rsp + 0x50]
call fcn.14005b2b0
test al, al
je 0x140051abb
lea rbx, [rsp + 0x38]
lea r14, [rsp + 0x50]
mov rcx, rbx
mov rdx, r14
call fcn.140050d70
mov rcx, r14
mov rdx, rbx
call fcn.140059be0
mov rcx, rbx
call fcn.140059b70
movsx rax, byte [rsp + 0x67]
test rax, rax
jns 0x140051ab6
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140051add
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140059b80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140051ae1
cmp byte [rsi + 0x60], 0
je 0x140051aef
jmp 0x140051b41
xor esi, esi
jmp 0x140051b4d
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
cmp byte [rsi + 0x60], 0
jne 0x140051b41
lea rcx, [rsi + 8]
lea r8, [rsp + 0x74]
mov qword [rsp + 0x78], r8
lea rax, [rsp + 0x87]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cbaab]
lea rdx, [rsp + 0x38]
call fcn.140051cd0
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140051bf6
add rcx, 0x18
lea rdx, [rsp + 0x50]
call fcn.140059b80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
lea rcx, [rsp + 0x50]
call fcn.140059b70
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14008cf80
mov eax, esi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
test r10b, r10b
jne 0x140051bca
lea rcx, [rsi + 8]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x38], r8
lea rax, [rsp + 0x87]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cbaab]
lea rdx, [rsp + 0x50]
call fcn.140051cd0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140051bf6
lea rdx, [r14 + 0x18]
add rcx, 0x18
call fcn.140059b80
add r14, 0x18
mov rcx, rdi
mov rdx, r14
jmp 0x140051be0
add r9, 0x18
mov rcx, rdi
mov rdx, r9
call fcn.140059b80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
jmp 0x140051b57
ud2
lea rcx, [0x1400f9260]
call fcn.14008bbcc
cmp dword [0x1400f9260], 0xffffffff
jne 0x14005170e
mov ecx, 0x68
call fcn.14008bb48
mov rsi, rax
mov rcx, rax
call fcn.140051c40
mov qword [0x1400f9258], rsi
lea rcx, [0x1400f9260]
call fcn.14008bc80
jmp 0x14005170e