Function at 0x140017050
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rdi
mov qword [r11 + 0x18], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor r15d, r15d
lea rax, fcn.1400084e0
mov qword [r11 - 0x38], r15
mov rdi, r8
mov qword [rbp - 0x10], rax
mov rbx, rdx
lea rax, [rbp - 8]
mov qword [rbp - 8], r15
mov qword [r11 - 0x40], rax
lea rdx, str.VirtualDisplay
mov qword [r11 - 0x48], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
mov dword [r11 - 0x58], r15d
mov r14, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x1400170de
mov rcx, qword [rbp + 0x18]
lea r8, str.mrcommon_sdk_simulation_servicesperceptionsimulation_virtualdisplaymanager_virtualdisplay.cpp
mov r9d, eax
mov edx, 0x1d6
call fcn.14000a7e0
mov ebx, eax
jmp 0x140017537
mov rcx, qword [rbp - 8]
lea rdx, [0x14002bea0]
mov r12d, 3
mov dword [rsp + 0x28], 0x10
mov r9d, r12d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14001712d
mov r9d, ebx
mov edx, 0x1d8
jmp 0x140017522
cmp word [rdi], r15w
je 0x140017195
mov rbx, qword [rbp - 8]
mov edx, 0x64
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
nop dword [rax + rax]
mov r9d, 1
xor r8d, r8d
mov rcx, rbx
lea edx, [rax + rax]
mov dword [rsp + 0x28], edx
lea rdx, str.Name
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140017195
mov r9d, ebx
mov edx, 0x1dd
jmp 0x140017522
mov r8d, dword [rdi + 0xc8]
lea rdx, str.Active
mov rcx, qword [rbp - 8]
and r8d, 1
call fcn.140016ee8
mov ebx, eax
test eax, eax
jns 0x1400171c0
mov edx, 0x1e0
jmp 0x14001751f
mov r8d, dword [rdi + 0xc8]
lea rdx, str.Transparent
mov rcx, qword [rbp - 8]
shr r8d, 1
and r8d, 1
call fcn.140016ee8
mov ebx, eax
test eax, eax
jns 0x1400171ee
mov edx, 0x1e1
jmp 0x14001751f
mov r8d, dword [rdi + 0xc8]
lea rdx, str.Stereo
mov rcx, qword [rbp - 8]
shr r8d, 2
and r8d, 1
call fcn.140016ee8
mov ebx, eax
test eax, eax
jns 0x14001721d
mov edx, 0x1e2
jmp 0x14001751f
mov r8d, dword [rdi + 0xc8]
lea rdx, [0x14002bef0]
mov rcx, qword [rbp - 8]
shr r8d, 3
and r8d, 1
call fcn.140016ee8
mov ebx, eax
test eax, eax
jns 0x14001724c
mov edx, 0x1e3
jmp 0x14001751f
mov r8d, dword [rdi + 0xcc]
lea rdx, str.Width
mov rcx, qword [rbp - 8]
call fcn.140016ee8
mov ebx, eax
test eax, eax
jns 0x140017273
mov edx, 0x1e4
jmp 0x14001751f
mov r8d, dword [rdi + 0xd0]
lea rdx, str.Height
mov rcx, qword [rbp - 8]
call fcn.140016ee8
mov ebx, eax
test eax, eax
jns 0x14001729a
mov edx, 0x1e5
jmp 0x14001751f
mov r8d, dword [rdi + 0xd4]
lea rdx, str.Frames
mov rcx, qword [rbp - 8]
call fcn.140016ee8
mov ebx, eax
test eax, eax
jns 0x1400172c1
mov edx, 0x1e6
jmp 0x14001751f
mov r8d, dword [rdi + 0xd8]
lea rdx, str.Seconds
mov rcx, qword [rbp - 8]
call fcn.140016ee8
mov ebx, eax
test eax, eax
jns 0x1400172e8
mov edx, 0x1e7
jmp 0x14001751f
mov rcx, qword [rbp - 8]
lea rax, [rdi + 0xe8]
mov dword [rsp + 0x28], 0x30
lea rdx, [0x14002bf78]
mov r9d, r12d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140017338
mov r9d, ebx
mov edx, 0x1e8
jmp 0x140017522
mov rcx, qword [rbp - 8]
lea rax, [rdi + 0x12c]
mov dword [rsp + 0x28], 0x30
lea rdx, [0x14002bf98]
mov r9d, r12d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140017388
mov r9d, ebx
mov edx, 0x1e9
jmp 0x140017522
mov rcx, qword [rbp - 8]
lea rax, [rdi + 0x118]
mov dword [rsp + 0x28], 0x14
lea rdx, str.LeftPinhole
mov r9d, r12d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400173d8
mov r9d, ebx
mov edx, 0x1ea
jmp 0x140017522
mov rcx, qword [rbp - 8]
lea rax, [rdi + 0x15c]
mov dword [rsp + 0x28], 0x14
lea rdx, str.RightPinhole
mov r9d, r12d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140017428
mov r9d, ebx
mov edx, 0x1eb
jmp 0x140017522
test byte [rdi + 0xc8], 8
je 0x1400174d5
mov r8d, 1
lea rdx, str.SkipInFocusCheck
mov rcx, r14
call fcn.140016ee8
mov ebx, eax
test eax, eax
jns 0x14001745a
mov edx, 0x1f1
jmp 0x14001751f
cmp byte [0x140035f90], r15b
jne 0x140017482
xor r8d, r8d
lea rdx, [0x140035538]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlGetDeviceFamilyInfoEnum]
nop dword [rax + rax]
mov byte [0x140035f90], 1
cmp dword [0x140035538], 0xa
jne 0x140017534
mov rcx, qword [rbp - 8]
lea rdx, str.UseHardwareDisplay
mov r8d, 1
call fcn.140016ee8
mov ebx, eax
test eax, eax
jns 0x1400174b2
mov edx, 0x1f7
jmp 0x14001751f
mov rcx, qword [rbp - 8]
lea rdx, str.Transparent
mov r8d, 1
call fcn.140016ee8
mov ebx, eax
test eax, eax
jns 0x140017534
mov edx, 0x1f8
jmp 0x14001751f
mov r8, qword [rdi + 0xe0]
lea rdx, str.AdapterHi
mov rcx, qword [rbp - 8]
shr r8, 0x20
call fcn.140016ee8
mov ebx, eax
test eax, eax
jns 0x1400174fd
mov edx, 0x1ff
jmp 0x14001751f
mov r8d, dword [rdi + 0xe0]
lea rdx, str.AdapterLo
mov rcx, qword [rbp - 8]
call fcn.140016ee8
mov ebx, eax
test eax, eax
jns 0x140017534
mov edx, 0x200
mov r9d, eax
mov rcx, qword [rbp + 0x18]
lea r8, str.mrcommon_sdk_simulation_servicesperceptionsimulation_virtualdisplaymanager_virtualdisplay.cpp
call fcn.140003f3c
jmp 0x140017537
mov ebx, r15d
lea rax, fcn.1400084e0
mov qword [rbp - 0x10], rax
cmp qword [rbp - 8], r15
je 0x140017555
lea rcx, [rbp - 0x10]
call fcn.1400084e0
test al, al
je 0x140017572
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov r12, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edx, 1
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140006624
int3