Function at 0x140002200
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xc0
mov rsi, r9
mov rdi, r8
mov rbx, rcx
lea rdx, str._DrsProfile__successfully_set._n
mov rcx, qword [0x1400bc2d8]
call fcn.140003dd0
xor r12d, r12d
mov qword [rbp - 0x29], r12
mov r14d, r12d
mov r15d, r12d
mov dword [rbp - 0x19], r12d
mov dword [rbp - 0x39], r12d
mov dword [rbp - 0x1d], r12d
mov dword [rbp - 0x21], r12d
mov dword [rbp - 0x45], r12d
mov dword [rbp - 0x3d], r12d
mov dword [rbp - 0x41], r12d
mov r8, rbx
lea rdx, str.Opening_the_reg_path___s__n
mov rcx, qword [0x1400bc2d8]
call fcn.140003dd0
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002803
mov r8, rbx
lea rdx, str.Querying_for_reg_values_under___s__n
mov rcx, qword [0x1400bc2d8]
call fcn.140003dd0
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
lea rax, [rbp - 0x41]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x3d]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140002320
lea rdx, str.WARNING:_Failed_to_query_reg_values_under___s__err:_d___n
jmp 0x140002830
mov eax, dword [rbp - 0x3d]
inc eax
mov dword [rbp - 0x3d], eax
mov ecx, eax
inc dword [rbp - 0x41]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14002833c
mov r14, rax
mov ecx, dword [rbp - 0x41]
call fcn.14002833c
mov r15, rax
mov r13d, r12d
cmp dword [rbp - 0x39], r12d
jbe 0x140002845
xor ebx, ebx
nop word [rax + rax]
mov ecx, dword [rbp - 0x3d]
mov dword [rbp - 0x21], ecx
mov eax, dword [rbp - 0x41]
mov dword [rbp - 0x45], eax
mov r8d, ecx
add r8, r8
xor edx, edx
mov rcx, r14
call fcn.14002b5b0
mov r8d, dword [rbp - 0x45]
xor edx, edx
mov rcx, r15
call fcn.14002b5b0
lea rax, [rbp - 0x45]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
lea rax, [rbp - 0x1d]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x21]
mov r8, r14
mov edx, r13d
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r8, r14
lea rdx, str.Queried_value______s__n
mov rcx, qword [0x1400bc2d8]
call fcn.140003dd0
mov r12, qword [rbp + 0x7f]
lea rdx, str.DRS_Enabled
mov rcx, r14
call fcn.14003ad48
test eax, eax
je 0x1400027f0
lea rdx, str.DRS_DefaultProfile
mov rcx, r14
call fcn.14003ad48
test eax, eax
jne 0x14000246d
mov rdx, r15
lea rcx, [rbp - 9]
call fcn.1400274b0
nop
lea rdx, [rbp - 9]
mov rcx, rsi
call fcn.140023370
mov r8, qword [rbp - 9]
mov rcx, qword [0x1400bc2d8]
cmp eax, 1
jbe 0x140002445
lea rdx, str.WARNING:_Could_not_set_Global_Profile_to______s___n
call fcn.140003dd0
jmp 0x14000245e
lea rdx, str.Successfully_set_Global_Profile_to______s__n
call fcn.140003dd0
lea rdx, [rbp - 9]
mov rcx, rsi
call fcn.1400233e0
nop
lea rcx, [rbp - 9]
call fcn.140027e00
nop
jmp 0x1400027f0
lea rdx, str.DeviceDesc
mov rcx, r14
call fcn.14003ad48
test eax, eax
je 0x1400027f0
lea rdx, str.DeviceID
mov rcx, r14
call fcn.14003ad48
test eax, eax
je 0x1400027f0
mov r8d, 4
lea rdx, str.DRS_
mov rcx, r14
call fcn.14003af10
test eax, eax
jne 0x1400027da
mov qword [rbp - 0x31], rbx
lea edx, [rax + 0x7b]
mov rcx, r14
call fcn.14002a1c4
mov rbx, rax
test rax, rax
je 0x140002579
xor eax, eax
mov word [rbx], ax
add rbx, 2
lea edx, [rax + 0x7d]
mov rcx, rbx
call fcn.14002a1c4
mov rsi, rax
test rax, rax
je 0x14000255f
lea rcx, [rbp + 7]
call fcn.140027560
nop
xor eax, eax
mov qword [rbp - 0x11], rax
mov word [rsi], ax
mov rdx, rbx
lea rcx, [rbp + 7]
call fcn.140027710
lea r8, [rbp - 0x11]
lea rdx, [rbp + 7]
mov rsi, qword [rbp + 0x6f]
mov rcx, rsi
call fcn.14001da10
cmp eax, 1
jbe 0x14000254f
mov r8, rbx
lea rdx, str.WARNING:_Could_not_find_Profile_With_Name__s_on_the_databse..._n
mov rcx, qword [0x1400bc2d8]
call fcn.140003dd0
nop
lea rcx, [rbp + 7]
call fcn.140027e00
nop
xor ebx, ebx
jmp 0x1400027f0
mov r12, qword [rbp - 0x11]
lea rcx, [rbp + 7]
call fcn.140027e00
nop
jmp 0x140002579
mov r8, rbx
lea rdx, str.WARNING:_Could_not_parse_Profile_Name__s__continuing..._n
mov rcx, qword [0x1400bc2d8]
call fcn.140003dd0
mov rsi, qword [rbp + 0x6f]
lea rcx, [r14 + 8]
lea r8, [rbp - 0x49]
lea rdx, [0x14009c9a4]
call fcn.140003110
cmp eax, 1
jne 0x1400027c0
lea r8, [rbp - 0x31]
mov edx, dword [rbp - 0x49]
mov rcx, r12
call fcn.14001de90
xor ebx, ebx
cmp eax, 0xa
jne 0x1400025b4
mov ecx, ebx
mov qword [rbp - 0x31], rbx
jmp 0x1400025b8
mov rcx, qword [rbp - 0x31]
mov eax, dword [rbp - 0x1d]
sub eax, 1
je 0x1400026fe
sub eax, 2
je 0x1400026a6
sub eax, 1
je 0x140002651
sub eax, 3
je 0x1400026a6
cmp eax, 4
je 0x1400025fb
mov r8, r14
lea rdx, str.Registry_key_not_used__type_unsupported:__s_n
mov rcx, qword [0x1400bc2d8]
call fcn.140003dd0
jmp 0x140002760
test rcx, rcx
jne 0x140002633
mov byte [rsp + 0x28], 1
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbp - 0x49]
mov rcx, r12
call fcn.14001a6f0
cmp eax, 1
jbe 0x140002762
lea rdx, str.WARNING:_Could_not_create_new_QWORD_driver_setting_with_Id__d__n
jmp 0x140002750
mov rax, qword [rcx]
mov rdx, qword [r15]
call qword [rax + 0x18]
cmp eax, 1
jbe 0x140002762
lea rdx, str.WARNING:_Could_not_re_define_QWORD_driver_setting_with_Id__d__n
jmp 0x140002750
test rcx, rcx
jne 0x140002688
mov byte [rsp + 0x28], 1
mov eax, dword [r15]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbp - 0x49]
mov rcx, r12
call fcn.14001a570
cmp eax, 1
jbe 0x140002762
lea rdx, str.WARNING:_Could_not_create_new_DWORD_driver_setting_with_Id__d__n
jmp 0x140002750
mov rax, qword [rcx]
mov edx, dword [r15]
call qword [rax + 0x20]
cmp eax, 1
jbe 0x140002762
lea rdx, str.WARNING:_Could_not_re_define_DWORD_driver_setting_with_Id__d__n
jmp 0x140002750
test rcx, rcx
jne 0x1400026e3
mov byte [rsp + 0x38], 1
mov eax, dword [rbp - 0x45]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r15
mov byte [rsp + 0x20], cl
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbp - 0x49]
mov rcx, r12
call fcn.14001a390
cmp eax, 1
jbe 0x140002762
lea rdx, str.WARNING:_Could_not_create_new_BINARY_driver_setting_with_Id__d__n
jmp 0x140002750
mov rax, qword [rcx]
mov r8d, dword [rbp - 0x45]
mov rdx, r15
call qword [rax + 0x50]
cmp eax, 1
jbe 0x140002762
lea rdx, str.WARNING:_Could_not_re_define_BINARY_driver_setting_with_Id__d__n
jmp 0x140002750
test rcx, rcx
jne 0x140002737
mov byte [rsp + 0x38], 1
mov eax, dword [rbp - 0x45]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r15
mov byte [rsp + 0x20], cl
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbp - 0x49]
mov rcx, r12
call fcn.14001aa60
cmp eax, 1
jbe 0x140002762
lea rdx, str.WARNING:_Could_not_create_new_STRING_driver_setting_with_Id__d__n
jmp 0x140002750
mov rax, qword [rcx]
mov r8d, dword [rbp - 0x45]
mov rdx, r15
call qword [rax + 0x40]
cmp eax, 1
jbe 0x140002762
lea rdx, str.WARNING:_Could_not_re_define_STRING_driver_setting_with_Id__d__n
mov r8d, dword [rbp - 0x49]
mov rcx, qword [0x1400bc2d8]
call fcn.140003dd0
mov dword [rdi], ebx
mov rax, qword [rbp - 0x31]
test rax, rax
jne 0x14000279d
lea r8, [rbp - 0x31]
mov edx, dword [rbp - 0x49]
mov rcx, r12
call fcn.14001de90
cmp eax, 1
jbe 0x140002794
lea rdx, str.WARNING:_Could_not_retrieve_the_setting_after_adding_it__n
mov rcx, qword [0x1400bc2d8]
call fcn.140003dd0
mov dword [rdi], ebx
mov rax, qword [rbp - 0x31]
test rax, rax
je 0x1400027f0
cmp byte [rax + 0xd], 0
jne 0x1400027ba
lea rdx, str.WARNING:_Could_not_set_the_INF_customization_flag_for_a_setting__n
mov rcx, qword [0x1400bc2d8]
call fcn.140003dd0
mov dword [rdi], ebx
jmp 0x1400027f0
mov byte [rax + 0xf], 1
jmp 0x1400027f0
mov r8, r14
lea rdx, str.WARNING:_Registry_key_not_used__could_not_convert_the_hexadecimal_value:__s__n
mov rcx, qword [0x1400bc2d8]
call fcn.140003dd0
xor ebx, ebx
jmp 0x1400027f0
mov r8, r14
lea rdx, str.Registry_key_not_used__name_not_understood:__s_n
mov rcx, qword [0x1400bc2d8]
call fcn.140003dd0
inc r13d
cmp r13d, dword [rbp - 0x39]
jb 0x140002370
mov rbx, qword [rbp + 0x57]
jmp 0x140002845
cmp eax, 2
jne 0x140002829
mov r9d, eax
mov r8, rbx
lea rdx, str.__s__does_not_exist._No_OEM_Customization_work_will_be_done_n
mov rcx, qword [0x1400bc2d8]
call fcn.140003dd0
mov dword [rdi], 5
jmp 0x140002845
lea rdx, str.Failed_to_open_reg_path___s___err:_d__n
mov r9d, eax
mov r8, rbx
mov rcx, qword [0x1400bc2d8]
call fcn.140003dd0
mov dword [rdi], r12d
mov r8, rbx
lea rdx, str.Deleting_registry___s__if_any_n
mov rcx, qword [0x1400bc2d8]
call fcn.140003dd0
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9d, 0x102
xor r8d, r8d
mov rdx, qword [rbp + 0x5f]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400028b9
lea rdx, [0x14009d150]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, 0xfffffffd
je 0x1400028b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rbx
lea rdx, str.WARNING:_Failed_to_delete__s__err:_d___n
mov rcx, qword [0x1400bc2d8]
call fcn.140003dd0
mov rcx, r14
call fcn.140028344
mov rcx, r15
call fcn.140028344
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret