Function at 0x1000656f0
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 [0x100153eb8]
mov rsi, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0xc0]
lea rax, [0x100153eb8]
mov ecx, 5
cmp r10, rax
je 0x100065789
test byte [r10 + 0x1c], 1
je 0x100065789
cmp byte [r10 + 0x19], cl
jb 0x100065789
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.100065148
mov r10, qword [0x100153eb8]
lea rax, [0x100153eb8]
xor r15d, r15d
mov edi, r15d
cmp r12, r15
jne 0x1000657d4
lea ebx, [r15 + 2]
cmp r10, rax
je 0x1000657c3
test byte [r10 + 0x1c], bl
je 0x1000657c3
cmp byte [r10 + 0x19], bl
jb 0x1000657c3
mov rcx, qword [r10 + 0x10]
lea edx, [rbx + 0x12]
lea r8, [0x10001e550]
call fcn.100034784
mov r10, qword [0x100153eb8]
mov edi, 0x80004003
lea r12, [0x100153eb8]
jmp 0x100065945
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov ebx, 2
cmp r10, rax
je 0x10006580d
test byte [r10 + 0x1c], bl
je 0x10006580d
cmp byte [r10 + 0x19], 4
jb 0x10006580d
mov rcx, qword [r10 + 0x10]
lea edx, [rbx + 0x13]
lea r8, [0x10001e550]
call fcn.100034784
movzx esi, r15w
movzx eax, si
cmp qword [rsp + rax*8 + 0x50], r15
je 0x100065824
inc si
cmp si, 3
jb 0x100065811
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbp, rax
cmp rax, r15
je 0x1000658f2
mov rcx, qword [0x100153eb8]
lea r12, [0x100153eb8]
cmp rcx, r12
je 0x10006586e
test byte [rcx + 0x1c], bl
je 0x10006586e
cmp byte [rcx + 0x19], 4
jb 0x10006586e
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001e550]
mov edx, 0x16
call fcn.100034784
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 0x1000658e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
mov rcx, qword [0x100153eb8]
cmp rcx, r12
je 0x1000658e7
test byte [rcx + 0x1c], bl
je 0x1000658e7
cmp byte [rcx + 0x19], bl
jb 0x1000658e7
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001e550]
mov edx, 0x17
mov r9d, edi
call fcn.100036510
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x10006593e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
mov r10, qword [0x100153eb8]
lea r12, [0x100153eb8]
cmp r10, r12
je 0x10006597b
test byte [r10 + 0x1c], bl
je 0x100065945
cmp byte [r10 + 0x19], bl
jb 0x100065945
mov rcx, qword [r10 + 0x10]
lea r8, [0x10001e550]
mov edx, 0x18
mov r9d, edi
call fcn.100036510
mov r10, qword [0x100153eb8]
cmp r10, r12
je 0x10006597b
test byte [r10 + 0x1c], 1
je 0x10006597b
movzx ecx, byte [r10 + 0x19]
cmp edi, r15d
mov eax, 5
cmovge ebx, eax
cmp ecx, ebx
jl 0x10006597b
mov rcx, qword [r10 + 0x10]
lea edx, [rax + 0x14]
lea r8, [0x10001e550]
mov r9d, edi
call fcn.100036510
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