Function at 0x14000a010
Capabilities:
Delete registry value
Set registry value

Disassembly:
jmp 0x14000a010
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x60
mov rdi, rsp
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x70]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0x11
je 0x14000a096
cmp dword [rsp + 0x4c], 0x12
je 0x14000a065
jmp 0x14000a0c7
call fcn.14000119a
test eax, eax
je 0x14000a078
mov dword [rsp + 0x50], 7
jmp 0x14000a080
mov dword [rsp + 0x50], 1
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x48], eax
lea rax, str.LowerFilters
mov qword [rsp + 0x30], rax
jmp 0x14000a0ce
call fcn.14000119a
test eax, eax
je 0x14000a0a9
mov dword [rsp + 0x54], 7
jmp 0x14000a0b1
mov dword [rsp + 0x54], 1
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x48], eax
lea rax, [0x1400b8680]
mov qword [rsp + 0x30], rax
jmp 0x14000a0ce
xor eax, eax
jmp 0x14000a2d5
call fcn.14000119a
test eax, eax
je 0x14000a180
cmp dword [rsp + 0x90], 2
jle 0x14000a135
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceRegistryPropertyA]
test eax, eax
jne 0x14000a133
mov r8, qword [rsp + 0x30]
lea rdx, [0x1400b8690]
lea rcx, [0x1400b86b0]
call fcn.140001118
xor eax, eax
jmp 0x14000a2d5
jmp 0x14000a17b
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceRegistryPropertyA]
test eax, eax
jne 0x14000a17b
mov r8, qword [rsp + 0x30]
lea rdx, [0x1400b86d0]
lea rcx, [0x1400b86f0]
call fcn.140001118
xor eax, eax
jmp 0x14000a2d5
jmp 0x14000a2d0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsx eax, byte [rax]
test eax, eax
je 0x14000a1c9
mov rax, qword [rsp + 0x38]
movsx eax, byte [rax]
cmp eax, 0x2c
jne 0x14000a1ae
mov rax, qword [rsp + 0x38]
mov byte [rax], 0
mov rcx, qword [rsp + 0x38]
call fcn.14000f290
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 1]
mov qword [rsp + 0x38], rax
jmp 0x14000a18d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 1
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x14000a223
lea r8, str.reading_registry_key_failed_n
lea rdx, [0x1400b8464]
lea rcx, [0x1400b8730]
call fcn.140001118
xor eax, eax
jmp 0x14000a2d5
cmp dword [rsp + 0x90], 3
jle 0x14000a28a
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x48]
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x14000a288
mov r8, qword [rsp + 0x30]
lea rdx, str.setting_property__s_failed
lea rcx, [0x1400b8770]
call fcn.140001118
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14000a2d5
jmp 0x14000a2c5
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x14000a2c5
mov r8, qword [rsp + 0x30]
lea rdx, str.deleting_property__s_failed
lea rcx, str.usb_registry_set_property
call fcn.140001118
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14000a2d5
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x60
pop rdi
ret