Function at 0x180005d50
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.1800058b0
mov rsi, qword [0x1803c40b0]
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x18000605c
mov r14, qword [rdi + 0x18]
mov r15, qword [rdi + 0x10]
lea r9, [rbx + 0x20]
cmp qword [rbx + 0x38], 8
jb 0x180005da2
mov r9, qword [rbx + 0x20]
mov rcx, rdi
cmp r14, 8
jb 0x180005dae
mov rcx, qword [rdi]
mov rax, qword [rbx + 0x30]
mov qword [rsp + 0x20], rax
mov rdx, r15
call fcn.180002b70
cmp rax, 0xffffffffffffffff
jne 0x180005e2d
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x180005df8
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x180005df3
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x180005df3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x180005de0
mov rbx, rax
jmp 0x180005e1f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x180005e1f
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x180005e10
cmp rbx, rsi
je 0x18000605c
jmp 0x180005d93
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, [0x1803c1e88]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rdx, qword [0x1803c1e88]
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 [0x18003aa10]
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 0x18000603f
mov r8, qword [rbp + 0x3f8]
lea rdx, str._sOneDrive
lea rcx, [rbp + 0x1b0]
call fcn.18000d640
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.18000d640
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 0x180005f54
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x70]
call fcn.180002580
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.180002580
nop
mov r9, qword [rbx + 0x48]
mov r8, qword [rbx + 0x40]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.180005580
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x180006002
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005ffc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180006067
call fcn.180012b28
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x18000603f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000603a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180006056
call fcn.180012b28
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.180019ca4
int3
mov ecx, 1
call fcn.18001a798
nop
call fcn.180019ca4
nop
int3