Function at 0x140003330
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140037040]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r13, rcx
mov r9d, 0xa
lea rcx, [0x140026530]
xor r8d, r8d
xor edx, edx
xor r15b, r15b
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140003422
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rbx, [0x140038e60]
mov r8d, eax
mov rcx, rbx
lea rdx, str._ELAN_Service__SetupDiGetClassDevs_fail__m_hDevInfo__INVALID_HANDLE_VALUE___error__0x_.8X___
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, rbx
xor ecx, ecx
call fcn.140001140
lea rsi, str.ELAN_Service
xor ecx, ecx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov r14, rax
test rax, rax
je 0x14000341b
xor edi, edi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
xor r8d, r8d
mov dword [rsp + 0x30], edi
mov r9d, 0x36b0
mov word [rsp + 0x28], 2
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea edx, [r8 + 4]
mov qword [rsp + 0x58], rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov al, 1
jmp 0x1400034b6
xor edi, edi
mov dword [rsp + 0x70], 0x20
mov dword [rsp + 0x60], edi
mov ebx, edi
cmp ebx, 0x14
jge 0x1400034a9
lea r8, [rsp + 0x70]
mov edx, ebx
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
cmp eax, 1
jne 0x1400034a3
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], edi
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x6c]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x28], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
cmp eax, 1
jne 0x140003767
lea rdx, str.ELAN
lea rcx, [rbp - 0x70]
call fcn.1400073a0
test rax, rax
jne 0x1400034e1
inc ebx
jmp 0x140003432
inc ebx
test eax, eax
jne 0x140003432
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
movzx eax, r15b
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400059a0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov r8d, dword [rbp - 0x7c]
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x64], edi
lea rcx, [rsp + 0x64]
call qword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Status]
test eax, eax
jne 0x1400036d9
test dword [rsp + 0x64], 0x400
jbe 0x1400034a9
mov r8d, dword [rsp + 0x60]
lea rbx, [0x140038e60]
mov rcx, rbx
mov r15b, 2
cmp r8d, 0x1f
jne 0x1400035b1
lea rdx, str._ELAN_Service__Got_yellow_bang__error_code_31__CM_PROB_FAILED_ADD_
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, rbx
xor ecx, ecx
call fcn.140001140
lea rsi, str.ELAN_Service
xor ecx, ecx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov r14, rax
test rax, rax
je 0x1400035a4
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov eax, 2
mov dword [rsp + 0x30], edi
xor r8d, r8d
mov word [rsp + 0x28], ax
mov edx, eax
mov r9d, 0x36b0
mov qword [rsp + 0x20], rdi
mov rcx, r14
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov dword [r13], 0x1f
jmp 0x1400034b2
cmp r8d, 0x2b
jne 0x140003642
lea rdx, str._ELAN_Service__Got_yellow_bang__error_code_43__CM_PROB_FAILED_POST_START_
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, rbx
xor ecx, ecx
call fcn.140001140
lea rsi, str.ELAN_Service
xor ecx, ecx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov r14, rax
test rax, rax
je 0x140003635
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov eax, 2
mov dword [rsp + 0x30], edi
xor r8d, r8d
mov word [rsp + 0x28], ax
mov edx, eax
mov r9d, 0x36b0
mov qword [rsp + 0x20], rdi
mov rcx, r14
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov dword [r13], 0x2b
jmp 0x1400034b2
lea rdx, str._ELAN_Service__Got_message__Message_code___d
mov qword [rsp + 0x2e8], r12
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, rbx
xor ecx, ecx
call fcn.140001140
lea rsi, str.ELAN_Service
xor ecx, ecx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov r12, rax
test rax, rax
je 0x1400036c4
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov eax, 2
mov dword [rsp + 0x30], edi
xor r8d, r8d
mov word [rsp + 0x28], ax
mov edx, eax
mov r9d, 0x36b0
mov qword [rsp + 0x20], rdi
mov rcx, r12
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, dword [rsp + 0x60]
mov r12, qword [rsp + 0x2e8]
mov dword [r13], eax
jmp 0x1400034a9
lea rbx, [0x140038e60]
mov r8d, eax
mov rcx, rbx
lea rdx, str._ELAN_Service__CM_Get_DevNode_Status_fail__GetDeviceNodeResult__0x_X
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, rbx
xor ecx, ecx
call fcn.140001140
lea rsi, str.ELAN_Service
xor ecx, ecx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov r15, rax
test rax, rax
je 0x14000375f
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
xor r8d, r8d
mov dword [rsp + 0x30], edi
mov r9d, 0x36b0
mov word [rsp + 0x28], 2
mov rcx, rax
mov qword [rsp + 0x50], rsi
lea edx, [r8 + 4]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov r15b, 3
jmp 0x1400034a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rbx, [0x140038e60]
mov r8d, eax
mov rcx, rbx
lea rdx, str._ELAN_Service__SetupDiGetDeviceRegistryProperty_fail__GetLastError___d
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, rbx
xor ecx, ecx
call fcn.140001140
lea rsi, str.ELAN_Service
xor ecx, ecx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov r14, rax
test rax, rax
je 0x1400037f3
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
xor r8d, r8d
mov dword [rsp + 0x30], edi
mov r9d, 0x36b0
mov word [rsp + 0x28], 2
mov rcx, rax
mov qword [rsp + 0x50], rsi
lea edx, [r8 + 4]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov al, 4
jmp 0x1400034b6