Function at 0x140003800
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x140037040]
xor rax, rsp
mov qword [rbp + 0x210], rax
lea r13, [0x140038e60]
mov rcx, r13
lea rdx, str._ELAN_Service__Enter_DisableAndEnableELANFPDevice
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, r13
xor ecx, ecx
call fcn.140001140
lea r15, str.ELAN_Service
xor ecx, ecx
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
xor r12d, r12d
mov edi, 2
mov rbx, rax
test rax, rax
je 0x1400038bc
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea edx, [rdi + 2]
mov dword [rsp + 0x30], r12d
xor r8d, r8d
mov word [rsp + 0x28], di
mov r9d, 0x36b0
mov rcx, rbx
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r13
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov r9d, 0xa
mov qword [rsp + 0x350], rsi
xor r8d, r8d
lea rcx, [0x140026530]
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140003939
lea rdx, str._ELAN_Service__SetupDiGetClassDevs_fail__m_hDevInfo__INVALID_HANDLE_VALUE_
mov rcx, r13
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, r13
xor ecx, ecx
call fcn.140001140
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140003fb0
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r12d
mov word [rsp + 0x28], di
mov qword [rsp + 0x50], r15
jmp 0x140003f87
mov dword [rbp - 0x20], 0x20
mov edi, r12d
mov esi, r12d
cmp esi, 0x14
jge 0x140003e61
lea r8, [rbp - 0x20]
mov edx, esi
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
mov r15d, eax
cmp eax, 1
jne 0x140003e56
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x64]
lea rax, [rbp]
mov dword [rsp + 0x28], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x20]
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
cmp eax, r15d
jne 0x140003f2a
lea rdx, str.ELAN
lea rcx, [rbp]
call fcn.1400073a0
test rax, rax
je 0x140003f23
lea rdx, str._ELAN_Service__Enter_Start_Disable_and_Enable_ELAN_FPR_device
mov rcx, r13
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, r13
xor ecx, ecx
call fcn.140001140
xorps xmm0, xmm0
lea rdx, str.ELAN_Service
xor ecx, ecx
movdqu xmmword [rsp + 0x68], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140003a4b
mov qword [rsp + 0x40], r12
lea rax, str.ELAN_Service
mov qword [rsp + 0x68], rax
lea edx, [r15 + 3]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], r12d
mov r9d, 0x36b0
mov word [rsp + 0x28], 2
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea rdx, str._ELAN_Service__Disable_the_FPR_device...
mov rcx, r13
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, r13
xor ecx, ecx
call fcn.140001140
xorps xmm0, xmm0
lea rdx, str.ELAN_Service
xor ecx, ecx
movdqu xmmword [rsp + 0x78], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140003ad4
mov qword [rsp + 0x40], r12
lea rax, str.ELAN_Service
mov qword [rsp + 0x78], rax
xor r8d, r8d
lea rax, [rsp + 0x78]
mov qword [rbp - 0x80], r13
mov qword [rsp + 0x38], rax
mov r9d, 0x36b0
mov dword [rsp + 0x30], r12d
mov rcx, rbx
mov word [rsp + 0x28], 2
lea edx, [r8 + 4]
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, 2
mov dword [rbp - 0x38], 8
lea r8, [rbp - 0x38]
mov dword [rbp - 0x34], 0x12
lea rdx, [rbp - 0x20]
mov dword [rbp - 0x2c], 1
mov rcx, r14
mov dword [rbp - 0x30], eax
lea r9d, [rax + 0x12]
call qword [sym.imp.SETUPAPI.dll_SetupDiSetClassInstallParamsW]
test eax, eax
jne 0x140003b9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._ELAN_Service__SetupDiSetClassInstallParams_fail_Disable_Device___errorcode__0x_.8X
mov rcx, r13
mov r8d, eax
mov edi, eax
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, r13
xor ecx, ecx
call fcn.140001140
xorps xmm0, xmm0
lea rdx, str.ELAN_Service
xor ecx, ecx
movdqu xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140003b9f
mov qword [rsp + 0x40], r12
lea rax, str.ELAN_Service
mov qword [rbp - 0x78], rax
xor r8d, r8d
lea rax, [rbp - 0x78]
mov qword [rbp - 0x70], r13
mov qword [rsp + 0x38], rax
mov r9d, 0x36b0
mov dword [rsp + 0x30], r12d
mov rcx, rbx
mov word [rsp + 0x28], 2
lea edx, [r8 + 4]
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea r8, [rbp - 0x20]
mov rdx, r14
mov ecx, 0x12
call qword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
test eax, eax
jne 0x140003c4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._ELAN_Service__SetupDiCallClassInstaller_fail__Disable_Device___errorcode__0x_.8X
mov rcx, r13
mov r8d, eax
mov edi, eax
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, r13
xor ecx, ecx
call fcn.140001140
xorps xmm0, xmm0
lea rdx, str.ELAN_Service
xor ecx, ecx
movdqu xmmword [rbp - 0x68], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140003c4a
mov qword [rsp + 0x40], r12
lea rax, str.ELAN_Service
mov qword [rbp - 0x68], rax
xor r8d, r8d
lea rax, [rbp - 0x68]
mov qword [rbp - 0x60], r13
mov qword [rsp + 0x38], rax
mov r9d, 0x36b0
mov dword [rsp + 0x30], r12d
mov rcx, rbx
mov word [rsp + 0x28], 2
lea edx, [r8 + 4]
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str._ELAN_Service__Enalbe_the_FPR_device...
mov rcx, r13
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, r13
xor ecx, ecx
call fcn.140001140
xorps xmm0, xmm0
lea rdx, str.ELAN_Service
xor ecx, ecx
movdqu xmmword [rbp - 0x58], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140003cdb
mov qword [rsp + 0x40], r12
lea rax, str.ELAN_Service
mov qword [rbp - 0x58], rax
xor r8d, r8d
lea rax, [rbp - 0x58]
mov qword [rbp - 0x50], r13
mov qword [rsp + 0x38], rax
mov r9d, 0x36b0
mov dword [rsp + 0x30], r12d
mov rcx, rbx
mov word [rsp + 0x28], 2
lea edx, [r8 + 4]
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov r9d, 0x14
mov dword [rbp - 0x38], 8
lea r8, [rbp - 0x38]
mov dword [rbp - 0x34], 0x12
lea rdx, [rbp - 0x20]
mov dword [rbp - 0x2c], 1
mov rcx, r14
mov dword [rbp - 0x30], 1
call qword [sym.imp.SETUPAPI.dll_SetupDiSetClassInstallParamsW]
test eax, eax
jne 0x140003da7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._ELAN_Service__SetupDiSetClassInstallParams_fail_Enable_Device___errorcode__0x_.8X
mov rcx, r13
mov r8d, eax
mov edi, eax
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, r13
xor ecx, ecx
call fcn.140001140
xorps xmm0, xmm0
lea rdx, str.ELAN_Service
xor ecx, ecx
movdqu xmmword [rbp - 0x48], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140003da7
mov qword [rsp + 0x40], r12
lea rax, str.ELAN_Service
mov qword [rbp - 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x48]
mov qword [rbp - 0x40], r13
mov qword [rsp + 0x38], rax
mov r9d, 0x36b0
mov dword [rsp + 0x30], r12d
mov rcx, rbx
mov word [rsp + 0x28], 2
lea edx, [r8 + 4]
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea r8, [rbp - 0x20]
mov rdx, r14
mov ecx, 0x12
call qword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
test eax, eax
jne 0x140003e56
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._ELAN_Service__SetupDiCallClassInstaller_fail__Enable_Device___errorcode__0x_.8X
mov rcx, r13
mov r8d, eax
mov edi, eax
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, r13
xor ecx, ecx
call fcn.140001140
xorps xmm0, xmm0
lea rdx, str.ELAN_Service
xor ecx, ecx
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140003e56
mov qword [rsp + 0x40], r12
lea rax, str.ELAN_Service
mov qword [rsp + 0x50], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x38], rax
mov r9d, 0x36b0
mov dword [rsp + 0x30], r12d
mov rcx, rbx
mov word [rsp + 0x28], 2
lea edx, [r8 + 4]
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
inc esi
test r15d, r15d
jne 0x140003946
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov r8d, edi
lea rdx, str._ELAN_Service__Exit_RecoverELANFPDevice__errorcode___d
mov rcx, r13
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, r13
xor ecx, ecx
call fcn.140001140
lea r15, str.ELAN_Service
xor ecx, ecx
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140003eea
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
xor r8d, r8d
mov dword [rsp + 0x30], r12d
mov r9d, 0x36b0
mov word [rsp + 0x28], 2
mov rcx, rax
mov qword [rsp + 0x50], r15
lea edx, [r8 + 4]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, 1
mov rsi, qword [rsp + 0x350]
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400059a0
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
inc esi
jmp 0x140003946
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._ELAN_Service__RecoverELANFPDevice_fail__GetLastError____d
mov rcx, r13
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, r13
xor ecx, ecx
call fcn.140001140
lea rdi, str.ELAN___Debug
xor ecx, ecx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140003fb0
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r12d
mov word [rsp + 0x28], 2
mov qword [rsp + 0x50], rdi
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov r9d, 0x36b0
mov qword [rsp + 0x58], r13
mov rcx, rbx
lea edx, [r8 + 4]
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
xor eax, eax
jmp 0x140003eef