Function at 0x180004410
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r15
lea rbp, [rsp - 0x5a8]
sub rsp, 0x6a8
mov rax, qword [0x180045020]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov rbx, rdx
mov r15d, ecx
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x400
lea r12d, [rdx + 1]
call sym.VBoxInstallHelper.dll_nocrt_memset
xor r13d, r13d
lea r8, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_ls
mov r9, rbx
mov qword [rsp + 0x50], r13
mov edx, 0x100
mov qword [rsp + 0x48], r13
lea rcx, [rbp - 0x70]
call fcn.18000b350
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180004531
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180004531
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Connection
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180004528
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180004528
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x400
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x190]
xor r8d, r8d
lea rdx, str.PnPInstanceID
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000451f
cmp dword [rsp + 0x44], r12d
je 0x18000454a
lea rdx, str.VBox_HostInterfaces:_Host_interface_network_was_not_found_in_registry___ls____lrc_d___3_
jmp 0x180004538
lea rdx, str.VBox_HostInterfaces:_Host_interface_network_was_not_found_in_registry___ls____lrc_d___2_
jmp 0x180004538
lea rdx, str.VBox_HostInterfaces:_Host_interface_network_was_not_found_in_registry___ls____lrc_d___1_
mov r9d, eax
lea r8, [rbp - 0x70]
mov ecx, r15d
mov r12d, r13d
call fcn.1800040a0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18000455a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18000456a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [rsp + 0x58], 0x20
xorps xmm0, xmm0
mov qword [rsp + 0x6c], rax
lea rdx, [0x1800144f0]
mov dword [rsp + 0x74], eax
lea rcx, [rsp + 0x78]
lea r8d, [rax + 0x10]
movups xmmword [rsp + 0x5c], xmm0
call sym.VBoxInstallHelper.dll_nocrt_memcpy
mov r9d, 2
lea rcx, [rsp + 0x78]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800045e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.VBox_HostInterfaces:_SetupDiGetClassDevs_failed__0x_08X__
mov ecx, r15d
mov r8d, eax
call fcn.1800040a0
lea rdx, str.VBox_HostInterfaces:_Uninstallation_failed_
mov ecx, r15d
call fcn.1800040a0
mov eax, r13d
jmp 0x1800047ce
mov qword [rsp + 0x6f0], rdi
mov qword [rsp + 0x6a0], r14
mov r14d, r13d
nop dword [rax + rax]
lea r8, [rsp + 0x58]
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x180004632
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
jne 0x180004740
lea rdx, str.VBox_HostInterfaces:_Host_interface_network_device_not_found_
jmp 0x1800047a7
xor r9d, r9d
mov dword [rsp + 0x40], r13d
lea rax, [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x28], r13d
lea r8d, [r9 + 1]
mov qword [rsp + 0x20], r13
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x180004740
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180004740
mov ecx, dword [rsp + 0x40]
lea rdx, [0x180016bdc]
call fcn.18000a8e0
mov rdi, rax
test rax, rax
je 0x180004740
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x58]
mov eax, dword [rsp + 0x40]
mov rcx, rsi
mov dword [rsp + 0x28], eax
lea r8d, [r9 + 1]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x180004738
mov rbx, rdi
cmp word [rdi], r13w
je 0x180004738
nop dword [rax]
mov eax, dword [rsp + 0x40]
and rax, 0xfffffffffffffffe
add rax, rdi
cmp rbx, rax
jae 0x180004738
lea rdx, str.vboxtap
mov rcx, rbx
call fcn.18000b070
test eax, eax
jne 0x180004722
mov ecx, dword [rsp + 0x6c]
lea rdx, [rbp - 0x70]
xor r9d, r9d
mov r8d, 0xc8
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
test eax, eax
jne 0x180004722
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x70]
call fcn.18000ad80
test eax, eax
je 0x180004748
mov rcx, rbx
call fcn.18000ae70
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], r13w
jne 0x1800046d0
mov rcx, rdi
call fcn.18000a910
inc r14d
jmp 0x180004600
mov rcx, rdi
call fcn.18000a910
lea rdx, [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiSetSelectedDevice]
test eax, eax
jne 0x180004771
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.VBox_HostInterfaces:_SetupDiSetSelectedDevice_failed__0x_08X__
jmp 0x180004795
lea r8, [rsp + 0x58]
mov rdx, rsi
mov ecx, 5
call qword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
test eax, eax
jne 0x1800047b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.VBox_HostInterfaces:_SetupDiCallClassInstaller__DIF_REMOVE__failed__0x_08X__
mov r8d, eax
mov ecx, r15d
call fcn.1800040a0
lea rdx, str.VBox_HostInterfaces:_Uninstallation_failed_
mov ecx, r15d
mov r12d, r13d
call fcn.1800040a0
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov r14, qword [rsp + 0x6a0]
mov eax, r12d
mov rdi, qword [rsp + 0x6f0]
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.180001140
add rsp, 0x6a8
pop r15
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret