Function at 0x1000397a4
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
xor eax, eax
mov rsi, rcx
or rcx, 0xffffffffffffffff
lea rdi, str.SystemCurrentControlSetControlPrintProviders
mov rbp, rdx
mov rdx, qword [rdx]
repne scasw ax, word [rdi]
xor edi, edi
mov dword [rsp + 0x50], eax
not rcx
mov dword [r11 + 0x20], eax
mov rbx, rdi
mov r13, rdi
mov qword [r11 - 0x48], rdi
mov r12, rdi
lea r15, [rcx + 0x104]
cmp rdx, rdi
je 0x100039a70
mov rax, qword [rbp + 0x10]
cmp rax, rdi
je 0x100039a70
cmp word [rdx], di
je 0x100039a70
cmp word [rax], di
je 0x100039a70
lea ecx, [r15 + r15]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov r12, rax
cmp rax, rdi
je 0x100039a61
mov rdi, qword [0x10007f2f0]
test rdi, rdi
je 0x10003986a
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rdi + 8]
mov r14, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10003985c
mov rdi, qword [rdi]
test rdi, rdi
jne 0x10003983d
jmp 0x100039872
xor edi, edi
mov dword [rsp + 0xb8], edi
jmp 0x100039b00
mov r14, qword [rsp + 0xb8]
mov rdx, qword [rbp]
lea rax, [rsp + 0xc8]
xor edi, edi
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x28], 0x3001f
mov dword [rsp + 0x20], edi
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
mov dword [rsp + 0xb8], eax
cmp eax, edi
jne 0x100039a84
mov rdx, qword [rbp + 0x10]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
mov r9d, 1
xor r8d, r8d
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
lea rdx, str.Name
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
xor edi, edi
mov dword [rsp + 0xb8], eax
cmp eax, edi
jne 0x100039a84
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
lea rax, [rsp + 0xc0]
lea rdx, str.Order
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0xc0], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov dword [rsp + 0xb8], eax
cmp eax, edi
je 0x10003995d
cmp eax, 2
je 0x1000399b8
jmp 0x100039a7b
mov ecx, dword [rsp + 0xc0]
mov dword [rsp + 0x58], ecx
cmp ecx, edi
je 0x100039a58
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rbx, rax
cmp rax, rdi
je 0x100039a58
lea rax, [rsp + 0xc0]
lea rdx, str.Order
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov dword [rsp + 0xb8], eax
cmp eax, edi
jne 0x100039a84
mov r8, qword [rbp]
mov edx, dword [rsp + 0xc0]
lea r9, [rsp + 0x54]
mov rcx, rbx
call fcn.100034ce4
mov r13, rax
cmp rax, rdi
je 0x100039a7b
mov ecx, dword [rsp + 0x54]
lea rdx, str.Order
mov r9d, 7
mov dword [rsp + 0x28], ecx
mov rcx, rsi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov dword [rsp + 0xb8], eax
cmp eax, edi
jne 0x100039a84
mov rax, qword [rbp]
lea r9, str.SystemCurrentControlSetControlPrintProviders
lea r8, str._ws_ws
mov edx, r15d
mov rcx, r12
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x20], rax
call fcn.100005f58
mov rcx, qword [rbp + 0x10]
lea r8, [rsp + 0xb8]
mov rdx, r12
call fcn.100008e24
cmp rax, rdi
je 0x100039a7b
mov qword [rax], rdi
mov qword [r14], rax
jmp 0x100039a7b
cmp dword [rsp + 0xb8], edi
jne 0x100039a84
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xb8], eax
jmp 0x100039a7b
mov dword [rsp + 0xb8], 0x57
cmp dword [rsp + 0xb8], edi
je 0x100039ae6
cmp dword [rsp + 0xc8], 1
jne 0x100039aad
mov rdx, qword [rbp]
mov rcx, rsi
call fcn.100034444
mov rdx, qword [rbp]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteKeyExW]
cmp dword [rsp + 0x50], edi
je 0x100039ae6
lea rdx, str.Order
mov rcx, rsi
cmp rbx, rdi
je 0x100039ae0
mov eax, dword [rsp + 0x58]
mov r9d, 7
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
jmp 0x100039ae6
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteValueW]
cmp rbx, rdi
je 0x100039af3
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplMem
cmp r13, rdi
je 0x100039b00
mov rcx, r13
call sym.spoolsv.exe_PrvDllFreeSplMem
cmp r12, rdi
je 0x100039b0d
mov rcx, r12
call sym.spoolsv.exe_PrvDllFreeSplMem
mov rcx, qword [rsp + 0x60]
cmp rcx, rdi
je 0x100039b1d
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, dword [rsp + 0xb8]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret