Function at 0x140016a00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rbp + 0x360], rax
xor eax, eax
lea r8, [0x14005693c]
mov rbx, rcx
mov qword [rbp + 0x160], rax
lea rcx, [rsp + 0x50]
mov qword [rbp + 0x168], rax
mov edx, 0x104
mov qword [rbp + 0x170], rax
mov qword [rbp + 0x178], rax
mov qword [rbp + 0x180], rax
mov qword [rbp + 0x188], rax
mov qword [rbp + 0x190], rax
mov qword [rbp + 0x198], rax
call fcn.140036978
xor edi, edi
mov qword [rbp + 0x158], 0xffffffffffffffff
lea rdx, [rsp + 0x50]
mov qword [rbp + 0x1ac], rdi
mov rcx, rbx
call fcn.140016460
test eax, eax
je 0x140016df2
mov eax, 0xff31
cmp word [rbp + 0x162], ax
jne 0x140016df2
cmp word [rbp + 0x160], 0x76
jne 0x140016df2
mov eax, 0xb05
cmp word [rbp + 0x1a4], ax
jne 0x140016df2
mov ecx, 0x2ac
call fcn.14003fd84
mov rbx, rax
test rax, rax
je 0x140016df2
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 3]
mov dword [rsp + 0x28], 0x40000000
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov qword [rbp + 0x158], rax
mov qword [rbp + 0x1ac], rdi
cmp rax, 0xffffffffffffffff
je 0x140016cad
mov rcx, qword [rbp + 0x164]
test cx, cx
je 0x140016c99
movzx ecx, cx
lea edx, [rdi + 1]
call fcn.1400404f4
mov qword [rbp + 0x1ac], rax
lea rcx, [rbp + 0x1c0]
xor edx, edx
mov dword [rbx + 0x27c], 1
mov r8d, 0x1a0
call fcn.140034ac0
mov rax, qword [rbp + 0x158]
lea r9, [rsp + 0x40]
lea r8, [0x140016ea0]
mov qword [rbp + 0x1d0], rax
mov rdx, rbx
mov dword [rbp + 0x1c0], 0x1a0
lea rcx, [rbp + 0x1c0]
mov dword [rbp + 0x1c8], 1
mov qword [rsp + 0x40], rdi
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Register_Notification]
mov ecx, edi
lea edx, [rdi + 1]
test eax, eax
cmove rcx, qword [rsp + 0x40]
xor r9d, r9d
mov qword [rbx + 0x10], rcx
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rbx + 0x280], rax
lea rcx, [rbx + 0x18]
lea rax, [rsp + 0x50]
lea r8d, [rdi + 4]
nop dword [rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub r8, 1
jne 0x140016bf0
movups xmm0, xmmword [rax]
mov qword [rsp + 0x28], rdi
lea r8, [0x1400171f0]
mov r9, rbx
mov dword [rsp + 0x20], edi
movups xmmword [rcx], xmm0
xor edx, edx
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
mov eax, dword [rax + 0x60]
mov dword [rcx + 0x60], eax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
jmp 0x140016d6a
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbp + 0x158], 0xffffffffffffffff
lea rdx, [rsp + 0x50]
lea rcx, str.HID_device_is_legal_but_fail_to_open
call fcn.140032850
lea rdx, [rbx + 0x18]
mov dword [rbx + 0x27c], edi
lea rax, [rsp + 0x50]
mov qword [rbx + 0x10], rdi
mov r8d, 4
mov qword [rbx + 0x280], rdi
nop
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rdx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x10], xmm1
sub r8, 1
jne 0x140016ce0
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rdx + 0x50], xmm1
mov ecx, dword [rax + 0x60]
mov rax, rdi
mov dword [rdx + 0x60], ecx
mov qword [rbx + 0x288], rax
lea rcx, [0x140069370]
cmp dword [0x140069334], edi
mov dword [rbx + 0x290], edi
mov qword [rbx + 0x294], 0x100
mov qword [rbx + 0x29c], rdi
mov dword [rbx + 0x2a4], edi
mov dword [rbx + 0x2a8], 0x100
mov rax, qword [0x140069378]
mov qword [rbx], rcx
mov qword [rbx + 8], rax
mov qword [rax], rbx
mov qword [0x140069378], rbx
je 0x140016deb
mov qword [rsp + 0x28], rdi
lea r8, [0x140016e20]
mov r9, rbx
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
test rax, rax
je 0x140016deb
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, 1
jmp 0x140016df4
xor eax, eax
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140032e60
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret