Function at 0x140001cd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14002a010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
lea rax, str.ETDService
mov qword [rcx + 8], rax
xor esi, esi
mov qword [rcx + 0x30], rsi
mov dword [rcx + 0x10], 0x10
mov dword [rcx + 0x14], 2
mov qword [rcx + 0x18], 0x85
mov qword [rcx + 0x20], rsi
mov dword [rcx + 0x28], esi
lea rax, vtable.CServiceMain.0
mov qword [rcx], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x140001fa5
lea r9, [0x140025008]
xor r8d, r8d
lea edx, [rsi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
lea rcx, [0x140025008]
call fcn.140002d20
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea r9, str.GlobalWMITpStatusOn
xor r8d, r8d
lea edx, [rsi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x58], rax
lea rcx, str.GlobalWMITpStatusOn
call fcn.140002d20
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea r9, str.GlobalWMITpStatusOff
xor r8d, r8d
lea edx, [rsi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x60], rax
lea rcx, str.GlobalWMITpStatusOff
call fcn.140002d20
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
call fcn.1400011e0
test eax, eax
je 0x140001e51
lea rdx, [0x14002c860]
lea rcx, str.Get_HKR_Path_Success__Path_ws_r_n
call fcn.140005be0
lea r8, [0x14002c860]
mov edx, 0x400
lea rcx, [0x14002c050]
call fcn.14000d57c
lea rdx, [0x14002c050]
lea rcx, str.HKR_OtherSetting_Path_ws_r_n
call fcn.140005be0
lea r8, str.OtherSetting
mov edx, 0x400
lea rcx, [0x14002c050]
call fcn.14000d5e4
lea rdx, [0x14002c050]
lea rcx, str.HKR_OtherSetting_Path_ws_r_n
call fcn.140005be0
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x14002c050]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001ed9
mov dword [rsp + 0x30], esi
mov edi, 0xffffffff
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.CustomerDefinition
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001ed6
cmp dword [rsp + 0x38], 4
cmove edi, dword [rsp + 0x30]
mov dword [rbx + 0x48], edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbx + 0x48], 0xffffffff
jne 0x140001f11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.Get_CustomerDefinition_fail_
lea r8, str._s_failed_w_err_0x_08lx
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140005480
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x40], rax
test rax, rax
je 0x140001f88
lea r9, str.GlobalETDMessage_Recover_ETDCtrl
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x70], rax
lea r9, str.GlobalETDMessage_DriverHasUninstalled
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x78], rax
mov qword [rbx + 0x68], rsi
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140006060
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov dword [rsp + 0x34], eax
lea rdx, [0x140028ea8]
lea rcx, [rsp + 0x34]
call fcn.140008208
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140028ea8]
lea rcx, [rsp + 0x30]
call fcn.140008208
int3