Function at 0x1400300a8
Capabilities:
Access the windows event log

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x140109328]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [rsp + 0xe0]
mov rbx, r9
mov rbp, qword [rsp + 0xe8]
mov r12d, r8d
movzx r15d, dx
mov r14, rcx
mov r10, qword [0x140106190]
lea rax, [0x140106190]
mov ecx, 5
cmp r10, rax
je 0x14003013f
test byte [r10 + 0x1c], 1
je 0x14003013f
cmp byte [r10 + 0x19], cl
jb 0x14003013f
mov rcx, qword [r10 + 0x10]
mov r9, r14
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rbx
movzx eax, dx
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], eax
call fcn.14002fafc
mov r10, qword [0x140106190]
lea rax, [0x140106190]
xor r13d, r13d
mov edi, r13d
test r14, r14
jne 0x14003018d
lea rsi, [0x1400de280]
lea ebx, [r13 + 2]
cmp r10, rax
je 0x14003017c
test byte [r10 + 0x1c], bl
je 0x14003017c
cmp byte [r10 + 0x19], bl
jb 0x14003017c
mov rcx, qword [r10 + 0x10]
lea edx, [rbx + 0x12]
mov r8, rsi
call fcn.140003574
mov r10, qword [0x140106190]
mov edi, 0x80004003
lea rbp, [0x140106190]
jmp 0x140030300
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rbp
lea rsi, [0x1400de280]
mov ebx, 2
cmp r10, rax
je 0x1400301c9
test byte [r10 + 0x1c], bl
je 0x1400301c9
cmp byte [r10 + 0x19], 4
jb 0x1400301c9
mov rcx, qword [r10 + 0x10]
lea edx, [rbx + 0x13]
mov r8, rsi
call fcn.140003574
movzx ebp, r13w
movzx eax, bp
cmp qword [rsp + rax*8 + 0x50], r13
je 0x1400301e0
inc bp
cmp bp, 3
jb 0x1400301cd
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov r14, rax
test rax, rax
je 0x1400302b2
mov rcx, qword [0x140106190]
lea rax, [0x140106190]
cmp rcx, rax
je 0x140030226
test byte [rcx + 0x1c], bl
je 0x140030226
cmp byte [rcx + 0x19], 4
jb 0x140030226
mov rcx, qword [rcx + 0x10]
mov edx, reloc.OLEAUT32.dll_SafeArrayAccessData
mov r8, rsi
call fcn.140003574
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], r13d
mov r9d, r12d
mov word [rsp + 0x28], bp
movzx edx, r15w
mov rcx, r14
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x1400302a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x140106190]
lea rax, [0x140106190]
cmp rcx, rax
je 0x1400302a0
test byte [rcx + 0x1c], bl
je 0x1400302a0
cmp byte [rcx + 0x19], bl
jb 0x1400302a0
mov rcx, qword [rcx + 0x10]
mov edx, DispGetParam
mov r9d, edi
mov r8, rsi
call fcn.140003634
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea rbp, [0x140106190]
jmp 0x1400302f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov r10, qword [0x140106190]
lea rbp, [0x140106190]
cmp r10, rbp
je 0x140030331
test byte [r10 + 0x1c], bl
je 0x140030300
cmp byte [r10 + 0x19], bl
jb 0x140030300
mov rcx, qword [r10 + 0x10]
mov edx, DispGetParam
mov r9d, edi
mov r8, rsi
call fcn.140003634
mov r10, qword [0x140106190]
cmp r10, rbp
je 0x140030331
test byte [r10 + 0x1c], 1
je 0x140030331
movzx ecx, byte [r10 + 0x19]
test edi, edi
mov eax, 5
cmovns ebx, eax
cmp ecx, ebx
jl 0x140030331
mov rcx, qword [r10 + 0x10]
lea edx, [rax + 0x14]
mov r9d, edi
mov r8, rsi
call fcn.140003634
mov eax, edi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400cc650
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret