Function at 0x140164a70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2d70]
mov eax, 0x2e70
call fcn.140160160
sub rsp, rax
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2eb8], rbx
mov rax, qword [0x1403fad18]
xor rax, rsp
mov qword [rbp + 0x2d60], rax
mov qword [rbp - 0x40], r9
mov qword [rbp - 0x30], r8
movzx r12d, dl
mov rsi, rcx
mov rax, qword [rbp + 0x2dd0]
mov qword [rbp - 0x20], rax
xor eax, eax
mov r15d, eax
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x50], eax
mov ebx, eax
mov qword [rsp + 0x40], rax
mov r13d, eax
mov dword [rbp + 0x290], SafeArrayAllocDescriptorEx
mov dword [rbp + 0x2c0], 0x620
mov eax, dword [0x140257980]
mov dword [rbp + 0x2b0], eax
mov eax, dword [0x140257984]
mov dword [rbp + 0x2b4], eax
mov eax, dword [0x140257988]
mov dword [rbp + 0x2b8], eax
mov eax, dword [0x14025798c]
mov dword [rbp + 0x2bc], eax
xor edx, edx
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.SETUPAPI.dll_SetupDiCreateDeviceInfoList]
mov rdi, rax
mov qword [rsp + 0x58], rax
or r14, 0xffffffffffffffff
cmp rax, r14
jne 0x140164bef
mov r15d, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetupDiCreateDeviceInfoList_failed__0x_08X_
call fcn.140160a20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetupDiCreateDeviceInfoList_failed__0x_08X_
lea rcx, [rbp - 0x28]
call fcn.140162400
lea rcx, [rsp + 0x40]
cmp rcx, rax
je 0x140164ba3
mov rbx, qword [rax]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x140164ba3
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x140165a9c
mov eax, r14d
lock xadd dword [rdi + 0x10], eax
dec eax
jne 0x140164be5
test rdi, rdi
je 0x140164be5
mov rcx, qword [rdi]
test rcx, rcx
je 0x140164bcf
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140164bdd
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, rdi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov rbx, qword [rsp + 0x40]
jmp 0x140165a9c
xor r9d, r9d
mov r8d, 0x104
lea rdx, [rbp + 0x2b50]
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.SETUPAPI.dll_SetupDiClassNameFromGuidW]
test eax, eax
jne 0x140164cb3
mov r15d, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetupDiClassNameFromGuid_failed__0x_08X_
call fcn.140160a20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetupDiClassNameFromGuid_failed__0x_08X_
lea rcx, [rbp - 0x68]
call fcn.140162400
lea rcx, [rsp + 0x40]
cmp rcx, rax
je 0x140164c67
mov rbx, qword [rax]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x140164c67
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rbp - 0x68]
test rdi, rdi
je 0x14016582a
mov eax, r14d
lock xadd dword [rdi + 0x10], eax
dec eax
jne 0x140164ca9
test rdi, rdi
je 0x140164ca9
mov rcx, qword [rdi]
test rcx, rcx
je 0x140164c93
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140164ca1
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, rdi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov rbx, qword [rsp + 0x40]
jmp 0x14016582a
lea rax, [rbp + 0x290]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, [rbp + 0x2b0]
lea rdx, [rbp + 0x2b50]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiCreateDeviceInfoW]
test eax, eax
jne 0x140164d46
mov r15d, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetupDiCreateDeviceInfo_failed__0x_08X_
call fcn.140160a20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetupDiCreateDeviceInfo_failed__0x_08X_
lea rcx, [rbp + 0x20]
call fcn.140162400
lea rcx, [rsp + 0x40]
cmp rcx, rax
je 0x140164d3d
mov rbx, qword [rax]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x140164d3d
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rbp + 0x20]
jmp 0x140164c6b
lea rdx, [rbp + 0x290]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiSetSelectedDevice]
test eax, eax
jne 0x140164db6
mov r15d, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetupDiSetSelectedDevice_failed__0x_08X_
call fcn.140160a20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetupDiSetSelectedDevice_failed__0x_08X_
lea rcx, [rbp - 0x58]
call fcn.140162400
lea rcx, [rsp + 0x40]
cmp rcx, rax
je 0x140164dad
mov rbx, qword [rax]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x140164dad
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rbp - 0x58]
jmp 0x140164c6b
test rsi, rsi
je 0x140164e81
mov dword [rbp + 0x40], 0x248
lea r8, [rbp + 0x40]
lea rdx, [rbp + 0x290]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstallParamsW]
test eax, eax
je 0x140164e6d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x7c]
call sub.MSVCR100.dll_memset
xor eax, eax
mov rcx, r14
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
cmp rcx, 0x104
jae 0x140164e5c
lea r8, [rcx + rcx]
mov rdx, rsi
lea rcx, [rbp + 0x7c]
call sub.MSVCR100.dll_memcpy
test r12b, r12b
je 0x140164e26
or dword [rbp + 0x44], 0x10000
lea r8, [rbp + 0x40]
lea rdx, [rbp + 0x290]
mov r12, qword [rsp + 0x58]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
test eax, eax
jne 0x140164e84
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetupDiSetDeviceInstallParams_failed__winEr___d__n
call fcn.140160a20
jmp 0x14016582a
lea rcx, str.SetupDiSetDeviceInstallParams_faileed:_INF_path_is_too_long_n
call fcn.140160a20
jmp 0x14016582a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetupDiGetDeviceInstallParams_failed__winEr___d__n
call fcn.140160a20
mov r12, rdi
mov r8d, 1
lea rdx, [rbp + 0x290]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
jne 0x140164f07
mov r15d, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetupDiBuildDriverInfoList_failed__0x_08X_
call fcn.140160a20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetupDiBuildDriverInfoList_failed__0x_08X_
lea rcx, [rbp - 0x10]
call fcn.140162400
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rax, rdi
je 0x140164efe
lea rcx, [rsp + 0x40]
call fcn.140162310
mov rbx, qword [rdi]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x140164efe
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rbp - 0x10]
jmp 0x140164c6b
mov dword [rsp + 0x50], 1
nop
lea rax, [rbp + 0x2c0]
mov qword [rsp + 0x20], rax
mov r9d, r13d
mov r8d, 1
lea rdx, [rbp + 0x290]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
jne 0x140164f4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x140164feb
inc r13d
jmp 0x140164f10
mov dword [rbp + 0x8e0], 0x630
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2000
lea r9, [rbp + 0x8e0]
lea r8, [rbp + 0x2c0]
lea rdx, [rbp + 0x290]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDriverInfoDetailW]
test eax, eax
je 0x140164fe3
lea rsi, [rbp + 0xf08]
cmp word [rsi], 0
je 0x140164fe3
lea rax, [rbp + 0x28e0]
cmp rsi, rax
jae 0x140164fd1
lea rdx, str.sun_VBoxNetAdp
mov rcx, rsi
call sub.MSVCR100.dll__wcsicmp
test eax, eax
je 0x140164fd1
xor eax, eax
mov rcx, r14
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea rsi, [rsi + rcx*2]
test rsi, rsi
jne 0x140164f93
jmp 0x140164fe3
cmp word [rsi], 0
je 0x140164fe3
lea rax, [rbp + 0x28e0]
cmp rsi, rax
jb 0x140165043
inc r13d
jmp 0x140164f10
mov r15d, 0x80004005
lea rcx, str.Could_not_find_Host_Interface_Networking_driver__Please_reinstall
call fcn.140160a20
lea rdx, str.Could_not_find_Host_Interface_Networking_driver__Please_reinstall
lea rcx, [rbp - 0x48]
call fcn.140162400
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rax, rdi
je 0x14016503a
lea rcx, [rsp + 0x40]
call fcn.140162310
mov rbx, qword [rdi]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x14016503a
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rbp - 0x48]
jmp 0x140164c6b
lea r8, [rbp + 0x2c0]
lea rdx, [rbp + 0x290]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiSetSelectedDriverW]
test eax, eax
jne 0x1401650c7
mov r15d, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetupDiSetSelectedDriver_failed__0x_08X_
call fcn.140160a20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetupDiSetSelectedDriver_failed__0x_08X_
lea rcx, [rbp - 8]
call fcn.140162400
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rax, rdi
je 0x1401650be
lea rcx, [rsp + 0x40]
call fcn.140162310
mov rbx, qword [rdi]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x1401650be
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rbp - 8]
jmp 0x140164c6b
lea r8, [rbp + 0x290]
mov rdx, r12
mov ecx, reloc.OLEAUT32.dll_SafeArrayPutElement
call qword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
test eax, eax
jne 0x140165145
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov r15d, 0x80004005
mov edx, eax
lea rcx, str.SetupDiCallClassInstaller_failed__0x_08X_
call fcn.140160a20
mov r8d, edi
lea rdx, str.SetupDiCallClassInstaller_failed__0x_08X_
lea rcx, [rbp - 0x38]
call fcn.140162400
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rax, rdi
je 0x14016513c
lea rcx, [rsp + 0x40]
call fcn.140162310
mov rbx, qword [rdi]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x14016513c
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rbp - 0x38]
jmp 0x140164c6b
lea r8, [rbp + 0x290]
mov rdx, r12
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call qword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
test eax, eax
jne 0x1401651d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe000020e
je 0x1401651d4
mov r15d, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetupDiCallClassInstaller__DIF_ALLOW_INSTALL__failed__0x_08X_
call fcn.140160a20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetupDiCallClassInstaller__DIF_ALLOW_INSTALL__failed__0x_08X_
lea rcx, [rbp + 8]
call fcn.140162400
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rax, rdi
je 0x1401651cb
lea rcx, [rsp + 0x40]
call fcn.140162310
mov rbx, qword [rdi]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x1401651cb
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rbp + 8]
jmp 0x140164c6b
mov dword [rbp + 0x40], 0x248
lea r8, [rbp + 0x40]
lea rdx, [rbp + 0x290]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstallParamsW]
test eax, eax
je 0x14016524a
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupInitDefaultQueueCallback]
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14016523b
mov qword [rbp + 0x60], rax
lea rax, [0x140161350]
mov qword [rbp + 0x58], rax
lea r8, [rbp + 0x40]
lea rdx, [rbp + 0x290]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
test eax, eax
jne 0x14016525e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetupDiSetDeviceInstallParams_failed__winEr___d__n
jmp 0x140165257
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetupInitDefaultQueueCallback_failed__winEr___d__n
jmp 0x140165257
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetupDiGetDeviceInstallParams_failed__winEr___d__n
mov edx, eax
call fcn.140160a20
lea r8, [rbp + 0x290]
mov rdx, r12
mov ecx, SafeArrayGetElement
call qword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
test eax, eax
jne 0x1401652e0
mov r15d, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetupDiCallClassInstaller__DIF_INSTALLDEVICEFILES__failed__0x_08X_
call fcn.140160a20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetupDiCallClassInstaller__DIF_INSTALLDEVICEFILES__failed__0x_08X_
lea rcx, [rbp - 0x78]
call fcn.140162400
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rax, rdi
je 0x1401652d7
lea rcx, [rsp + 0x40]
call fcn.140162310
mov rbx, qword [rdi]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x1401652d7
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rbp - 0x78]
jmp 0x1401657bc
mov dword [rbp + 0x40], 0x248
lea r8, [rbp + 0x40]
lea rdx, [rbp + 0x290]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstallParamsW]
test eax, eax
je 0x14016538b
or dword [rbp + 0x44], 0x1000000
lea r8, [rbp + 0x40]
lea rdx, [rbp + 0x290]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
test eax, eax
jne 0x14016538b
mov r15d, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetupDiSetDeviceInstallParams_failed__0x_08X_
call fcn.140160a20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetupDiSetDeviceInstallParams_failed__0x_08X_
lea rcx, [rbp + 0x18]
call fcn.140162400
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rax, rdi
je 0x140165382
lea rcx, [rsp + 0x40]
call fcn.140162310
mov rbx, qword [rdi]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x140165382
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rbp + 0x18]
jmp 0x1401657bc
lea r8, [rbp + 0x290]
mov rdx, r12
mov ecx, 0x22
call qword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
test eax, eax
jne 0x14016540d
mov r15d, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetupDiCallClassInstaller__DIF_REGISTER_COINSTALLERS__failed__0x_08X_
call fcn.140160a20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetupDiCallClassInstaller__DIF_REGISTER_COINSTALLERS__failed__0x_08X_
lea rcx, [rbp - 0x18]
call fcn.140162400
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rax, rdi
je 0x140165404
lea rcx, [rsp + 0x40]
call fcn.140162310
mov rbx, qword [rdi]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x140165404
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rbp - 0x18]
jmp 0x1401657bc
lea r8, [rbp + 0x290]
mov rdx, r12
mov ecx, 0x20
call qword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
test eax, eax
jne 0x14016548f
mov r15d, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetupDiCallClassInstaller__DIF_INSTALLINTERFACES__failed__0x_08X_
call fcn.140160a20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetupDiCallClassInstaller__DIF_INSTALLINTERFACES__failed__0x_08X_
lea rcx, [rbp + 0x28]
call fcn.140162400
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rax, rdi
je 0x140165486
lea rcx, [rsp + 0x40]
call fcn.140162310
mov rbx, qword [rdi]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x140165486
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rbp + 0x28]
jmp 0x1401657bc
lea r8, [rbp + 0x290]
mov rdx, r12
mov ecx, 2
call qword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
test eax, eax
jne 0x140165511
mov r15d, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetupDiCallClassInstaller__DIF_INSTALLDEVICE__failed__0x_08X_
call fcn.140160a20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetupDiCallClassInstaller__DIF_INSTALLDEVICE__failed__0x_08X_
lea rcx, [rbp + 0x10]
call fcn.140162400
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rax, rdi
je 0x140165508
lea rcx, [rsp + 0x40]
call fcn.140162310
mov rbx, qword [rdi]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x140165508
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rbp + 0x10]
jmp 0x1401657bc
xor esi, esi
mov r13d, esi
nop word [rax + rax]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 2
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rbp + 0x290]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140165747
mov dword [rsp + 0x54], 0x64
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x28e0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.NetCfgInstanceId
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r13d, eax
mov dword [rsp + 0x48], eax
cmp eax, 2
jne 0x1401655ba
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, 0x28
jl 0x140165520
jmp 0x14016574d
cmp rdi, 0xffffffffffffffff
je 0x140165758
test eax, eax
je 0x140165671
mov r15d, 0x80004005
mov edx, eax
lea rcx, str.Querying_NetCfgInstanceId_failed__0x_08X_
call fcn.140160a20
mov r8d, r13d
lea rdx, str.Querying_NetCfgInstanceId_failed__0x_08X_
lea rcx, [rbp]
call fcn.140162400
mov rsi, rax
lea rax, [rsp + 0x40]
cmp rax, rsi
je 0x140165620
lea rcx, [rsp + 0x40]
call fcn.140162310
mov rbx, qword [rsi]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x140165620
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rbp]
test rsi, rsi
je 0x140165663
mov eax, r14d
lock xadd dword [rsi + 0x10], eax
dec eax
jne 0x14016565e
test rsi, rsi
je 0x14016565e
mov rcx, qword [rsi]
test rcx, rcx
je 0x140165648
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140165656
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, rsi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov rbx, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1401657fb
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.140161820
mov esi, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jns 0x140165697
mov edx, esi
lea rcx, str.vboxNetCfgWinCreateHostOnlyNetworkInterface_Warning__vboxNetCfgWinGetInterfaceLUID_failed__default_metric_for_new_interface_will_not_be_set__hr__0x_x__n
jmp 0x1401656ad
lea rcx, [rbp - 0x70]
call fcn.140161920
test eax, eax
jns 0x1401656b2
mov edx, eax
lea rcx, str.vboxNetCfgWinCreateHostOnlyNetworkInterface_Warning__vboxNetCfgWinSetupMetric_failed__default_metric_for_new_interface_will_not_be_set__hr__0x_x__n
call fcn.140160a20
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov r9d, pe_nt_image_headers64
lea r8, [rbp + 0x2950]
lea rdx, [rbp + 0x290]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
jne 0x1401657fb
mov r15d, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetupDiGetDeviceInstanceId_failed__0x_08X_
call fcn.140160a20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetupDiGetDeviceInstanceId_failed__0x_08X_
lea rcx, [rbp - 0x60]
call fcn.140162400
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rax, rdi
je 0x140165741
lea rcx, [rsp + 0x40]
call fcn.140162310
mov rbx, qword [rdi]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x140165741
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rbp - 0x60]
jmp 0x1401657bc
cmp r13d, 2
jne 0x140165758
mov r15d, 0x80004004
jmp 0x1401657fb
mov r15d, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetupDiOpenDevRegKey_failed__0x_08X_
call fcn.140160a20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetupDiOpenDevRegKey_failed__0x_08X_
lea rcx, [rbp - 0x50]
call fcn.140162400
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rax, rdi
je 0x1401657b8
lea rcx, [rsp + 0x40]
call fcn.140162310
mov rbx, qword [rdi]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x1401657b8
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rbp - 0x50]
test rdi, rdi
je 0x1401657fb
mov eax, r14d
lock xadd dword [rdi + 0x10], eax
dec eax
jne 0x1401657f6
test rdi, rdi
je 0x1401657f6
mov rcx, qword [rdi]
test rcx, rcx
je 0x1401657e0
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1401657ee
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, rdi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov rbx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x14016580e
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupTermDefaultQueueCallback]
cmp dword [rsp + 0x48], 0
je 0x14016582a
lea r8, [rbp + 0x290]
mov rdx, r12
mov ecx, 5
call qword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
lea rdx, [rbp + 0x290]
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDeleteDeviceInfo]
cmp dword [rsp + 0x50], 0
je 0x14016585c
mov r8d, 1
lea rdx, [rbp + 0x290]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDriverInfoList]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test r15d, r15d
js 0x140165a9c
xor r12d, r12d
mov qword [rsp + 0x68], r12
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x1401658a6
lea rcx, [rbp + 0x2950]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
test rax, rax
jne 0x1401658a6
lea rcx, str.SysAllocString_failed_n
call fcn.140160a20
mov r15d, 0x80070008
mov r13, qword [rbp - 0x30]
test r13, r13
je 0x1401658d4
mov rdx, r13
lea rcx, [rbp + 0x28e0]
call qword [sym.imp.ole32.dll_CLSIDFromString]
mov r15d, eax
test eax, eax
jns 0x1401658d4
mov edx, eax
lea rcx, str.CLSIDFromString_failed__hrc__0x_x__n
call fcn.140160a20
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [0x140329458]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140329488]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test eax, eax
jns 0x140165911
mov edx, eax
lea rcx, str.CoCreateInstance_failed__hr__0x_x__n
call fcn.140160a20
jmp 0x1401659db
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea r8, [rbp - 0x80]
lea rdx, [0x140329468]
call qword [rax]
mov esi, eax
test eax, eax
jns 0x14016593c
mov edx, eax
lea rcx, str.QueryInterface_failed__hr__0x_x__n
call fcn.140160a20
jmp 0x140165988
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
lea r9, [rsp + 0x68]
lea r8, str.VirtualBox_Host_Only_Creation
mov edx, 0x7530
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov esi, eax
cmp eax, 1
jne 0x14016596c
lea rcx, str.Write_lock_busy_n
call fcn.140160a20
jmp 0x14016597e
test eax, eax
jns 0x14016597e
mov edx, eax
lea rcx, str.AcquireWriteLock_failed__hr__0x_x__n
call fcn.140160a20
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov edi, esi
cmp esi, 1
jne 0x1401659a4
mov edx, esi
lea rcx, str.Write_lock_is_busy_n
call fcn.140160a20
mov edi, 0x8004a024
jmp 0x1401659d0
test esi, esi
js 0x1401659d0
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov edi, eax
test eax, eax
js 0x1401659c2
mov r12, qword [rsp + 0x60]
jmp 0x1401659e3
mov edx, eax
lea rcx, str.Initialize_failed__hr__0x_x__n
call fcn.140160a20
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test edi, edi
jne 0x140165a63
mov r9, r13
lea r8, [0x140161040]
lea rdx, [0x1402579a0]
mov rcx, r12
call fcn.140162170
test eax, eax
js 0x140165a46
mov r9, r13
lea r8, [0x140161040]
lea rdx, [0x1402579b0]
mov rcx, r12
call fcn.140162170
test eax, eax
js 0x140165a46
mov r9, r13
lea r8, [0x140161040]
lea rdx, [0x140257990]
mov rcx, r12
call fcn.140162170
test eax, eax
js 0x140165a46
mov rax, qword [r12]
mov rcx, r12
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
jmp 0x140165a54
mov edx, eax
lea rcx, str.Enumeration_failed__hr_0x_x_n
call fcn.140160a20
mov edx, 1
mov rcx, r12
call fcn.140162090
jmp 0x140165a9c
cmp edi, 0x8004a024
jne 0x140165a8e
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x140165a8e
lea rcx, str.Application__ws_is_holding_the_lock__failed_n
call fcn.140160a20
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x140165a9c
mov edx, edi
lea rcx, str.VBoxNetCfgWinQueryINetCfg_failed__hr_0x_x_n
call fcn.140160a20
mov r12, qword [rbp - 0x20]
test r12, r12
je 0x140165b19
test rbx, rbx
je 0x140165b19
mov rcx, qword [rbx]
test rcx, rcx
je 0x140165b19
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x140165b19
cmp dword [rbx + 0x10], 1
jne 0x140165b0e
mov rsi, qword [rbx]
mov qword [rbx], 0
mov eax, r14d
lock xadd dword [rbx + 0x10], eax
dec eax
jne 0x140165b01
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140165aeb
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140165af9
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, rdi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov qword [r12], rsi
jmp 0x140165b19
mov ecx, 0x80004003
call fcn.140166010
nop
test rbx, rbx
je 0x140165b52
lock xadd dword [rbx + 0x10], r14d
dec r14d
jne 0x140165b52
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140165b3c
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140165b4a
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, rdi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, r15d
mov rcx, qword [rbp + 0x2d60]
xor rcx, rsp
call fcn.14015fe00
mov rbx, qword [rsp + 0x2eb8]
add rsp, 0x2e70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret