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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c8
mov eax, dword [0x4a39f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, edx
xor edx, edx
push 0x62
mov dword [ebp - 0x3b8], eax
push edx
lea eax, [ebp - 0xca]
push eax
mov dword [ebp - 0x3a4], esi
mov dword [ebp - 0x3c0], ecx
mov word [ebp - 0xcc], dx
call fcn.00405300
xor ecx, ecx
push 0x208
push ecx
lea edx, [ebp - 0x39e]
push edx
mov word [ebp - 0x3a0], cx
call fcn.00405300
add esp, 0x18
test esi, esi
jne 0x42f505
push str.FindAdapterGUID:_invalid_parameter
push 1
call fcn.004343f0
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
push 0x32
lea eax, [ebp - 0xcc]
push eax
push 0x478b08
call dword [0x4653b0]
test eax, eax
jne 0x42f53d
push str.cant_convert_guid_to_string
push 1
call fcn.004343f0
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [ebp - 0xcc]
push ecx
push str.SYSTEMCurrentControlSetControlClass_s
lea edx, [ebp - 0x3a0]
push 0x105
push edx
call fcn.00457d45
mov edi, dword [0x4650cc]
add esp, 0x10
lea eax, [ebp - 0x3a8]
push eax
push 9
push 0
lea ecx, [ebp - 0x3a0]
push ecx
push 0x80000002
call edi
test eax, eax
je 0x42f5d7
cmp eax, 2
jne 0x42f5ae
push eax
lea edx, [ebp - 0x3a0]
push edx
push str.FindAdapterGUID:_net_class_key_not_found_in_registry__S:_0x_08x
push eax
call fcn.004343f0
add esp, 0x10
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
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.004343f0
add esp, 0x10
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x3a0]
push ecx
push str.FindAdapterGUID:_opened__S_for_enumeration
push 0x10
call fcn.004343f0
xor edx, edx
push 0x62
push edx
lea eax, [ebp - 0x66]
push eax
mov word [ebp - 0x68], dx
call fcn.00405300
add esp, 0x18
xor esi, esi
lea ecx, [ebp - 0x3c8]
push ecx
mov ecx, dword [ebp - 0x3a8]
push esi
push esi
push esi
lea edx, [ebp - 0x3b0]
push edx
lea eax, [ebp - 0x68]
push eax
push esi
push ecx
mov dword [ebp - 0x3b0], 0x32
mov dword [ebp - 0x3b4], esi
call dword [0x465090]
test eax, eax
jne 0x42f7e2
lea esp, [esp]
xor edx, edx
push 0xc6
push edx
lea eax, [ebp - 0x192]
push eax
inc esi
mov word [ebp - 0x194], dx
call fcn.00405300
mov eax, dword [ebp - 0x3a8]
add esp, 0xc
lea ecx, [ebp - 0x3ac]
push ecx
push 1
push 0
lea edx, [ebp - 0x68]
push edx
push eax
mov dword [ebp - 0x3bc], 0xc8
call edi
mov dword [ebp - 0x3b0], 0x32
test eax, eax
je 0x42f6bf
cmp eax, 2
jne 0x42f6a9
push eax
lea ecx, [ebp - 0x68]
push ecx
push str.FindAdapterGUID:_net_class_instance_key_not_found_in_registry__S:_0x_08x
push eax
call fcn.004343f0
add esp, 0x10
jmp 0x42f70e
push eax
lea edx, [ebp - 0x68]
push edx
push str.FindAdapterGUID:_couldnt_open_instance__S_for_enumeration:_0x_08x
push 1
call fcn.004343f0
add esp, 0x10
jmp 0x42f70e
mov edx, dword [ebp - 0x3ac]
lea eax, [ebp - 0x3bc]
push eax
lea ecx, [ebp - 0x194]
push ecx
push 0
push 0
push str.NetCfgInstanceID
push edx
call dword [0x4650c4]
test eax, eax
jne 0x42f701
mov eax, dword [ebp - 0x3a4]
push eax
lea ecx, [ebp - 0x194]
push ecx
call fcn.00458117
add esp, 8
test eax, eax
je 0x42f741
mov edx, dword [ebp - 0x3ac]
push edx
call dword [0x4650d0]
lea eax, [ebp - 0x3c8]
push eax
mov eax, dword [ebp - 0x3a8]
push 0
push 0
push 0
lea ecx, [ebp - 0x3b0]
push ecx
lea edx, [ebp - 0x68]
push edx
push esi
push eax
call dword [0x465090]
test eax, eax
je 0x42f640
jmp 0x42f7e2
mov esi, dword [ebp - 0x3b8]
mov dword [ebp - 0x3b4], 1
test esi, esi
je 0x42f7c6
mov edi, dword [ebp - 0x3c0]
test edi, edi
je 0x42f7c6
mov eax, dword [edi]
test eax, eax
jbe 0x42f7c6
lea edx, [ebp - 0x3a4]
push edx
push esi
push 0
push 0
lea ecx, [eax + eax]
mov eax, dword [ebp - 0x3ac]
push str.DriverDesc
push eax
mov dword [ebp - 0x3a4], ecx
call dword [0x4650c4]
test eax, eax
je 0x42f7ad
push eax
push str.FindAdapterGUID:_couldnt_query_device_description:_0x_08x
push 1
call fcn.004343f0
add esp, 0xc
xor ecx, ecx
mov word [esi], cx
mov dword [edi], 1
jmp 0x42f7c6
push str.FindAdapterGUID:_successfully_queried_device_description
push 0x10
call fcn.004343f0
mov edx, dword [ebp - 0x3a4]
add esp, 8
shr edx, 1
mov dword [edi], edx
mov eax, dword [ebp - 0x3ac]
push eax
call dword [0x4650d0]
push str.FindAdapterGUID:_found_card
push 0x20
call fcn.004343f0
add esp, 8
mov ecx, dword [ebp - 0x3a8]
push ecx
call dword [0x4650d0]
cmp dword [ebp - 0x3b4], 0
jne 0x42f819
push str.FindAdapterGUID:_didnt_find_card
push 0x20
call fcn.004343f0
add esp, 8
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
push str.FindAdapterGUID:_found_guid
push 0x10
call fcn.004343f0
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040506e
mov esp, ebp
pop ebp
ret