Function at 0x14003fa80
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 r15d, r8d
movzx r12d, dx
mov r14, rcx
mov r10, qword [0x140148ea8]
mov rsi, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0xc0]
lea rax, [0x140148ea8]
mov ecx, 5
cmp r10, rax
je 0x14003fb0f
test byte [r10 + 0x1c], 1
je 0x14003fb0f
cmp byte [r10 + 0x19], cl
jb 0x14003fb0f
mov rcx, qword [r10 + 0x10]
mov qword [r11 - 0x58], rsi
mov qword [r11 - 0x60], rbp
mov qword [r11 - 0x68], rbx
movzx eax, dx
mov dword [r11 - 0x70], r8d
mov r9, r14
mov dword [rsp + 0x20], eax
call fcn.14003f3dc
mov r10, qword [0x140148ea8]
lea rax, [0x140148ea8]
xor r13d, r13d
mov edi, r13d
test r14, r14
jne 0x14003fb5d
lea rsi, [0x140006038]
lea ebx, [r13 + 2]
cmp r10, rax
je 0x14003fb4c
test byte [r10 + 0x1c], bl
je 0x14003fb4c
cmp byte [r10 + 0x19], bl
jb 0x14003fb4c
mov rcx, qword [r10 + 0x10]
lea edx, [rbx + 0x12]
mov r8, rsi
call fcn.14000fcb0
mov r10, qword [0x140148ea8]
mov edi, 0x80004003
lea rbp, [0x140148ea8]
jmp 0x14003fcd0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
lea rsi, [0x140006038]
mov ebx, 2
cmp r10, rax
je 0x14003fb99
test byte [r10 + 0x1c], bl
je 0x14003fb99
cmp byte [r10 + 0x19], 4
jb 0x14003fb99
mov rcx, qword [r10 + 0x10]
lea edx, [rbx + 0x13]
mov r8, rsi
call fcn.14000fcb0
movzx ebp, r13w
movzx eax, bp
cmp qword [rsp + rax*8 + 0x50], r13
je 0x14003fbb0
inc bp
cmp bp, 3
jb 0x14003fb9d
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov r14, rax
test rax, rax
je 0x14003fc82
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14003fbf6
test byte [rcx + 0x1c], bl
je 0x14003fbf6
cmp byte [rcx + 0x19], 4
jb 0x14003fbf6
mov rcx, qword [rcx + 0x10]
mov edx, reloc.OLEAUT32.dll_SafeArrayAccessData
mov r8, rsi
call fcn.14000fcb0
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r13d
mov r9d, r15d
movzx edx, r12w
mov rcx, r14
mov word [rsp + 0x28], bp
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x14003fc70
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14003fc70
test byte [rcx + 0x1c], bl
je 0x14003fc70
cmp byte [rcx + 0x19], bl
jb 0x14003fc70
mov rcx, qword [rcx + 0x10]
mov edx, reloc.Cabinet.dll_FDIDestroy
mov r9d, edi
mov r8, rsi
call fcn.14000fd64
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea rbp, [0x140148ea8]
jmp 0x14003fcc9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov r10, qword [0x140148ea8]
lea rbp, [0x140148ea8]
cmp r10, rbp
je 0x14003fd01
test byte [r10 + 0x1c], bl
je 0x14003fcd0
cmp byte [r10 + 0x19], bl
jb 0x14003fcd0
mov rcx, qword [r10 + 0x10]
mov edx, DispGetParam
mov r9d, edi
mov r8, rsi
call fcn.14000fd64
mov r10, qword [0x140148ea8]
cmp r10, rbp
je 0x14003fd01
test byte [r10 + 0x1c], 1
je 0x14003fd01
movzx ecx, byte [r10 + 0x19]
test edi, edi
mov eax, 5
cmovns ebx, eax
cmp ecx, ebx
jl 0x14003fd01
mov rcx, qword [r10 + 0x10]
lea edx, [rax + 0x14]
mov r9d, edi
mov r8, rsi
call fcn.14000fd64
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