Function at 0x1400080ec
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x7f8]
sub rsp, 0x8d0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140013148]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
mov r15, rdx
mov rdi, rcx
or qword [rsp + 0x40], 0xffffffffffffffff
lea rax, [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x60], 1
lea r14, [rcx + 0x658]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateGuid]
mov ebx, eax
test eax, eax
jns 0x14000815d
mov edx, 0x1a
jmp 0x1400081e7
lea rsi, [rdi + 0x1a8]
movups xmm0, xmmword [str.ROOTPERCEPTIONSIMULATION_]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [0x14000f0d0]
movups xmmword [rsi + 0x10], xmm1
movups xmm0, xmmword [0x14000f0e0]
movups xmmword [rsi + 0x20], xmm0
mov eax, dword [0x14000f0f0]
mov dword [rsi + 0x30], eax
lea rdx, [rdi + 0x1dc]
mov r8d, 0xae
mov rcx, r14
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromGUID2]
test eax, eax
jne 0x1400081b4
mov ebx, 0x80004005
mov r9d, ebx
lea edx, [rax + 0x1e]
jmp 0x1400081ea
mov rcx, rdi
call fcn.140008dec
mov ebx, eax
test eax, eax
jns 0x1400081c9
mov edx, 0x20
jmp 0x1400081e7
lea rdx, [rdi + 0x338]
lea rcx, [rdi + 0x678]
call fcn.140007a94
mov ebx, eax
test eax, eax
jns 0x140008237
mov edx, 0x21
mov r9d, eax
lea r8, str.onecoreuap_analog_sdk_simulation_servicesperceptionsimulation_virtualdisplaymanager_virtualdisplay.cpp
mov rcx, qword [rbp + 0x7f8]
call fcn.1400028fc
nop
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x14000820f
call qword [sym.imp.setupapi.dll_SetupDiDestroyDeviceInfoList]
mov eax, ebx
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.14000b710
mov rbx, qword [rsp + 0x910]
add rsp, 0x8d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rax, [rdi + 0x38]
mov rcx, r15
mov edx, 2
lea r8d, [rdx + 0x7e]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
add rax, r8
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
add rcx, r8
sub rdx, 1
jne 0x140008247
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
lea rcx, [0x14000f308]
call qword [sym.imp.setupapi.dll_SetupDiCreateDeviceInfoList]
mov rbx, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
jne 0x1400082ea
lea edx, [rax + 0x28]
jmp 0x140008380
xor edx, edx
lea r8d, [rdx + 0x20]
lea rcx, [rsp + 0x68]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x68], 0x20
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14000f308]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.setupapi.dll_SetupDiCreateDeviceInfoW]
test eax, eax
jne 0x140008336
lea edx, [rax + 0x32]
jmp 0x140008380
mov dword [rsp + 0x20], 0x34
lea r9, str.umdfPERCEPTIONSIMULATION
mov r8d, 1
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.setupapi.dll_SetupDiSetDeviceRegistryPropertyW]
test eax, eax
jne 0x140008364
lea edx, [rax + 0x39]
jmp 0x140008380
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x40]
mov ecx, 0x19
call qword [sym.imp.setupapi.dll_SetupDiCallClassInstaller]
test eax, eax
jne 0x14000839a
lea edx, [rax + 0x3e]
lea r8, str.onecoreuap_analog_sdk_simulation_servicesperceptionsimulation_virtualdisplaymanager_virtualdisplay.cpp
mov rcx, qword [rbp + 0x7f8]
call fcn.140002930
mov ebx, eax
jmp 0x1400081fe
mov byte [rdi + 0x668], 1
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.setupapi.dll_SetupDiCreateDevRegKeyW]
mov rsi, rax
test rax, rax
jne 0x1400083ef
lea edx, [rax + 0x4b]
lea r8, str.onecoreuap_analog_sdk_simulation_servicesperceptionsimulation_virtualdisplaymanager_virtualdisplay.cpp
mov rcx, qword [rbp + 0x7f8]
call fcn.140002930
jmp 0x140008575
mov r8, r15
mov rdx, r14
mov rcx, rsi
call fcn.140009378
mov ebx, eax
test eax, eax
jns 0x140008410
mov r9d, eax
mov edx, 0x4c
jmp 0x140008545
mov byte [rdi + 0x669], 1
mov r8d, 2
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.setupapi.dll_SetupDiBuildDriverInfoList]
test eax, eax
jne 0x140008436
lea edx, [rax + 0x52]
jmp 0x1400083d7
xor ebx, ebx
mov r14d, 0x620
mov r8d, r14d
xor edx, edx
lea rcx, [rbp - 0x70]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rbp - 0x70], r14d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8d, 2
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.setupapi.dll_SetupDiEnumDriverInfoW]
test eax, eax
je 0x1400084c9
lea rdx, str.Perception_Simulation_Headset
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000848f
inc ebx
jmp 0x14000844c
and dword [rsp + 0x4c], 0
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r9, [rbp - 0x70]
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.NEWDEV.dll_DiInstallDevice]
test eax, eax
jne 0x14000855a
lea edx, [rax + 0x64]
jmp 0x1400083d7
mov r8d, 0x104
lea rdx, [rbp + 0x5b0]
lea rcx, str._windir_InfPerceptionSimulationHeadset.inf
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1400084ef
lea edx, [rax + 0x72]
jmp 0x1400083d7
and dword [rsp + 0x4c], 0
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp + 0x5b0]
lea rdx, str.umdfPERCEPTIONSIMULATION
xor ecx, ecx
call qword [sym.imp.NEWDEV.dll_UpdateDriverForPlugAndPlayDevicesW]
test eax, eax
jne 0x14000855a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x103
je 0x14000855a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140008577
mov r9d, ebx
mov edx, 0x7d
lea r8, str.onecoreuap_analog_sdk_simulation_servicesperceptionsimulation_virtualdisplaymanager_virtualdisplay.cpp
mov rcx, qword [rbp + 0x7f8]
call fcn.1400028fc
jmp 0x140008577
mov eax, dword [rdi + 0x100]
shr eax, 3
not al
and al, 1
mov byte [rdi + 0x668], al
mov rcx, rdi
call fcn.1400087cc
mov ebx, eax
test rsi, rsi
je 0x1400081fe
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
shr ecx, 0x1f
xor cl, 1
jne 0x1400081fe
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140003d00
int3