Function at 0x140010890
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x1a0
mov rax, qword [0x1419c60c0]
xor rax, rsp
mov qword [rsp + 0x190], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 8
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x140010900
lea rdx, [0x14018c1b8]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001b420
lea rdx, [0x14001b600]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140010af6
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x80]
mov rdi, 0xffffffffffffffff
mov rax, rdi
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x140010920
mov qword [rsp + 0x58], rax
call fcn.140120a34
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.14000c380
nop
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14001b1b0
test eax, eax
jne 0x140010b1d
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x1400109b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400109b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400109b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140121530
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1400109d0
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x48]
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
test rbx, rbx
je 0x1400109e9
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x48]
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
test rbx, rbx
je 0x140010a31
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140010a2c
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140010a2c
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140010a31
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
cmp rcx, rsi
je 0x140010a5d
add rcx, 0x20
call fcn.14000db00
lea rcx, [rsp + 0x50]
call fcn.14000d360
test eax, eax
jne 0x140010b2a
jmp 0x140010a36
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140010a9c
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140010a97
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140010a97
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140010acf
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140010acf
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140010acf
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [0x14018c1e0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001b420
lea rdx, [0x14001b600]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov al, 1
jmp 0x140010af8
xor al, al
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140121510
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea r8, [rsp + 0x60]
mov edx, eax
call fcn.14000d130
nop
mov edx, eax
call fcn.14000d040
int3