Function at 0x1400639a0
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 - 0x810]
sub rsp, 0x910
mov rax, qword [0x1400a4010]
xor rax, rsp
mov qword [rbp + 0x800], rax
mov qword [rbp - 0x50], rcx
mov qword [rbp + 0x50], rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
mov qword [rcx + 0x10], rbx
mov dword [rsp + 0x30], 1
lea rax, [rbp + 0x5f0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r13, [rbx - 1]
mov qword [rbp + 0xf0], rbx
test eax, eax
js 0x140063a64
mov qword [rbp + 0x100], rbx
mov qword [rbp + 0x108], 7
mov word [rbp + 0xf0], bx
lea rax, [rbp + 0x5f0]
mov r8, r13
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140063a50
lea rdx, [rbp + 0x5f0]
jmp 0x140063a87
mov qword [rbp + 0x100], rbx
mov qword [rbp + 0x108], 7
mov word [rbp + 0xf0], bx
xor r8d, r8d
lea rdx, [0x140084d8c]
lea rcx, [rbp + 0xf0]
call fcn.140069050
mov dword [rsp + 0x30], 0x21
mov cl, 0x39
mov word [rsp + 0x50], 0x39
movsx r9d, cl
movzx r8d, r9w
xor r8w, 0x65
mov word [rsp + 0x52], r8w
movzx eax, r9w
xor ax, 0x6b
mov word [rsp + 0x54], ax
movzx edx, r9w
xor dx, 0x56
mov word [rsp + 0x56], dx
movzx eax, r9w
xor ax, 0x5b
mov word [rsp + 0x58], ax
movzx ecx, r9w
xor cx, 0x55
mov word [rsp + 0x5a], cx
mov word [rsp + 0x5c], dx
movzx eax, r9w
xor ax, 0x41
mov word [rsp + 0x5e], ax
mov word [rsp + 0x60], r8w
mov word [rsp + 0x62], cx
mov word [rsp + 0x64], dx
movzx eax, r9w
xor ax, 0x5e
mov word [rsp + 0x66], ax
xor r9w, 0x4a
mov word [rsp + 0x68], r9w
mov word [rsp + 0x6a], bx
lea rax, [rsp + 0x52]
mov rdi, r13
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140063b32
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
mov r15, qword [rbp + 0x100]
sub rax, r15
cmp rax, rdi
jb 0x1400645c5
lea r12, [rbp + 0xf0]
cmp qword [rbp + 0x108], 8
setae byte [rsp + 0x34]
cmovae r12, qword [rbp + 0xf0]
mov qword [rbp + 0xd0], rbx
mov qword [rbp + 0xe0], rbx
mov qword [rbp + 0xe8], rbx
lea r14, [rdi + r15]
mov qword [rbp + 0xa0], r14
mov ebx, 7
lea rsi, [rbp + 0xd0]
cmp r14, rbx
jbe 0x140063c39
mov rbx, r14
or rbx, 7
cmp rbx, rcx
jbe 0x140063bbe
mov rbx, rcx
jmp 0x140063bca
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
mov rax, rbx
add rax, 1
cmovb rax, r13
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
ja 0x1400645cb
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x140063c21
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400645cb
mov rcx, rax
call fcn.14006d0f4
test rax, rax
je 0x140064519
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140063c32
test rcx, rcx
je 0x140063c2d
call fcn.14006d0f4
jmp 0x140063c2f
xor eax, eax
mov rsi, rax
mov qword [rbp + 0xd0], rsi
mov qword [rbp + 0xe0], r14
mov qword [rbp + 0xe8], rbx
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r12
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rsi]
lea r8, [rdi + rdi]
lea rdx, [rsp + 0x52]
call sub.VCRUNTIME140.dll_memcpy
xor r15d, r15d
mov word [rsi + r14*2], r15w
mov dword [rsp + 0x30], 0x61
lea rdx, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 8
cmovae rdx, qword [rbp + 0xd0]
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r15w
mov r8, qword [rbp + 0xe0]
lea rcx, [rbp - 0x28]
call fcn.140069050
mov edi, 0x1e1
mov dword [rsp + 0x30], edi
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xb0], xmm0
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x120]
call fcn.140062080
nop
cmp byte [rbp + 0x398], r15b
je 0x140063d44
lea ecx, [r15 + 0x58]
call fcn.14006d0f4
mov rsi, rax
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_struct_std::filesystem::_Dir_enum_impl_.0
mov qword [rsi], rax
lea rbx, [rsi + 0x10]
lea rdx, [rbp + 0x120]
mov rcx, rbx
call fcn.1400623a0
nop
mov edi, 0x3e1
mov dword [rsp + 0x30], edi
mov qword [rbp + 0xb0], rbx
mov qword [rbp + 0xb8], rsi
jmp 0x140063d4b
mov rsi, qword [rbp + 0xb8]
mov ebx, dword [rbp + 0x39c]
mov rcx, qword [rbp + 0x140]
call fcn.14006dcd4
mov rdx, qword [rbp + 0x138]
cmp rdx, 8
jb 0x140063da6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140063da1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140063da1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006cbbc
mov qword [rbp + 0x130], r15
mov qword [rbp + 0x138], 7
mov word [rbp + 0x120], r15w
test ebx, ebx
jne 0x1400645d1
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x140063e0b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140063e06
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140063e06
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006cbbc
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
test rsi, rsi
je 0x140063e29
lock inc dword [rsi + 8]
mov rsi, qword [rbp + 0xb8]
mov edi, dword [rsp + 0x30]
movaps xmm0, xmmword [rbp + 0xb0]
movdqa xmmword [rbp + 0xc0], xmm0
test rsi, rsi
je 0x140063e4c
lock inc dword [rsi + 8]
mov rsi, qword [rbp + 0xb8]
mov edi, dword [rsp + 0x30]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x110], xmm1
mov r12, 0xffffffffffffffff
test rsi, rsi
je 0x140063e9d
mov eax, r12d
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x140063e99
mov rbx, qword [rbp + 0xb8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140063e99
mov rcx, qword [rbp + 0xb8]
mov rax, qword [rcx]
call qword [rax + 8]
mov edi, dword [rsp + 0x30]
mov r13, qword [rbp + 0xc0]
test r13, r13
je 0x140064457
lea rdx, [rbp - 8]
mov rcx, r13
call fcn.140061f10
mov rax, qword [rbp - 8]
mov edx, dword [rbp]
test edx, edx
je 0x140063ed3
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x1400645e4
cmp eax, 2
jne 0x1400641db
mov dword [rsp + 0x40], 0x6f6c2e5a
mov word [rsp + 0x44], 0x67
lea rax, [rsp + 0x41]
mov qword [rbp + 0x30], rax
lea rcx, [rsp + 0x41]
mov rax, r12
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140063f00
mov qword [rbp + 0x38], rax
call fcn.14006da54
movaps xmm0, xmmword [rbp + 0x30]
movdqa xmmword [rbp + 0x60], xmm0
lea r8, [rbp + 0x60]
mov edx, eax
lea rcx, [rbp + 8]
call fcn.140060fa0
or edi, 0xc00
or edi, 2
mov dword [rsp + 0x30], edi
lea rsi, [r13 + 0x20]
mov rax, qword [rsi + 0x10]
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140063f4c
mov rcx, qword [rsi]
lea rbx, [rcx + rax*2]
mov r11, rbx
mov rdx, rbx
call fcn.1400610e0
cmp rax, rbx
je 0x140063f9b
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140063f6f
cmp cx, 0x2f
jne 0x140063f80
add rax, 2
cmp rax, rbx
jne 0x140063f60
mov r8, rbx
jmp 0x140063ff0
lea rdx, [r11 - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x140063f9b
cmp cx, 0x2f
je 0x140063f9b
mov r11, rdx
cmp rax, rdx
jne 0x140063f80
mov r8, r11
cmp r11, rbx
je 0x140063ff0
cmp word [r8], 0x3a
je 0x140063fb3
add r8, 2
cmp r8, rbx
jne 0x140063fa3
cmp r11, r8
je 0x140063ff0
lea rdx, [r8 - 2]
cmp r11, rdx
je 0x140063ff0
cmp word [rdx], 0x2e
jne 0x140063fd8
lea rax, [rdx - 2]
cmp r11, rax
jne 0x140063ff3
cmp word [rax], 0x2e
jne 0x140063ff3
jmp 0x140063ff0
sub rdx, 2
cmp r11, rdx
je 0x140063ff0
cmp word [rdx], 0x2e
je 0x140063ff3
sub rdx, 2
cmp r11, rdx
jne 0x140063fe1
mov rdx, r8
sub r8, rdx
sar r8, 1
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r15w
lea rcx, [rbp - 0x48]
call fcn.140069050
or edi, 0x7000
or edi, 4
mov dword [rsp + 0x30], edi
lea rax, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rax, qword [rbp + 8]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x48], rax
movaps xmm0, xmmword [rbp + 0x40]
movdqa xmmword [rbp + 0x70], xmm0
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x48]
call fcn.1400614d0
test eax, eax
jne 0x1400641db
mov rax, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 8
jb 0x14006406a
mov rsi, qword [rsi]
lea rbx, [rsi + rax*2]
mov r11, rbx
mov rdx, rbx
mov rcx, rsi
call fcn.1400610e0
cmp rax, rbx
je 0x1400640bb
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140064090
cmp cx, 0x2f
jne 0x1400640a0
add rax, 2
jmp 0x14006407c
lea rdx, [r11 - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x1400640bb
cmp cx, 0x2f
je 0x1400640bb
mov r11, rdx
cmp rax, rdx
jne 0x1400640a0
sub rbx, r11
sar rbx, 1
mov qword [rsp + 0x70], r15
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r15w
mov r8, rbx
mov rdx, r11
lea rcx, [rsp + 0x70]
call fcn.140069050
or edi, 0x38000
or edi, 8
lea r14, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae r14, qword [rsp + 0x70]
mov rsi, qword [rbp - 0x80]
call fcn.14006da54
mov r15d, eax
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 0xf
mov byte [rbp - 0x70], al
bts edi, 0x15
mov dword [rsp + 0x30], edi
test rsi, rsi
je 0x1400641a2
cmp rsi, 0x7fffffff
ja 0x140064609
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, esi
mov rdx, r14
mov ecx, r15d
call fcn.14006dac4
mov rbx, rax
mov qword [rsp + 0x38], rax
shr rax, 0x20
test eax, eax
jne 0x1400645ff
movsxd rdx, ebx
lea rcx, [rbp - 0x70]
call fcn.14004b660
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae r9, qword [rbp - 0x70]
mov dword [rsp + 0x20], ebx
mov r8d, esi
mov rdx, r14
mov ecx, r15d
call fcn.14006dac4
mov qword [rsp + 0x38], rax
shr rax, 0x20
test eax, eax
jne 0x1400645f5
btr edi, 0x15
or edi, 0x1c0000
or edi, 0x10
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x48], 0x616c500f
mov dword [rsp + 0x4c], 0x726579
lea rdx, [rsp + 0x49]
lea rcx, [rbp - 0x70]
call fcn.140068c30
cmp rax, 0xffffffffffffffff
je 0x1400641db
mov bl, 1
jmp 0x1400641dd
xor bl, bl
test dil, 0x10
je 0x14006423a
and edi, 0xffffffef
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140064225
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064220
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006443b
call fcn.14006cbbc
xor r15d, r15d
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], 0xf
mov byte [rbp - 0x70], r15b
jmp 0x14006423d
xor r15d, r15d
test dil, 8
je 0x14006429d
and edi, 0xfffffff7
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x14006428b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064286
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140064442
call fcn.14006cbbc
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r15w
test dil, 4
je 0x1400642fb
and edi, 0xfffffffb
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1400642ea
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400642e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140064449
call fcn.14006cbbc
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r15w
test dil, 2
je 0x140064348
and edi, 0xfffffffd
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x140064348
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064343
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140064450
call fcn.14006cbbc
test bl, bl
je 0x140064380
lea r8, [r13 + 0x20]
mov rbx, qword [rbp - 0x50]
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
je 0x140064370
mov rdx, r8
mov rcx, rax
call fcn.140068b40
add qword [rbx + 8], 0x20
jmp 0x140064380
mov rdx, rax
mov rcx, rbx
call fcn.1400695f0
nop dword [rax + rax]
lea rdx, [rbp + 0x3a0]
mov rcx, qword [r13 + 0x40]
call fcn.14006dcb4
cmp eax, 0x12
je 0x1400643d7
test eax, eax
jne 0x1400645bd
cmp word [rbp + 0x3cc], 0x2e
jne 0x1400643c3
movzx eax, word [rbp + 0x3ce]
test ax, ax
je 0x140064380
cmp ax, 0x2e
jne 0x1400643c3
cmp word [rbp + 0x3d0], 0
je 0x140064380
lea rdx, [rbp + 0x3a0]
mov rcx, r13
call fcn.140062220
jmp 0x140063ea4
mov r13, r15
mov qword [rbp + 0xc0], r15
mov rbx, qword [rbp + 0xc8]
mov qword [rbp + 0xc8], r15
test rbx, rbx
je 0x140063ea4
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140064420
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
je 0x140064429
nop word [rax + rax]
mov edi, dword [rsp + 0x30]
jmp 0x140063e9d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov edi, dword [rsp + 0x30]
jmp 0x140063e9d
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 + 0xc8]
test rcx, rcx
je 0x14006449a
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14006449a
mov rbx, qword [rbp + 0xc8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14006449a
mov rcx, qword [rbp + 0xc8]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x1400644dc
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400644dc
mov rbx, qword [rbp + 0xb8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r12d
cmp r12d, 1
jne 0x1400644dc
mov rcx, qword [rbp + 0xb8]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0xe8]
cmp rdx, 8
jb 0x140064525
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064520
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064520
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006cbbc
mov qword [rbp + 0xe0], r15
mov qword [rbp + 0xe8], 7
mov word [rbp + 0xd0], r15w
cmp byte [rsp + 0x34], 0
je 0x140064589
mov rax, qword [rbp + 0x108]
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064584
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064584
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006cbbc
mov rax, qword [rbp - 0x50]
mov rcx, qword [rbp + 0x800]
xor rcx, rsp
call fcn.14006ca20
lea r11, [rsp + 0x910]
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.140061db0
nop
call fcn.14004b580
int3
call fcn.14004b4e0
nop
lea r8, [rbp - 0x28]
mov edx, ebx
lea rcx, str.directory_iterator::directory_iterator
call fcn.140061ea0
nop
lea r8, [r13 + 0x20]
lea rcx, str.directory_entry::status
call fcn.140061ea0
nop
mov ecx, dword [rsp + 0x3c]
call fcn.140060f60
int3
mov ecx, dword [rsp + 0x3c]
call fcn.140060f60
int3
call fcn.140060b70
int3