Function at 0x10004f860
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2d8
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rax, qword [0x100082138]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov rbx, r8
mov qword [rsp + 0x60], r8
mov edi, edx
mov r13, rcx
mov qword [rsp + 0x80], rcx
lea rcx, [rsp + 0x30]
call fcn.10001fee0
nop
xor r12d, r12d
lea rcx, [rsp + 0x50]
call fcn.10001fee0
nop
lea rcx, [rsp + 0x48]
call fcn.10001fee0
nop
xor r15d, r15d
xor r14d, r14d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x40], r14
mov rax, qword [r13]
cmp dword [rax - 0x10], r14d
je 0x10004fdb2
mov rcx, r13
call fcn.100032ac0
test al, al
je 0x10004fdb2
test rbx, rbx
jne 0x10004f926
lea rcx, [rsp + 0x48]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x50]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x30]
call fcn.10001fba0
lea eax, [rbx + 0x57]
jmp 0x10004fdd7
mov dword [rbx], r14d
call fcn.100033a80
mov ebp, 1
lea esi, [rbp + 1]
cmp eax, esi
je 0x10004f948
cmp eax, 3
je 0x10004f948
cmp eax, 4
je 0x10004f948
mov ebx, esi
jmp 0x10004f94a
mov ebx, ebp
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.10004e3a0
test eax, eax
jne 0x10004f974
mov r8, qword [r13]
lea rdx, [0x10000f810]
mov ecx, esi
call fcn.10003c3c0
xor edi, edi
jmp 0x10004fd8e
cmp ebx, ebp
jne 0x10004f9db
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.10001ff10
nop
mov rcx, rax
call fcn.10004e554
test eax, eax
je 0x10004f9b6
mov r8, qword [rsp + 0x30]
lea rdx, [0x10000f868]
mov ecx, ebp
call fcn.10003c3c0
jmp 0x10004fa75
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov r9, qword [rsp + 0x30]
lea r8, [0x10000f8a0]
mov edx, eax
mov ecx, 3
call fcn.10003c494
jmp 0x10004fd8e
cmp ebx, esi
jne 0x10004fa75
lea rcx, [0x10000f7d8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x10004fa0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10004fd7f
lea rdx, [0x10000f8d0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x10004fa31
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10004fd7f
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1000531ec
mov edi, eax
test eax, eax
jne 0x10004fa58
mov r8, qword [rsp + 0x30]
lea rdx, [0x10000f8e0]
mov ecx, ebp
call fcn.10003c3c0
jmp 0x10004fa75
mov r9, qword [rsp + 0x30]
lea r8, [0x10000f920]
mov edx, eax
mov ecx, 3
call fcn.10003c494
jmp 0x10004fd7f
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1000325f8
test al, al
jne 0x10004fa97
mov edi, 0x57
jmp 0x10004fd7f
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x10004fac0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10004fd7f
xor edi, edi
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x90], 0x20
movsxd rax, ebx
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x90]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x10004fd2e
mov rbx, qword [rsp + 0x48]
mov esi, dword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov r14, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x40]
jmp 0x10004fb13
mov r12d, dword [rsp + 0x60]
add r12d, 1
mov dword [rsp + 0x60], r12d
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 2
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0x90]
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x10004fcf1
mov dword [rsp + 0x68], 0x208
mov dword [rsp + 0x6c], 1
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
xor r8d, r8d
lea rdx, [0x10000f958]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10004fce1
mov dword [rsp + 0x28], 0xffffffff
mov qword [rsp + 0x20], rbx
lea r9d, [rax - 1]
lea r8, [rsp + 0xb0]
lea edx, [rax + 1]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10004fce1
mov dword [rsp + 0x38], 0
cmp r14, 1
jne 0x10004fbef
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x90]
mov rcx, rbp
call fcn.100051c84
mov esi, eax
jmp 0x10004fc5a
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x90]
mov rdx, rbp
xor ecx, ecx
call rdi
test eax, eax
jne 0x10004fc5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0xe0000203
jne 0x10004fc5a
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
xor r9d, r9d
lea r8, [rsp + 0x90]
mov rdx, rbp
xor ecx, ecx
call rdi
test eax, eax
jne 0x10004fc58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10004fc5a
xor esi, esi
test esi, esi
jne 0x10004fc64
add r15d, 1
jmp 0x10004fcd2
cmp qword [0x100083728], 0
jne 0x10004fc78
cmp qword [0x100083740], 0
je 0x10004fcd2
lea rcx, [rsp + 0x40]
call fcn.10001fee0
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x90]
mov rcx, rbp
call fcn.1000524f0
test eax, eax
jne 0x10004fcb4
mov r9, qword [rsp + 0x40]
lea r8, [0x10000f970]
mov edx, esi
lea ecx, [rax + 3]
call fcn.10003c494
jmp 0x10004fcc8
lea r8, [0x10000f9c8]
mov edx, esi
mov ecx, 3
call fcn.10003c494
nop
lea rcx, [rsp + 0x40]
call fcn.10001fba0
cmp dword [rsp + 0x38], 0
je 0x10004fce1
mov dword [r13], 1
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12, 0xffffffffffffffff
lea r8, [rsp + 0x90]
mov edx, dword [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x10004fb0e
cmp r12, 0xffffffffffffffff
mov edi, dword [rsp + 0x58]
mov r13, qword [rsp + 0x80]
mov r14, qword [rsp + 0x70]
je 0x10004fd2e
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
cmp qword [0x100083728], 0
jne 0x10004fd4b
cmp qword [0x100083740], 0
je 0x10004fd7f
test r15d, r15d
je 0x10004fd6a
mov r9, qword [r13]
mov r8d, r15d
lea rdx, [0x10000fa00]
mov ecx, 1
call fcn.10003c3c0
jmp 0x10004fd7f
mov r8, qword [r13]
lea rdx, [0x10000fa60]
mov ecx, 1
call fcn.10003c3c0
test r14, r14
je 0x10004fd8e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rcx, [rsp + 0x48]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x50]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x30]
call fcn.10001fba0
mov eax, edi
jmp 0x10004fdd7
lea rcx, [rsp + 0x48]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x50]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x30]
call fcn.10001fba0
mov eax, 0x57
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.10006b1f0
add rsp, 0x2d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret