Function at 0x1004330d0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov qword [rsp + 0x50], rdx
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x108
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x170]
mov r8d, 0x108
call sub.VCRUNTIME140.dll_memset
mov edx, 0x84
lea r9, [0x1004a8db0]
lea rax, [rsp + 0x60]
mov r8d, edx
sub r9, rax
lea rcx, [rsp + 0x60]
lea rax, [r8 + 0x7fffff7a]
test rax, rax
je 0x100433163
movzx eax, word [r9 + rcx]
test ax, ax
je 0x100433163
mov word [rcx], ax
add rcx, 2
sub r8, 1
jne 0x100433140
test r8, r8
lea rax, [rcx - 2]
lea r8, str.master
cmovne rax, rcx
xor r15d, r15d
lea rcx, [rsp + 0x170]
mov word [rax], r15w
lea rax, [rsp + 0x170]
sub r8, rax
nop
lea rax, [rdx + 0x7fffff7a]
test rax, rax
je 0x1004331b3
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1004331b3
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100433190
test rdx, rdx
lea rax, [rcx - 2]
mov rdi, 0xffffffffffffffff
cmovne rax, rcx
mov rsi, rdi
mov word [rax], r15w
lea rax, [rsp + 0x170]
cmp word [rax + rsi*2 + 2], r15w
lea rsi, [rsi + 1]
jne 0x1004331d4
lea rax, [rsp + 0x60]
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x1004331e5
lea eax, [rdi + rsi]
mov r8d, 0x80c
lea ebp, [rax*2 + 0x14]
mov ecx, ebp
lea rdx, str.LoggerReportSQLServerEvent
call fcn.10043acf0
mov r14, rax
test rax, rax
je 0x100433392
movsxd r8, ebp
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x2b0], rbx
call sub.VCRUNTIME140.dll_memset
lea rbx, [r14 + 4]
mov dword [r14], 0x37b9
mov dword [rbx], 0x19
lea ecx, [rdi + 1]
mov dword [rbx + 4], ecx
lea r8, [rdi*2 + 2]
add rbx, 8
lea rdx, [rsp + 0x60]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea eax, [rsi + 1]
mov dword [rbx + rdi*2 + 2], eax
lea r8, [rsi*2 + 2]
add rdi, 3
lea rdx, [rsp + 0x170]
lea rcx, [rbx + rdi*2]
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [0x1004a8f40]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x100433382
call fcn.1004342d0
movzx ebx, al
lea rcx, [0x1004a92b8]
mov rax, qword [0x1004a90d0]
call qword [case.0x10044bd0b.0]
test eax, eax
jne 0x1004332ea
cmp dword [0x1004a8ebc], r15d
je 0x1004332dd
test bl, bl
je 0x1004332dd
lea rdx, str.LoggerReportSQLServerEvent
lea rcx, str.__s_____Waiting_for_CritSec__n
call fcn.10043bdc0
lea rcx, [0x1004a92b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1004a8ebc], r15d
je 0x10043330a
test bl, bl
je 0x10043330a
lea rdx, str.LoggerReportSQLServerEvent
lea rcx, str.__s_____Enters_CritSec__n
call fcn.10043bdc0
mov r9d, 1
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x50]
mov edx, r9d
mov qword [rsp + 0x38], rax
mov rcx, rdi
mov dword [rsp + 0x30], ebp
mov word [rsp + 0x28], r9w
lea r8d, [r9 + 1]
mov r9d, 0x40004a4b
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
call fcn.1004342d0
lea rcx, [0x1004a92b8]
movzx ebx, al
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x1004a8ebc], r15d
je 0x100433379
test bl, bl
je 0x100433379
lea rdx, str.LoggerReportSQLServerEvent
lea rcx, str.__s_____Leaves_CritSec__n
call fcn.10043bdc0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, r14
call fcn.10043b3b0
mov rbx, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.100469360
lea r11, [rsp + 0x290]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret