Function at 0x140175b00
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 [0x140415a10]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r15, rdx
mov rdi, rcx
movzx ecx, word [rdx + 0x10]
cmp cx, 1
jne 0x140175bbc
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
xor eax, eax
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, [0x140175e00]
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 [0x140300a70]
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 0x140175dcb
cmp cx, 2
jne 0x140175c22
mov rcx, qword [rdi + 0x130]
test rcx, rcx
je 0x140175bd4
call qword [sym.imp.USER32.dll_UnregisterDeviceNotification]
mov rdx, qword [rdi + 0x138]
test rdx, rdx
je 0x140175dcb
xor r9d, r9d
mov r8d, 0x7530
mov rcx, qword [rdi + 0x148]
call qword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
cmp eax, 0x102
jne 0x140175c10
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 0x140175dcb
mov eax, 0x219
cmp cx, ax
jne 0x140175c54
mov rax, qword [rdx + 0x20]
sub rax, 0x8000
test rax, 0xfffffffffffffffb
jne 0x140175dcb
mov rcx, qword [rdi + 0x140]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x140175dcb
movzx eax, cx
cmp eax, dword [rdi + 0x150]
jne 0x140175d3e
mov r14, qword [rdx + 8]
mov rcx, qword [rdi + 0xa8]
call fcn.14020eb80
mov rbx, qword [r14]
cmp rbx, qword [r14 + 8]
je 0x140175cf6
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.1402ba928
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.1402ba928
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi + 0xa8]
call fcn.14020ea00
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
add rbx, 8
cmp rbx, qword [r14 + 8]
jne 0x140175c80
mov rcx, qword [r14]
test rcx, rcx
je 0x140175d10
call fcn.1402150f0
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
mov rcx, r14
call fcn.1402150f0
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 0x140175dcb
mov eax, 0x111
cmp cx, ax
jne 0x140175d72
cmp qword [rdx + 0x20], 1
jne 0x140175dcb
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 0x140175dcb
cmp cx, 0x7b
jne 0x140175dcb
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.14020c220
nop
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140175dcb
mov rcx, rdi
call fcn.140175930
nop
jmp 0x140175dd6
mov rdx, r15
mov rcx, rdi
call fcn.14020c5e0
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1402b6d40
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret