Function at 0x140004020
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rdi, rcx
mov dword [rbp + 0x30], 4
lea rax, [rbp + 0x30]
mov qword [r11 - 0x78], rax
lea rax, [rbp + 0x48]
mov qword [r11 - 0x80], rax
xor r12d, r12d
mov qword [rsp + 0x20], r12
lea r9d, [r12 + 0x10]
lea r8, str.WaitForDebugger
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionPerceptionSimulationService
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x1400040d8
cmp dword [rbp + 0x48], r12d
je 0x1400040d8
jmp 0x1400040cd
mov dword [rdi + 0x14], 2
mov dword [rdi + 0x1c], r12d
mov dword [rdi + 0x28], r12d
mov ecx, dword [0x140013178]
lea eax, [rcx + 1]
mov dword [0x140013178], eax
mov dword [rdi + 0x24], ecx
lea rdx, [rdi + 0x10]
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.api_ms_win_service_core_l1_1_0.dll_SetServiceStatus]
mov ecx, 0x1f4
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
test eax, eax
je 0x140004093
int3
mov qword [rbp - 0x20], r12
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov qword [rbp - 0x38], rdi
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
movups xmm0, xmmword [rbp - 0x38]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x28], 1
lea rdx, [rbp - 0x20]
call fcn.14000541c
mov esi, eax
test eax, eax
jns 0x1400041aa
mov rcx, qword [rbp + 0x28]
mov r9d, eax
lea r8, str.onecoreuap_analog_sdk_simulation_servicesperceptionsimulationexemain.cpp
mov edx, 0x9c
call fcn.1400028fc
nop
mov r15, r12
mov rbx, qword [rbp - 0x20]
mov r14, qword [rbp - 0x18]
sub r14, rbx
add r14, 3
shr r14, 2
cmp rbx, qword [rbp - 0x18]
cmova r14, r12
test r14, r14
je 0x140004164
mov ecx, dword [rbx]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevokeClassObject]
lea rbx, [rbx + 4]
inc r15
cmp r15, r14
jne 0x14000414c
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x14000424d
mov rdx, qword [rbp - 0x10]
sub rdx, rbx
and rdx, 0xfffffffffffffffc
mov rax, rbx
cmp rdx, 0x1000
jb 0x14000419d
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000423b
mov rcx, rbx
call fcn.14000bbd8
jmp 0x14000424d
lea rbx, [rdi + 0x38]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
lea rdx, [rdi + 0x60]
lea rax, [rbp - 0x20]
cmp rax, rdx
je 0x1400041f4
mov rax, qword [rbp - 0x20]
mov r8, qword [rdx]
mov qword [rbp - 0x20], r8
mov qword [rdx], rax
mov rcx, qword [rbp - 0x18]
mov rax, qword [rdx + 8]
mov qword [rbp - 0x18], rax
mov qword [rdx + 8], rcx
mov rcx, qword [rbp - 0x10]
mov rax, qword [rdx + 0x10]
mov qword [rbp - 0x10], rax
mov qword [rdx + 0x10], rcx
jmp 0x1400041f8
mov r8, qword [rbp - 0x20]
test rbx, rbx
je 0x14000420a
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov r8, qword [rbp - 0x20]
test r8, r8
je 0x14000424a
mov rdx, qword [rbp - 0x10]
sub rdx, r8
and rdx, 0xfffffffffffffffc
mov rax, r8
cmp rdx, 0x1000
jb 0x140004242
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004242
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14000bbd8
mov esi, r12d
test esi, esi
jns 0x140004259
mov rcx, rdi
call fcn.14000b368
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret