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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3bc
mov eax, dword [0x4ed018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x64
mov dword [ebp - 0x3ac], eax
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.00411960
push 0x20a
lea eax, [ebp - 0x3a0]
push 0
push eax
call fcn.00411960
add esp, 0x18
test edi, edi
jne 0x42784f
push str.FindAdapterGUID:_invalid_parameter
push 1
call fcn.00446b80
add esp, 8
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push 0x32
lea eax, [ebp - 0xcc]
push eax
push 0x4bdf2c
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x427888
push str.cant_convert_guid_to_string
push 1
call fcn.00446b80
add esp, 8
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xcc]
push eax
push str.SYSTEMCurrentControlSetControlClass_s
lea eax, [ebp - 0x3a0]
push 0x105
push eax
call fcn.00419510
add esp, 0x10
lea eax, [ebp - 0x3a4]
push eax
push 9
push 0
lea eax, [ebp - 0x3a0]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x427920
cmp eax, 2
jne 0x4278f7
push eax
lea eax, [ebp - 0x3a0]
push eax
push str.FindAdapterGUID:_net_class_key_not_found_in_registry__S:_0x_08x
push 2
call fcn.00446b80
add esp, 0x10
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push eax
lea eax, [ebp - 0x3a0]
push eax
push str.FindAdapterGUID:_couldnt_open__S_for_enumeration:_0x_08x
push 1
call fcn.00446b80
add esp, 0x10
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x3a0]
push eax
push str.FindAdapterGUID:_opened__S_for_enumeration
push 0x10
call fcn.00446b80
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00411960
add esp, 0x18
mov dword [ebp - 0x3b0], 0x32
xor esi, esi
lea eax, [ebp - 0x3bc]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x3a4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x427a76
nop word [eax + eax]
push 0xc8
lea eax, [ebp - 0x194]
inc esi
push 0
push eax
call fcn.00411960
add esp, 0xc
mov dword [ebp - 0x3b4], 0xc8
lea eax, [ebp - 0x3a8]
push eax
push 1
push 0
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x3a4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x3b0], 0x32
test eax, eax
je 0x427a02
cmp eax, 2
jne 0x4279e7
push eax
mov ecx, eax
mov edx, str.FindAdapterGUID:_net_class_instance_key_not_found_in_registry__S:_0x_08x
lea eax, [ebp - 0x68]
push eax
push edx
push ecx
call fcn.00446b80
add esp, 0x10
jmp 0x427a49
push eax
lea eax, [ebp - 0x68]
mov edx, str.FindAdapterGUID:_couldnt_open_instance__S_for_enumeration:_0x_08x
push eax
mov ecx, 1
push edx
push ecx
call fcn.00446b80
add esp, 0x10
jmp 0x427a49
lea eax, [ebp - 0x3b4]
push eax
lea eax, [ebp - 0x194]
push eax
push 0
push 0
push str.NetCfgInstanceID
push dword [ebp - 0x3a8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x427a3d
lea eax, [ebp - 0x194]
push edi
push eax
call fcn.0040e1c8
add esp, 8
test eax, eax
je 0x427aa4
push dword [ebp - 0x3a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x3bc]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x3a4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x427980
push dword [ebp - 0x3a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.FindAdapterGUID:_didnt_find_card
push 0x20
call fcn.00446b80
add esp, 8
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x3ac]
test esi, esi
je 0x427b17
test ebx, ebx
je 0x427b17
mov eax, dword [ebx]
test eax, eax
je 0x427b17
add eax, eax
mov dword [ebp - 0x3ac], eax
lea eax, [ebp - 0x3ac]
push eax
push esi
push 0
push 0
push str.DriverDesc
push dword [ebp - 0x3a8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x427afe
push eax
push str.FindAdapterGUID:_couldnt_query_device_description:_0x_08x
push 1
call fcn.00446b80
add esp, 0xc
xor eax, eax
mov word [esi], ax
mov dword [ebx], 1
jmp 0x427b17
push str.FindAdapterGUID:_successfully_queried_device_description
push 0x10
call fcn.00446b80
mov eax, dword [ebp - 0x3ac]
add esp, 8
shr eax, 1
mov dword [ebx], eax
push dword [ebp - 0x3a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.FindAdapterGUID:_found_card
push 0x20
call fcn.00446b80
add esp, 8
push dword [ebp - 0x3a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.FindAdapterGUID:_found_guid
push 0x10
call fcn.00446b80
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 1
pop esi
pop edi
pop ebx
call fcn.00401bd5
mov esp, ebp
pop ebp
ret