Function at 0x1400172a0
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 - 0x2a0]
sub rsp, 0x3a0
mov rax, qword [0x1400bd040]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov r15, rcx
mov qword [rbp], rcx
xor esi, esi
mov dword [rsp + 0x30], 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 + 0x30], 1
lea rax, [rbp + 0x80]
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
xorps xmm1, xmm1
movups xmmword [rbp + 0x50], xmm0
movdqu xmmword [rbp + 0x60], xmm1
test eax, eax
js 0x140017355
lea rax, [rbp + 0x80]
mov r8, r12
inc r8
cmp word [rax + r8*2], 0
jne 0x140017341
lea rdx, [rbp + 0x80]
jmp 0x14001735f
xor r8d, r8d
lea rdx, [0x14009f604]
lea rcx, [rbp + 0x50]
call fcn.140006490
mov dword [rsp + 0x30], 0x401
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x30]
call fcn.140006220
nop
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 7
cmova rdx, qword [rbp + 0x30]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov r8, qword [rbp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.140006490
mov ebx, 0x1c01
mov dword [rsp + 0x30], ebx
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x10], xmm0
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x10]
call fcn.140017f10
test eax, eax
jne 0x140017960
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x140017418
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017413
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017413
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008b704
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov r14, qword [rbp + 0x18]
test r14, r14
je 0x140017435
lock inc dword [r14 + 8]
mov r14, qword [rbp + 0x18]
mov ebx, dword [rsp + 0x30]
movaps xmm0, xmmword [rbp + 0x10]
movdqa xmmword [rbp + 0x20], xmm0
test r14, r14
je 0x140017450
lock inc dword [r14 + 8]
mov r14, qword [rbp + 0x18]
mov ebx, dword [rsp + 0x30]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x70], xmm1
test r14, r14
je 0x14001749b
mov eax, r12d
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x140017493
mov rbx, qword [rbp + 0x18]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140017493
mov r14, qword [rbp + 0x18]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 8]
jmp 0x140017497
mov r14, qword [rbp + 0x18]
mov ebx, dword [rsp + 0x30]
cmp qword [rbp + 0x10], 0
je 0x1400177f7
mov r13, qword [rbp + 0x20]
lea rdi, str..log
lea rdx, [rsp + 0x70]
mov rcx, r13
call fcn.140016a70
mov rax, qword [rsp + 0x70]
mov edx, dword [rsp + 0x78]
test edx, edx
je 0x1400174da
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x14001794f
cmp eax, 2
jne 0x140017648
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], 4
call fcn.14008c944
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.140015770
or ebx, 0x60
or ebx, 2
mov dword [rsp + 0x30], ebx
lea rdx, [rbp - 0x20]
lea rcx, [r13 + 0x20]
call fcn.140015f30
mov r8, rax
or ebx, 4
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rcx, qword [rbp - 0x80]
mov qword [rbp - 0x50], rcx
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x60]
mov rcx, r8
call fcn.140015d30
test eax, eax
jne 0x140017648
lea rcx, [r13 + 0x20]
cmp qword [r13 + 0x38], 7
jbe 0x140017577
mov rcx, qword [r13 + 0x20]
mov rax, qword [r13 + 0x30]
lea rsi, [rcx + rax*2]
mov rdi, rsi
mov rdx, rsi
call fcn.1400158c0
cmp rax, rsi
je 0x1400175cb
nop
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14001759f
cmp cx, 0x2f
jne 0x1400175a8
add rax, 2
cmp rax, rsi
jne 0x140017590
cmp rax, rsi
je 0x1400175cb
nop dword [rax]
lea rdx, [rdi - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x1400175cb
cmp cx, 0x2f
je 0x1400175cb
mov rdi, rdx
cmp rax, rdx
jne 0x1400175b0
sub rsi, rdi
sar rsi, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140006490
or ebx, 0x380
or ebx, 8
mov dword [rsp + 0x30], ebx
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x38]
call fcn.140015c40
or ebx, 0x10
mov dword [rsp + 0x30], ebx
mov rdx, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140017625
mov rax, qword [rax]
mov qword [rsp + 0x20], 6
lea r9, str.Player
mov rcx, rax
call fcn.140004630
cmp rax, 0xffffffffffffffff
je 0x140017648
mov dil, 1
jmp 0x14001764b
xor dil, dil
test bl, 0x10
je 0x1400176a6
and ebx, 0xffffffef
mov dword [rsp + 0x30], ebx
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140017692
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001768d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400178a8
call fcn.14008b704
xor esi, esi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 0xf
mov byte [rbp - 0x40], sil
jmp 0x1400176a8
xor esi, esi
test bl, 8
je 0x140017709
and ebx, 0xfffffff7
mov dword [rsp + 0x30], ebx
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x1400176f6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400176f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400178af
call fcn.14008b704
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], si
test bl, 4
je 0x140017765
and ebx, 0xfffffffb
mov dword [rsp + 0x30], ebx
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x140017755
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017750
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400178b6
call fcn.14008b704
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], 7
mov word [rbp - 0x20], si
test bl, 2
je 0x1400177b1
and ebx, 0xfffffffd
mov dword [rsp + 0x30], ebx
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x1400177b1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400177ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400178bd
call fcn.14008b704
test dil, dil
je 0x1400177e1
lea r8, [r13 + 0x20]
mov rax, qword [r15 + 8]
cmp rax, qword [r15 + 0x10]
je 0x1400177d6
mov rdx, r8
mov rcx, rax
call fcn.140017cb0
add qword [r15 + 8], 0x20
jmp 0x1400177e1
mov rdx, rax
mov rcx, r15
call fcn.140018c30
lea rcx, [rbp + 0x20]
call fcn.140017070
mov r13, qword [rbp + 0x20]
test r13, r13
jne 0x1400174aa
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140017834
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140017830
mov rbx, qword [rbp + 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140017830
mov rcx, qword [rbp + 0x28]
mov rax, qword [rcx]
call qword [rax + 8]
mov r14, qword [rbp + 0x18]
test r14, r14
je 0x14001786a
mov eax, r12d
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x14001786a
mov rbx, qword [rbp + 0x18]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r12d
cmp r12d, 1
jne 0x14001786a
mov rcx, qword [rbp + 0x18]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 7
jbe 0x1400178c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400178c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400178c4
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.14008b704
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x48], 7
mov word [rbp + 0x30], si
mov rdx, qword [rbp + 0x68]
cmp rdx, 7
jbe 0x14001791c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017917
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017917
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008b704
mov rax, r15
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.14008b6a0
lea r11, [rsp + 0x3a0]
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.140016a00
nop
lea r8, [rsp + 0x38]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.140016a00
int3