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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c0
mov eax, dword [0x4e7018]
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 - 0x3a4], eax
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.0040f160
push 0x20a
lea eax, [ebp - 0x3a0]
push 0
push eax
call fcn.0040f160
add esp, 0x18
test edi, edi
jne 0x42e9ef
push str.FindAdapterGUID:_invalid_parameter
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push 0x32
lea eax, [ebp - 0xcc]
push eax
push 0x4b6574
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x42ea28
push str.cant_convert_guid_to_string
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
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.004159a0
add esp, 0x10
lea eax, [ebp - 0x3bc]
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 0x42eac0
cmp eax, 2
jne 0x42ea97
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.004439a0
add esp, 0x10
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
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.004439a0
add esp, 0x10
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
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.004439a0
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0040f160
add esp, 0x18
mov dword [ebp - 0x3a8], 0x32
xor esi, esi
lea eax, [ebp - 0x3b4]
mov dword [ebp - 0x3c0], esi
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x3a8]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x3bc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x42ecac
push 0xc8
lea eax, [ebp - 0x194]
inc esi
push 0
push eax
call fcn.0040f160
add esp, 0xc
mov dword [ebp - 0x3ac], 0xc8
lea eax, [ebp - 0x3b8]
push eax
push 1
push 0
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x3bc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x3a8], 0x32
test eax, eax
je 0x42eb9b
cmp eax, 2
jne 0x42eb85
push eax
lea eax, [ebp - 0x68]
push eax
push str.FindAdapterGUID:_net_class_instance_key_not_found_in_registry__S:_0x_08x
push 2
call fcn.004439a0
add esp, 0x10
jmp 0x42ebe2
push eax
lea eax, [ebp - 0x68]
push eax
push str.FindAdapterGUID:_couldnt_open_instance__S_for_enumeration:_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x42ebe2
lea eax, [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x194]
push eax
push 0
push 0
push str.NetCfgInstanceID
push dword [ebp - 0x3b8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42ebd6
lea eax, [ebp - 0x194]
push edi
push eax
call fcn.0040ca9a
add esp, 8
test eax, eax
je 0x42ec14
push dword [ebp - 0x3b8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x3b4]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x3a8]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x3bc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x42eb20
jmp 0x42ecac
mov esi, dword [ebp - 0x3a4]
mov dword [ebp - 0x3c0], 1
test esi, esi
je 0x42ec91
test ebx, ebx
je 0x42ec91
mov eax, dword [ebx]
test eax, eax
je 0x42ec91
add eax, eax
mov dword [ebp - 0x3a4], eax
lea eax, [ebp - 0x3a4]
push eax
push esi
push 0
push 0
push str.DriverDesc
push dword [ebp - 0x3b8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x42ec78
push eax
push str.FindAdapterGUID:_couldnt_query_device_description:_0x_08x
push 1
call fcn.004439a0
add esp, 0xc
xor eax, eax
mov word [esi], ax
mov dword [ebx], 1
jmp 0x42ec91
push str.FindAdapterGUID:_successfully_queried_device_description
push 0x10
call fcn.004439a0
mov eax, dword [ebp - 0x3a4]
add esp, 8
shr eax, 1
mov dword [ebx], eax
push dword [ebp - 0x3b8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.FindAdapterGUID:_found_card
push 0x20
call fcn.004439a0
add esp, 8
push dword [ebp - 0x3bc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3c0], 0
pop esi
jne 0x42ece3
push str.FindAdapterGUID:_didnt_find_card
push 0x20
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.FindAdapterGUID:_found_guid
push 0x10
call fcn.004439a0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 1
pop edi
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret