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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x25c]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0
push eax
mov dword [ebp - 0x488], ebx
mov dword [ebp - 0x484], esi
call fcn.0040f160
push 0x20a
lea eax, [ebp - 0x468]
push 0
push eax
call fcn.0040f160
add esp, 0x18
test edi, edi
je 0x42f239
test ebx, ebx
je 0x42f239
test esi, esi
je 0x42f239
cmp dword [esi], 0
je 0x42f239
push edi
call fcn.0041a970
mov esi, eax
add esp, 4
test esi, esi
jns 0x42edb4
push edi
push str.GetAdapterGUID:_invalid_vnetname:__s
push 1
call fcn.004439a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push 0x32
lea eax, [ebp - 0x25c]
push eax
push 0x4b6574
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x42edee
push str.cant_convert_guid_to_string
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x25c]
push eax
push str.SYSTEMCurrentControlSetControlClass_s
lea eax, [ebp - 0x468]
push 0x105
push eax
call fcn.004159a0
add esp, 0x10
lea eax, [ebp - 0x480]
push eax
push 9
push 0
lea eax, [ebp - 0x468]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42ee88
cmp eax, 2
jne 0x42ee5e
push eax
lea eax, [ebp - 0x468]
push eax
push str.GetAdapterGUID:_net_class_key_not_found_in_registry__S:_0x_08x
push 2
call fcn.004439a0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push eax
lea eax, [ebp - 0x468]
push eax
push str.GetAdapterGUID:_couldnt_open__S_for_enumeration:_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x468]
push eax
push str.GetAdapterGUID:_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 - 0x470], 0x32
xor ebx, ebx
lea eax, [ebp - 0x478]
mov dword [ebp - 0x47c], ebx
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x42f157
nop word [eax + eax]
push 0xc8
lea eax, [ebp - 0x1f8]
inc ebx
push 0
push eax
call fcn.0040f160
push 0xc8
lea eax, [ebp - 0x130]
mov dword [ebp - 0x46c], 0xc8
push 0
push eax
call fcn.0040f160
add esp, 0x18
mov dword [ebp - 0x470], 0x32
lea eax, [ebp - 0x47c]
push eax
push 1
push 0
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42ef84
cmp eax, 2
jne 0x42ef6b
push eax
lea eax, [ebp - 0x68]
push eax
push str.GetAdapterGUID:_net_class_instance_key_not_found_in_registry__S:_0x_08x
push 2
call fcn.004439a0
add esp, 0x10
jmp 0x42f12a
push eax
lea eax, [ebp - 0x68]
push eax
push str.GetAdapterGUID:_couldnt_open_instance__S_for_enumeration:_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x42f12a
push esi
push str.DosDevicesVMnet_d
lea eax, [ebp - 0x130]
push 0x32
push eax
call fcn.004159a0
add esp, 0x10
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x1f8]
push eax
push 0
push 0
push str.VMnet
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42efe0
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x1f8]
push eax
call fcn.0040ca9a
add esp, 8
test eax, eax
je 0x42f185
push esi
push str.vmnetadapter_d
lea eax, [ebp - 0x130]
push 0x32
push eax
call fcn.004159a0
add esp, 0x10
mov dword [ebp - 0x46c], 0xc8
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x1f8]
push eax
push 0
push 0
push str.ComponentId
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x42f048
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x1f8]
push eax
call fcn.0040ca9a
add esp, 8
test eax, eax
je 0x42f18c
push esi
push str.vmnet_d
lea eax, [ebp - 0x130]
push 0x32
push eax
call fcn.004159a0
add esp, 0x10
test edi, edi
jne 0x42f081
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x1f8]
push eax
call fcn.0040ca9a
add esp, 8
test eax, eax
je 0x42f193
push esi
push str.vmnetadapter_d
lea eax, [ebp - 0x130]
push 0x32
push eax
call fcn.004159a0
add esp, 0x10
mov dword [ebp - 0x46c], 0xc8
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x1f8]
push eax
push 0
push 0
push str.MatchingDeviceId
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x42f0e9
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x1f8]
push eax
call fcn.0040ca9a
add esp, 8
test eax, eax
je 0x42f19a
push esi
push str.vmnet_d
lea eax, [ebp - 0x130]
push 0x32
push eax
call fcn.004159a0
add esp, 0x10
test edi, edi
jne 0x42f11e
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x1f8]
push eax
call fcn.0040ca9a
add esp, 8
test eax, eax
je 0x42f19a
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x478]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x42eef0
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.GetAdapterGUID:_didnt_find_card
push 0x20
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.GetAdapterGUID:_found_card_by_vnet_name
jmp 0x42f19f
push str.found_card_by_component_ID
jmp 0x42f19f
push str.GetAdapterGUID:_found_card_by_component_ID
jmp 0x42f19f
push str.GetAdapterGUID:_found_card_by_matching_device_ID
push 0x20
call fcn.004439a0
mov edi, dword [ebp - 0x488]
add esp, 8
push dword [ebp - 0x484]
push edi
push 0
push 0
push str.NetCfgInstanceId
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x47c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x42f213
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.GetAdapterGUID:_couldnt_read_guid:_0x_08x_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push edi
push str.GetAdapterGUID:_read_guid:__S
push 0x20
call fcn.004439a0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push esi
push ebx
push edi
push 0x4b1e2c
push 1
call fcn.004439a0
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret