Function at 0x4becac
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x13c
mov eax, 0x5839c6
call fcn.0054f23c
mov eax, dword [ebp + 8]
push 0x14
pop ecx
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0xc]
mov esi, str.SYSTEMCurrentControlSetControlClass_
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x9c], eax
call fcn.00401abe
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00404c23
push dword [ebp - 0xac]
lea eax, [ebp - 0x98]
push eax
call fcn.0040bb42
mov edi, dword [ebp - 0x9c]
lea eax, [edi + 0x58]
mov esi, str.Unknown
push esi
push eax
mov dword [ebp - 0x9c], eax
call fcn.00404c23
lea eax, [edi + 0x3c]
push esi
push eax
mov dword [ebp - 0xac], eax
call fcn.00404c23
cmp dword [ebp - 0x84], 8
mov eax, dword [ebp - 0x98]
jae 0x4bed4c
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0xa8]
push ecx
push 0x20019
push ebx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x4bee0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
call fcn.004044d0
mov esi, eax
mov byte [ebp - 4], 1
push str._GetDriverProperty__Open_key:
push esi
call fcn.0040511f
push esi
lea ecx, [ebp - 0x98]
call fcn.0040c10b
add esp, 0xc
push str._failed_ec
push esi
call fcn.0040511f
pop ecx
pop ecx
push edi
push esi
call fcn.00409937
lea eax, [ebp - 0x7c]
push eax
mov eax, esi
call fcn.0040453a
mov byte [ebp - 4], 2
cmp dword [ebp - 0x68], 8
mov eax, dword [ebp - 0x7c]
jae 0x4bedd0
lea eax, [ebp - 0x7c]
push eax
push 2
pop ecx
call fcn.00463ba1
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
call fcn.00401ad1
mov byte [ebp - 4], bl
lea eax, [ebp - 0x148]
call fcn.00403cb2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.00401ad1
mov al, bl
call fcn.0054f2bf
ret 8
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xa4]
push eax
push ebx
push ebx
push ebx
mov esi, str.DriverVersion
push esi
push dword [ebp - 0xa8]
mov dword [ebp - 0xa4], ebx
call edi
mov dword [ebp - 0xa0], eax
cmp eax, ebx
jne 0x4bee94
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0xa4]
shr eax, 1
inc eax
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0xa0], ebx
call fcn.00452dfe
mov byte [ebp - 4], 3
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x70]
push ebx
push ebx
push esi
push dword [ebp - 0xa8]
call edi
push dword [ebp - 0x70]
mov dword [ebp - 0xa0], eax
push dword [ebp - 0x9c]
call fcn.00404c23
mov byte [ebp - 4], bl
lea esi, [ebp - 0x70]
call fcn.004265f2
jmp 0x4beeaa
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], ebx
jb 0x4beea5
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0xa0], ebx
je 0x4bef46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x148]
push eax
call fcn.004044d0
mov esi, eax
mov byte [ebp - 4], 4
push str.Keyname:
push esi
call fcn.0040511f
push esi
lea ecx, [ebp - 0x98]
call fcn.0040c10b
add esp, 0xc
push str._Get_DriverVersion_failed_ec
push esi
call fcn.0040511f
pop ecx
pop ecx
push dword [ebp - 0x9c]
push esi
call fcn.00409937
lea eax, [ebp - 0x7c]
push eax
mov eax, esi
call fcn.0040453a
mov byte [ebp - 4], 5
cmp dword [ebp - 0x68], 8
mov eax, dword [ebp - 0x7c]
jae 0x4bef22
lea eax, [ebp - 0x7c]
push eax
push 2
pop ecx
call fcn.00463ba1
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x7c]
call fcn.00401ad1
mov byte [ebp - 4], bl
lea eax, [ebp - 0x148]
call fcn.00403cb2
lea eax, [ebp - 0xa4]
push eax
push ebx
push ebx
push ebx
mov esi, str.ProviderName
push esi
push dword [ebp - 0xa8]
mov dword [ebp - 0xa4], ebx
call edi
mov dword [ebp - 0xa0], eax
cmp eax, ebx
jne 0x4befc7
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0xa4]
shr eax, 1
inc eax
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x9c], ebx
call fcn.00452dfe
mov byte [ebp - 4], 6
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x70]
push ebx
push ebx
push esi
push dword [ebp - 0xa8]
call edi
push dword [ebp - 0x70]
mov dword [ebp - 0xa0], eax
push dword [ebp - 0xac]
call fcn.00404c23
mov byte [ebp - 4], bl
lea esi, [ebp - 0x70]
call fcn.004265f2
jmp 0x4befdd
mov eax, dword [ebp - 0xac]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], ebx
jb 0x4befd8
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0xa0], ebx
je 0x4beff3
push str._GetDriverProperty__Get_ProviderName_failed_n
push 2
pop ecx
call fcn.00463ba1
pop ecx
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
jmp 0x4bedf4