Function at 0x1400e4240
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, r9
mov rsi, rcx
mov qword [rsp + 0x30], rcx
mov r14d, dword [0x140468dc0]
mov edi, dword [0x140468db4]
lea rax, vtable.IspcdskServerCommunicationServiceDesktop.0
mov qword [rcx], rax
lea rax, vtable.L5CommServiceDesktop.0
mov qword [rcx], rax
mov qword [rcx + 8], rdx
add rcx, 0x10
mov rdx, r8
call fcn.14008f3f0
nop
lea rcx, [rsi + 0x30]
mov rdx, rbx
call fcn.14008f3f0
nop
mov rbp, qword [rsp + 0xc0]
movsx r9d, word [rbp + 0x2e]
shr r9d, 2
and r9b, 1
lea rcx, [rsi + 0x50]
mov r8d, r14d
mov edx, edi
call fcn.1400e5f00
nop
mov eax, dword [rbp + 0x10]
mov dword [rsi + 0xf0], eax
mov eax, dword [rbp + 0x14]
mov dword [rsi + 0xf4], eax
xorps xmm0, xmm0
movups xmmword [rsi + 0xf8], xmm0
xorps xmm1, xmm1
movups xmmword [rsi + 0x108], xmm1
movups xmmword [rsi + 0x118], xmm0
xor ebx, ebx
mov qword [rsi + 0x128], rbx
mov dword [rsi + 0x130], ebx
mov byte [rsi + 0x134], bl
mov dword [rsi + 0x138], 0xffffffff
mov qword [rsi + 0x140], rbx
mov qword [rsi + 0x148], rbx
mov qword [rsi + 0x150], 2
mov qword [rsi + 0x158], rbx
mov dword [rsi + 0x160], ebx
mov dword [rsi + 0x198], 0x3e8
lea rcx, [rsi + 0x168]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
mov edx, 1
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x190], rax
test rax, rax
jne 0x1400e4389
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.L5ProtocolFlowControl::L5ProtocolFlowControl_CreateEvent_failed____d__n
lea ecx, [rbx + 1]
call fcn.1400e1ef0
nop
mov dword [rsi + 0x1a0], r14d
mov dword [rsi + 0x1a4], ebx
mov eax, dword [rbp + 0x30]
mov dword [rsi + 0x1a8], eax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi + 0x1ac], xmm0
movups xmmword [rsi + 0x1bc], xmm0
mov dword [rsi + 0x1cc], eax
movups xmmword [rsi + 0x1d0], xmm0
movups xmmword [rsi + 0x1e0], xmm0
mov dword [rsi + 0x1f0], eax
mov eax, dword [rbp + 0x20]
mov dword [rsi + 0x200], eax
mov eax, dword [rbp + 0x1c]
mov dword [rsi + 0x204], eax
mov eax, dword [rbp + 0x18]
mov dword [rsi + 0x208], eax
mov byte [rsi + 0x20c], 0
mov eax, dword [rbp + 0x7c]
mov dword [rsi + 0x210], eax
mov edi, ebx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServices_spacedeskService
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400e4470
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x50], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
lea rdx, str.DiagSLResolutionX01
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove edi, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsi + 0x1f8], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServices_spacedeskService
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400e44ed
mov dword [rsp + 0x4c], ebx
mov dword [rsp + 0x54], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea rdx, str.DiagSLResolutionY01
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove ebx, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsi + 0x1fc], ebx
movsx ecx, word [rbp + 0x2c]
mov dword [rsi + 0x1f4], ecx
test cx, cx
jne 0x1400e450e
mov dword [rsi + 0x1f4], 0x1e
jmp 0x1400e451e
cmp cx, 1
jne 0x1400e451e
mov dword [rsi + 0x1f4], 0x3c
mov rcx, qword [rsi + 8]
lock inc dword [rcx + 0x240]
mov rax, rsi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1402ab320
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret