Function at 0x140005680
Capabilities:
Access the windows event log
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
lea rax, [rsp + 0xa8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSetControlElanFPOtherSetting
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
lea rbp, [0x140038e60]
lea r14, str.ELAN_Service
lea esi, [rdi + 2]
test eax, eax
jne 0x140005762
mov rcx, qword [rsp + 0xa8]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x90]
lea rax, [rsp + 0x98]
mov dword [rsp + 0x98], edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ServicePollingTime
mov dword [rsp + 0x90], 4
mov ebx, 0xffffffff
mov dword [rsp + 0xa0], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140005744
cmp dword [rsp + 0x90], 4
cmove ebx, dword [rsp + 0x98]
mov rcx, qword [rsp + 0xa8]
cmp ebx, 0xffffffff
mov eax, edi
cmovne eax, ebx
mov dword [0x140039068], eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400057d2
mov r8d, esi
mov dword [0x140039068], esi
lea rdx, str._ELAN_Service__RegOpenKeyEx__Set_ServicePollingTime_default_value___d
mov rcx, rbp
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x1400057d2
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], edi
mov edx, esi
mov word [rsp + 0x28], si
mov r9d, 0x36b0
mov rcx, rbx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], rbp
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
cmp dword [0x140039068], edi
jne 0x14000584a
mov r8d, esi
mov dword [0x140039068], esi
lea rdx, str._ELAN_Service__ServicePollingTime__0__Set_ServicePollingTime_default_value___d
mov rcx, rbp
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14000584a
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], edi
mov edx, esi
mov word [rsp + 0x28], si
mov r9d, 0x36b0
mov rcx, rbx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], rbp
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov r8d, dword [0x140039068]
lea rdx, str._ELAN_Service__ServicePollingTime___d
mov rcx, rbp
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x1400058ba
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], edi
mov r9d, 0x36b0
mov word [rsp + 0x28], si
mov rcx, rbx
mov qword [rsp + 0x50], r14
lea edx, [r8 + 4]
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret