Function at 0x140016f30
Capabilities:
Access the windows event log

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
mov rdx, qword [rcx + 0x58]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x140016fa6
mov rdx, qword [rbx + 0x58]
mov qword [rbp - 0x10], rdx
lea rax, str.SynTPEnhService_in_OnStop
mov qword [rbp - 8], rax
mov edx, 4
xor ecx, ecx
lea r9d, [rdx - 2]
lea r8d, [rdx - 3]
mov qword [rsp + 0x40], rcx
lea rax, [rbp - 0x10]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], r9w
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov dword [rbx + 0x90], 1
call fcn.140001330
mov rcx, rax
test rax, rax
je 0x1400171f3
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14000eb75.0]
add rax, 0x18
mov qword [rbp - 0x20], rax
call fcn.140001330
mov rcx, rax
test rax, rax
je 0x1400171fe
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14000eb75.0]
add rax, 0x18
mov qword [rbp + 0x38], rax
mov rdi, 0xffffffffffffffff
test byte [rbx + 0x2b8], 0x10
je 0x140017146
cmp dword [rbx + 0x2b4], 0
je 0x140017026
call fcn.14000a3d0
test eax, eax
je 0x14001712c
test byte [rbx + 0x2b8], 0x10
je 0x140017146
lea rax, [rbp + 0x28]
mov qword [rbp + 0x20], rax
lea rax, [rbp + 0x30]
mov qword [rbp - 0x18], rax
call fcn.140001330
mov rcx, rax
test rax, rax
je 0x140017209
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14000eb75.0]
add rax, 0x18
mov qword [rbp + 0x28], rax
lea rdx, str.DriverVersion
cmp rdx, 0x10000
jae 0x140017087
movzx edx, dx
lea rcx, [rbp + 0x28]
call fcn.14000d420
jmp 0x1400170a7
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140017090
mov r8d, eax
lea rcx, [rbp + 0x28]
call fcn.14000d640
nop
call fcn.140001330
mov rcx, rax
test rax, rax
je 0x140017214
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14000eb75.0]
add rax, 0x18
mov qword [rbp + 0x30], rax
lea rdx, str.SynTPInfo
cmp rdx, 0x10000
jae 0x1400170eb
movzx edx, dx
lea rcx, [rbp + 0x30]
call fcn.14000d420
jmp 0x140017107
mov rax, rdi
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400170f0
mov r8d, eax
lea rcx, [rbp + 0x30]
call fcn.14000d640
nop
lea r9, [rbp + 0x38]
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x30]
call fcn.140004510
test eax, eax
jne 0x140017146
mov rcx, rbx
call fcn.14001ae50
test eax, eax
jne 0x140017146
mov rcx, qword [rbx + 0xa8]
test rcx, rcx
je 0x14001713e
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbx
call fcn.14001b8f0
mov rcx, qword [rbx + 0xb0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, 0xffffffff
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400171d8
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x20]
call qword [sym.imp.SETUPAPI.dll_CM_Locate_DevNodeW]
test eax, eax
jne 0x140017189
lea edx, [rax + 4]
mov ecx, dword [rbp + 0x20]
call qword [sym.imp.SETUPAPI.dll_CM_Reenumerate_DevNode]
nop
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400171ae
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14000eb75.0]
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400171d0
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14000eb75.0]
add rsp, 0x70
pop rdi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov dword [rbp + 0x20], eax
lea rdx, [0x140058140]
lea rcx, [rbp + 0x20]
call fcn.1400265d8
nop
mov ecx, 0x80004005
call fcn.140003d60
nop
mov ecx, 0x80004005
call fcn.140003d60
nop
mov ecx, 0x80004005
call fcn.140003d60
nop
mov ecx, 0x80004005
call fcn.140003d60
int3