Function at 0x429650
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x818
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x820]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x429694
xor eax, eax
jmp 0x4299d7
mov dword [rsp + 0x4a0], 0
mov dword [rsp + 0x30], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4b0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Service
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4296fe
lea rdx, [rsp + 0x4b0]
mov rcx, qword [rsp + 0x820]
call fcn.004299f0
test eax, eax
je 0x4296fe
mov dword [rsp + 0x4a0], 1
mov dword [rsp + 0x4a4], 0x104
mov r8, qword [rsp + 0x820]
lea rdx, str._sDevice_Parameters
lea rcx, [rsp + 0x380]
call qword [sym.imp.msvcrt.dll_sprintf]
lea rax, [rsp + 0x5c0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x380]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x429798
lea rax, [rsp + 0x4a4]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x270]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.VideoID
mov rcx, qword [rsp + 0x5c0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x5c0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x44], 0x104
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x490], 0
lea rax, [rsp + 0x498]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HardwareDeviceMapVideo
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4299c5
cmp dword [rsp + 0x490], 0
jne 0x429882
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x80c], eax
mov r9d, dword [rsp + 0x80c]
lea r8, str.DeviceVideo
lea rdx, str._s_d
lea rcx, [rsp + 0x160]
call qword [sym.imp.msvcrt.dll_sprintf]
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x160]
mov rcx, qword [rsp + 0x498]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x490], eax
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_strstr]
test rax, rax
je 0x42987d
jmp 0x429882
jmp 0x4297e5
cmp dword [rsp + 0x490], 0
jne 0x4299b7
mov dword [rsp + 0x808], 4
lea r8, str.RegistryMachine_
lea rdx, [0x0043b41c]
lea rcx, [rsp + 0x6f0]
call qword [sym.imp.msvcrt.dll_sprintf]
lea rcx, [rsp + 0x6f0]
call qword [sym.imp.msvcrt.dll__strlwr]
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__strlwr]
lea rdx, [rsp + 0x6f0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_strstr]
mov qword [rsp + 0x800], rax
cmp qword [rsp + 0x800], 0
je 0x42991a
mov rax, qword [rsp + 0x800]
add rax, 0x12
mov r8, rax
lea rdx, [0x0043b420]
lea rcx, [rsp + 0x5d0]
call qword [sym.imp.msvcrt.dll_sprintf]
lea rax, [rsp + 0x6e0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x5d0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4299b7
mov dword [rsp + 0x808], 4
mov dword [rsp + 0x6e8], 0
lea rax, [rsp + 0x808]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6e8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Acceleration.Level
mov rcx, qword [rsp + 0x6e0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4299a9
mov rax, qword [rsp + 0x828]
mov ecx, dword [rsp + 0x6e8]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x6e0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x498]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x4a0]
add rsp, 0x818
ret