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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xcc]
push edi
mov edi, dword [ebp + 0xc]
push 0x64
push 0
push eax
mov dword [ebp - 0x484], ebx
call fcn.0040f160
push 0x20a
lea eax, [ebp - 0x468]
push 0
push eax
call fcn.0040f160
add esp, 0x18
test ebx, ebx
je 0x41671d
test edi, edi
je 0x41671d
cmp dword [edi], 0
je 0x41671d
push 0x32
lea eax, [ebp - 0xcc]
push eax
push 0x4b6584
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x4163b9
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.GetBridgeGUID:_guid_is__S
push 0x20
call fcn.004439a0
lea eax, [ebp - 0xcc]
push eax
push str.SYSTEMCurrentControlSetControlNetwork_s
lea eax, [ebp - 0x468]
push 0x105
push eax
call fcn.004159a0
lea eax, [ebp - 0x468]
push eax
push str.GetBridgeGUID:_key_name_is__S
push 0x20
call fcn.004439a0
add esp, 0x28
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 0x416477
cmp eax, 2
jne 0x41644e
push eax
lea eax, [ebp - 0x468]
push eax
push str.GetBridgeGUID:_netservice_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 - 0x468]
push eax
push str.GetBridgeGUID:_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 - 0x468]
push eax
push str.GetBridgeGUID:_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]
xor esi, esi
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 0x416685
push 0xc8
lea eax, [ebp - 0x25c]
inc esi
push 0
push eax
call fcn.0040f160
push 0xc8
lea eax, [ebp - 0x194]
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 0x416567
cmp eax, 2
jne 0x41654e
push eax
lea eax, [ebp - 0x68]
push eax
push str.GetBridgeGUID:_net_class_instance_key_not_found_in_registry__S:_0x_08x
push 2
call fcn.004439a0
add esp, 0x10
jmp 0x41662f
push eax
lea eax, [ebp - 0x68]
push eax
push str.GetBridgeGUID:_couldnt_open_instance__S_for_enumeration:_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x41662f
push str.VMware_Bridge_Protocol
lea eax, [ebp - 0x194]
push 0x32
push eax
call fcn.004159a0
add esp, 0xc
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x25c]
push eax
push 0
push 0
push 0x49d57c
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4165c2
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0040ca9a
add esp, 8
test eax, eax
je 0x41665e
push str.vmware_bridge
lea eax, [ebp - 0x194]
push 0x32
push eax
call fcn.004159a0
add esp, 0xc
mov dword [ebp - 0x46c], 0xc8
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x25c]
push eax
push 0
push 0
push str.ComponentId
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416623
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0040ca9a
add esp, 8
test eax, eax
je 0x416665
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 esi
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4164d3
jmp 0x416685
push str.GetBridgeGUID:_found_bridge_service_by_description
jmp 0x41666a
push str.found_bridge_by_component_ID
push 0x20
mov ebx, 1
call fcn.004439a0
add esp, 8
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x4166b7
push str.GetBridgeGUID:_didnt_find_bridge
push 0x20
call fcn.004439a0
add esp, 8
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x68]
push eax
push str.GetBridgeGUID:_read_bridge_guid:__S
push 0x20
call fcn.004439a0
lea ecx, [ebp - 0x68]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4166d0
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, dword [edi]
jbe 0x4166ef
push str.GetBridgeGUID:_insuffcient_caller_buffer_to_copy_result
push 1
jmp 0x41669c
lea eax, [esi + esi]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x484]
call fcn.00410a40
add esp, 0xc
mov dword [edi], esi
mov eax, 1
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push edi
push ebx
push str.GetBridgeGUID:_invalid_parameters:_0x_08x_0x_08x
push 1
call fcn.004439a0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
xor eax, eax
pop edi
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret