Function at 0x140040fc0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2d8]
sub rsp, 0x3b0
mov rax, qword [0x1401a6080]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov r15, rcx
mov qword [rbp - 0x80], rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
mov dword [rsp + 0x30], 1
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r12
movups xmmword [rbp - 0x50], xmm0
test eax, eax
js 0x140041069
lea rax, [rbp + 0x90]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r12w
jne 0x140041056
lea rdx, [rbp + 0x90]
jmp 0x140041073
xor r8d, r8d
lea rdx, [0x140188f90]
lea rcx, [rbp - 0x50]
call fcn.140023f48
mov dword [rsp + 0x30], 0x201
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
mov rbx, qword [rbp - 0x40]
sub rax, rbx
cmp rax, 0xc
jb 0x140041733
lea r14, [rbp - 0x50]
cmp qword [rbp - 0x38], 7
cmova r14, qword [rbp - 0x50]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], r12
lea rsi, [rbx + 0xc]
mov eax, 7
mov qword [rbp - 0x70], rax
lea rdi, [rbp - 0x30]
lea r13d, [rax + 3]
cmp rsi, rax
jbe 0x140041107
mov rax, rsi
or rax, 7
cmp rax, rcx
ja 0x1400410ef
mov rcx, rax
cmp rax, r13
cmovb rcx, r13
mov qword [rbp - 0x70], rcx
lea rdx, [rbp - 0x70]
call fcn.140013018
mov rdi, rax
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rax
add rbx, rbx
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str.Robloxlogs]
movups xmmword [rbx + rdi], xmm0
movsd xmm0, qword [0x140188fb0]
movsd qword [rbx + rdi + 0x10], xmm0
mov word [rdi + rsi*2], r12w
mov dword [rsp + 0x30], 0x601
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rdx, qword [rbp - 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], r12
mov qword [rbp + 8], r12
mov r8, qword [rbp - 0x20]
lea rcx, [rbp - 0x10]
call fcn.140023f48
mov edi, 0x1e01
mov dword [rsp + 0x30], edi
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x50]
call fcn.14001df9c
nop
lea rcx, [rbp - 0x10]
call fcn.140005aac
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x1400411a8
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x58]
mov edi, dword [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x60], xmm0
test rbx, rbx
je 0x1400411c5
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x58]
mov edi, dword [rsp + 0x30]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
test rbx, rbx
je 0x140041206
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400411fd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400411fd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov edi, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
mov r14, qword [rsp + 0x60]
test r14, r14
je 0x14004166b
mov dword [rsp + 0x38], r12d
mov ecx, dword [r14 + 0x1c]
mov eax, ecx
and eax, 3
cmp al, 3
jne 0x140041265
mov ecx, dword [r14 + 0x10]
mov eax, ecx
shr eax, 0xa
test al, 1
je 0x140041257
cmp dword [r14 + 0x14], 0xa000000c
jne 0x140041248
mov ecx, 4
mov dword [rsp + 0x38], ecx
jmp 0x1400412c4
cmp dword [r14 + 0x14], 0xa0000003
jne 0x140041257
mov ecx, r13d
jmp 0x140041242
shr ecx, 4
movzx ecx, cl
and ecx, 1
or ecx, 2
jmp 0x140041242
shr ecx, 1
test cl, 1
je 0x140041272
mov r9d, dword [r14 + 0x10]
jmp 0x140041276
or r9d, 0xffffffff
lea rbx, [r14 + 0x20]
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140041287
mov rcx, qword [rbx]
mov r8d, 3
lea rdx, [rbp - 0x70]
call fcn.14014b064
mov dword [rsp + 0x40], eax
lea r8, [rbp - 0x70]
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.140002798
mov edx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x38]
test edx, edx
je 0x1400412c4
lea eax, [rcx - 1]
test eax, 0xfffffff7
jne 0x140041723
cmp ecx, 2
jne 0x140041572
lea rax, str..log
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 4
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x70], xmm0
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x30]
call fcn.140017ec8
or edi, 0x20
or edi, 2
mov dword [rsp + 0x30], edi
lea rcx, [r14 + 0x20]
lea rdx, [rbp + 0x70]
call fcn.140040ee8
nop
or edi, 4
mov dword [rsp + 0x30], edi
lea r11, [rbp + 0x30]
cmp qword [rbp + 0x48], 7
cmova r11, qword [rbp + 0x30]
mov r13, qword [rbp + 0x40]
mov rbx, rax
cmp qword [rax + 0x18], 7
jbe 0x140041337
mov rbx, qword [rax]
mov rax, qword [rax + 0x10]
lea rsi, [rbx + rax*2]
mov rdx, rsi
mov rcx, rbx
call fcn.14001d4e4
mov r12, rax
lea r13, [r11 + r13*2]
mov rdx, r13
mov rcx, r11
call fcn.14001d4e4
mov r9, rax
mov rdx, rax
sub rdx, r11
sar rdx, 1
mov r8, r12
sub r8, rbx
sar r8, 1
mov rcx, r8
cmp rdx, r8
cmovb rcx, rdx
test rcx, rcx
je 0x14004139c
sub rbx, r11
movzx eax, word [r11 + rbx]
cmp ax, word [r11]
jne 0x14004156f
add r11, 2
sub rcx, 1
jne 0x140041383
cmp r8, rdx
jb 0x14004156f
ja 0x14004156f
mov rdx, r12
mov bx, 0x5c
cmp r12, rsi
je 0x1400413cb
cmp word [rdx], bx
je 0x1400413c2
cmp word [rdx], 0x2f
jne 0x1400413cb
add rdx, 2
cmp rdx, rsi
jne 0x1400413b7
mov r8, r9
cmp r9, r13
je 0x1400413e9
cmp word [r8], bx
je 0x1400413e0
cmp word [r8], 0x2f
jne 0x1400413e9
add r8, 2
cmp r8, r13
jne 0x1400413d3
xor ecx, ecx
cmp r9, r8
setne cl
xor eax, eax
cmp r12, rdx
setne al
xor r12d, r12d
cmp eax, ecx
jne 0x140041572
jmp 0x14004145a
test ecx, ecx
jne 0x140041572
cmp word [rdx], bx
je 0x14004141c
cmp word [rdx], 0x2f
mov r9b, r12b
jne 0x14004141f
mov r9b, 1
cmp word [r8], bx
je 0x14004142f
cmp word [r8], 0x2f
mov ecx, r12d
jne 0x140041434
mov ecx, 1
movzx eax, r9b
cmp ecx, eax
jne 0x140041572
test r9b, r9b
jne 0x1400414a7
movzx eax, word [r8]
cmp word [rdx], ax
jne 0x140041572
add rdx, 2
add r8, 2
mov ecx, r12d
cmp r8, r13
sete cl
mov eax, r12d
cmp rdx, rsi
sete al
sub ecx, eax
cmp rdx, rsi
jne 0x140041406
test ecx, ecx
jne 0x140041572
lea rcx, [r14 + 0x20]
cmp qword [r14 + 0x38], 7
jbe 0x14004148a
mov rcx, qword [r14 + 0x20]
mov rax, qword [r14 + 0x30]
lea rdx, [rcx + rax*2]
mov r11, rdx
call fcn.14001d4e4
jmp 0x1400414d9
cmp word [rdx], bx
je 0x1400414a7
cmp word [rdx], 0x2f
jne 0x1400414bf
add rdx, 2
cmp rdx, rsi
jne 0x14004149c
jmp 0x1400414bf
cmp word [r8], bx
je 0x1400414bf
cmp word [r8], 0x2f
jne 0x14004145a
add r8, 2
cmp r8, r13
jne 0x1400414b2
jmp 0x14004145a
cmp word [rax], bx
je 0x1400414d5
cmp word [rax], 0x2f
jne 0x1400414de
add rax, 2
cmp rax, rdx
jne 0x1400414ca
cmp rax, rdx
je 0x1400414fa
lea rcx, [r11 - 2]
cmp word [rcx], bx
je 0x1400414fa
cmp word [rcx], 0x2f
je 0x1400414fa
mov r11, rcx
cmp rax, rcx
jne 0x1400414e3
sub rdx, r11
sar rdx, 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], r12
mov r8, rdx
mov rdx, r11
lea rcx, [rbp + 0x10]
call fcn.140023f48
or edi, 0x1c0
or edi, 8
mov dword [rsp + 0x30], edi
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x10]
call fcn.14001d860
or edi, 0x10
mov dword [rsp + 0x30], edi
mov rdx, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14004154d
mov rax, qword [rax]
mov qword [rsp + 0x20], 6
lea r9, str.Player
mov rcx, rax
call fcn.14001b860
cmp rax, 0xffffffffffffffff
je 0x140041572
mov bl, 1
jmp 0x140041575
xor r12d, r12d
mov bl, r12b
test dil, 0x10
je 0x1400415cd
and edi, 0xffffffef
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x1400415bd
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400415b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004165f
call fcn.1401499c4
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x50], r12b
test dil, 8
je 0x1400415e4
and edi, 0xfffffff7
mov dword [rsp + 0x30], edi
lea rcx, [rbp + 0x10]
call fcn.140005aac
nop
test dil, 4
je 0x1400415fb
and edi, 0xfffffffb
mov dword [rsp + 0x30], edi
lea rcx, [rbp + 0x70]
call fcn.140005aac
nop
test dil, 2
je 0x140041611
and edi, 0xfffffffd
mov dword [rsp + 0x30], edi
lea rcx, [rbp + 0x30]
call fcn.140005aac
test bl, bl
je 0x140041640
lea r8, [r14 + 0x20]
mov rax, qword [r15 + 8]
cmp rax, qword [r15 + 0x10]
je 0x140041635
mov rdx, r8
mov rcx, rax
call fcn.140005b10
add qword [r15 + 8], 0x20
jmp 0x140041640
mov rdx, rax
mov rcx, r15
call fcn.140041d30
lea rcx, [rsp + 0x60]
call fcn.14001e0bc
mov r14, qword [rsp + 0x60]
test r14, r14
je 0x140041666
mov r13d, 0xa
jmp 0x140041214
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400416ac
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400416a7
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400416a7
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x1400416dd
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400416dd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or edx, 0xffffffff
lock xadd dword [rbx + 0xc], edx
cmp edx, 1
jne 0x1400416dd
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp - 0x30]
call fcn.140005aac
nop
lea rcx, [rbp - 0x50]
call fcn.140005aac
mov rax, r15
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.140149960
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov r8, rbx
lea rcx, str.directory_entry::status
call fcn.14001da40
nop
call fcn.140001928
int3