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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x180129540]
xor rax, rsp
mov qword [rbp + 0x120], rax
xor edi, edi
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1800f6878]
call sub.SHELL32.dll_SHGetKnownFolderPath
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x80], xmm1
lea r8d, [rdi + 6]
lea rdx, str.Carbon
lea rcx, [rbp + 0x70]
call fcn.180004f40
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xa0], xmm1
mov rdx, qword [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x18002b3c0
lea rcx, [rbp + 0x90]
call fcn.180004f40
nop
mov rcx, qword [rbp + 0xa0]
mov rdx, qword [rbp + 0xa8]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x18002b420
lea rax, [rcx + 1]
mov qword [rbp + 0xa0], rax
lea rax, [rbp + 0x90]
cmp rdx, 7
cmova rax, qword [rbp + 0x90]
mov dword [rax + rcx*2], 0x5c
lea rax, [rbp + 0x90]
jmp 0x18002b447
mov qword [rsp + 0x20], 1
lea r9, [0x1800e5060]
movzx r8d, byte [rsp + 0x30]
mov edx, 1
lea rcx, [rbp + 0x90]
call fcn.1800250b0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xd0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xe0], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r9, [rbp + 0x70]
lea r8, [rbp + 0xd0]
movzx edx, byte [rsp + 0x30]
lea rcx, [rbp + 0xb0]
call fcn.1800298f0
nop
mov rdx, qword [rbp + 0xe8]
cmp rdx, 7
jbe 0x18002b4d2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002b4cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002b4cc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8994
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 7
jbe 0x18002b51b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002b516
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002b516
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8994
movdqa xmm0, xmmword [0x1800e4070]
movdqu xmmword [rbp + 0xa0], xmm0
mov word [rbp + 0x90], di
mov rdx, qword [rbp + 0x88]
cmp rdx, 7
jbe 0x18002b578
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002b573
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002b573
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8994
lea r8, str.CraniumV1.settings.json
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0xf0]
call fcn.180023640
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 7
cmova rdx, qword [rbp + 0xb0]
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], rdi
mov qword [rbp + 0x88], rdi
mov r8, qword [rbp + 0xc0]
lea rcx, [rbp + 0x70]
call fcn.180004f40
nop
lea rcx, [rbp + 0x70]
cmp qword [rbp + 0x88], 7
cmova rcx, qword [rbp + 0x70]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rbp + 0xd0]
call fcn.1800d83c4
mov edx, eax
test eax, eax
jne 0x18002b65b
mov eax, dword [rbp + 0xe0]
test al, 1
mov ecx, 0x1ff
mov r8d, 0x16d
cmovne ecx, r8d
mov dword [rsp + 0x44], ecx
bt eax, 0xa
jae 0x18002b64d
mov ecx, dword [rbp + 0xe4]
cmp ecx, 0xa000000c
jne 0x18002b63e
lea eax, [rdx + 4]
jmp 0x18002b67e
cmp ecx, 0xa0000003
jne 0x18002b64d
mov eax, 0xa
jmp 0x18002b67e
movzx eax, al
and eax, 0x10
or eax, 0x20
shr eax, 4
jmp 0x18002b67e
mov dword [rsp + 0x44], 0xffff
sub eax, 2
je 0x18002b679
sub eax, 1
je 0x18002b679
sub eax, 0x32
je 0x18002b679
cmp eax, 0x46
mov eax, edi
jne 0x18002b67e
mov eax, 1
mov dword [rbp + 0x90], edx
lea rcx, [0x180129228]
mov qword [rbp + 0x98], rcx
movaps xmm0, xmmword [rbp + 0x90]
movdqa xmmword [rbp + 0x90], xmm0
test eax, eax
je 0x18002b6ec
cmp eax, 1
sete bl
mov rdx, qword [rbp + 0x88]
cmp rdx, 7
jbe 0x18002b6fd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002b6f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002b6f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov bl, 1
test edx, edx
jne 0x18002bb21
jmp 0x18002b6ab
call fcn.1800d8994
test bl, bl
je 0x18002b721
lea rcx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 7
cmova rcx, qword [rbp + 0xb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
mov byte [rbp + 0x90], 0
xor edx, edx
lea rcx, [rbp + 0x98]
call fcn.18002a190
nop
lea rax, [rbp + 0x70]
mov qword [rsp + 0x40], rax
mov byte [rbp + 0x70], 4
mov byte [rsp + 0x38], 1
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x78], rax
lea rdx, str.bIsHookingEnabled
lea rcx, [rbp + 0x90]
call fcn.180023100
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.18002f2b0
lea rax, [rbp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov byte [rbp + 0x70], 4
mov byte [rsp + 0x38], al
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x78], rax
lea rdx, str.bHasSeenBetaPopUp
lea rcx, [rbp + 0x90]
call fcn.180023100
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.18002f2b0
lea rax, [rbp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov byte [rbp + 0x70], 4
mov byte [rsp + 0x38], al
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x78], rax
lea rdx, str.bEnableGUI
lea rcx, [rbp + 0x90]
call fcn.180023100
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.18002f2b0
lea rax, [rbp + 0x70]
mov qword [rsp + 0x40], rax
mov byte [rbp + 0x70], 5
mov qword [rbp + 0x78], 0x15db
lea rdx, str.ListenToPort
lea rcx, [rbp + 0x90]
call fcn.180023100
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.18002f2b0
lea rax, [rbp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rbp + 0x78], rax
mov byte [rbp + 0x70], 3
lea ecx, [rax + 0x20]
call fcn.1800d8958
nop
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 9
mov qword [rax + 0x18], 0xf
movsd xmm0, qword [0x1800e5100]
movsd qword [rax], xmm0
movzx ecx, byte [0x1800e5108]
mov byte [rax + 8], cl
mov byte [rax + 9], 0
mov qword [rbp + 0x78], rax
lea rdx, str.BackendURL
lea rcx, [rbp + 0x90]
call fcn.180023100
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.18002f2b0
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
lea rdx, [rbp + 0xf0]
lea rcx, [rsp + 0x60]
call fcn.180029510
nop
mov dword [rsp + 0x28], edi
mov byte [rsp + 0x20], 0
mov r9b, 0x20
mov r8d, 4
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x90]
call fcn.18002f860
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x18002b978
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.180009490
nop
mov rdx, qword [rbp + 0xe8]
cmp rdx, 0xf
jbe 0x18002b9ca
inc rdx
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002b9c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002b9c5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8994
lea rcx, [rsp + 0x68]
call fcn.18002e490
test rax, rax
jne 0x18002b9f8
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.180012690
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 [rbp + 0x90]
lea rcx, [rbp + 0x98]
call fcn.18002f2b0
nop
mov rdx, qword [rbp + 0x108]
cmp rdx, 7
jbe 0x18002ba9d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002ba98
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002ba98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8994
movdqa xmm0, xmmword [0x1800e4070]
movdqu xmmword [rbp + 0x100], xmm0
mov word [rbp + 0xf0], di
mov rdx, qword [rbp + 0xc8]
cmp rdx, 7
jbe 0x18002bafd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002baf8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002baf8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8994
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1800d8e20
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
lea r8, [rbp + 0x70]
lea rdx, [rbp + 0x90]
lea rcx, str.exists
call fcn.18002e170
int3