Function at 0x180005f00
Capabilities:
Create directory
Get common file path
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rdi, rcx
call fcn.180005990
mov rsi, qword [0x18048b820]
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x18000620c
mov r14, qword [rdi + 0x18]
mov r15, qword [rdi + 0x10]
lea r9, [rbx + 0x20]
cmp qword [rbx + 0x38], 8
jb 0x180005f52
mov r9, qword [rbx + 0x20]
mov rcx, rdi
cmp r14, 8
jb 0x180005f5e
mov rcx, qword [rdi]
mov rax, qword [rbx + 0x30]
mov qword [rsp + 0x20], rax
mov rdx, r15
call fcn.180002c50
cmp rax, 0xffffffffffffffff
jne 0x180005fdd
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x180005fa8
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x180005fa3
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x180005fa3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x180005f90
mov rbx, rax
jmp 0x180005fcf
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x180005fcf
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x180005fc0
cmp rbx, rsi
je 0x18000620c
jmp 0x180005f43
mov rdi, qword [rbx + 0x48]
mov rsi, qword [rbx + 0x40]
xor r14d, r14d
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x400]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Console
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea rdx, [0x1804894d0]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rdx, qword [0x1804894d0]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
lea r9d, [r14 + 3]
xor r8d, r8d
mov rcx, qword [rbp + 0x400]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x400]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [0x180039a00]
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp + 0x3f8], r14
lea r9, [rbp + 0x3f8]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x1800061ef
mov r8, qword [rbp + 0x3f8]
lea rdx, str._sOneDrive
lea rcx, [rbp + 0x1b0]
call fcn.18000c900
xor edx, edx
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, [rbp + 0x1b0]
lea rdx, str._scache
lea rcx, [rbp - 0x60]
call fcn.18000c900
xor edx, edx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov qword [rsp + 0x70], r14
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r14w
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x180006104
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x70]
call fcn.180002660
nop
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r14w
mov r8d, 6
lea rdx, str.bb.jpg
lea rcx, [rsp + 0x50]
call fcn.180002660
nop
mov r9, qword [rbx + 0x48]
mov r8, qword [rbx + 0x40]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.180005660
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1800061b2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800061ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180006217
call fcn.180011de8
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x1800061ef
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800061ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180006206
call fcn.180011de8
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.180018f64
int3
mov ecx, 1
call fcn.180019a58
nop
call fcn.180018f64
nop
int3