Function at 0x140075980
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
mov r14, rdx
mov ebx, ecx
mov rax, qword [0x14019d018]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x74], ecx
mov eax, dword [0x1401ab498]
mov ecx, dword [0x1401a659c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140053fcf
cmp ebx, 9
jne 0x140053b59
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140136dd0
mov rcx, r14
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp 0x140075980
mov r15, qword [0x1401ab490]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140053faa
mov r8b, byte [r15 + 0x60]
movsxd r10, ebx
test r8b, r8b
je 0x140053c04
mov dword [rsp + 0x78], ebx
mov rsi, qword [r15 + 0x38]
test rsi, rsi
je 0x140053d52
mov rax, rsi
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rsi
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 rcx, 0x101010101010101
imul rcx, rax
shr rcx, 0x38
cmp rcx, 1
ja 0x140053c7f
lea r9, [rsi - 1]
and r9, r10
jmp 0x140053cd5
mov rcx, qword [r15 + 0x10]
test rcx, rcx
je 0x140053b81
mov rax, rcx
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, rcx
sub rax, rdx
movabs rdx, 0x3333333333333333
mov rdi, rax
and rdi, rdx
shr rax, 2
and rax, rdx
add rax, rdi
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs rsi, 0x101010101010101
imul rsi, rax
shr rsi, 0x38
cmp rsi, 1
ja 0x140053ca0
lea r9, [rcx - 1]
and r9, r10
jmp 0x140053f2d
mov r9, r10
cmp rsi, r10
ja 0x140053cd5
mov rax, r10
or rax, rsi
shr rax, 0x20
je 0x140053ccc
mov rax, r10
xor edx, edx
div rsi
mov r9, rdx
jmp 0x140053cd5
mov r9, r10
cmp rcx, r10
ja 0x140053f2d
mov rax, r10
or rax, rcx
shr rax, 0x20
je 0x140053f24
mov rax, r10
xor edx, edx
div rcx
mov r9, rdx
jmp 0x140053f2d
mov eax, ebx
xor edx, edx
div esi
mov r9d, edx
mov rax, qword [r15 + 0x30]
mov rax, qword [rax + r9*8]
test rax, rax
je 0x140053d52
mov rdi, qword [rax]
test rdi, rdi
je 0x140053d52
lea r11, [rsi - 1]
jmp 0x140053d01
cmp dword [rdi + 0x10], ebx
je 0x140053eb4
mov rdi, qword [rdi]
test rdi, rdi
je 0x140053d52
mov rax, qword [rdi + 8]
cmp rax, r10
je 0x140053cf0
cmp ecx, 1
ja 0x140053d20
and rax, r11
cmp rax, r9
je 0x140053cf9
jmp 0x140053d52
cmp rax, rsi
jb 0x140053d40
mov rdx, rax
or rdx, rsi
shr rdx, 0x20
je 0x140053d47
xor edx, edx
div rsi
mov rax, rdx
nop dword [rax]
cmp rax, r9
je 0x140053cf9
jmp 0x140053d52
xor edx, edx
div esi
mov eax, edx
cmp rax, r9
je 0x140053cf9
mov rdi, qword [r15 + 0x58]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], rax
movaps xmm0, xmmword [0x140174f60]
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.140050470
test rdi, rdi
je 0x140053dab
lea rsi, [rsp + 0x50]
nop
mov rax, qword [rdi]
mov ecx, ebx
mov rdx, rsi
call qword [0x1401c0010]
test al, al
jne 0x140053dab
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x140053d90
movzx eax, byte [rsp + 0x67]
test al, al
jns 0x140053db9
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140053e87
lea rcx, [rsp + 0x50]
call fcn.140052620
test al, al
je 0x140053e0b
lea rsi, [rsp + 0x38]
lea rdi, [rsp + 0x50]
mov rcx, rsi
mov rdx, rdi
call fcn.140074a00
mov rcx, rdi
mov rdx, rsi
call fcn.140050640
mov rcx, rsi
call fcn.1400505d0
movzx eax, byte [rsp + 0x67]
test al, al
jns 0x140053e06
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140053e87
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1400505e0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140053fb7
cmp byte [r15 + 0x60], 0
jne 0x140053e79
lea rcx, [r15 + 8]
lea r8, [rsp + 0x74]
mov qword [rsp + 0x78], r8
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [0x14017f51d]
lea rdx, [rsp + 0x38]
call fcn.140054350
mov rcx, qword [rsp + 0x38]
add rcx, 0x18
lea rdx, [rsp + 0x50]
call fcn.1400505e0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
jmp 0x140053e89
xor esi, esi
lea rcx, [rsp + 0x50]
call fcn.1400505d0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140136dd0
mov eax, esi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
test r8b, r8b
jne 0x140053f04
lea rsi, [rdi + 0x18]
lea rcx, [r15 + 8]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x38], r8
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x14017f51d]
lea rdx, [rsp + 0x50]
call fcn.140054350
mov rcx, qword [rsp + 0x50]
add rcx, 0x18
mov rdx, rsi
call fcn.1400505e0
add rdi, 0x18
mov rcx, r14
mov rdx, rdi
call fcn.1400505e0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
jmp 0x140053e93
mov eax, ebx
xor edx, edx
div ecx
mov r9d, edx
mov rax, qword [r15 + 8]
mov rax, qword [rax + r9*8]
test rax, rax
je 0x140053b81
mov rdi, qword [rax]
test rdi, rdi
je 0x140053b81
lea r11, [rcx - 1]
jmp 0x140053f61
cmp dword [rdi + 0x10], ebx
je 0x140053f04
mov rdi, qword [rdi]
test rdi, rdi
je 0x140053b81
mov rax, qword [rdi + 8]
cmp rax, r10
je 0x140053f50
cmp esi, 1
ja 0x140053f74
and rax, r11
jmp 0x140053fa0
cmp rax, rcx
jb 0x140053fa0
mov rdx, rax
or rdx, rcx
shr rdx, 0x20
je 0x140053f8f
xor edx, edx
div rcx
mov rax, rdx
jmp 0x140053fa0
xor edx, edx
div ecx
mov eax, edx
nop word cs:[rax + rax]
nop
cmp rax, r9
je 0x140053f55
jmp 0x140053b81
mov rcx, r15
call fcn.140089e70
jmp 0x140053b71
mov rcx, r15
call fcn.140089e70
cmp byte [r15 + 0x60], 0
jne 0x140053e79
jmp 0x140053e30
lea rcx, [0x1401ab498]
call fcn.140136640
cmp dword [0x1401ab498], 0xffffffff
jne 0x140053b2e
mov ecx, 0x68
call fcn.1401364e8
mov rsi, rax
mov rcx, rax
call fcn.1400542d0
mov qword [0x1401ab490], rsi
lea rcx, [0x1401ab498]
call fcn.1401366d8
jmp 0x140053b2e
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2d8
mov r14, rcx
mov rax, qword [0x14019d018]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x2c0], rax
movaps xmm0, xmmword [0x140174f60]
movaps xmmword [rsp + 0x2b0], xmm0
movaps xmmword [rsp + 0x2a0], xmm0
movaps xmmword [rsp + 0x290], xmm0
movaps xmmword [rsp + 0x280], xmm0
movaps xmmword [rsp + 0x270], xmm0
lea rdx, [0x140180c4e]
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x60]
mov rcx, rdi
mov r9d, 0x391
call fcn.140065e60
lea rcx, [rsp + 0x270]
mov rdx, rdi
xor r8d, r8d
call fcn.1400bd980
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140139be0
mov word [rsp + 0x60], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
add edi, 0xfffffefb
cmp edi, 0xfffffefc
jb 0x140075a9f
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.140152cb8
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400504f0
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.1400525a0
mov rcx, r14
mov rdx, rsi
call fcn.140050640
mov rcx, rsi
call fcn.1400505d0
mov rcx, rbx
call fcn.1400505d0
cmp edi, 0xfffffefc
setae bl
lea rcx, [rsp + 0x270]
call fcn.1400bdca0
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140136dd0
mov eax, ebx
add rsp, 0x2d8
pop rbx
pop rdi
pop rsi
pop r14
ret