Function at 0x46c3fa
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x13c
mov eax, 0x52602a
call fcn.004f4139
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.0040318b
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00403fad
push dword [ebp - 0xac]
lea eax, [ebp - 0x98]
push eax
call fcn.004053b1
mov edi, dword [ebp - 0x9c]
lea eax, [edi + 0x58]
mov esi, 0x53bb14
push esi
push eax
mov dword [ebp - 0x9c], eax
call fcn.00403fad
lea eax, [edi + 0x3c]
push esi
push eax
mov dword [ebp - 0xac], eax
call fcn.00403fad
cmp dword [ebp - 0x84], 8
mov eax, dword [ebp - 0x98]
jae 0x46c49a
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 0x46c55b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
call fcn.004036d7
mov esi, eax
mov byte [ebp - 4], 1
push str._GetDriverProperty__Open_key:
push esi
call fcn.00406897
push esi
lea ecx, [ebp - 0x98]
call fcn.004080d0
add esp, 0xc
push str._failed_ec
push esi
call fcn.00406897
pop ecx
pop ecx
push edi
push esi
call fcn.004053dc
lea eax, [ebp - 0x7c]
push eax
mov eax, esi
call fcn.00403741
mov byte [ebp - 4], 2
cmp dword [ebp - 0x68], 8
mov eax, dword [ebp - 0x7c]
jae 0x46c51e
lea eax, [ebp - 0x7c]
push eax
push 2
pop ecx
call fcn.004284f3
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
call fcn.004014ad
mov byte [ebp - 4], bl
lea eax, [ebp - 0x148]
call fcn.004025ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.004014ad
mov al, bl
call fcn.004f41bc
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 0x46c5e2
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.0040a839
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.00403fad
mov byte [ebp - 4], bl
lea esi, [ebp - 0x70]
call fcn.00460ab5
jmp 0x46c5f8
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], ebx
jb 0x46c5f3
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0xa0], ebx
je 0x46c694
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x148]
push eax
call fcn.004036d7
mov esi, eax
mov byte [ebp - 4], 4
push str.Keyname:
push esi
call fcn.00406897
push esi
lea ecx, [ebp - 0x98]
call fcn.004080d0
add esp, 0xc
push str._Get_DriverVersion_failed_ec
push esi
call fcn.00406897
pop ecx
pop ecx
push dword [ebp - 0x9c]
push esi
call fcn.004053dc
lea eax, [ebp - 0x7c]
push eax
mov eax, esi
call fcn.00403741
mov byte [ebp - 4], 5
cmp dword [ebp - 0x68], 8
mov eax, dword [ebp - 0x7c]
jae 0x46c670
lea eax, [ebp - 0x7c]
push eax
push 2
pop ecx
call fcn.004284f3
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x7c]
call fcn.004014ad
mov byte [ebp - 4], bl
lea eax, [ebp - 0x148]
call fcn.004025ae
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 0x46c715
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.0040a839
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.00403fad
mov byte [ebp - 4], bl
lea esi, [ebp - 0x70]
call fcn.00460ab5
jmp 0x46c72b
mov eax, dword [ebp - 0xac]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], ebx
jb 0x46c726
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0xa0], ebx
je 0x46c741
push str._GetDriverProperty__Get_ProviderName_failed_n
push 2
pop ecx
call fcn.004284f3
pop ecx
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
jmp 0x46c542