Function at 0x1401664b0
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 [0x1403eaa10]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r15, rdx
mov rdi, rcx
movzx ecx, word [rdx + 0x10]
cmp cx, 1
jne 0x14016656c
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
xor eax, eax
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, [0x1401667b0]
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 [0x1402dfa30]
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 0x14016677b
cmp cx, 2
jne 0x1401665d2
mov rcx, qword [rdi + 0x130]
test rcx, rcx
je 0x140166584
call qword [sym.imp.USER32.dll_UnregisterDeviceNotification]
mov rdx, qword [rdi + 0x138]
test rdx, rdx
je 0x14016677b
xor r9d, r9d
mov r8d, 0x7530
mov rcx, qword [rdi + 0x148]
call qword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
cmp eax, 0x102
jne 0x1401665c0
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 0x14016677b
mov eax, 0x219
cmp cx, ax
jne 0x140166604
mov rax, qword [rdx + 0x20]
sub rax, 0x8000
test rax, 0xfffffffffffffffb
jne 0x14016677b
mov rcx, qword [rdi + 0x140]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x14016677b
movzx eax, cx
cmp eax, dword [rdi + 0x150]
jne 0x1401666ee
mov r14, qword [rdx + 8]
mov rcx, qword [rdi + 0xa8]
call fcn.1401fad50
mov rbx, qword [r14]
cmp rbx, qword [r14 + 8]
je 0x1401666a6
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.14029b4b4
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.14029b4b4
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi + 0xa8]
call fcn.1401fabd0
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
add rbx, 8
cmp rbx, qword [r14 + 8]
jne 0x140166630
mov rcx, qword [r14]
test rcx, rcx
je 0x1401666c0
call fcn.1402012c0
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
mov rcx, r14
call fcn.1402012c0
lea rax, vtable.Core::EventArgs.0
mov qword [rsp + 0x30], rax
lea rcx, [rdi + 0xd0]
lea r8, [rsp + 0x30]
mov rdx, rdi
call fcn.140003150
nop
jmp 0x14016677b
mov eax, 0x111
cmp cx, ax
jne 0x140166722
cmp qword [rdx + 0x20], 1
jne 0x14016677b
lea rax, vtable.Core::EventArgs.0
mov qword [rsp + 0x30], rax
lea rcx, [rdi + 0x100]
lea r8, [rsp + 0x30]
mov rdx, rdi
call fcn.140003150
nop
jmp 0x14016677b
cmp cx, 0x7b
jne 0x14016677b
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.1401f83f0
nop
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14016677b
mov rcx, rdi
call fcn.1401662e0
nop
jmp 0x140166786
mov rdx, r15
mov rcx, rdi
call fcn.1401f87b0
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140297ff0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret