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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140062040]
xor rax, rsp
mov qword [rbp], rax
mov rbx, rcx
mov qword [rbp - 0x18], rcx
xor esi, esi
mov edi, esi
mov dword [rsp + 0x20], esi
lea r9, [rbp - 8]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140033960]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
lea r8d, [rsi + 4]
lea rdx, str.Logs
lea rcx, [rbp - 0x78]
call fcn.140024880
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
lea r8d, [rsi + 6]
lea rdx, str.Carbon
lea rcx, [rsp + 0x28]
call fcn.140024880
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov rdx, qword [rbp - 8]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14001f000
lea rcx, [rsp + 0x48]
call fcn.140024880
nop
mov r8d, 1
lea rdx, [0x140057f64]
lea rcx, [rsp + 0x48]
call fcn.140021e80
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x28], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
or edi, 2
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x28]
lea r8, [rbp - 0x38]
lea rcx, [rsp + 0x68]
call fcn.140024bd0
or edi, 4
mov dword [rsp + 0x20], edi
mov r8d, 1
lea rdx, [0x140057f64]
lea rcx, [rsp + 0x68]
call fcn.140021e80
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x48], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
or edi, 8
mov dword [rsp + 0x20], edi
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x58]
mov rcx, rbx
call fcn.140024bd0
or edi, 0x10
or edi, 1
mov dword [rsp + 0x20], edi
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x14001f106
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f100
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001f100
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002fd40
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x14001f14a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f145
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001f145
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002fd40
movdqa xmm0, xmmword [0x1400586e0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], si
mov rdx, qword [rbp - 0x20]
cmp rdx, 7
jbe 0x14001f1a1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f19b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001f19b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002fd40
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14001f1e6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f1e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001f1e1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002fd40
movdqa xmm0, xmmword [0x1400586e0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], si
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x14001f23f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f239
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001f239
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002fd40
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x14001f282
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f27d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001f27d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002fd40
mov rcx, qword [rbp - 8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14001f299
mov rdx, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x28]
call fcn.140024880
or edi, 0x60
mov dword [rsp + 0x20], edi
lea rcx, [rsp + 0x28]
call fcn.140008420
movzx edi, al
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x14001f312
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f30d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001f30d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002fd40
test dil, dil
jne 0x14001f32c
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14001f324
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rax, rbx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14002f800
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret