Function at 0x140027210
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x1401ce080]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov r12, rdx
mov qword [rbp - 0x40], rdx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov qword [rdx], r15
mov qword [rdx + 8], r15
mov qword [rdx + 0x10], r15
mov dword [rsp + 0x40], 1
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, Ordinal_32
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov rsi, 0xffffffffffffffff
xorps xmm0, xmm0
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x40], r15
movups xmmword [rbp + 0x28], xmm0
test eax, eax
js 0x1400272c4
lea rax, [rbp + 0x90]
mov r8, rsi
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400272b0
lea rdx, [rbp + 0x90]
jmp 0x1400272ce
xor r8d, r8d
lea rdx, [0x1401a0540]
lea rcx, [rbp + 0x28]
call fcn.140026b20
mov dword [rsp + 0x40], 0x20001
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp + 0x38]
sub rax, rcx
cmp rax, 0xc
jb 0x140027b38
lea r9, [rbp + 0x28]
cmp qword [rbp + 0x40], 7
cmova r9, qword [rbp + 0x28]
mov qword [rsp + 0x30], listen
lea rax, str.Robloxlogs
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x48]
call fcn.140027ea0
mov dword [rsp + 0x40], 0x60001
lea rdx, [rbp + 0x48]
cmp qword [rbp + 0x60], 7
cmova rdx, qword [rbp + 0x48]
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], r15
mov r8, qword [rbp + 0x58]
lea rcx, [rbp - 0x38]
call fcn.140026b20
mov edi, 0x1e0001
mov dword [rsp + 0x40], edi
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x60]
call fcn.1400263f0
test eax, eax
jne 0x140027b3e
mov rdx, qword [rbp - 0x20]
cmp rdx, 7
jbe 0x1400273c8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400273c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400273c3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401045ac
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400273df
lock inc dword [rcx + 8]
mov rcx, qword [rsp + 0x68]
mov edi, dword [rsp + 0x40]
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x70], xmm0
test rcx, rcx
je 0x1400273fc
lock inc dword [rcx + 8]
mov rcx, qword [rsp + 0x68]
mov edi, dword [rsp + 0x40]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
test rcx, rcx
je 0x14002743d
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140027439
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140027439
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov edi, dword [rsp + 0x40]
mov r13, qword [rsp + 0x70]
lea rbx, str..log
test r13, r13
je 0x1400279e0
lea rdx, [rbp - 0x80]
mov rcx, r13
call fcn.1400258a0
mov rax, qword [rbp - 0x80]
mov edx, dword [rbp - 0x78]
test edx, edx
je 0x140027478
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x140027b51
cmp eax, 2
jne 0x140027763
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], 4
call fcn.140103868
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rbp + 0x68]
call fcn.140024840
or edi, 0x60
or edi, 2
mov dword [rsp + 0x40], edi
lea r14, [r13 + 0x20]
mov rcx, r14
cmp qword [r14 + 0x18], 7
jbe 0x1400274c7
mov rcx, qword [r14]
lea rsi, [r14 + 0x10]
mov rax, qword [rsi]
lea rdx, [rcx + rax*2]
mov rbx, rdx
call fcn.1400249b0
cmp rax, rdx
je 0x14002751c
nop
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x1400274ef
cmp cx, 0x2f
jne 0x1400274f8
add rax, 2
cmp rax, rdx
jne 0x1400274e0
cmp rax, rdx
je 0x14002751c
nop dword [rax]
lea r8, [rbx - 2]
movzx ecx, word [r8]
cmp cx, 0x5c
je 0x14002751c
cmp cx, 0x2f
je 0x14002751c
mov rbx, r8
cmp rax, r8
jne 0x140027500
mov r8d, Ordinal_60
mov rcx, rbx
call fcn.1401040c0
cmp rbx, rax
je 0x140027567
lea rdx, [rax - 2]
cmp rbx, rdx
je 0x140027567
cmp word [rdx], 0x2e
jne 0x14002754f
lea rcx, [rdx - 2]
cmp rbx, rcx
jne 0x14002756a
cmp word [rcx], 0x2e
jne 0x14002756a
jmp 0x140027567
sub rdx, 2
cmp rbx, rdx
je 0x140027567
cmp word [rdx], 0x2e
je 0x14002756a
sub rdx, 2
cmp rbx, rdx
jne 0x140027558
mov rdx, rax
sub rax, rdx
sar rax, 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], r15
mov r8, rax
lea rcx, [rbp - 0x38]
call fcn.140026b20
or edi, 0x380
or edi, 4
mov dword [rsp + 0x40], edi
lea rax, [rbp + 0x68]
cmp qword [rbp + 0x80], 7
cmova rax, qword [rbp + 0x68]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x38]
call fcn.140024d50
test eax, eax
jne 0x140027763
cmp qword [r14 + 0x18], 7
jbe 0x1400275df
mov r14, qword [r14]
mov rax, qword [rsi]
lea rsi, [r14 + rax*2]
mov rbx, rsi
mov rdx, rsi
mov rcx, r14
call fcn.1400249b0
cmp rax, rsi
je 0x14002763b
nop dword [rax]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14002760f
cmp cx, 0x2f
jne 0x140027618
add rax, 2
cmp rax, rsi
jne 0x140027600
cmp rax, rsi
je 0x14002763b
nop dword [rax]
lea rdx, [rbx - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x14002763b
cmp cx, 0x2f
je 0x14002763b
mov rbx, rdx
cmp rax, rdx
jne 0x140027620
sub rsi, rbx
sar rsi, 1
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r15
mov qword [rbp + 0x20], r15
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp + 8]
call fcn.140026b20
or edi, 0x1c000
or edi, 8
lea r14, [rbp + 8]
cmp qword [rbp + 0x20], 7
cmova r14, qword [rbp + 8]
mov rsi, qword [rbp + 0x18]
call fcn.140103868
mov r15d, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
xor edx, edx
mov qword [rbp - 8], rdx
mov ebx, reloc.WS2_32.dll_ntohs
mov qword [rbp], rbx
mov byte [rbp - 0x18], dl
bts edi, 0xd
mov dword [rsp + 0x40], edi
test rsi, rsi
je 0x140027725
cmp rsi, 0x7fffffff
ja 0x140027b25
mov dword [rsp + 0x20], edx
xor r9d, r9d
mov r8d, esi
mov rdx, r14
mov ecx, eax
call fcn.1401038d8
mov rbx, rax
mov qword [rsp + 0x50], rax
shr rax, 0x20
test eax, eax
jne 0x140027b6c
movsxd rdx, ebx
xor r8d, r8d
lea rcx, [rbp - 0x18]
call fcn.140026260
lea r9, [rbp - 0x18]
cmp qword [rbp], 0xf
cmova r9, qword [rbp - 0x18]
mov dword [rsp + 0x20], ebx
mov r8d, esi
mov rdx, r14
mov ecx, r15d
call fcn.1401038d8
mov qword [rsp + 0x50], rax
shr rax, 0x20
test eax, eax
jne 0x140027b62
mov rbx, qword [rbp]
mov rdx, qword [rbp - 8]
btr edi, 0xd
or edi, 0x1c10
mov dword [rsp + 0x40], edi
lea rcx, [rbp - 0x18]
cmp rbx, 0xf
cmova rcx, qword [rbp - 0x18]
mov qword [rsp + 0x20], 6
lea r9, str.Player
xor r8d, r8d
call fcn.14001be00
cmp rax, 0xffffffffffffffff
je 0x140027767
mov sil, 1
jmp 0x14002776a
mov rbx, qword [rbp]
xor sil, sil
test dil, 0x10
je 0x1400277c4
and edi, 0xffffffef
mov dword [rsp + 0x40], edi
cmp rbx, 0xf
jbe 0x1400277af
lea rdx, [rbx + 1]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400277aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400279c4
call fcn.1401045ac
xor r15d, r15d
mov qword [rbp - 8], r15
mov qword [rbp], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x18], r15b
jmp 0x1400277c7
xor r15d, r15d
test dil, 8
je 0x140027825
and edi, 0xfffffff7
mov dword [rsp + 0x40], edi
mov rdx, qword [rbp + 0x20]
cmp rdx, 7
jbe 0x140027814
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002780f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400279cb
call fcn.1401045ac
mov qword [rbp + 0x18], r15
mov qword [rbp + 0x20], 7
mov word [rbp + 8], r15w
test dil, 4
je 0x140027883
and edi, 0xfffffffb
mov dword [rsp + 0x40], edi
mov rdx, qword [rbp - 0x20]
cmp rdx, 7
jbe 0x140027872
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002786d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400279d2
call fcn.1401045ac
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r15w
test dil, 2
je 0x1400278d3
and edi, 0xfffffffd
mov dword [rsp + 0x40], edi
mov rdx, qword [rbp + 0x80]
cmp rdx, 7
jbe 0x1400278d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400278ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400279d9
call fcn.1401045ac
test sil, sil
je 0x140027910
lea r8, [r13 + 0x20]
mov rax, qword [r12 + 8]
cmp rax, qword [r12 + 0x10]
je 0x1400278fb
mov rdx, r8
mov rcx, rax
call fcn.1400260f0
add qword [r12 + 8], 0x20
jmp 0x140027910
mov rdx, rax
mov rcx, r12
call fcn.140028260
nop word [rax + rax]
lea rdx, [rbp + 0x90]
mov rcx, qword [r13 + 0x40]
call fcn.140103b40
cmp eax, 0x12
je 0x140027964
test eax, eax
jne 0x140027b30
cmp word [rbp + 0xbc], 0x2e
jne 0x140027953
movzx eax, word [rbp + 0xbe]
test ax, ax
je 0x140027910
cmp ax, 0x2e
jne 0x140027953
cmp word [rbp + 0xc0], 0
je 0x140027910
lea rdx, [rbp + 0x90]
mov rcx, r13
call fcn.140025c80
jmp 0x1400279b4
mov r13, r15
mov qword [rsp + 0x70], r15
mov rbx, qword [rsp + 0x78]
mov qword [rsp + 0x78], r15
test rbx, rbx
je 0x1400279b4
mov rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400279ab
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400279ab
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov edi, dword [rsp + 0x40]
mov r13, qword [rsp + 0x70]
mov eax, r15d
test eax, eax
jne 0x140027b30
jmp 0x140027442
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 [rsp + 0x78]
mov rsi, 0xffffffffffffffff
test rcx, rcx
je 0x140027a22
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140027a22
mov rbx, qword [rsp + 0x78]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140027a22
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140027a5b
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140027a5b
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140027a5b
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp + 0x60]
cmp rdx, 7
jbe 0x140027a9e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140027a99
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140027a99
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401045ac
mov qword [rbp + 0x58], r15
mov qword [rbp + 0x60], 7
mov word [rbp + 0x48], r15w
mov rdx, qword [rbp + 0x40]
cmp rdx, 7
jbe 0x140027af2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140027aed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140027aed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401045ac
mov rax, r12
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.1401041f0
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x30]
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 ecx, reloc.WLDAP32.dll_Ordinal_22
call fcn.140024530
nop
mov edx, eax
call fcn.140025740
nop
call fcn.1400192c0
nop
lea r8, [rbp - 0x38]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.140025830
nop
lea r8, [r13 + 0x20]
lea rcx, str.directory_entry::status
call fcn.140025830
nop
mov ecx, dword [rsp + 0x54]
call fcn.1400247f0
int3
mov ecx, dword [rsp + 0x54]
call fcn.1400247f0
int3