Function at 0x100039f40
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 0x10003a20c
mov rax, qword [rbp + 0x10]
cmp rax, rdi
je 0x10003a20c
cmp word [rdx], di
je 0x10003a20c
cmp word [rax], di
je 0x10003a20c
lea ecx, [r15 + r15]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov r12, rax
cmp rax, rdi
je 0x10003a1fd
mov rdi, qword [0x1000802f0]
test rdi, rdi
je 0x10003a006
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rdi + 8]
mov r14, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100039ff8
mov rdi, qword [rdi]
test rdi, rdi
jne 0x100039fd9
jmp 0x10003a00e
xor edi, edi
mov dword [rsp + 0xb8], edi
jmp 0x10003a29c
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 0x10003a220
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 0x10003a220
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 0x10003a0f9
cmp eax, 2
je 0x10003a154
jmp 0x10003a217
mov ecx, dword [rsp + 0xc0]
mov dword [rsp + 0x58], ecx
cmp ecx, edi
je 0x10003a1f4
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rbx, rax
cmp rax, rdi
je 0x10003a1f4
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 0x10003a220
mov r8, qword [rbp]
mov edx, dword [rsp + 0xc0]
lea r9, [rsp + 0x54]
mov rcx, rbx
call fcn.1000353d4
mov r13, rax
cmp rax, rdi
je 0x10003a217
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 0x10003a220
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.100006f50
mov rcx, qword [rbp + 0x10]
lea r8, [rsp + 0xb8]
mov rdx, r12
call fcn.100009b48
cmp rax, rdi
je 0x10003a217
mov qword [rax], rdi
mov qword [r14], rax
jmp 0x10003a217
cmp dword [rsp + 0xb8], edi
jne 0x10003a220
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xb8], eax
jmp 0x10003a217
mov dword [rsp + 0xb8], 0x57
cmp dword [rsp + 0xb8], edi
je 0x10003a282
cmp dword [rsp + 0xc8], 1
jne 0x10003a249
mov rdx, qword [rbp]
mov rcx, rsi
call fcn.100034b34
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 0x10003a282
lea rdx, str.Order
mov rcx, rsi
cmp rbx, rdi
je 0x10003a27c
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 0x10003a282
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteValueW]
cmp rbx, rdi
je 0x10003a28f
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplMem
cmp r13, rdi
je 0x10003a29c
mov rcx, r13
call sym.spoolsv.exe_PrvDllFreeSplMem
cmp r12, rdi
je 0x10003a2a9
mov rcx, r12
call sym.spoolsv.exe_PrvDllFreeSplMem
mov rcx, qword [rsp + 0x60]
cmp rcx, rdi
je 0x10003a2b9
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