Function at 0x180003ce0
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.180003710
mov rsi, qword [0x180543df0]
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x180003fec
mov r14, qword [rdi + 0x18]
mov r15, qword [rdi + 0x10]
lea r9, [rbx + 0x20]
cmp qword [rbx + 0x38], 8
jb 0x180003d32
mov r9, qword [rbx + 0x20]
mov rcx, rdi
cmp r14, 8
jb 0x180003d3e
mov rcx, qword [rdi]
mov rax, qword [rbx + 0x30]
mov qword [rsp + 0x20], rax
mov rdx, r15
call fcn.180002520
cmp rax, 0xffffffffffffffff
jne 0x180003dbd
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x180003d88
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x180003d83
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x180003d83
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x180003d70
mov rbx, rax
jmp 0x180003daf
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x180003daf
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x180003da0
cmp rbx, rsi
je 0x180003fec
jmp 0x180003d23
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, [0x18003da28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea rdx, [0x180542008]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rdx, qword [0x180542008]
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 [0x18002f560]
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 0x180003fcf
mov r8, qword [rbp + 0x3f8]
lea rdx, [0x18003dc60]
lea rcx, [rbp + 0x1b0]
call fcn.180007430
xor edx, edx
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, [rbp + 0x1b0]
lea rdx, [0x18003dc78]
lea rcx, [rbp - 0x60]
call fcn.180007430
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 0x180003ee4
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x70]
call fcn.180001f30
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, [0x18003dc90]
lea rcx, [rsp + 0x50]
call fcn.180001f30
nop
mov r9, qword [rbx + 0x48]
mov r8, qword [rbx + 0x40]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.1800032d0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x180003f92
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003f8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003ff7
call fcn.18000ab38
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x180003fcf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003fca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003fe6
call fcn.18000ab38
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.180011c44
int3
mov ecx, 1
call fcn.180011f54
nop
call fcn.180011c44
nop
int3