Function at 0x140031e28
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 [0x14014d030]
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 [0x14014dd40]
lea rax, [0x14014dd40]
mov ecx, 5
cmp r10, rax
je 0x140031ebf
test byte [r10 + 0x1c], 1
je 0x140031ebf
cmp byte [r10 + 0x19], cl
jb 0x140031ebf
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.14003183c
mov r10, qword [0x14014dd40]
lea rax, [0x14014dd40]
xor r13d, r13d
mov edi, r13d
test r14, r14
jne 0x140031f0d
lea rsi, [0x14011c560]
lea ebx, [r13 + 2]
cmp r10, rax
je 0x140031efc
test byte [r10 + 0x1c], bl
je 0x140031efc
cmp byte [r10 + 0x19], bl
jb 0x140031efc
mov rcx, qword [r10 + 0x10]
lea edx, [rbx + 0x12]
mov r8, rsi
call fcn.140003614
mov r10, qword [0x14014dd40]
mov edi, 0x80004003
lea rbp, [0x14014dd40]
jmp 0x140032080
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rbp
lea rsi, [0x14011c560]
mov ebx, 2
cmp r10, rax
je 0x140031f49
test byte [r10 + 0x1c], bl
je 0x140031f49
cmp byte [r10 + 0x19], 4
jb 0x140031f49
mov rcx, qword [r10 + 0x10]
lea edx, [rbx + 0x13]
mov r8, rsi
call fcn.140003614
movzx ebp, r13w
movzx eax, bp
cmp qword [rsp + rax*8 + 0x50], r13
je 0x140031f60
inc bp
cmp bp, 3
jb 0x140031f4d
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov r14, rax
test rax, rax
je 0x140032032
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x140031fa6
test byte [rcx + 0x1c], bl
je 0x140031fa6
cmp byte [rcx + 0x19], 4
jb 0x140031fa6
mov rcx, qword [rcx + 0x10]
mov edx, reloc.OLEAUT32.dll_SafeArrayAccessData
mov r8, rsi
call fcn.140003614
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 0x140032020
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x140032020
test byte [rcx + 0x1c], bl
je 0x140032020
cmp byte [rcx + 0x19], bl
jb 0x140032020
mov rcx, qword [rcx + 0x10]
mov edx, reloc.Cabinet.dll_FDIDestroy
mov r9d, edi
mov r8, rsi
call fcn.1400036d4
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea rbp, [0x14014dd40]
jmp 0x140032079
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov r10, qword [0x14014dd40]
lea rbp, [0x14014dd40]
cmp r10, rbp
je 0x1400320b1
test byte [r10 + 0x1c], bl
je 0x140032080
cmp byte [r10 + 0x19], bl
jb 0x140032080
mov rcx, qword [r10 + 0x10]
mov edx, DispGetParam
mov r9d, edi
mov r8, rsi
call fcn.1400036d4
mov r10, qword [0x14014dd40]
cmp r10, rbp
je 0x1400320b1
test byte [r10 + 0x1c], 1
je 0x1400320b1
movzx ecx, byte [r10 + 0x19]
test edi, edi
mov eax, 5
cmovns ebx, eax
cmp ecx, ebx
jl 0x1400320b1
mov rcx, qword [r10 + 0x10]
lea edx, [rax + 0x14]
mov r9d, edi
mov r8, rsi
call fcn.1400036d4
mov eax, edi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140106ed0
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret