Function at 0x14001f174
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r15
mov rbp, rsp
sub rsp, 0x70
mov rbx, rdx
mov byte [rbp + 0x30], 0
xor r12d, r12d
lea rax, vtable.HModule.0
mov qword [rbp - 0x18], rax
and qword [rbp - 0x10], r12
and qword [rbp - 0x20], r12
mov ecx, 0x208
call fcn.1400842e8
mov qword [rbp - 0x28], rax
test rbx, rbx
je 0x14001f612
lea r15, str.System
mov rdx, r15
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14001f5c8
lea r8, [rbp - 0x20]
call fcn.140075e70
mov edi, eax
test eax, eax
js 0x14001f6b7
lea rax, str.SystemEvents.txt
mov qword [rsp + 0x28], rax
lea rax, [0x1400abd60]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x1400ac408]
mov edx, 0x104
mov rcx, qword [rbp - 0x28]
call fcn.14001f8e0
mov edi, eax
test eax, eax
jns 0x14001f261
lea rsi, str.8__r_
mov rcx, qword [str.8__r_]
cmp rcx, rsi
je 0x14001f255
test byte [rcx + 0x1c], 1
je 0x14001f255
lea edx, [r12 + 0x30]
mov r9d, eax
lea r8, [0x1400ae970]
mov rcx, qword [rcx + 0x10]
call fcn.140004000
lea rcx, str.ERROR:_StringCchPrintfW___failed___lx__n
jmp 0x14001f6af
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov r12, rax
test rax, rax
jne 0x14001f2b8
call fcn.14007a89c
mov edi, eax
lea rsi, str.8__r_
mov rcx, qword [str.8__r_]
cmp rcx, rsi
je 0x14001f2ac
test byte [rcx + 0x1c], 1
je 0x14001f2ac
lea edx, [r12 + 0x32]
mov r9d, eax
lea r8, [0x1400ae970]
mov rcx, qword [rcx + 0x10]
call fcn.140004000
lea rcx, str.ERROR:_OpenEventLog_System__failed___lx__n
jmp 0x14001f6af
lea r8, [rbp - 0x10]
mov rbx, qword [rbp - 0x20]
mov rdx, rbx
call fcn.14001edf8
mov edi, eax
test eax, eax
jns 0x14001f312
lea rsi, str.8__r_
mov rcx, qword [str.8__r_]
cmp rcx, rsi
je 0x14001f2ff
test byte [rcx + 0x1c], 1
je 0x14001f2ff
mov edx, 0x33
mov r9d, eax
lea r8, [0x1400ae970]
mov rcx, qword [rcx + 0x10]
call fcn.140004000
lea rcx, str.ERROR:_GetMesgFileHandle___failed___lx__n
mov edx, edi
call fcn.140077d60
jmp 0x14001f651
xor r8d, r8d
mov rdx, qword [rbp - 0x28]
call fcn.140077de4
mov edi, eax
test eax, eax
setns byte [rbp + 0x30]
test eax, eax
jns 0x14001f364
lea rsi, str.8__r_
mov rcx, qword [str.8__r_]
cmp rcx, rsi
je 0x14001f35b
test byte [rcx + 0x1c], 1
je 0x14001f35b
mov edx, 0x34
mov r9d, eax
lea r8, [0x1400ae970]
mov rcx, qword [rcx + 0x10]
call fcn.140004000
lea rcx, str.ERROR:_Failed_to_open_log_file___lx__n
jmp 0x14001f306
and dword [rbp - 0x30], 0
and dword [rbp + 0x48], 0
and dword [rbp + 0x40], 0
lea rdx, [rbp - 0x30]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_GetOldestEventLogRecord]
test eax, eax
jne 0x14001f3c5
call fcn.14007a89c
mov edi, eax
lea rsi, str.8__r_
mov rcx, qword [str.8__r_]
cmp rcx, rsi
je 0x14001f3b9
test byte [rcx + 0x1c], 1
je 0x14001f3b9
mov edx, 0x35
mov r9d, eax
lea r8, [0x1400ae970]
mov rcx, qword [rcx + 0x10]
call fcn.140004000
lea rcx, str.ERROR:_GetOldestEventLogRecord___failed___lx__n
jmp 0x14001f306
lea rdx, [rbp + 0x48]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_GetNumberOfEventLogRecords]
test eax, eax
jne 0x14001f41a
call fcn.14007a89c
mov edi, eax
lea rsi, str.8__r_
mov rcx, qword [str.8__r_]
cmp rcx, rsi
je 0x14001f40e
test byte [rcx + 0x1c], 1
je 0x14001f40e
mov edx, 0x36
mov r9d, eax
lea r8, [0x1400ae970]
mov rcx, qword [rcx + 0x10]
call fcn.140004000
lea rcx, str.ERROR:_GetNumberOfEventLogRecords___failed___lx__n
jmp 0x14001f306
mov edi, dword [rbp + 0x48]
call qword [sym.imp.mpclient.dll_MpClientUtilExportFunctions]
movabs r10, 0xb1e1875a16511370
lea r8, [rbp + 0x40]
mov edx, edi
lea rcx, str.MpSupport_EventLogNumRecsToRead
mov rax, qword [rax + 0xa0]
call qword [0x14009aae8]
mov edi, eax
test eax, eax
jns 0x14001f48a
lea rsi, str.8__r_
mov rcx, qword [str.8__r_]
cmp rcx, rsi
je 0x14001f47e
test byte [rcx + 0x1c], 1
je 0x14001f47e
mov edx, 0x37
mov r9d, eax
lea r8, [0x1400ae970]
mov rcx, qword [rcx + 0x10]
call fcn.140004000
lea rcx, str.ERROR:_MpConfigGetMiscDwordValue_MpSupport_EventLogRecordNum__failed___lx__n
jmp 0x14001f306
lea rsi, str.8__r_
mov rcx, qword [str.8__r_]
cmp rcx, rsi
je 0x14001f4cd
test byte [rcx + 0x1c], 4
je 0x14001f4cd
mov edx, 0x38
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rbx
mov r9d, dword [rbp + 0x40]
lea r8, [0x1400ae970]
mov rcx, qword [rcx + 0x10]
call fcn.14001da58
mov rcx, qword [str.8__r_]
mov eax, dword [rbp + 0x48]
test eax, eax
jne 0x14001f4db
xor edi, edi
jmp 0x14001f651
lea r15d, [rax - 1]
mov edx, dword [rbp - 0x30]
add r15d, edx
cmp r15d, edx
jb 0x14001f597
xor edi, edi
cmp r15d, edx
jb 0x14001f651
mov r9, qword [rbp - 0x10]
mov r8d, r15d
mov rdx, rbx
mov rcx, r12
call fcn.14001ddbc
mov edi, eax
test eax, eax
jns 0x14001f57d
mov rcx, qword [str.8__r_]
cmp rcx, rsi
je 0x14001f556
test byte [rcx + 0x1c], 1
je 0x14001f556
mov edx, 0x3a
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rbx
mov rax, qword [rbp - 0x28]
mov qword [rsp + 0x20], rax
lea r9, str.System
lea r8, [0x1400ae970]
mov rcx, qword [rcx + 0x10]
call fcn.14001d8dc
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r15d
mov r9, rbx
mov r8, qword [rbp - 0x28]
lea rdx, str.System
lea rcx, str.ERROR:_ReadAndProcessEventLogRecord__ls___ls___ls___ld__failed__lx_n
call fcn.140077d60
xor edi, edi
jmp 0x14001f58b
test edi, edi
jne 0x14001f58b
add dword [rbp + 0x40], 0xffffffff
je 0x14001f651
dec r15d
cmp r15d, dword [rbp - 0x30]
jmp 0x14001f4f3
mov edi, 0x80070216
cmp rcx, rsi
je 0x14001f5bc
test byte [rcx + 0x1c], 1
je 0x14001f5bc
mov edx, 0x39
lea r8, [0x1400ae970]
mov rcx, qword [rcx + 0x10]
call fcn.140003cf8
lea rcx, str.Event_log_record_number_overflow_n
jmp 0x14001f64c
mov edi, 0x80070032
lea rsi, str.8__r_
mov rcx, qword [str.8__r_]
cmp rcx, rsi
je 0x14001f5fe
test byte [rcx + 0x1c], 1
je 0x14001f5fe
mov edx, 0x31
mov r9, r15
lea r8, [0x1400ae970]
mov rcx, qword [rcx + 0x10]
call fcn.140003b90
mov rdx, r15
lea rcx, str.ERROR:_Unsupported_event_log_name_in_EventLogToFile__ls__n
call fcn.140077d60
jmp 0x14001f6b7
mov edi, 0x80070057
lea rsi, str.8__r_
mov rcx, qword [str.8__r_]
cmp rcx, rsi
je 0x14001f645
test byte [rcx + 0x1c], 1
je 0x14001f645
mov edx, 0x2f
lea r8, [0x1400ae970]
mov rcx, qword [rcx + 0x10]
call fcn.140003cf8
lea rcx, str.ERROR:_NULL_parameter_in_EventLogToFile_...__n
call fcn.140077d60
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14001f665
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [rbp - 0x10], 0
test r12, r12
je 0x14001f6b7
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
test eax, eax
jne 0x14001f6b7
call fcn.14007a89c
mov edi, eax
mov rcx, qword [str.8__r_]
cmp rcx, rsi
je 0x14001f6a8
test byte [rcx + 0x1c], 1
je 0x14001f6a8
mov edx, 0x3b
mov r9d, eax
lea r8, [0x1400ae970]
mov rcx, qword [rcx + 0x10]
call fcn.140004000
lea rcx, str.ERROR:_CloseEventLog___failed___lx__n
mov edx, edi
call fcn.140077d60
nop
xor ecx, ecx
xchg qword [rbp - 0x28], rcx
test rcx, rcx
je 0x14001f6c8
call fcn.140083d40
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14001f6d8
call qword [sym.imp.mpclient.dll_MpFreeMemory]
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14001f6e8
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
cmp byte [rbp + 0x30], 0
je 0x14001f717
mov rbx, qword [0x1400d8d40]
and qword [0x1400d8d40], 0
test rbx, rbx
je 0x14001f717
mov rcx, rbx
call fcn.140077178
mov edx, 0x48
mov rcx, rbx
call fcn.140084038
mov eax, edi
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret