Function at 0x14009e5e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x950]
sub rsp, 0xa50
mov rax, qword [0x140138010]
xor rax, rsp
mov qword [rbp + 0x940], rax
movzx r15d, cl
mov byte [rsp + 0x41], cl
xor r12d, r12d
mov dword [rsp + 0x4c], r12d
mov ecx, 4
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
lea r13, str.D:_apia_desktoppia_desktopdaemon_srcwin.._.._.._extras_installer_win_tap.inl
mov eax, dword [rcx + rdx]
cmp dword [0x1401472b4], eax
jg 0x14009ed6a
xor dil, dil
xor bl, bl
mov byte [rsp + 0x40], bl
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400e7f08]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsExW]
mov rsi, rax
mov qword [rsp + 0x68], rax
cmp rax, 0xffffffffffffffff
je 0x14009ed0b
mov dword [rbp + 0xd0], 0x20
mov r14d, r12d
mov dword [rsp + 0x50], r12d
lea r8, [rbp + 0xd0]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14009ed02
lea r15, [0x1400fba51]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1c
lea rax, [rbp + 0x710]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, 1
lea rdx, [rbp + 0xd0]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x14009ecd9
cmp dword [rsp + 0x48], 7
jne 0x14009ecd9
cmp dword [rsp + 0x44], 0x1c
jne 0x14009ecd9
mov r8d, 0x1c
lea rdx, str.tap_pia_0901
lea rcx, [rbp + 0x710]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14009ecd9
xor edx, edx
mov r8d, 0x61c
lea rcx, [rbp + 0xf4]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xf0], 0x620
mov r8d, 2
lea rdx, [rbp + 0xd0]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x14009ea54
mov r15d, r12d
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rbp + 0xd0]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
je 0x14009e975
nop dword [rax]
nop word [rax + rax]
mov r14, qword [rbp + 0x708]
shr r14, 0x20
mov esi, r14d
shr esi, 0x10
mov edi, dword [rbp + 0x708]
shr edi, 0x10
movzx ebx, word [rbp + 0x708]
mov qword [rsp + 0x58], r13
lea rax, [0x1400fba51]
mov qword [rsp + 0x60], rax
mov r8d, 0x135
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x48]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp - 0x10], xmm1
xor r9d, r9d
lea r8d, [r9 + 3]
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x730]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
mov r13, rax
movzx edx, r14w
mov r9d, esi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edx
lea r8, str._hu._hu._hu._hu
mov edx, 0x18
lea rcx, [rbp + 0x90]
call fcn.14009d120
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xc0], r12
mov qword [rbp + 0xc8], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0xb0], 0
lea rax, [rbp + 0x90]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14009e880
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0xb0]
call fcn.140035dc0
or dword [rsp + 0x4c], 1
lea r9, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 0x10
cmovae r9, qword [rbp + 0xb0]
mov r8d, r15d
lea rdx, str.Driver__d___version__s
mov rcx, r13
call qword [sym.imp.kapps_core.dll_public:_class_kapps::core::LogWriter____ptr64___cdecl_kapps::core::LogWriter::macroParams_char_const____ptr64____ptr64]
nop
mov rdx, qword [rbp + 0xc8]
cmp rdx, 0x10
jb 0x14009e90e
inc rdx
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009e909
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009ed21
call fcn.1400cdbac
mov qword [rbp + 0xc0], r12
mov qword [rbp + 0xc8], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0xb0], 0
lea rcx, [rbp + 0x730]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::destructor_void____ptr64]
inc r15d
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9d, r15d
mov r8d, 2
lea rdx, [rbp + 0xd0]
mov rsi, qword [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
lea r13, str.D:_apia_desktoppia_desktopdaemon_srcwin.._.._.._extras_installer_win_tap.inl
jne 0x14009e7b0
mov r14d, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rbp - 0x48]
cmp eax, 0x103
lea rax, [0x1400fba51]
jne 0x14009e9e7
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], rax
mov r8d, 0x13c
lea rdx, [rsp + 0x78]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp + 0x10], xmm1
xor r9d, r9d
lea r8d, [r9 + 3]
lea rdx, [rbp]
lea rcx, [rbp + 0x730]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
nop
mov r8d, r15d
lea rdx, str.Enumerated__d_items
mov rcx, rax
call qword [sym.imp.kapps_core.dll_public:_class_kapps::core::LogWriter____ptr64___cdecl_kapps::core::LogWriter::macroParams_char_const____ptr64____ptr64]
nop
jmp 0x14009ea3e
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x70], rax
mov r8d, 0x14a
lea rdx, [rbp - 0x78]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rbp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp + 0x30], xmm1
xor r9d, r9d
lea r8d, [r9 + 3]
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x730]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
nop
mov r9d, ebx
mov r8d, r15d
lea rdx, str.Failed_after__d_items____d
mov rcx, rax
call qword [sym.imp.kapps_core.dll_public:_class_kapps::core::LogWriter____ptr64___cdecl_kapps::core::LogWriter::macroParams_char_const____ptr64____ptr64]
nop
lea rcx, [rbp + 0x730]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::destructor_void____ptr64]
lea r15, [0x1400fba51]
jmp 0x14009eac1
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x60], r15
mov r8d, 0x14e
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x48]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rbp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp + 0x50], xmm1
xor r9d, r9d
lea r8d, [r9 + 3]
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x730]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Failed_to_build_driver_list____d
mov rcx, rbx
call qword [sym.imp.kapps_core.dll_public:_class_kapps::core::LogWriter____ptr64___cdecl_kapps::core::LogWriter::macroParams_char_const____ptr64____ptr64]
nop
lea rcx, [rbp + 0x730]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::destructor_void____ptr64]
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 2
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rbp + 0xd0]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14009ec41
mov dword [rsp + 0x44], 0x208
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x730]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.InfPath
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14009ec38
cmp dword [rsp + 0x48], 1
jne 0x14009ec38
mov r8d, dword [rsp + 0x44]
shr r8, 1
mov qword [rbp + 0x90], r12
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], 7
mov word [rbp + 0x90], r12w
lea rdx, [rbp + 0x730]
lea rcx, [rbp + 0x90]
call fcn.1400a3dc0
nop
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x14009ebde
nop word [rax + rax]
lea rax, [rbp + 0x90]
mov rdx, qword [rbp + 0x90]
mov r8, qword [rbp + 0xa8]
cmp r8, 8
cmovae rax, rdx
dec rcx
cmp word [rax + rcx*2], 0
jne 0x14009ebde
lea rax, [rbp + 0x90]
cmp r8, 8
cmovae rax, rdx
mov qword [rbp + 0xa0], rcx
mov word [rax + rcx*2], r12w
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
jne 0x14009eb90
lea r8, [rbp + 0x90]
lea rdx, [rbp + 0x80]
call fcn.1400a4320
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 8
jb 0x14009ec38
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009ec33
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009ed28
call fcn.1400cdbac
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dil, 1
lea r8, [rbp + 0xd0]
mov rdx, rsi
mov ecx, 5
call qword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
test eax, eax
jne 0x14009ecd4
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], r15
mov r8d, 0x166
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x48]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rbp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp + 0x70], xmm1
xor r9d, r9d
lea r8d, [r9 + 3]
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x730]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Failed_to_remove_device___d_
mov rcx, rbx
call qword [sym.imp.kapps_core.dll_public:_class_kapps::core::LogWriter____ptr64___cdecl_kapps::core::LogWriter::macroParams_char_const____ptr64____ptr64]
nop
lea rcx, [rbp + 0x730]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::destructor_void____ptr64]
movzx ebx, dil
mov byte [rsp + 0x40], bl
jmp 0x14009ecd9
movzx ebx, byte [rsp + 0x40]
inc r14d
mov dword [rsp + 0x50], r14d
lea r8, [rbp + 0xd0]
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x14009e6c1
movzx r15d, byte [rsp + 0x41]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test r15b, r15b
je 0x14009ed15
call fcn.14009df90
test dil, dil
jne 0x14009ed2f
mov eax, 0x20
jmp 0x14009ed3a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test bl, bl
setne r12b
lea eax, [r12 + 0x1e]
mov rcx, qword [rbp + 0x940]
xor rcx, rsp
call fcn.1400cdb50
lea r11, [rsp + 0xa50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, [0x1401472b4]
call fcn.1400cdd3c
cmp dword [0x1401472b4], 0xffffffff
jne 0x14009e64f
mov qword [rsp + 0x58], r13
lea rax, [0x1400fba51]
mov qword [rsp + 0x60], rax
lea rax, str.win.tap
mov qword [rsp + 0x68], rax
lea rax, [0x1400fba5f]
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x58]
lea rcx, [0x1401471e0]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogCategory::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64____ptr64]
nop
lea rcx, [0x1401472b4]
call fcn.1400cdcdc
jmp 0x14009e64f