Function at 0x140055d80
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rbx, r8
mov rdi, rdx
mov esi, ecx
test rdx, rdx
je 0x140056028
test rbx, rbx
je 0x140056028
mov qword [rsp + 0x28], rdx
lea r15, str.SYSTEMCurrentControlSetServicesBTHPORTParameters
mov r12d, 0x100
lea r8, str._sDevices_012I64xServicesFor_012I64x00001124_0000_1000_8000_00805f9b34fbC00000000
lea rcx, [rsp + 0x40]
mov r9, r15
mov edx, r12d
mov qword [rsp + 0x20], rbx
call fcn.14005d88c
mov r13d, 0x20006
mov r14, 0xffffffff80000002
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov r8d, r13d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExA]
lea r8, str._sDevices_012I64xServicesFor_012I64x00001124_0000_1000_8000_00805f9b34fb
lea rcx, [rsp + 0x40]
mov r9, r15
mov edx, r12d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
call fcn.14005d88c
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov r8d, r13d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExA]
lea r8, str._sDevices_012I64xServicesFor_012I64x
lea rcx, [rsp + 0x40]
mov r9, r15
mov edx, r12d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
call fcn.14005d88c
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov r8d, r13d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExA]
test esi, esi
je 0x140055ee1
lea r8, str._sDevices_012I64xCachedServices
lea rcx, [rsp + 0x40]
mov r9, r15
mov edx, r12d
mov qword [rsp + 0x20], rbx
call fcn.14005d88c
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov r8d, r13d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExA]
lea r8, str._sDevices_012I64x
lea rcx, [rsp + 0x40]
mov r9, r15
mov edx, r12d
mov qword [rsp + 0x20], rbx
call fcn.14005d88c
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov r8d, r13d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExA]
lea r8, str._sPerDevices_012I64x
lea rcx, [rsp + 0x40]
mov r9, r15
mov rdx, r12
mov qword [rsp + 0x20], rdi
call fcn.14005d88c
lea r11, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, r13d
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140055f35
lea rdx, str.BtwProvisionedHidDevsDeleteRegistryMs:_RegCreateKeyEx_PerDevices__failed._err_d_n
mov r8d, eax
mov ecx, 1
call fcn.140046d10
jmp 0x140055f67
lea r8, str._012I64x
lea rcx, [rsp + 0x40]
mov r9, rbx
mov rdx, r12
call fcn.14005d88c
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, str._sKeys_012I64x
lea rcx, [rsp + 0x40]
mov r9, r15
mov rdx, r12
mov qword [rsp + 0x20], rdi
call fcn.14005d88c
lea r11, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, r13d
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140055fbb
lea rdx, str.BtwProvisionedHidDevsDeleteRegistryMs:_RegCreateKeyEx_Keys__failed._err_d_n
mov r8d, eax
mov ecx, 1
call fcn.140046d10
jmp 0x140055fed
lea r8, str._012I64x
lea rcx, [rsp + 0x40]
mov r9, rbx
mov rdx, r12
call fcn.14005d88c
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r9, str.SYSTEMCurrentControlSetServicesHidBth
lea r8, str._sParametersDevices_012I64x_012I64x
lea rcx, [rsp + 0x40]
mov rdx, r12
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
call fcn.14005d88c
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov r8d, r13d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExA]
jmp 0x140056039
lea rdx, str.BtwProvisionedHidDevsDeleteRegistryMs:_0_attribute_n
mov ecx, 1
call fcn.140046d10
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14005ba20
mov rbx, qword [rsp + 0x190]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret