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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0x11
je 0x14000a982
cmp dword [rsp + 0x4c], 0x12
je 0x14000a951
jmp 0x14000a9b3
call fcn.14000a7c0
test eax, eax
je 0x14000a964
mov dword [rsp + 0x50], 7
jmp 0x14000a96c
mov dword [rsp + 0x50], 1
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x48], eax
lea rax, [0x1400256c0]
mov qword [rsp + 0x38], rax
jmp 0x14000a9ba
call fcn.14000a7c0
test eax, eax
je 0x14000a995
mov dword [rsp + 0x54], 7
jmp 0x14000a99d
mov dword [rsp + 0x54], 1
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x48], eax
lea rax, [0x1400256d0]
mov qword [rsp + 0x38], rax
jmp 0x14000a9ba
xor eax, eax
jmp 0x14000abc1
call fcn.14000a7c0
test eax, eax
je 0x14000aa6c
cmp dword [rsp + 0x90], 2
jle 0x14000aa21
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 0x14000aa1f
mov r8, qword [rsp + 0x38]
lea rdx, [0x1400256e0]
lea rcx, [0x140025700]
call fcn.1400040c0
xor eax, eax
jmp 0x14000abc1
jmp 0x14000aa67
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 0x14000aa67
mov r8, qword [rsp + 0x38]
lea rdx, [0x140025720]
lea rcx, [0x140025740]
call fcn.1400040c0
xor eax, eax
jmp 0x14000abc1
jmp 0x14000abbc
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
test eax, eax
je 0x14000aab5
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x2c
jne 0x14000aa9a
mov rax, qword [rsp + 0x30]
mov byte [rax], 0
mov rcx, qword [rsp + 0x30]
call fcn.14000e120
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 1]
mov qword [rsp + 0x30], rax
jmp 0x14000aa79
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 0x14000ab0f
lea r8, str.reading_registry_key_failed_n
lea rdx, [0x14002555c]
lea rcx, [0x140025780]
call fcn.1400040c0
xor eax, eax
jmp 0x14000abc1
cmp dword [rsp + 0x90], 3
jle 0x14000ab76
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 + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x14000ab74
mov r8, qword [rsp + 0x38]
lea rdx, str.setting_property__s_failed
lea rcx, [0x1400257c0]
call fcn.1400040c0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14000abc1
jmp 0x14000abb1
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x14000abb1
mov r8, qword [rsp + 0x38]
lea rdx, str.deleting_property__s_failed
lea rcx, str.usb_registry_set_property
call fcn.1400040c0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14000abc1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x68
ret