Function at 0x140058cd0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov qword [rsp + 0x30], rdx
mov r12d, ecx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x6c], ecx
mov eax, dword [0x140212560]
mov ecx, dword [0x140214838]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005900c
cmp r12d, 1
je 0x1400590e6
mov rdi, qword [0x140212558]
mov rcx, rdi
call fcn.14009b9c0
mov r8b, byte [rdi + 0x60]
movsxd r13, r12d
movabs r15, 0x5555555555555555
movabs r11, 0x3333333333333333
movabs r10, 0xf0f0f0f0f0f0f0f
movabs r9, 0x101010101010101
test r8b, r8b
jne 0x140058e26
mov rbp, qword [rdi + 0x10]
test rbp, rbp
je 0x140058e26
mov rax, rbp
shr rax, 1
and rax, r15
mov rcx, rbp
sub rcx, rax
mov rax, rcx
and rax, r11
shr rcx, 2
and rcx, r11
add rcx, rax
mov rsi, rcx
shr rsi, 4
add rsi, rcx
and rsi, r10
imul rsi, r9
shr rsi, 0x38
cmp rsi, 1
jbe 0x140058f63
mov rcx, r13
cmp rbp, r13
ja 0x140058dd5
mov rax, r13
xor edx, edx
div rbp
mov rcx, rdx
mov rax, qword [rdi + 8]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x140058e26
mov rbx, qword [rax]
test rbx, rbx
je 0x140058e26
lea r14, [rbp - 1]
mov rax, qword [rbx + 8]
cmp rax, r13
jne 0x140058e03
cmp dword [rbx + 0x10], r12d
je 0x140058f20
jmp 0x140058e1e
cmp esi, 1
jbe 0x140058f6f
cmp rax, rbp
jb 0x140058e19
xor edx, edx
div rbp
mov rax, rdx
cmp rax, rcx
jne 0x140058e26
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140058dee
mov dword [rsp + 0x70], r12d
mov rbx, qword [rdi + 0x38]
test rbx, rbx
jne 0x140058f77
mov rbx, qword [rdi + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea rcx, [rsp + 0x50]
call fcn.140050550
test rbx, rbx
je 0x140058e7d
lea rdx, [rsp + 0x50]
mov ecx, r12d
call qword [rbx]
test al, al
jne 0x140058e7d
lea rsi, [rsp + 0x50]
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140058e7d
mov ecx, dword [rsp + 0x6c]
mov rdx, rsi
call qword [rbx]
test al, al
je 0x140058e67
movzx eax, byte [rsp + 0x67]
test al, al
jns 0x140058e8b
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140059151
lea rcx, [rsp + 0x50]
call fcn.140053000
test al, al
jne 0x140059113
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call fcn.1400506a0
mov rcx, rdi
call fcn.14009b9c0
cmp byte [rdi + 0x60], 0
jne 0x140058f08
lea rcx, [rdi + 8]
lea r8, [rsp + 0x6c]
lea rax, [rsp + 0x70]
mov qword [rax], r8
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea r9, [0x1401bf648]
lea rsi, [rsp + 0x38]
mov rdx, rsi
call fcn.1400595a0
mov rcx, qword [rsi]
add rcx, 0x18
lea rdx, [rsp + 0x50]
call fcn.1400506a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
lea rcx, [rsp + 0x50]
call fcn.140050690
jmp 0x140058f3d
add rbx, 0x18
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call fcn.1400506a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov sil, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140180700
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rbp - 1]
and rcx, r13
jmp 0x140058dd5
and rax, r14
jmp 0x140058e19
mov rax, rbx
shr rax, 1
and rax, r15
mov rcx, rbx
sub rcx, rax
mov rax, rcx
and rax, r11
shr rcx, 2
and rcx, r11
add rcx, rax
mov rbp, rcx
shr rbp, 4
add rbp, rcx
and rbp, r10
imul rbp, r9
shr rbp, 0x38
cmp rbp, 1
ja 0x140059158
lea rcx, [rbx - 1]
and rcx, r13
mov rax, qword [rdi + 0x30]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x140058e38
mov r15, qword [rax]
test r15, r15
je 0x140058e38
lea rsi, [rbx - 1]
mov rax, qword [r15 + 8]
cmp rax, r13
je 0x14005907f
cmp ebp, 1
ja 0x140059174
and rax, rsi
cmp rax, rcx
jne 0x140058e38
mov r15, qword [r15]
test r15, r15
jne 0x140058fdd
jmp 0x140058e38
lea rcx, [0x140212560]
call fcn.1401804b0
cmp dword [0x140212560], 0xffffffff
jne 0x140058d26
mov ecx, 0x68
call fcn.140180340
mov rsi, rax
mov rcx, rax
call fcn.14009b9b0
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, [0x14020e610]
mov qword [rsi + 0x58], rax
mov qword [0x140212558], rsi
lea rcx, [0x140212560]
call fcn.140180548
jmp 0x140058d26
cmp dword [r15 + 0x10], r12d
jne 0x140058fff
test r8b, r8b
jne 0x1400590d5
lea rsi, [r15 + 0x18]
lea rcx, [rdi + 8]
lea r8, [rsp + 0x70]
lea rax, [rsp + 0x38]
mov qword [rax], r8
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea r9, [0x1401bf648]
lea rbx, [rsp + 0x50]
mov rdx, rbx
call fcn.1400595a0
mov rcx, qword [rbx]
add rcx, 0x18
mov rdx, rsi
call fcn.1400506a0
add r15, 0x18
mov rcx, qword [rsp + 0x30]
mov rdx, r15
jmp 0x140058f2c
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140180700
mov rcx, qword [rsp + 0x30]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140065e30
lea rsi, [rsp + 0x38]
lea rbx, [rsp + 0x50]
mov rcx, rsi
mov rdx, rbx
call fcn.1400640d0
mov rcx, rbx
mov rdx, rsi
call fcn.1400506c0
mov rcx, rsi
call fcn.140050690
movzx eax, byte [rbx + 0x17]
test al, al
jns 0x140059148
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x140058ea6
xor esi, esi
jmp 0x140058f14
mov rcx, r13
cmp rbx, r13
ja 0x140058fbc
mov rax, r13
xor edx, edx
div rbx
mov rcx, rdx
jmp 0x140058fbc
cmp rax, rbx
jb 0x140058ff6
xor edx, edx
div rbx
mov rax, rdx
jmp 0x140058ff6