Function at 0x1000654c4
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rbx, r9
mov r13d, r8d
movzx r14d, dx
mov r12, rcx
mov r10, qword [0x100152eb8]
mov rsi, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0xc0]
lea rax, [0x100152eb8]
mov ecx, 5
cmp r10, rax
je 0x10006555d
test byte [r10 + 0x1c], 1
je 0x10006555d
cmp byte [r10 + 0x19], cl
jb 0x10006555d
mov qword [r11 - 0x58], rsi
mov qword [r11 - 0x60], rbp
movzx eax, dx
mov qword [r11 - 0x68], rbx
mov dword [r11 - 0x70], r8d
lea edx, [rcx + 0xe]
mov rcx, qword [r10 + 0x10]
lea r8, [0x10001e550]
mov r9, r12
mov dword [rsp + 0x20], eax
call fcn.100064f1c
mov r10, qword [0x100152eb8]
lea rax, [0x100152eb8]
xor r15d, r15d
mov edi, r15d
cmp r12, r15
jne 0x1000655a8
lea ebx, [r15 + 2]
cmp r10, rax
je 0x100065597
test byte [r10 + 0x1c], bl
je 0x100065597
cmp byte [r10 + 0x19], bl
jb 0x100065597
mov rcx, qword [r10 + 0x10]
lea edx, [rbx + 0x12]
lea r8, [0x10001e550]
call fcn.100034764
mov r10, qword [0x100152eb8]
mov edi, 0x80004003
lea r12, [0x100152eb8]
jmp 0x100065719
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov ebx, 2
cmp r10, rax
je 0x1000655e1
test byte [r10 + 0x1c], bl
je 0x1000655e1
cmp byte [r10 + 0x19], 4
jb 0x1000655e1
mov rcx, qword [r10 + 0x10]
lea edx, [rbx + 0x13]
lea r8, [0x10001e550]
call fcn.100034764
movzx esi, r15w
movzx eax, si
cmp qword [rsp + rax*8 + 0x50], r15
je 0x1000655f8
inc si
cmp si, 3
jb 0x1000655e5
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbp, rax
cmp rax, r15
je 0x1000656c6
mov rcx, qword [0x100152eb8]
lea r12, [0x100152eb8]
cmp rcx, r12
je 0x100065642
test byte [rcx + 0x1c], bl
je 0x100065642
cmp byte [rcx + 0x19], 4
jb 0x100065642
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001e550]
mov edx, 0x16
call fcn.100034764
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r15d
mov r9d, r13d
movzx edx, r14w
mov rcx, rbp
mov word [rsp + 0x28], si
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
cmp eax, r15d
jne 0x1000656bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
mov rcx, qword [0x100152eb8]
cmp rcx, r12
je 0x1000656bb
test byte [rcx + 0x1c], bl
je 0x1000656bb
cmp byte [rcx + 0x19], bl
jb 0x1000656bb
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001e550]
mov edx, 0x17
mov r9d, edi
call fcn.100036328
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x100065712
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
mov r10, qword [0x100152eb8]
lea r12, [0x100152eb8]
cmp r10, r12
je 0x10006574f
test byte [r10 + 0x1c], bl
je 0x100065719
cmp byte [r10 + 0x19], bl
jb 0x100065719
mov rcx, qword [r10 + 0x10]
lea r8, [0x10001e550]
mov edx, 0x18
mov r9d, edi
call fcn.100036328
mov r10, qword [0x100152eb8]
cmp r10, r12
je 0x10006574f
test byte [r10 + 0x1c], 1
je 0x10006574f
movzx ecx, byte [r10 + 0x19]
cmp edi, r15d
mov eax, 5
cmovge ebx, eax
cmp ecx, ebx
jl 0x10006574f
mov rcx, qword [r10 + 0x10]
lea edx, [rax + 0x14]
lea r8, [0x10001e550]
mov r9d, edi
call fcn.100036328
lea r11, [rsp + 0x70]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret