Function at 0x140001c50
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9d, [r12 + 6]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsExW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001eea
mov dword [rbp + 0x1a0], 0x230
lea rdx, [rbp + 0x1a0]
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailW]
test eax, eax
je 0x140001ee1
mov dword [rsp + 0x50], 0x20
mov r15d, r12d
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140001ee1
lea r13, str.JRVADHID
nop dword [rax]
mov rax, qword [rbp + 0x1b8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0xc8
lea rdx, [rbp + 0x10]
mov ecx, dword [rsp + 0x64]
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_ID_ExW]
test eax, eax
je 0x140001d2c
mov word [rbp + 0x10], r12w
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140001a90
mov r14, rax
mov rdi, rax
test rax, rax
je 0x140001ec5
mov rbx, qword [rax]
test rbx, rbx
je 0x140001eae
call fcn.140002000
mov rcx, rax
mov r8, r13
mov rdx, rbx
call fcn.140001f10
test eax, eax
je 0x140001d7c
add rdi, 8
mov rbx, qword [rdi]
test rbx, rbx
jne 0x140001d54
jmp 0x140001eae
mov dword [rsp + 0x40], 8
mov dword [rsp + 0x44], 5
mov qword [rsp + 0x48], 1
mov r9d, 0x10
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiSetClassInstallParamsW]
test eax, eax
jne 0x140001db7
mov rcx, r12
jmp 0x140001dd2
lea r8, [rsp + 0x50]
mov rdx, rsi
mov ecx, 5
call qword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
mov rcx, r12
test eax, eax
setne cl
mov dword [rbp - 0x50], r12d
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp], xmm0
mov dword [rbp - 0x40], r12d
movaps xmm1, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x10], xmm1
mov dword [rsp + 0x70], 4
mov qword [rsp + 0x78], rcx
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x80], 2
mov qword [rbp - 0x78], r13
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x30], xmm0
call fcn.140002000
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
mov qword [rbp + 0x400], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x20]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x60], rax
lea rax, [rbp]
mov qword [rbp - 0x58], rax
lea r9, [rbp + 0x400]
mov r8d, 4
lea rdx, [rbp - 0x70]
lea rcx, str.Deleted_device:__s__result:__d_r_n
call fcn.140044c50
nop
mov rcx, qword [rbp + 0x400]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rdx, qword [rbp + 0x400]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140001eae
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140001ea4
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140001eae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [r14 - 8]
test rcx, rcx
je 0x140001ebc
call fcn.14008d9d8
lea rcx, [r14 - 8]
call fcn.14008d9d8
inc r15d
lea r8, [rsp + 0x50]
mov edx, r15d
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x140001d00
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, 1
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret