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

Disassembly:
jmp 0x14002f810
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x278
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x66
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x298]
mov rax, qword [0x140063018]
xor rax, rbp
mov qword [rbp + 0x240], rax
mov dword [rbp + 0x214], 0
lea rcx, [0x140070116]
call fcn.140018de8
mov qword [rbp + 8], 0
lea r9, [rbp + 8]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140055c48]
call fcn.1400185a5
test eax, eax
jl 0x14002f9ea
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x28]
call fcn.140018479
nop
lea rdx, str.MicrosoftCLR
lea rcx, [rbp + 0x28]
call fcn.1400186ea
lea rcx, [rbp + 0x28]
call fcn.14001848d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14002f8d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14002f99e
mov rcx, qword [rbp + 8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, 0x88
lea rcx, [rbp + 0x70]
call fcn.1400180b9
lea rcx, [rbp + 0x70]
call fcn.140018a3c
nop
movzx eax, byte [rbp + 0x278]
test eax, eax
je 0x14002f910
lea rax, [0x140053004]
mov qword [rbp + 0x228], rax
jmp 0x14002f91e
lea rax, [0x14005160a]
mov qword [rbp + 0x228], rax
lea r8, [rbp + 0x28]
lea rdx, [rbp + 0x1d8]
lea rcx, [rbp + 0x70]
call fcn.140018181
mov qword [rbp + 0x230], rax
mov rax, qword [rbp + 0x230]
mov qword [rbp + 0x238], rax
mov r8, qword [rbp + 0x228]
mov rdx, qword [rbp + 0x238]
mov rcx, qword [rbp + 0x270]
call fcn.140018cd5
mov eax, dword [rbp + 0x214]
or eax, 1
mov dword [rbp + 0x214], eax
lea rcx, [rbp + 0x1d8]
call fcn.1400182c1
nop
lea rcx, [rbp + 0x70]
call fcn.140018366
nop
lea rcx, [rbp + 0x28]
call fcn.140018c08
mov rax, qword [rbp + 0x270]
jmp 0x14002fa5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x224], eax
lea rdx, str.Failed_to_create_directory:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400181bd
mov ecx, dword [rbp + 0x224]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140018091]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 + 0x28]
call fcn.140018c08
jmp 0x14002fa2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x224], eax
lea rdx, str.Failed_to_get_AppData_directory:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400181bd
mov ecx, dword [rbp + 0x224]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140018091]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 rcx, qword [rbp + 8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, [0x14005160a]
mov rcx, qword [rbp + 0x270]
call fcn.140018609
mov eax, dword [rbp + 0x214]
or eax, 1
mov dword [rbp + 0x214], eax
mov rax, qword [rbp + 0x270]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400502a0]
call fcn.140018b95
mov rax, rdi
mov rcx, qword [rbp + 0x240]
xor rcx, rbp
call fcn.140018686
lea rsp, [rbp + 0x258]
pop rdi
pop rbp
ret