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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd68
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0040f160
push 0x20a
lea eax, [ebp - 0x548]
mov dword [ebp - 0xd50], 0x32
push 0
push eax
call fcn.0040f160
push 0x64
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.0040f160
add esp, 0x24
mov dword [ebp - 0xd68], 0
lea eax, [ebp - 0xcc]
xor edi, edi
push 0x32
push eax
push 0x4b6574
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x42f735
push str.cant_convert_guid_to_string
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
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.SystemCurrentControlSetControlNetwork_s
lea eax, [ebp - 0x548]
push 0x105
push eax
call fcn.004159a0
add esp, 0x10
lea eax, [ebp - 0xd60]
push eax
push 9
push 0
lea eax, [ebp - 0x548]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42f796
push str.VNLCleanupUnusedAdaptersW2K:_couldnt_open_registry_for_network_cards
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push ebx
push esi
lea eax, [ebp - 0xd58]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xd50]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push dword [ebp - 0xd60]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x42fad5
nop dword [eax + eax]
mov ebx, dword [ebp - 0xd68]
lea eax, [ebp - 0x130]
push 0x64
push 0
inc ebx
push eax
mov dword [ebp - 0xd68], ebx
call fcn.0040f160
push 0x400
lea eax, [ebp - 0xd48]
push 0
push eax
call fcn.0040f160
push 0x400
lea eax, [ebp - 0x948]
push 0
push eax
call fcn.0040f160
lea eax, [ebp - 0x68]
mov dword [ebp - 0xd4c], 0x400
push eax
push str._sConnection
lea eax, [ebp - 0x130]
mov dword [ebp - 0xd50], 0x32
push 0x32
push eax
call fcn.004159a0
add esp, 0x34
lea eax, [ebp - 0xd5c]
push eax
push 1
push 0
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0xd60]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42f871
lea eax, [ebp - 0x68]
push eax
push str.VNLCleanupUnusedAdaptersW2K:_couldnt_open_Connection_subkey__so_not_deleting:__S
jmp 0x42fa9c
lea eax, [ebp - 0xd4c]
push eax
lea eax, [ebp - 0xd48]
push eax
push 0
push 0
push str.Name
push dword [ebp - 0xd5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x42f8bc
lea eax, [ebp - 0x68]
push eax
push str.VNLCleanupUnusedAdaptersW2K:_couldnt_query_Name__so_not_deleting:__S
push 0x20
call fcn.004439a0
add esp, 0xc
push dword [ebp - 0xd5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42faa6
lea eax, [ebp - 0xd4c]
mov dword [ebp - 0xd4c], 0x400
push eax
lea eax, [ebp - 0x948]
push eax
push 0
push 0
push str.PnpInstanceID
push dword [ebp - 0xd5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xd5c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x42f909
lea eax, [ebp - 0x68]
push eax
push str.VNLCleanupUnusedAdaptersW2K:_couldnt_query_PnpInstanceID__so_not_deleting:__S
jmp 0x42fa9c
push 0xc
lea eax, [ebp - 0x948]
push str.ROOTVMware_
push eax
call fcn.0040cc0f
add esp, 0xc
test eax, eax
je 0x42f93d
push 9
lea eax, [ebp - 0x948]
push str.ROOTNet_
push eax
call fcn.0040cc0f
add esp, 0xc
test eax, eax
jne 0x42f971
push 9
lea eax, [ebp - 0x948]
push str.ROOTNet_
push eax
call fcn.0040cc0f
add esp, 0xc
test eax, eax
jne 0x42f997
push 6
lea eax, [ebp - 0xd48]
push 0x49d1c0
push eax
call fcn.0040cc0f
add esp, 0xc
test eax, eax
je 0x42f997
lea eax, [ebp - 0xd48]
push eax
lea eax, [ebp - 0x948]
push eax
lea eax, [ebp - 0x68]
push eax
push str.VNLCleanupUnusedAdaptersW2K:_PnP_ID_and_or_name_for_GUID__S_doesnt_match_expectation:__S__S
push 0x20
call fcn.004439a0
add esp, 0x14
jmp 0x42faa6
lea eax, [ebp - 0x68]
push eax
push str.VNLCleanupUnusedAdaptersW2K:_VMware_GUID_is:__S
push 0x10
call fcn.004439a0
push 0
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0042e980
add esp, 0x18
test eax, eax
je 0x42f9c9
lea eax, [ebp - 0x68]
push eax
push str.VNLCleanupUnusedAdaptersW2K:_adapter_found_in_control_class__skipping:__S
jmp 0x42fa9c
push 0x20a
lea eax, [ebp - 0x33c]
push 0
push eax
call fcn.0040f160
lea eax, [ebp - 0x68]
push eax
push str.SystemCurrentControlSetServices_s
lea eax, [ebp - 0x33c]
push 0x105
push eax
call fcn.004159a0
add esp, 0x1c
lea eax, [ebp - 0xd64]
push eax
push 1
push 0
lea eax, [ebp - 0x33c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42fa3b
lea eax, [ebp - 0x68]
push eax
push str.VNLCleanupUnusedAdaptersW2K:_adapter_service_key_is_present__skipping:__S
push 0x20
call fcn.004439a0
add esp, 0xc
push dword [ebp - 0xd64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42faa6
push str.VNLCleanupUnusedAdaptersW2K:_service_key_is_not_present
push 0x20
call fcn.004439a0
push 8
call fcn.0047c3b0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x42fa68
push str.VNLCleanupUnusedAdaptersW2K:_couldnt_allocate_buffer_for_string
push 1
call fcn.004439a0
add esp, 8
jmp 0x42faa6
lea eax, [ebp - 0x68]
mov dword [esi], edi
push eax
call fcn.0047b1bd
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x42fa91
push str.VNLCleanupUnusedAdaptersW2K:_couldnt_allocate_string
push 1
call fcn.004439a0
push esi
call fcn.0047b1a0
jmp 0x42faa3
lea eax, [ebp - 0x68]
mov edi, esi
push eax
push str.VNLCleanupUnusedAdaptersW2K:_added__S_to_list_of_GUIDs
push 0x20
call fcn.004439a0
add esp, 0xc
lea eax, [ebp - 0xd58]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xd50]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp - 0xd60]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test ebx, ebx
je 0x42f7d0
push dword [ebp - 0xd60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x42fb6e
nop dword [eax]
push 0x20a
lea eax, [ebp - 0x33c]
push 0
push eax
call fcn.0040f160
push dword [edi + 4]
mov esi, dword [edi]
lea eax, [ebp - 0x548]
push eax
push 0x49a55c
lea eax, [ebp - 0x33c]
push 0x105
push eax
call fcn.004159a0
push 1
lea eax, [ebp - 0x33c]
push 0
push eax
call fcn.004184d0
add esp, 0x2c
push dword [edi + 4]
test eax, eax
je 0x42fb48
push str.VNLCleanupUnusedAdaptersW2K:_delete_of__S_successful
push 2
jmp 0x42fb4f
push str.VNLCleanupUnusedAdaptersW2K:_delete_of__S_failed
push 1
call fcn.004439a0
add esp, 0xc
push dword [edi + 4]
call fcn.0047b1a0
push edi
call fcn.0047b1a0
add esp, 8
mov edi, esi
test esi, esi
jne 0x42faf0
cmp ebx, 0x103
je 0x42fb99
push ebx
push str.VNLCleanupUnusedAdaptersW2K:_card_enumeration_returned:_0x_08x
push 1
call fcn.004439a0
add esp, 0xc
xor eax, eax
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.VNLCleanupUnusedAdaptersW2K:_finished_enumerating_cards
push 0x10
call fcn.004439a0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 1
pop esi
pop ebx
pop edi
call fcn.00401bf1
mov esp, ebp
pop ebp
ret