Function at 0x14000137c
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x140084070]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], 7
mov word [rcx], r14w
mov dword [rsp + 0x20], 1
lea r9, [rbp - 0x70]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140078420]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov ebx, eax
test eax, eax
js 0x14000179b
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp + 0x20]
call fcn.140001868
nop
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea r9, [rbp - 0x68]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140078410]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov ebx, eax
test eax, eax
js 0x140001752
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp]
call fcn.140001868
nop
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, [rbp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.140001868
nop
lea rax, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rax, qword [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rax, qword [rbp]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rax, qword [rbp - 0x20]
mov qword [rsp + 0x38], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
sub ecx, eax
movsxd rax, ecx
mov rsi, qword [rsp + rax*8 + 0x28]
lea rcx, [rbp - 0x60]
call fcn.140001264
nop
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rcx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x50]
add r8, rcx
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rdx, qword [rbp - 0x60]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
cmp rdx, r8
jne 0x14000152b
movdqa xmm0, xmmword [0x140079f90]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r14w
jmp 0x14000153c
mov r9, r8
sub r9, rdx
lea rcx, [rsp + 0x28]
call fcn.140002b24
nop
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140001868
nop
mov r8d, 1
lea rdx, [0x140078600]
mov rcx, rax
call fcn.140001d2c
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov dword [rsp + 0x20], 3
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x50]
lea rcx, [rbp - 0x40]
call fcn.1400027e0
mov dword [rsp + 0x20], 7
lea rcx, [rsp + 0x50]
call fcn.140001804
nop
lea rcx, [rsp + 0x70]
call fcn.140001804
nop
lea rcx, [rsp + 0x28]
call fcn.140001804
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rcx, qword [rbp - 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rbx, [rbp - 0x60]
test eax, eax
je 0x140001690
cmp qword [rbp - 0x48], 0x10
cmovae rbx, qword [rbp - 0x60]
lea rdx, str.Folder
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140001f04
mov rcx, rax
mov rdx, rbx
call fcn.14000208c
mov rcx, rax
lea rdx, str._successfully_established_in
call fcn.140001f04
mov rcx, rax
mov rdx, rsi
call fcn.140001f04
mov rcx, rax
lea rdx, [0x140002298]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rax, [rbp - 0x40]
cmp rdi, rax
je 0x1400016e4
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae r9, qword [rbp - 0x40]
mov rbx, qword [rbp - 0x30]
cmp rbx, qword [rdi + 0x18]
ja 0x140001683
mov rsi, rdi
cmp qword [rdi + 0x18], 8
jb 0x140001669
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rbx
lea r8, [rbx + rbx]
mov rdx, r9
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov word [rsi + rbx*2], r14w
jmp 0x1400016e4
mov rdx, rbx
mov rcx, rdi
call fcn.140002678
jmp 0x1400016e4
cmp qword [rbp - 0x48], 0x10
cmovae rbx, qword [rbp - 0x60]
lea rdx, str.Failed_to_create_folder
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400022d4
mov rcx, rax
mov rdx, rbx
call fcn.1400022d4
mov rcx, rax
lea rdx, [0x140078658]
call fcn.1400022d4
mov rcx, rax
mov rdx, rsi
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___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x140002444]
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]
nop
lea rcx, [rbp - 0x40]
call fcn.140001804
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x14000172c
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001727
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001727
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140063d6c
movdqa xmm0, xmmword [0x140079fa0]
movdqu xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], r14b
lea rcx, [rbp - 0x20]
call fcn.140001804
nop
lea rcx, [rbp]
call fcn.140001804
jmp 0x140001790
lea rdx, [0x140078680]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140001f04
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x14007867c]
call fcn.140001f04
mov rcx, rax
lea rdx, [0x140002298]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
lea rcx, [rbp + 0x20]
call fcn.140001804
jmp 0x1400017d8
lea rdx, str.Failed_to_get_Local_folder_path__error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140001f04
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x14007867c]
call fcn.140001f04
mov rcx, rax
lea rdx, [0x140002298]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rax, rdi
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140063d10
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret