Function at 0x1800065d0
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.180006180
mov rsi, qword [0x18038d280]
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x1800068dc
mov r14, qword [rdi + 0x18]
mov r15, qword [rdi + 0x10]
lea r9, [rbx + 0x20]
cmp qword [rbx + 0x38], 8
jb 0x180006622
mov r9, qword [rbx + 0x20]
mov rcx, rdi
cmp r14, 8
jb 0x18000662e
mov rcx, qword [rdi]
mov rax, qword [rbx + 0x30]
mov qword [rsp + 0x20], rax
mov rdx, r15
call fcn.180002ae0
cmp rax, 0xffffffffffffffff
jne 0x1800066ad
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x180006678
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x180006673
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x180006673
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x180006660
mov rbx, rax
jmp 0x18000669f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x18000669f
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x180006690
cmp rbx, rsi
je 0x1800068dc
jmp 0x180006613
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, [0x18038b158]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rdx, qword [0x18038b158]
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 [0x1800399f0]
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 0x1800068bf
mov r8, qword [rbp + 0x3f8]
lea rdx, str._sOneDrive
lea rcx, [rbp + 0x1b0]
call fcn.18000ccf0
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.18000ccf0
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 0x1800067d4
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x70]
call fcn.1800024f0
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.1800024f0
nop
mov r9, qword [rbx + 0x48]
mov r8, qword [rbx + 0x40]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.180005e50
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x180006882
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000687c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800068e7
call fcn.180011d18
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x1800068bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800068ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800068d6
call fcn.180011d18
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.180018e94
int3
mov ecx, 1
call fcn.180019988
nop
call fcn.180018e94
nop
int3