Function at 0x140053840
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x550]
sub rsp, 0x650
mov rax, qword [0x140074040]
xor rax, rsp
mov qword [rbp + 0x540], rax
mov r15, rcx
mov qword [rbp + 0x40], rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
mov dword [rsp + 0x30], 1
lea rax, [rbp + 0x330]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r13 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r12, [r13 - 1]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
test eax, eax
js 0x1400538f5
lea rax, [rbp + 0x330]
mov r8, r12
inc r8
cmp word [rax + r8*2], 0
jne 0x1400538e1
lea rdx, [rbp + 0x330]
jmp 0x1400538ff
xor r8d, r8d
lea rdx, [0x140068e68]
lea rcx, [rsp + 0x60]
call fcn.1400514b0
mov ebx, 0x10001
mov dword [rsp + 0x30], ebx
mov r8d, 0xc
lea rdx, str.Robloxlogs
lea rcx, [rsp + 0x60]
call fcn.140054480
xorps xmm0, xmm0
movups xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], r13
mov qword [rbp + 0xc8], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xb0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xc0], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
bts ebx, 0x11
mov dword [rsp + 0x30], ebx
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x1400539b3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400539ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400539ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140058a84
movdqa xmm0, xmmword [0x1400691b0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r13w
lea rdx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 7
cmova rdx, qword [rbp + 0xb0]
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], r13
mov r8, qword [rbp + 0xc0]
lea rcx, [rbp - 0x40]
call fcn.1400514b0
or ebx, 0xc0000
mov dword [rsp + 0x30], ebx
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xa0], xmm0
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0xa0]
call fcn.140054550
test eax, eax
jne 0x140054120
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x140053a6d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053a68
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140053a68
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140058a84
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x140053a92
lock inc dword [rcx + 8]
mov rcx, qword [rbp + 0xa8]
mov ebx, dword [rsp + 0x30]
movaps xmm0, xmmword [rbp + 0xa0]
movdqa xmmword [rbp + 0x90], xmm0
test rcx, rcx
je 0x140053ab5
lock inc dword [rcx + 8]
mov rcx, qword [rbp + 0xa8]
mov ebx, dword [rsp + 0x30]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xd0], xmm1
test rcx, rcx
je 0x140053aff
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140053afb
mov rbx, qword [rbp + 0xa8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140053afb
mov rcx, qword [rbp + 0xa8]
mov rax, qword [rcx]
call qword [rax + 8]
mov ebx, dword [rsp + 0x30]
mov r14, qword [rbp + 0x90]
nop word [rax + rax]
lea rdi, str..log
test r14, r14
je 0x140054017
lea rdx, [rbp - 0x20]
mov rcx, r14
call fcn.140053250
mov rax, qword [rbp - 0x20]
mov edx, dword [rbp - 0x18]
test edx, edx
je 0x140053b46
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x140054133
cmp eax, 2
jne 0x140053daa
call fcn.140057f60
mov qword [rbp + 0x10], rdi
mov qword [rbp + 0x18], 4
lea r8, [rbp + 0x10]
mov edx, eax
lea rcx, [rbp - 0x10]
call fcn.14004af00
or ebx, 0x60
or ebx, 2
mov dword [rsp + 0x30], ebx
lea rcx, [r14 + 0x20]
cmp qword [r14 + 0x38], 7
jbe 0x140053b88
mov rcx, qword [r14 + 0x20]
mov rax, qword [r14 + 0x30]
lea rdx, [rcx + rax*2]
mov rdi, rdx
call fcn.140052a90
cmp rax, rdx
je 0x140053bdc
nop dword [rax]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140053baf
cmp cx, 0x2f
jne 0x140053bb8
add rax, 2
cmp rax, rdx
jne 0x140053ba0
cmp rax, rdx
je 0x140053bdc
nop dword [rax]
lea r8, [rdi - 2]
movzx ecx, word [r8]
cmp cx, 0x5c
je 0x140053bdc
cmp cx, 0x2f
je 0x140053bdc
mov rdi, r8
cmp rax, r8
jne 0x140053bc0
mov r8d, 0x3a
mov rcx, rdi
call fcn.140058940
cmp rdi, rax
je 0x140053c27
lea rdx, [rax - 2]
cmp rdi, rdx
je 0x140053c27
cmp word [rdx], 0x2e
jne 0x140053c0f
lea rcx, [rdx - 2]
cmp rdi, rcx
jne 0x140053c2a
cmp word [rcx], 0x2e
jne 0x140053c2a
jmp 0x140053c27
sub rdx, 2
cmp rdi, rdx
je 0x140053c27
cmp word [rdx], 0x2e
je 0x140053c2a
sub rdx, 2
cmp rdi, rdx
jne 0x140053c18
mov rdx, rax
sub rax, rdx
sar rax, 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], r13
mov r8, rax
lea rcx, [rbp - 0x60]
call fcn.1400514b0
or ebx, 0x380
or ebx, 4
mov dword [rsp + 0x30], ebx
lea rax, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova rax, qword [rbp - 0x10]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movaps xmm0, xmmword [rbp + 0x20]
movdqa xmmword [rbp + 0x50], xmm0
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140052df0
test eax, eax
jne 0x140053daa
lea rcx, [r14 + 0x20]
cmp qword [r14 + 0x38], 7
jbe 0x140053c9f
mov rcx, qword [r14 + 0x20]
mov rax, qword [r14 + 0x30]
lea r11, [rcx + rax*2]
mov r10, r11
mov rdx, r11
call fcn.140052a90
cmp rax, r11
je 0x140053cfb
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140053cc6
cmp cx, 0x2f
jne 0x140053ccf
add rax, 2
cmp rax, r11
jne 0x140053cb7
cmp rax, r11
je 0x140053cfb
nop dword [rax]
nop dword [rax + rax]
lea rdx, [r10 - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x140053cfb
cmp cx, 0x2f
je 0x140053cfb
mov r10, rdx
cmp rax, rdx
jne 0x140053ce0
sub r11, r10
sar r11, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov r8, r11
mov rdx, r10
lea rcx, [rsp + 0x40]
call fcn.1400514b0
or ebx, 0xe000
or ebx, 8
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rax, qword [rsp + 0x40]
mov qword [rbp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov qword [rbp + 0x38], rax
call fcn.140057f60
movaps xmm0, xmmword [rbp + 0x30]
movdqa xmmword [rbp + 0x60], xmm0
lea r8, [rbp + 0x60]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.140052890
or ebx, 0x1c10
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x80]
mov rdi, qword [rbp - 0x68]
cmp rdi, 0xf
cmova rcx, qword [rbp - 0x80]
mov qword [rsp + 0x20], 6
lea r9, str.Player
mov rdx, qword [rbp - 0x70]
call fcn.1400515f0
cmp rax, 0xffffffffffffffff
je 0x140053dae
mov sil, 1
jmp 0x140053db1
mov rdi, qword [rbp - 0x68]
xor sil, sil
test bl, 0x10
je 0x140053e05
and ebx, 0xffffffef
mov dword [rsp + 0x30], ebx
cmp rdi, 0xf
jbe 0x140053df5
lea rdx, [rdi + 1]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053df0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053ffb
call fcn.140058a84
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
test bl, 8
je 0x140053e67
and ebx, 0xfffffff7
mov dword [rsp + 0x30], ebx
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140053e53
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053e4e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054002
call fcn.140058a84
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r13w
test bl, 4
je 0x140053ec4
and ebx, 0xfffffffb
mov dword [rsp + 0x30], ebx
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140053eb3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053eae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054009
call fcn.140058a84
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r13w
test bl, 2
je 0x140053f10
and ebx, 0xfffffffd
mov dword [rsp + 0x30], ebx
mov rdx, qword [rbp + 8]
cmp rdx, 7
jbe 0x140053f10
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053f0b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054010
call fcn.140058a84
test sil, sil
je 0x140053f40
lea r8, [r14 + 0x20]
mov rax, qword [r15 + 8]
cmp rax, qword [r15 + 0x10]
je 0x140053f35
mov rdx, r8
mov rcx, rax
call fcn.14004ffa0
add qword [r15 + 8], 0x20
jmp 0x140053f40
mov rdx, rax
mov rcx, r15
call fcn.140054f40
lea rdx, [rbp + 0xe0]
mov rcx, qword [r14 + 0x40]
call fcn.1400581c0
cmp eax, 0x12
je 0x140053f97
test eax, eax
jne 0x140054118
cmp word [rbp + 0x10c], 0x2e
jne 0x140053f83
movzx eax, word [rbp + 0x10e]
test ax, ax
je 0x140053f40
cmp ax, 0x2e
jne 0x140053f83
cmp word [rbp + 0x110], 0
je 0x140053f40
lea rdx, [rbp + 0xe0]
mov rcx, r14
call fcn.140053560
jmp 0x140053b10
mov r14, r13
mov qword [rbp + 0x90], r13
mov rdi, qword [rbp + 0x98]
mov qword [rbp + 0x98], r13
test rdi, rdi
je 0x140053b10
mov eax, r12d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140053fe0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, r12d
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
je 0x140053fe9
nop word [rax + rax]
mov ebx, dword [rsp + 0x30]
jmp 0x140053aff
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov ebx, dword [rsp + 0x30]
jmp 0x140053aff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rbp + 0x98]
test rcx, rcx
je 0x14005405a
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14005405a
mov rbx, qword [rbp + 0x98]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14005405a
mov rcx, qword [rbp + 0x98]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x14005409c
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14005409c
mov rbx, qword [rbp + 0xa8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r12d
cmp r12d, 1
jne 0x14005409c
mov rcx, qword [rbp + 0xa8]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0xc8]
cmp rdx, 7
jbe 0x1400540e5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400540e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400540e0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140058a84
mov rax, r15
mov rcx, qword [rbp + 0x540]
xor rcx, rsp
call fcn.140058a20
lea r11, [rsp + 0x650]
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 edx, eax
call fcn.1400531f0
nop
lea r8, [rbp - 0x40]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.14004b840
nop
lea r8, [r14 + 0x20]
lea rcx, str.directory_entry::status
call fcn.14004b840
int3