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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x180119040]
xor rax, rsp
mov qword [rbp + 0x120], rax
xor ebx, ebx
lea r9, [rsp + 0x48]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1800cfd98]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xe0], xmm1
lea r8d, [rbx + 6]
lea rdx, str.Carbon
lea rcx, [rbp + 0xd0]
call fcn.180005840
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x80], xmm1
mov rdx, qword [rsp + 0x48]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x18002bf00
lea rcx, [rbp + 0x70]
call fcn.180005840
nop
mov r8d, 1
lea rdx, [0x1800f7f58]
lea rcx, [rbp + 0x70]
call fcn.18002d0b0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xb0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xc0], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
lea r9, [rbp + 0xd0]
lea r8, [rbp + 0xb0]
lea rcx, [rbp + 0x90]
call fcn.180035a00
nop
mov rdx, qword [rbp + 0xc8]
cmp rdx, 7
jbe 0x18002bfb4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002bfae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002bfae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8790
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 7
jbe 0x18002bffa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002bff5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002bff5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8790
movdqa xmm0, xmmword [0x180104360]
movdqu xmmword [rbp + 0x80], xmm0
mov word [rbp + 0x70], bx
mov rdx, qword [rbp + 0xe8]
cmp rdx, 7
jbe 0x18002c057
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002c052
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002c052
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8790
lea r8, str.CraniumV1.settings.json
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0xf0]
call fcn.180031ee0
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 7
cmova rdx, qword [rbp + 0x90]
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], rbx
mov qword [rbp + 0x88], rbx
mov r8, qword [rbp + 0xa0]
lea rcx, [rbp + 0x70]
call fcn.180005840
nop
lea rcx, [rbp + 0x70]
call fcn.18002a490
movzx ebx, al
lea rcx, [rbp + 0x70]
call fcn.180011590
test bl, bl
jne 0x18002c0f3
lea rcx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 7
cmova rcx, qword [rbp + 0x90]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
mov byte [rsp + 0x38], 0
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.18002fca0
nop
lea rax, [rbp + 0x70]
mov qword [rsp + 0x50], rax
mov byte [rbp + 0x70], 4
mov byte [rsp + 0x30], 1
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x78], rax
lea rdx, str.bIsHookingEnabled
lea rcx, [rsp + 0x38]
call fcn.180032080
nop
movzx edx, byte [rax]
movzx ecx, byte [rbp + 0x70]
mov byte [rax], cl
mov byte [rbp + 0x70], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rbp + 0x78]
mov qword [rax + 8], rdx
mov qword [rbp + 0x78], rcx
movzx edx, byte [rbp + 0x70]
lea rcx, [rbp + 0x78]
call fcn.18002e4f0
lea rax, [rbp + 0x70]
mov qword [rsp + 0x50], rax
xor eax, eax
mov byte [rbp + 0x70], 4
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x78], rax
lea rdx, str.bEnableGUI
lea rcx, [rsp + 0x38]
call fcn.180032080
nop
movzx edx, byte [rax]
movzx ecx, byte [rbp + 0x70]
mov byte [rax], cl
mov byte [rbp + 0x70], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rbp + 0x78]
mov qword [rax + 8], rdx
mov qword [rbp + 0x78], rcx
movzx edx, byte [rbp + 0x70]
lea rcx, [rbp + 0x78]
call fcn.18002e4f0
lea rax, [rbp + 0x70]
mov qword [rsp + 0x50], rax
mov byte [rbp + 0x70], 5
mov qword [rbp + 0x78], 0x15db
lea rdx, str.ListenToPort
lea rcx, [rsp + 0x38]
call fcn.180032080
nop
movzx edx, byte [rax]
movzx ecx, byte [rbp + 0x70]
mov byte [rax], cl
mov byte [rbp + 0x70], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rbp + 0x78]
mov qword [rax + 8], rdx
mov qword [rbp + 0x78], rcx
movzx edx, byte [rbp + 0x70]
lea rcx, [rbp + 0x78]
call fcn.18002e4f0
lea rax, [rbp + 0x70]
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rbp + 0x78], rax
mov byte [rbp + 0x70], 3
lea ecx, [rax + 0x20]
call fcn.1800c8160
nop
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 9
mov qword [rax + 0x18], 0xf
movsd xmm0, qword [0x1800f7fe0]
movsd qword [rax], xmm0
movzx ecx, byte [0x1800f7fe8]
mov byte [rax + 8], cl
mov byte [rax + 9], 0
mov qword [rbp + 0x78], rax
lea rdx, str.BackendURL
lea rcx, [rsp + 0x38]
call fcn.180032080
nop
movzx edx, byte [rax]
movzx ecx, byte [rbp + 0x70]
mov byte [rax], cl
mov byte [rbp + 0x70], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rbp + 0x78]
mov qword [rax + 8], rdx
mov qword [rbp + 0x78], rcx
movzx edx, byte [rbp + 0x70]
lea rcx, [rbp + 0x78]
call fcn.18002e4f0
lea rdx, [rbp + 0xf0]
lea rcx, [rsp + 0x60]
call fcn.18002cde0
nop
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x38]
call fcn.18002cf10
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x18002c2bf
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.180016420
nop
lea rcx, [rbp + 0xb0]
call fcn.180011620
lea rcx, [rsp + 0x68]
call fcn.180011400
test rax, rax
jne 0x18002c307
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call fcn.1800103e0
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
movzx edx, byte [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.18002e4f0
nop
lea rcx, [rbp + 0xf0]
call fcn.180011590
nop
lea rcx, [rbp + 0x90]
call fcn.180011590
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1800c8140
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rbp
ret