Function at 0x140176ed0
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 [0x140418a10]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r15, rdx
mov rdi, rcx
movzx ecx, word [rdx + 0x10]
cmp cx, 1
jne 0x140176f8c
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
xor eax, eax
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, [0x1401771d0]
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 [0x140302a30]
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 0x14017719b
cmp cx, 2
jne 0x140176ff2
mov rcx, qword [rdi + 0x130]
test rcx, rcx
je 0x140176fa4
call qword [sym.imp.USER32.dll_UnregisterDeviceNotification]
mov rdx, qword [rdi + 0x138]
test rdx, rdx
je 0x14017719b
xor r9d, r9d
mov r8d, 0x7530
mov rcx, qword [rdi + 0x148]
call qword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
cmp eax, 0x102
jne 0x140176fe0
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 0x14017719b
mov eax, 0x219
cmp cx, ax
jne 0x140177024
mov rax, qword [rdx + 0x20]
sub rax, 0x8000
test rax, 0xfffffffffffffffb
jne 0x14017719b
mov rcx, qword [rdi + 0x140]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x14017719b
movzx eax, cx
cmp eax, dword [rdi + 0x150]
jne 0x14017710e
mov r14, qword [rdx + 8]
mov rcx, qword [rdi + 0xa8]
call fcn.140211270
mov rbx, qword [r14]
cmp rbx, qword [r14 + 8]
je 0x1401770c6
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.1402bd1f8
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.1402bd1f8
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi + 0xa8]
call fcn.1402110f0
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
add rbx, 8
cmp rbx, qword [r14 + 8]
jne 0x140177050
mov rcx, qword [r14]
test rcx, rcx
je 0x1401770e0
call fcn.1402177e0
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
mov rcx, r14
call fcn.1402177e0
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 0x14017719b
mov eax, 0x111
cmp cx, ax
jne 0x140177142
cmp qword [rdx + 0x20], 1
jne 0x14017719b
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 0x14017719b
cmp cx, 0x7b
jne 0x14017719b
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.14020ed90
nop
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14017719b
mov rcx, rdi
call fcn.140176d00
nop
jmp 0x1401771a6
mov rdx, r15
mov rcx, rdi
call fcn.14020f150
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1402b9610
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret