Function at 0x140016c78
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.1400081c0
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 0x140016d06
mov rcx, qword [rbp + 0x18]
lea r8, str.mrcommon_sdk_simulation_servicesperceptionsimulation_virtualdisplaymanager_virtualdisplay.cpp
mov r9d, eax
mov edx, 0x1d6
call fcn.14000a420
mov ebx, eax
jmp 0x14001715f
mov rcx, qword [rbp - 8]
lea rdx, [0x14002ae60]
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 0x140016d55
mov r9d, ebx
mov edx, 0x1d8
jmp 0x14001714a
cmp word [rdi], r15w
je 0x140016dbd
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 0x140016dbd
mov r9d, ebx
mov edx, 0x1dd
jmp 0x14001714a
mov r8d, dword [rdi + 0xc8]
lea rdx, str.Active
mov rcx, qword [rbp - 8]
and r8d, 1
call fcn.140016b10
mov ebx, eax
test eax, eax
jns 0x140016de8
mov edx, 0x1e0
jmp 0x140017147
mov r8d, dword [rdi + 0xc8]
lea rdx, str.Transparent
mov rcx, qword [rbp - 8]
shr r8d, 1
and r8d, 1
call fcn.140016b10
mov ebx, eax
test eax, eax
jns 0x140016e16
mov edx, 0x1e1
jmp 0x140017147
mov r8d, dword [rdi + 0xc8]
lea rdx, str.Stereo
mov rcx, qword [rbp - 8]
shr r8d, 2
and r8d, 1
call fcn.140016b10
mov ebx, eax
test eax, eax
jns 0x140016e45
mov edx, 0x1e2
jmp 0x140017147
mov r8d, dword [rdi + 0xc8]
lea rdx, [0x14002aeb0]
mov rcx, qword [rbp - 8]
shr r8d, 3
and r8d, 1
call fcn.140016b10
mov ebx, eax
test eax, eax
jns 0x140016e74
mov edx, 0x1e3
jmp 0x140017147
mov r8d, dword [rdi + 0xcc]
lea rdx, str.Width
mov rcx, qword [rbp - 8]
call fcn.140016b10
mov ebx, eax
test eax, eax
jns 0x140016e9b
mov edx, 0x1e4
jmp 0x140017147
mov r8d, dword [rdi + 0xd0]
lea rdx, str.Height
mov rcx, qword [rbp - 8]
call fcn.140016b10
mov ebx, eax
test eax, eax
jns 0x140016ec2
mov edx, 0x1e5
jmp 0x140017147
mov r8d, dword [rdi + 0xd4]
lea rdx, str.Frames
mov rcx, qword [rbp - 8]
call fcn.140016b10
mov ebx, eax
test eax, eax
jns 0x140016ee9
mov edx, 0x1e6
jmp 0x140017147
mov r8d, dword [rdi + 0xd8]
lea rdx, str.Seconds
mov rcx, qword [rbp - 8]
call fcn.140016b10
mov ebx, eax
test eax, eax
jns 0x140016f10
mov edx, 0x1e7
jmp 0x140017147
mov rcx, qword [rbp - 8]
lea rax, [rdi + 0xe8]
mov dword [rsp + 0x28], 0x30
lea rdx, [0x14002af38]
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 0x140016f60
mov r9d, ebx
mov edx, 0x1e8
jmp 0x14001714a
mov rcx, qword [rbp - 8]
lea rax, [rdi + 0x12c]
mov dword [rsp + 0x28], 0x30
lea rdx, [0x14002af58]
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 0x140016fb0
mov r9d, ebx
mov edx, 0x1e9
jmp 0x14001714a
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 0x140017000
mov r9d, ebx
mov edx, 0x1ea
jmp 0x14001714a
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 0x140017050
mov r9d, ebx
mov edx, 0x1eb
jmp 0x14001714a
test byte [rdi + 0xc8], 8
je 0x1400170fd
mov r8d, 1
lea rdx, str.SkipInFocusCheck
mov rcx, r14
call fcn.140016b10
mov ebx, eax
test eax, eax
jns 0x140017082
mov edx, 0x1f1
jmp 0x140017147
cmp byte [0x140034f70], r15b
jne 0x1400170aa
xor r8d, r8d
lea rdx, [0x140034538]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlGetDeviceFamilyInfoEnum]
nop dword [rax + rax]
mov byte [0x140034f70], 1
cmp dword [0x140034538], 0xa
jne 0x14001715c
mov rcx, qword [rbp - 8]
lea rdx, str.UseHardwareDisplay
mov r8d, 1
call fcn.140016b10
mov ebx, eax
test eax, eax
jns 0x1400170da
mov edx, 0x1f7
jmp 0x140017147
mov rcx, qword [rbp - 8]
lea rdx, str.Transparent
mov r8d, 1
call fcn.140016b10
mov ebx, eax
test eax, eax
jns 0x14001715c
mov edx, 0x1f8
jmp 0x140017147
mov r8, qword [rdi + 0xe0]
lea rdx, str.AdapterHi
mov rcx, qword [rbp - 8]
shr r8, 0x20
call fcn.140016b10
mov ebx, eax
test eax, eax
jns 0x140017125
mov edx, 0x1ff
jmp 0x140017147
mov r8d, dword [rdi + 0xe0]
lea rdx, str.AdapterLo
mov rcx, qword [rbp - 8]
call fcn.140016b10
mov ebx, eax
test eax, eax
jns 0x14001715c
mov edx, 0x200
mov r9d, eax
mov rcx, qword [rbp + 0x18]
lea r8, str.mrcommon_sdk_simulation_servicesperceptionsimulation_virtualdisplaymanager_virtualdisplay.cpp
call fcn.140003ee0
jmp 0x14001715f
mov ebx, r15d
lea rax, fcn.1400081c0
mov qword [rbp - 0x10], rax
cmp qword [rbp - 8], r15
je 0x14001717d
lea rcx, [rbp - 0x10]
call fcn.1400081c0
test al, al
je 0x14001719a
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.1400062e0
int3