Function at 0x140009640
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 - 0x2c0]
sub rsp, 0x3c0
mov rax, qword [0x140088040]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov r15, rcx
mov qword [rbp + 0x20], rcx
xor esi, esi
mov dword [rsp + 0x40], esi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov dword [rsp + 0x40], 1
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov r12, 0xffffffffffffffff
xorps xmm0, xmm0
mov qword [rbp + 0x60], rsi
mov qword [rbp + 0x68], rsi
movups xmmword [rbp + 0x50], xmm0
test eax, eax
js 0x1400096f5
lea rax, [rbp + 0xa0]
mov r8, r12
inc r8
cmp word [rax + r8*2], 0
jne 0x1400096e1
lea rdx, [rbp + 0xa0]
jmp 0x1400096ff
xor r8d, r8d
lea rdx, [0x140069440]
lea rcx, [rbp + 0x50]
call fcn.14000aa80
mov dword [rsp + 0x40], 0x401
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp + 0x60]
sub rax, rcx
cmp rax, 0xc
jb 0x140009d94
lea r9, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova r9, qword [rbp + 0x50]
mov qword [rsp + 0x30], 0xc
lea rax, str.Robloxlogs
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x70]
call fcn.14000b000
mov dword [rsp + 0x40], 0xc01
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 7
cmova rdx, qword [rbp + 0x70]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rsi
mov r8, qword [rbp + 0x80]
lea rcx, [rsp + 0x58]
call fcn.14000aa80
mov ebx, 0x3c01
mov dword [rsp + 0x40], ebx
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x30], xmm0
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x30]
call fcn.14000a3e0
test eax, eax
jne 0x140009d9a
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140009804
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400097ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400097ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140064af4
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
mov r14, qword [rbp + 0x38]
test r14, r14
je 0x140009821
lock inc dword [r14 + 8]
mov r14, qword [rbp + 0x38]
mov ebx, dword [rsp + 0x40]
movaps xmm0, xmmword [rbp + 0x30]
movdqa xmmword [rbp + 0x40], xmm0
test r14, r14
je 0x14000983c
lock inc dword [r14 + 8]
mov r14, qword [rbp + 0x38]
mov ebx, dword [rsp + 0x40]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x90], xmm1
test r14, r14
je 0x14000988a
mov eax, r12d
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x140009882
mov rbx, qword [rbp + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140009882
mov r14, qword [rbp + 0x38]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 8]
jmp 0x140009886
mov r14, qword [rbp + 0x38]
mov ebx, dword [rsp + 0x40]
cmp qword [rbp + 0x30], 0
je 0x140009c22
mov r13, qword [rbp + 0x40]
nop dword [rax]
lea rdx, [rbp - 0x70]
mov rcx, r13
call fcn.140008e10
mov rax, qword [rbp - 0x70]
mov edx, dword [rbp - 0x68]
test edx, edx
je 0x1400098c6
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x140009d83
cmp eax, 2
jne 0x140009a73
mov dword [rsp + 0x50], 0x6f6c2e30
mov word [rsp + 0x54], 0x67
lea rax, [rsp + 0x51]
mov qword [rbp - 0x40], rax
lea rcx, [rsp + 0x51]
mov rax, r12
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x1400098f0
mov qword [rbp - 0x38], rax
call fcn.14006436c
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x80], xmm0
lea r8, [rbp - 0x80]
mov edx, eax
lea rcx, [rbp - 0x60]
call fcn.140007b10
or ebx, 0x60
or ebx, 2
mov dword [rsp + 0x40], ebx
lea rdx, [rbp]
lea rcx, [r13 + 0x20]
call fcn.1400082d0
mov r8, rax
or ebx, 4
mov dword [rsp + 0x40], ebx
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rcx, qword [rbp - 0x60]
mov qword [rbp - 0x30], rcx
mov rax, qword [rbp - 0x50]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x80], xmm0
lea rdx, [rbp - 0x80]
mov rcx, r8
call fcn.1400080d0
test eax, eax
jne 0x140009a73
lea rcx, [r13 + 0x20]
cmp qword [r13 + 0x38], 7
jbe 0x140009981
mov rcx, qword [r13 + 0x20]
mov rax, qword [r13 + 0x30]
lea rsi, [rcx + rax*2]
mov rdi, rsi
mov rdx, rsi
call fcn.140007c60
cmp rax, rsi
je 0x1400099db
nop dword [rax]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x1400099af
cmp cx, 0x2f
jne 0x1400099b8
add rax, 2
cmp rax, rsi
jne 0x1400099a0
cmp rax, rsi
je 0x1400099db
nop dword [rax]
lea rdx, [rdi - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x1400099db
cmp cx, 0x2f
je 0x1400099db
mov rdi, rdx
cmp rax, rdx
jne 0x1400099c0
sub rsi, rdi
sar rsi, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14000aa80
or ebx, 0x380
or ebx, 8
mov dword [rsp + 0x40], ebx
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x58]
call fcn.140007fe0
mov rcx, rax
or ebx, 0x10
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x48], 0x616c501c
mov dword [rsp + 0x4c], 0x726579
lea rdx, [rsp + 0x49]
mov rax, r12
inc rax
cmp byte [rdx + rax], 0
jne 0x140009a42
mov rdx, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x140009a59
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x49]
call fcn.140002860
cmp rax, 0xffffffffffffffff
je 0x140009a73
mov dil, 1
jmp 0x140009a76
xor dil, dil
test bl, 0x10
je 0x140009ad1
and ebx, 0xffffffef
mov dword [rsp + 0x40], ebx
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140009abd
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009ab8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009cd6
call fcn.140064af4
xor esi, esi
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], 0xf
mov byte [rbp - 0x20], sil
jmp 0x140009ad3
xor esi, esi
test bl, 8
je 0x140009b34
and ebx, 0xfffffff7
mov dword [rsp + 0x40], ebx
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140009b21
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009b1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009cdd
call fcn.140064af4
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], si
test bl, 4
je 0x140009b90
and ebx, 0xfffffffb
mov dword [rsp + 0x40], ebx
mov rdx, qword [rbp + 0x18]
cmp rdx, 7
jbe 0x140009b80
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009b7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009ce4
call fcn.140064af4
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x18], 7
mov word [rbp], si
test bl, 2
je 0x140009bdc
and ebx, 0xfffffffd
mov dword [rsp + 0x40], ebx
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140009bdc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009bd7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009ceb
call fcn.140064af4
test dil, dil
je 0x140009c0c
lea r8, [r13 + 0x20]
mov rax, qword [r15 + 8]
cmp rax, qword [r15 + 0x10]
je 0x140009c01
mov rdx, r8
mov rcx, rax
call fcn.14000a0e0
add qword [r15 + 8], 0x20
jmp 0x140009c0c
mov rdx, rax
mov rcx, r15
call fcn.14000b3b0
lea rcx, [rbp + 0x40]
call fcn.140009410
mov r13, qword [rbp + 0x40]
test r13, r13
jne 0x1400098a0
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140009c5f
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140009c5b
mov rbx, qword [rbp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140009c5b
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx]
call qword [rax + 8]
mov r14, qword [rbp + 0x38]
test r14, r14
je 0x140009c95
mov eax, r12d
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x140009c95
mov rbx, qword [rbp + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r12d
cmp r12d, 1
jne 0x140009c95
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 7
jbe 0x140009cf7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009cf2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009cf2
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
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140064af4
mov qword [rbp + 0x80], rsi
mov qword [rbp + 0x88], 7
mov word [rbp + 0x70], si
mov rdx, qword [rbp + 0x68]
cmp rdx, 7
jbe 0x140009d50
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009d4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009d4b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140064af4
mov rax, r15
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140064a90
lea r11, [rsp + 0x3c0]
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
lea r8, [r13 + 0x20]
lea rcx, str.directory_entry::status
call fcn.140008da0
nop
call fcn.1400011d0
nop
lea r8, [rsp + 0x58]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.140008da0
int3