Function at 0x140077054
Capabilities:
Access the windows event log

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x260
mov ebp, r8d
mov ebx, edx
mov r12d, ecx
mov rcx, qword [str.P5_n_]
lea rsi, str.P5_n_
mov r13d, 2
cmp rcx, rsi
je 0x1400770b2
test byte [rcx + 0x1c], r13b
je 0x1400770b2
cmp byte [rcx + 0x19], 5
jb 0x1400770b2
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x12]
lea r8, [0x140008e58]
call fcn.14000ffa8
mov rcx, qword [str.P5_n_]
cmp ebp, 0x40
jbe 0x1400770e4
cmp rcx, rsi
je 0x1400770dd
test byte [rcx + 0x1c], r13b
je 0x1400770dd
cmp byte [rcx + 0x19], r13b
jb 0x1400770dd
mov edx, 0x15
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008e58]
call fcn.14000ffa8
xor eax, eax
jmp 0x140077306
cmp qword [0x1400a4158], 0
jne 0x140077109
cmp rcx, rsi
je 0x1400770dd
test byte [rcx + 0x1c], r13b
je 0x1400770dd
mov edi, 3
cmp byte [rcx + 0x19], dil
jb 0x1400770dd
lea edx, [rdi + 0x13]
jmp 0x1400770cd
lea rcx, [0x1400a4130]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x1400a4164]
xor r11d, r11d
lea r14d, [r11 + 1]
test ecx, ecx
je 0x140077148
mov rax, qword [0x1400a4168]
add rax, 0xc
cmp dword [rax - 4], r12d
jne 0x14007713c
cmp ebx, dword [rax]
ja 0x1400771b2
add r11d, r14d
add rax, 0x10
cmp r11d, ecx
jb 0x140077132
lea rdx, [rsp + 0x2c0]
test ebp, ebp
je 0x140077182
add rdx, 0xfffffffffffffff8
lea rcx, [rsp + 0x60]
mov r8, rbp
add rdx, 8
mov rax, qword [rdx]
mov qword [rcx], rax
test rax, rax
jne 0x140077179
lea rax, [0x140009d60]
mov qword [rcx], rax
add rcx, 8
sub r8, r14
jne 0x140077160
mov r9d, dword [rsp + 0x2b8]
mov ebx, 4
shr r9d, 0x1e
lea edi, [rbx - 1]
cmp r9d, r14d
jbe 0x140077204
cmp r9d, r13d
je 0x1400771f8
cmp r9d, edi
jne 0x1400771c4
add dword [0x1400a412c], r14d
mov si, r14w
jmp 0x14007720e
lea rcx, [0x1400a4130]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400770dd
mov rcx, qword [str.P5_n_]
cmp rcx, rsi
je 0x1400771f1
test byte [rcx + 0x1c], r13b
je 0x1400771f1
cmp byte [rcx + 0x19], r13b
jb 0x1400771f1
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008e58]
mov edx, 0x17
call fcn.1400100e0
mov si, word [rsp + 0x50]
jmp 0x14007720e
add dword [0x1400a4128], r14d
mov esi, r13d
jmp 0x14007720e
add dword [0x1400a4160], r14d
mov si, bx
lea rcx, [0x1400a4130]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r11d, r12d
sub r11d, r14d
je 0x14007727b
sub r11d, r14d
je 0x140077275
sub r11d, r14d
je 0x140077270
cmp r11d, r14d
je 0x14007727f
mov rcx, qword [str.P5_n_]
lea rdi, str.P5_n_
cmp rcx, rdi
je 0x140077269
test byte [rcx + 0x1c], r13b
je 0x140077269
cmp byte [rcx + 0x19], r13b
jb 0x140077269
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008e58]
mov edx, 0x18
mov r9d, r12d
call fcn.1400100e0
mov bx, word [rsp + 0x50]
jmp 0x140077286
mov bx, di
jmp 0x14007727f
mov bx, r13w
jmp 0x14007727f
mov bx, r14w
lea rdi, str.P5_n_
and qword [rsp + 0x40], 0
mov r9d, dword [rsp + 0x2b8]
mov rcx, qword [0x1400a4158]
lea rax, [rsp + 0x60]
movzx r8d, bx
movzx edx, si
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov word [rsp + 0x28], bp
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x140077303
mov rcx, qword [str.P5_n_]
cmp rcx, rdi
je 0x140077303
test byte [rcx + 0x1c], r13b
je 0x140077303
cmp byte [rcx + 0x19], r13b
jb 0x140077303
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
lea r8, [0x140008e58]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x19
call fcn.1400100e0
mov eax, r14d
add rsp, 0x260
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret