Function at 0x1400047c0
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 - 0x57]
sub rsp, 0xb0
mov rax, qword [0x140028040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
mov qword [rbp + 0x2f], rcx
xor esi, esi
mov edi, esi
mov dword [rbp - 0x39], esi
lea r9, [rbp + 0x3f]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14001e6c0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
lea r8d, [rsi + 0xa]
lea rdx, str.CarbonTest
lea rcx, [rbp - 0x31]
call fcn.140012170
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
mov rdx, qword [rbp + 0x3f]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140004850
lea rcx, [rbp - 0x11]
call fcn.140012170
nop
mov r8d, 1
lea rcx, [rbp - 0x11]
call fcn.14000be10
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xf], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x1f], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
or edi, 2
mov dword [rbp - 0x39], edi
lea r9, [rbp - 0x31]
lea r8, [rbp + 0xf]
mov rcx, rbx
call fcn.140016340
or edi, 4
or edi, 1
mov dword [rbp - 0x39], edi
mov rdx, qword [rbp + 0x27]
cmp rdx, 7
jbe 0x1400048f5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400048ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400048ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001adc0
nop
mov rdx, qword [rbp + 7]
cmp rdx, 7
jbe 0x140004938
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004933
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004933
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001adc0
movdqa xmm0, xmmword [0x140021160]
movdqu xmmword [rbp - 1], xmm0
mov word [rbp - 0x11], si
mov rdx, qword [rbp - 0x19]
cmp rdx, 7
jbe 0x14000498c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004987
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004987
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001adc0
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140004999
mov rdx, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], rsi
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x31]
call fcn.140012170
or edi, 0x18
mov dword [rbp - 0x39], edi
lea rcx, [rbp - 0x31]
call fcn.1400046c0
movzx edi, al
mov rdx, qword [rbp - 0x19]
cmp rdx, 7
jbe 0x140004a0a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a05
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004a05
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001adc0
test dil, dil
jne 0x140004a24
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140004a1c
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14001ada0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret