Function at 0x140054a70
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x710], rbx
mov rsi, rdx
mov rbx, rcx
mov rax, qword [rbp + 0x628]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0x620]
mov dword [rsp + 0x20], eax
call fcn.1400a96c0
nop
lea rax, vtable.CPluginZone.0
mov qword [rbx], rax
lea rax, vtable.CPluginZone.1.0
mov qword [rbx + 8], rax
xor r15d, r15d
mov qword [rbx + 0x1c0], r15
lea rcx, [rbx + 0x1c8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov qword [rbx + 0x280], rsi
mov dword [rbx + 0x230], r15d
mov dword [rbx + 0x234], 0x1f4
mov dword [rbx + 0x238], 0x1f4
mov qword [rbx + 0x244], 0xffffffffffffffff
mov qword [rbx + 0x24c], 0xffffffffffffffff
mov qword [rbx + 0x254], r15
mov dword [rbx + 0x25c], r15d
mov dword [rbx + 0x23c], 0x1f4
mov dword [rbx + 0x264], r15d
mov dword [rbx + 0x278], r15d
mov qword [rbx + 0x2d8], rsi
mov dword [rbx + 0x288], r15d
mov dword [rbx + 0x28c], 0x1f4
mov dword [rbx + 0x290], 0x1f4
mov qword [rbx + 0x29c], 0xffffffffffffffff
mov qword [rbx + 0x2a4], 0xffffffffffffffff
mov qword [rbx + 0x2ac], r15
mov dword [rbx + 0x2b4], r15d
mov dword [rbx + 0x294], 0x1f4
mov dword [rbx + 0x2bc], r15d
mov dword [rbx + 0x2d0], r15d
mov qword [rbx + 0x2e0], r15
mov qword [rbx + 0x2e8], r15
mov dword [rbx + 0x2f0], r15d
mov dword [rbx + 0x2f4], 0x1f4
xor eax, eax
mov qword [rbx + 0x1f0], rax
mov qword [rbx + 0x1f8], r15
mov qword [rbx + 0x200], r15
mov qword [rbx + 0x224], r15
mov dword [rbx + 0x208], r15d
mov byte [rbx + 0x300], 0xf
mov dword [rbx + 0x20c], 0x12c
mov dword [rbx + 0x210], 0x64
mov dword [rbx + 0x214], 0x12c
mov dword [rbx + 0x218], 0x64
mov dword [rbx + 0x21c], 0xc8
mov dword [rbx + 0x220], 1
test rsi, rsi
je 0x140055045
mov dword [rbp + 0x608], r15d
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x140054d03
mov rax, qword [rcx]
lea r8, [rbp + 0x608]
mov edx, 0x10000102
call qword [rax + 0x18]
cmp dword [rbp + 0x608], 2
jne 0x140054d03
mov edi, r15d
mov dword [rbp + 0x608], r15d
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x140054c95
mov rax, qword [rcx]
lea r8, [rbp + 0x608]
mov edx, 0x10000113
call qword [rax + 0x18]
mov edi, dword [rbp + 0x608]
mov eax, 0x86f
test edi, edi
cmove edi, eax
mov r14d, r15d
mov dword [rbp + 0x608], r15d
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x140054ccb
mov rax, qword [rcx]
lea r8, [rbp + 0x608]
mov edx, 0x10001fc
call qword [rax + 0x18]
mov r14d, dword [rbp + 0x608]
mov eax, r15d
mov dword [rsp + 0x30], eax
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x140054cef
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
mov edx, 0x10001fa
call qword [rax + 0x18]
mov eax, dword [rsp + 0x30]
sub r14d, eax
imul eax, r14d, 0x3e8
xor edx, edx
div edi
mov dword [rbx + 0x314], eax
mov rcx, rsi
call fcn.140032230
test eax, eax
je 0x140055045
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1400ca730
nop
mov dword [rbp + 0x608], 0x208
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPEnhPlugInConfigTouchPad
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x40]
call fcn.1400ca8a0
test eax, eax
je 0x140054db8
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str.ButtonSoundFlags
lea rcx, [rsp + 0x48]
call fcn.1400e16b0
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0x228], eax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x608]
lea r8, [rbp + 0x1b0]
lea rdx, str.ButtonClickSound
lea rcx, [rsp + 0x48]
call fcn.1400e17c0
lea rcx, [rsp + 0x48]
call fcn.1400e1160
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x20]
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp + 0xa0]
call fcn.140058710
nop
cmp qword [rbp + 0x140], 0
je 0x140054e91
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rbp + 0xa0]
call fcn.14005b3a0
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0xa0]
call fcn.14005b7c0
mov rdi, qword [rax + 8]
add rdi, qword [rax]
test rdi, rdi
jle 0x140054e55
mov ecx, edi
call fcn.1400e4e54
mov qword [0x140270680], rax
test rax, rax
je 0x140054e55
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xa0]
call fcn.14005b3a0
mov r8, rdi
mov rdx, qword [0x140270680]
lea rcx, [rbp + 0xa0]
call fcn.14005b2b0
lea rcx, [rbp + 0xb0]
call fcn.14005a870
test rax, rax
jne 0x140054e91
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx + 0xa0]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x140054e89
or edx, 4
xor r8d, r8d
call fcn.14005a780
mov dword [rbp + 0x608], 0x208
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPEnhPlugInConfigTouchPad
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x40]
call fcn.1400ca8a0
test eax, eax
je 0x140054ef7
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x608]
lea r8, [rbp + 0x3c0]
lea rdx, str.ButtonReleaseSound
lea rcx, [rsp + 0x48]
call fcn.1400e17c0
lea rcx, [rsp + 0x48]
call fcn.1400e1160
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x20]
lea rdx, [rbp + 0x3c0]
lea rcx, [rbp - 0x70]
call fcn.140058710
nop
cmp qword [rbp + 0x30], 0
je 0x140054fb5
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rbp - 0x70]
call fcn.14005b3a0
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x70]
call fcn.14005b7c0
mov rdi, qword [rax + 8]
add rdi, qword [rax]
test rdi, rdi
jle 0x140054f82
mov ecx, edi
call fcn.1400e4e54
mov qword [0x140270688], rax
test rax, rax
je 0x140054f82
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x70]
call fcn.14005b3a0
mov r8, rdi
mov rdx, qword [0x140270688]
lea rcx, [rbp - 0x70]
call fcn.14005b2b0
lea rcx, [rbp - 0x60]
call fcn.14005a870
test rax, rax
jne 0x140054fb5
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx - 0x70]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x140054fad
or edx, 4
xor r8d, r8d
call fcn.14005a780
lea r9, str.SoundEvent
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140270678], rax
lea rax, [rbx + 0x1a8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rbx
lea r8, [0x140058210]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140270670], rax
lea rcx, [rbp + 0x40]
call fcn.140058d20
lea rdi, vtable.std::ios_base.0
mov qword [rbp + 0x40], rdi
lea rcx, [rbp + 0x40]
call fcn.1400e56cc
nop
lea rcx, [rbp + 0x150]
call fcn.140058d20
mov qword [rbp + 0x150], rdi
lea rcx, [rbp + 0x150]
call fcn.1400e56cc
nop
lea rcx, [rsp + 0x40]
call fcn.1400ca840
nop
mov rax, rbx
mov rbx, qword [rsp + 0x710]
add rsp, 0x6d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret