Function at 0x140178b10
Capabilities:
Create thread
Terminate thread

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r15, rdx
mov rdi, rcx
movzx ecx, word [rdx + 0x10]
cmp cx, 1
jne 0x140178bcc
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
xor eax, eax
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, [0x140178e10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x138], rax
xor eax, eax
mov qword [rsp + 0x44], rax
mov qword [rsp + 0x4c], rax
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x44], 5
movups xmm0, xmmword [0x140306a90]
movups xmmword [rsp + 0x4c], xmm0
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, qword [r15]
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov qword [rdi + 0x130], rax
jmp 0x140178ddb
cmp cx, 2
jne 0x140178c32
mov rcx, qword [rdi + 0x130]
test rcx, rcx
je 0x140178be4
call qword [sym.imp.USER32.dll_UnregisterDeviceNotification]
mov rdx, qword [rdi + 0x138]
test rdx, rdx
je 0x140178ddb
xor r9d, r9d
mov r8d, 0x7530
mov rcx, qword [rdi + 0x148]
call qword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
cmp eax, 0x102
jne 0x140178c20
xor edx, edx
mov rcx, qword [rdi + 0x138]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0x138]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140178ddb
mov eax, 0x219
cmp cx, ax
jne 0x140178c64
mov rax, qword [rdx + 0x20]
sub rax, 0x8000
test rax, 0xfffffffffffffffb
jne 0x140178ddb
mov rcx, qword [rdi + 0x140]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x140178ddb
movzx eax, cx
cmp eax, dword [rdi + 0x150]
jne 0x140178d4e
mov r14, qword [rdx + 8]
mov rcx, qword [rdi + 0xa8]
call fcn.140214840
mov rbx, qword [r14]
cmp rbx, qword [r14 + 8]
je 0x140178d06
nop dword [rax]
mov rsi, qword [rbx]
movzx r9d, word [rsi + 8]
lea r8, str._c:_
mov edx, 4
lea rcx, [rsp + 0x60]
call fcn.1402c06b8
mov rcx, qword [rsi + 0x18]
movzx eax, word [rsi + 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9, qword [rsi + 0x10]
lea r8, str._s___s____c:_
mov edx, 0x80
lea rcx, [rsp + 0x70]
call fcn.1402c06b8
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi + 0xa8]
call fcn.1402146c0
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
add rbx, 8
cmp rbx, qword [r14 + 8]
jne 0x140178c90
mov rcx, qword [r14]
test rcx, rcx
je 0x140178d20
call fcn.14021ae20
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
mov rcx, r14
call fcn.14021ae20
lea rax, vtable.Core::EventArgs.0
mov qword [rsp + 0x30], rax
lea rcx, [rdi + 0xd0]
lea r8, [rsp + 0x30]
mov rdx, rdi
call fcn.140003280
nop
jmp 0x140178ddb
mov eax, 0x111
cmp cx, ax
jne 0x140178d82
cmp qword [rdx + 0x20], 1
jne 0x140178ddb
lea rax, vtable.Core::EventArgs.0
mov qword [rsp + 0x30], rax
lea rcx, [rdi + 0x100]
lea r8, [rsp + 0x30]
mov rdx, rdi
call fcn.140003280
nop
jmp 0x140178ddb
cmp cx, 0x7b
jne 0x140178ddb
movsx eax, word [rdx + 8]
mov dword [rsp + 0x60], eax
movsx eax, word [rdx + 0xa]
mov dword [rsp + 0x64], eax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov r9d, dword [rsp + 0x64]
mov r8d, dword [rsp + 0x60]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140212360
nop
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140178ddb
mov rcx, rdi
call fcn.140178940
nop
jmp 0x140178de6
mov rdx, r15
mov rcx, rdi
call fcn.140212720
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1402bcad0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret