Function at 0x140007910
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 0x140007982
cmp dword [rsp + 0x4c], 0x12
je 0x140007951
jmp 0x1400079b3
call fcn.1400077c0
test eax, eax
je 0x140007964
mov dword [rsp + 0x50], 7
jmp 0x14000796c
mov dword [rsp + 0x50], 1
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x48], eax
lea rax, [0x1400226c0]
mov qword [rsp + 0x38], rax
jmp 0x1400079ba
call fcn.1400077c0
test eax, eax
je 0x140007995
mov dword [rsp + 0x54], 7
jmp 0x14000799d
mov dword [rsp + 0x54], 1
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x48], eax
lea rax, [0x1400226d0]
mov qword [rsp + 0x38], rax
jmp 0x1400079ba
xor eax, eax
jmp 0x140007bc1
call fcn.1400077c0
test eax, eax
je 0x140007a6c
cmp dword [rsp + 0x90], 2
jle 0x140007a21
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 0x140007a1f
mov r8, qword [rsp + 0x38]
lea rdx, [0x1400226e0]
lea rcx, [0x140022700]
call fcn.1400010c0
xor eax, eax
jmp 0x140007bc1
jmp 0x140007a67
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 0x140007a67
mov r8, qword [rsp + 0x38]
lea rdx, [0x140022720]
lea rcx, [0x140022740]
call fcn.1400010c0
xor eax, eax
jmp 0x140007bc1
jmp 0x140007bbc
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
test eax, eax
je 0x140007ab5
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x2c
jne 0x140007a9a
mov rax, qword [rsp + 0x30]
mov byte [rax], 0
mov rcx, qword [rsp + 0x30]
call fcn.14000b120
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 1]
mov qword [rsp + 0x30], rax
jmp 0x140007a79
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 0x140007b0f
lea r8, str.reading_registry_key_failed_n
lea rdx, [0x14002255c]
lea rcx, [0x140022780]
call fcn.1400010c0
xor eax, eax
jmp 0x140007bc1
cmp dword [rsp + 0x90], 3
jle 0x140007b76
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 0x140007b74
mov r8, qword [rsp + 0x38]
lea rdx, str.setting_property__s_failed
lea rcx, [0x1400227c0]
call fcn.1400010c0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140007bc1
jmp 0x140007bb1
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x140007bb1
mov r8, qword [rsp + 0x38]
lea rdx, str.deleting_property__s_failed
lea rcx, str.usb_registry_set_property
call fcn.1400010c0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140007bc1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x68
ret