Function at 0x14001d310
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 [0x140079010]
xor rax, rsp
mov qword [rbp + 0x360], rax
xor eax, eax
lea r8, [0x140064c30]
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.140044288
xor edi, edi
mov qword [rbp + 0x158], 0xffffffffffffffff
lea rdx, [rsp + 0x50]
mov qword [rbp + 0x1ac], rdi
mov rcx, rbx
call fcn.14001cc60
test eax, eax
je 0x14001d71c
mov eax, 0xff31
cmp word [rbp + 0x162], ax
jne 0x14001d71c
cmp word [rbp + 0x160], 0x76
jne 0x14001d71c
mov eax, 0xb05
cmp word [rbp + 0x1a4], ax
jne 0x14001d71c
mov ecx, 0x2b3
call fcn.14004d694
mov rbx, rax
test rax, rax
je 0x14001d71c
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 0x14001d5bd
mov rcx, qword [rbp + 0x164]
test cx, cx
je 0x14001d5a9
movzx ecx, cx
lea edx, [rdi + 1]
call fcn.14004dea8
mov qword [rbp + 0x1ac], rax
lea rcx, [rbp + 0x1c0]
xor edx, edx
mov dword [rbx + 0x27c], 1
mov r8d, 0x1a0
call fcn.1400423d0
mov rax, qword [rbp + 0x158]
lea r9, [rsp + 0x40]
lea r8, [0x14001d7d0]
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 0x14001d500
movups xmm0, xmmword [rax]
mov qword [rsp + 0x28], rdi
lea r8, [0x14001db20]
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 0x14001d67a
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.14003f9e0
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 0x14001d5f0
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, [0x14007b518]
cmp dword [0x14007b528], 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 dword [rbx + 0x2ac], 0x100
mov word [rbx + 0x2b0], 0xff
mov byte [rbx + 0x2b2], dil
mov rax, qword [0x14007b520]
mov qword [rbx], rcx
mov qword [rbx + 8], rax
mov qword [rax], rbx
mov qword [0x14007b520], rbx
je 0x14001d715
mov qword [rsp + 0x28], rdi
lea r8, [0x14001d750]
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 0x14001d715
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, 1
jmp 0x14001d71e
xor eax, eax
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.1400406e0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret