Function at 0xa5d180
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0xad0d4e
mov eax, dword fs:[0]
push eax
sub esp, 0x8ec
mov eax, dword [0xaf97a0]
xor eax, esp
mov dword [esp + 0x8e8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0xaf97a0]
xor eax, esp
push eax
lea eax, [esp + 0x900]
mov dword fs:[0], eax
mov eax, dword [esp + 0x910]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x914]
add eax, 4
mov esi, eax
mov edi, ecx
mov dword [esp + 0x40], eax
call fcn.00a66bb0
lea esi, [edi + 4]
mov dword [esp + 0x34], esi
call fcn.00a66bb0
lea ecx, [esp + 0xec]
push ecx
mov ecx, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
mov dword [esp + 0x2c], 0x80000002
call fcn.00a63660
xor ebp, ebp
mov dword [esp + 0x908], ebp
mov eax, dword [0xafcc40]
mov esi, vtable.LString.0
mov edi, 7
xor edx, edx
mov dword [esp + 0xcc], esi
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebp
mov word [esp + 0xd4], dx
inc eax
xor ecx, ecx
inc eax
mov dword [esp + 0x30], 0x100
mov dword [esp + 0x10c], esi
mov dword [esp + 0x128], edi
mov dword [esp + 0x124], ebp
mov word [esp + 0x114], cx
mov dword [0xafcc40], eax
mov byte [esp + 0x908], 2
mov eax, dword [esp + 0xf4]
mov ebx, 8
mov dword [esp + 0x1c], 0x3e8
cmp dword [esp + 0x108], ebx
jae 0xa5d294
lea eax, [esp + 0xf4]
lea edx, [esp + 0x28]
push edx
push 0x20019
push ebp
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0xa5d766
mov dword [esp + 0x2c], ebp
lea eax, [esp + 0xc4]
push eax
mov eax, dword [esp + 0x30]
push ebp
push ebp
push ebp
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x528]
push edx
push eax
push ecx
mov dword [esp + 0x50], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [esp + 0x3c], eax
cmp eax, ebp
jne 0xa5d55d
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x518]
call fcn.00a63660
lea eax, [esp + 0x84]
push eax
mov ecx, 0xaede14
mov byte [esp + 0x90c], 3
call fcn.00a63520
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0xf0]
lea edi, [esp + 0x68]
mov byte [esp + 0x90c], 4
call fcn.00a66a60
add esp, 4
lea edx, [esp + 0x44]
push edx
mov ecx, eax
lea edi, [esp + 0xa8]
mov byte [esp + 0x90c], 5
call fcn.00a66a60
add esp, 4
push 0xffffffffffffffff
push ebp
add eax, 4
push eax
lea ecx, [esp + 0xdc]
mov byte [esp + 0x914], 6
call fcn.00a11910
dec dword [0xafcc40]
mov dword [esp + 0xa4], esi
cmp dword [esp + 0xc0], ebx
jb 0xa5d3a0
mov eax, dword [esp + 0xac]
push eax
call fcn.00a7ac28
add esp, 4
dec dword [0xafcc40]
xor ecx, ecx
mov edi, 7
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], ebp
mov word [esp + 0xac], cx
mov dword [esp + 0x64], esi
cmp dword [esp + 0x80], ebx
jb 0xa5d3dd
mov edx, dword [esp + 0x6c]
push edx
call fcn.00a7ac28
add esp, 4
dec dword [0xafcc40]
xor eax, eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebp
mov word [esp + 0x6c], ax
mov dword [esp + 0x84], esi
cmp dword [esp + 0xa0], ebx
jb 0xa5d415
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.00a7ac28
add esp, 4
mov byte [esp + 0x908], 2
dec dword [0xafcc40]
xor edx, edx
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebp
mov word [esp + 0x8c], dx
mov dword [esp + 0x44], esi
cmp dword [esp + 0x60], ebx
jb 0xa5d452
mov eax, dword [esp + 0x4c]
push eax
call fcn.00a7ac28
add esp, 4
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x20], 0x80000002
cmp dword [esp + 0xe8], ebx
jae 0xa5d471
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push ebp
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0xa5d55d
push 0x3e8
lea edx, [esp + 0x130]
push ebp
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], 0x3e8
call fcn.00a827a0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x130]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebp
push str.NetCfgInstanceId
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x130]
call fcn.00a63660
mov eax, dword [esp + 0x38]
mov byte [esp + 0x908], 7
mov edi, dword [eax + 0x18]
cmp dword [eax + 0x1c], ebx
jb 0xa5d503
mov eax, dword [eax + 8]
jmp 0xa5d506
add eax, 8
push eax
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x6c]
call fcn.00a1bde0
test eax, eax
mov byte [esp + 0x908], 2
sete byte [esp + 0x1b]
mov edi, 1
sub dword [0xafcc40], edi
mov dword [esp + 0x64], esi
cmp dword [esp + 0x80], ebx
jb 0xa5d54b
mov edx, dword [esp + 0x6c]
push edx
call fcn.00a7ac28
add esp, 4
cmp byte [esp + 0x1b], 0
jne 0xa5d5bf
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 1
add dword [esp + 0x2c], edi
cmp dword [esp + 0x3c], ebp
je 0xa5d2b7
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0xafcc40]
sub eax, edi
sub eax, edi
mov dword [esp + 0xcc], esi
mov dword [0xafcc40], eax
cmp dword [esp + 0xe8], ebx
jb 0xa5d5a9
mov edx, dword [esp + 0xd4]
push edx
call fcn.00a7ac28
add esp, 4
sub dword [0xafcc40], edi
mov dword [esp + 0xe8], 7
jmp 0xa5d79f
push 0x3e8
lea ecx, [esp + 0x130]
push ebp
push ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], 0x3e8
call fcn.00a827a0
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebp
push str.DriverDesc
push edx
call edi
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x130]
call fcn.00a63660
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x914], bl
call fcn.00a11910
mov byte [esp + 0x908], 2
dec dword [0xafcc40]
mov dword [esp + 0x44], esi
cmp dword [esp + 0x60], ebx
jb 0xa5d654
mov edx, dword [esp + 0x4c]
push edx
call fcn.00a7ac28
add esp, 4
push 0x3e8
lea eax, [esp + 0x130]
push ebp
push eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], 0x3e8
call fcn.00a827a0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x130]
push edx
lea eax, [esp + 0x2c]
push eax
push ebp
push str.ProviderName
push ecx
call edi
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x130]
call fcn.00a63660
mov ecx, dword [esp + 0x34]
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x914], 9
call fcn.00a11910
dec dword [0xafcc40]
mov dword [esp + 0x44], esi
cmp dword [esp + 0x60], ebx
jb 0xa5d6e0
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00a7ac28
add esp, 4
mov edx, dword [esp + 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
mov eax, dword [esp + 0x28]
push eax
call edi
mov eax, dword [0xafcc40]
dec eax
dec eax
mov dword [esp + 0xcc], esi
mov dword [0xafcc40], eax
cmp dword [esp + 0xe8], ebx
jb 0xa5d720
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.00a7ac28
add esp, 4
dec dword [0xafcc40]
xor edx, edx
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], ebp
mov word [esp + 0xd4], dx
mov dword [esp + 0xec], esi
cmp dword [esp + 0x108], ebx
jb 0xa5d762
mov eax, dword [esp + 0xf4]
push eax
call fcn.00a7ac28
add esp, 4
mov al, 1
jmp 0xa5d7d2
mov eax, dword [0xafcc40]
dec eax
dec eax
mov dword [esp + 0xcc], esi
mov dword [0xafcc40], eax
cmp dword [esp + 0xe8], ebx
jb 0xa5d792
mov edx, dword [esp + 0xd4]
push edx
call fcn.00a7ac28
add esp, 4
dec dword [0xafcc40]
mov dword [esp + 0xe8], edi
xor eax, eax
mov dword [esp + 0xec], esi
mov word [esp + 0xd4], ax
mov dword [esp + 0xe4], ebp
cmp dword [esp + 0x108], ebx
jb 0xa5d7d0
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.00a7ac28
add esp, 4
xor al, al
mov ecx, dword [esp + 0x900]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8e8]
xor ecx, esp
call fcn.00a7a967
add esp, 0x8f8
ret