Function at 0x7ff6877f0de0
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
lea rbp, [rsp - 0x4f]
sub rsp, 0xb8
mov rax, qword [0x7ff68785f0c0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rcx
test rcx, rcx
jne 0x7ff6877f0e0f
mov eax, 0xe0000013
jmp 0x7ff6877f108b
mov qword [rsp + 0xe0], rdi
xorps xmm0, xmm0
mov qword [rsp + 0xb0], r12
mov edi, 0xe0000001
xor r12d, r12d
mov qword [rsp + 0xa0], r15
cmp qword [rcx], 0xffffffffffffffff
mov r15d, r12d
movups xmmword [rbp + 0xf], xmm0
mov dword [rbp + 0xf], 0x20
movups xmmword [rbp + 0x1f], xmm0
mov dword [rbp - 0x29], r12d
je 0x7ff6877f0e56
lea eax, [rdi + 0x11]
jmp 0x7ff6877f1073
mov qword [rsp + 0xd8], rbx
lea rcx, [0x7ff687845a80]
mov r9d, 0x12
mov qword [rsp + 0xa8], r14
xor r8d, r8d
xor edx, edx
call qword [sym.imp.setupapi.dll_SetupDiGetClassDevsW]
xor r9d, r9d
lea r8, [0x7ff687845a80]
mov r14, rax
xor edx, edx
lea rax, [rbp + 0xf]
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.setupapi.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x7ff6877f1058
nop word [rax + rax]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], r12
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0xf]
mov rcx, r14
inc r15d
call qword [sym.imp.setupapi.dll_SetupDiGetDeviceInterfaceDetailW]
mov ecx, dword [rbp - 0x29]
call qword [sym.imp.ucrtbase.dll_malloc]
mov qword [rsp + 0x28], r12
lea rdx, [rbp + 0xf]
mov rbx, rax
mov rcx, r14
mov r8, rbx
mov dword [rax], 8
lea rax, [rbp - 0x29]
mov r9d, dword [rbp - 0x29]
mov qword [rsp + 0x20], rax
call qword [sym.imp.setupapi.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x7ff6877f0f1f
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_free]
mov edi, 0xe0000001
jmp 0x7ff6877f0ff6
xor r9d, r9d
mov qword [rsp + 0x30], r12
lea rcx, [rbx + 4]
mov dword [rsp + 0x28], 0xe0000080
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.kernel32.dll_CreateFileW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x7ff6877f0f5d
mov edi, 0xe0000009
jmp 0x7ff6877f0fed
xorps xmm0, xmm0
mov dword [rbp - 1], r12d
xor r9d, r9d
mov qword [rbp - 0x21], r12
xor r8d, r8d
xor edx, edx
xor ecx, ecx
movdqu xmmword [rbp - 0x19], xmm0
call qword [sym.imp.kernel32.dll_CreateEventW]
mov rcx, qword [rsi]
lea r8, [rbp + 7]
mov qword [rbp - 9], rax
mov r9d, 8
lea rax, [rbp - 0x21]
mov dword [rbp + 7], 8
mov qword [rsp + 0x38], rax
mov edx, 0x2aa00c
lea rax, [rbp - 1]
mov dword [rbp + 0xb], 1
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.kernel32.dll_DeviceIoControl]
mov rcx, qword [rsi]
lea r8, [rbp - 1]
mov r9d, 1
lea rdx, [rbp - 0x21]
call qword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
jne 0x7ff6877f101e
mov rcx, qword [rbp - 9]
mov edi, 0xe0000008
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_free]
lea rax, [rbp + 0xf]
mov r9d, r15d
lea r8, [0x7ff687845a80]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, r14
call qword [sym.imp.setupapi.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x7ff6877f0eb0
jmp 0x7ff6877f1058
mov qword [rsp + 0x28], r12
lea r8, [0x7ff6877f0b50]
mov r9, rsi
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_CreateThread]
mov rcx, rbx
mov qword [rsi + 8], rax
mov edi, 0x20000000
call qword [sym.imp.ucrtbase.dll_free]
mov rcx, qword [rbp - 9]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.setupapi.dll_SetupDiDestroyDeviceInfoList]
mov r14, qword [rsp + 0xa8]
mov eax, edi
mov rbx, qword [rsp + 0xd8]
mov r12, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xe0]
mov r15, qword [rsp + 0xa0]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.7ff68783f500
add rsp, 0xb8
pop rsi
pop rbp
ret