Function at 0x140002550
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x1070
call fcn.14000f4c0
sub rsp, rax
mov rax, qword [0x140015008]
xor rax, rsp
mov qword [rsp + 0x1060], rax
xor ebx, ebx
lea rax, [rsp + 0x860]
test rax, rax
mov dword [rsp + 0x54], ebx
je 0x1400025f2
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREAlpsApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400025f2
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea rdx, str.ProductVer
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x860]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x860]
lea rdx, str.InitAlpsRegistry_:_____sz_product_version___s_n
lea rcx, [rsp + 0x60]
call fcn.140003c40
lea r11, [rsp + 0x860]
test r11, r11
jne 0x14000261d
or edi, 0xffffffff
jmp 0x140002653
mov eax, ebx
lea rcx, [rsp + 0x860]
add eax, 1
cmp word [rcx], 0x2e
je 0x140002641
add rcx, 2
cmp eax, 0x400
jb 0x140002627
mov edi, dword [rsp + 0x38]
jmp 0x140002653
cmp word [rsp + rax*2 + 0x860], 0x31
mov edi, ebx
setne dil
add edi, 1
lea rdx, str.InitAlpsRegistry_:______deivce_interface___d_n
lea rcx, [rsp + 0x60]
mov r8d, edi
call fcn.140003c40
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREAlpsApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000272c
lea rax, [rsp + 0x48]
lea rdx, str.SOFTWAREAlpsApoint
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002705
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, str.ApHidServiceSupport
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREAlpsApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
lea rdx, str.ApHidServiceSupport
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14000276c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r11d, ebx
jmp 0x140002777
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r11d, dword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREAlpsApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [0x1400179b0], r11d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140002843
lea rax, [rsp + 0x48]
lea rdx, str.SOFTWAREAlpsApoint
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000281c
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
lea rdx, str.ApHidServiceLaunchDelayTime
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREAlpsApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
lea rdx, str.ApHidServiceLaunchDelayTime
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140002883
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r11d, ebx
jmp 0x14000288e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r11d, dword [rsp + 0x40]
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREAlpsApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [0x1400179b4], r11d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov esi, 1
je 0x14000295d
lea rax, [rsp + 0x48]
lea rdx, str.SOFTWAREAlpsApoint
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002936
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
lea r9d, [rsi + 3]
lea rdx, str.ApHidServiceLogonSpec
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREAlpsApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
lea rdx, str.ApHidServiceLogonSpec
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14000299d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r11d, esi
jmp 0x1400029a8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r11d, dword [rsp + 0x40]
cmp r11d, 2
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREAlpsApoint
cmova r11d, esi
mov r9d, 0x20019
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
mov dword [0x1400164bc], r11d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140002a7c
lea rax, [rsp + 0x48]
lea rdx, str.SOFTWAREAlpsApoint
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002a55
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
lea rdx, str.ApHidServiceTPDisableMethod
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREAlpsApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
lea rdx, str.ApHidServiceTPDisableMethod
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140002abc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r11d, ebx
jmp 0x140002ac7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r11d, dword [rsp + 0x40]
mov r8d, dword [0x1400179b0]
cmp r11d, 2
lea rdx, str.InitAlpsRegistry_:______gdwHidServiceSupport___0x_x
cmovae r11d, ebx
lea rcx, [rsp + 0x60]
mov dword [0x140017984], r11d
call fcn.140003c40
mov rcx, qword [0x1400179a0]
lea rdx, str.IOCTL_GetPID
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp edi, 2
mov qword [0x1400179f0], rax
jne 0x140002b46
test rax, rax
je 0x140002b46
lea rcx, [rsp + 0x54]
call rax
mov r8d, dword [rsp + 0x54]
test r8d, r8d
jne 0x140002b4b
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x54]
call qword [0x1400179f0]
mov r8d, dword [rsp + 0x54]
test r8d, r8d
je 0x140002b24
jmp 0x140002b4b
mov r8d, dword [rsp + 0x54]
lea rdx, str.InitAlpsRegistry_:______productID___0x_x
lea rcx, [rsp + 0x60]
call fcn.140003c40
mov r11d, dword [rsp + 0x54]
cmp r11d, 0x120c
jne 0x140002fd3
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareAlpsPID_120CApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140002c33
lea rax, [rsp + 0x48]
lea rdx, str.SoftwareAlpsPID_120CApoint
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002c0c
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
lea rdx, str.AlpsDeviceType
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareAlpsPID_120CApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
lea rdx, str.AlpsDeviceType
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140002c73
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r11d, ebx
jmp 0x140002c7e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r11d, dword [rsp + 0x40]
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareAlpsPID_120CApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [0x1400179bc], r11d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140002d4a
lea rax, [rsp + 0x48]
lea rdx, str.SoftwareAlpsPID_120CApoint
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002d23
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
lea rdx, str.AlpsHidDeviceVID
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareAlpsPID_120CApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
lea rdx, str.AlpsHidDeviceVID
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140002d8a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r11d, ebx
jmp 0x140002d95
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r11d, dword [rsp + 0x40]
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareAlpsPID_120CApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [0x140017844], r11d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140002e61
lea rax, [rsp + 0x48]
lea rdx, str.SoftwareAlpsPID_120CApoint
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002e3a
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
lea rdx, str.AlpsHidDevicePID
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareAlpsPID_120CApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
lea rdx, str.AlpsHidDevicePID
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140002ea1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r11d, ebx
jmp 0x140002eac
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r11d, dword [rsp + 0x40]
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareAlpsPID_120CApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [0x140017840], r11d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140002f78
lea rax, [rsp + 0x48]
lea rdx, str.SoftwareAlpsPID_120CApoint
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002f51
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
lea rdx, str.RestartToPs2Rel
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareAlpsPID_120CApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
lea rdx, str.RestartToPs2Rel
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140002fbe
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x1400179c0], ebx
jmp 0x14000306c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [rsp + 0x40]
mov dword [0x1400179c0], ebx
jmp 0x14000306c
cmp r11d, 0x120d
jne 0x14000306c
lea r8, str.AlpsDeviceType
lea rdx, str.SoftwareAlpsPID_120DApoint
xor r9d, r9d
mov rcx, 0xffffffff80000002
call fcn.140003c70
lea r8, str.AlpsHidDeviceVID
lea rdx, str.SoftwareAlpsPID_120DApoint
xor r9d, r9d
mov rcx, 0xffffffff80000002
mov dword [0x1400179bc], eax
call fcn.140003c70
lea r8, str.AlpsHidDevicePID
lea rdx, str.SoftwareAlpsPID_120DApoint
xor r9d, r9d
mov rcx, 0xffffffff80000002
mov dword [0x140017844], eax
call fcn.140003c70
lea r8, str.RestartToPs2Rel
lea rdx, str.SoftwareAlpsPID_120DApoint
xor r9d, r9d
mov rcx, 0xffffffff80000002
mov dword [0x140017840], eax
call fcn.140003c70
mov dword [0x1400179c0], eax
mov r8d, dword [0x1400179bc]
lea rdx, str.InitAlpsRegistry_:______gdwDeviceType___0x_x
lea rcx, [rsp + 0x60]
call fcn.140003c40
mov r8d, dword [0x140017844]
lea rdx, str.InitAlpsRegistry_:______gdwDeviceVid___0x_x
lea rcx, [rsp + 0x60]
call fcn.140003c40
mov r8d, dword [0x140017840]
lea rdx, str.InitAlpsRegistry_:______gdwDevicePid___0x_x
lea rcx, [rsp + 0x60]
call fcn.140003c40
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.140003f10
lea r11, [rsp + 0x1070]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret