Function at 0x14002cab0
Capabilities:
Access the windows event log

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rbx, r8
mov rsi, rcx
mov rax, qword [0x1400ac070]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp edx, 1
jne 0x14002cb47
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], 0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rdi, rax
lea rcx, [rsp + 0x50]
cmp rax, 7
ja 0x14002cc88
mov qword [rcx + 0x10], rdi
mov r8, rdi
add r8, rdi
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rdi*2 + 0x50], 0
movups xmm0, xmmword [rsp + 0x50]
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov dword [rsi + 0x20], 0
jmp 0x14002cc69
lea rdi, [rsp + 0x48]
mov rcx, rdi
call fcn.1400010c0
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x14002cc98
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], 0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov r14, rax
lea rcx, [rsp + 0x50]
cmp rax, 7
ja 0x14002cd84
mov qword [rcx + 0x10], r14
mov r8, r14
add r8, r14
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rsp + r14*2 + 0x50], 0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x14002cd94
lea rdx, [rax + 1]
mov qword [rsp + 0x60], rdx
cmp rcx, 8
jb 0x14002cbe2
mov rcx, qword [rsp + 0x50]
jmp 0x14002cbe7
lea rcx, [rsp + 0x50]
mov dword [rcx + rax*2], 0x7c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov r8, rdx
sub r8, rcx
cmp r8, rax
jb 0x14002cdb5
lea r14, [rcx + rax]
mov qword [rsp + 0x60], r14
cmp rdx, 8
jb 0x14002cc26
mov r15, qword [rsp + 0x50]
jmp 0x14002cc2b
lea r15, [rsp + 0x50]
lea rcx, [r15 + rcx*2]
add rax, rax
mov rdx, rbx
mov r8, rax
call sub.VCRUNTIME140.dll_memmove
mov word [r15 + r14*2], 0
movups xmm0, xmmword [rsp + 0x50]
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov dword [rsi + 0x20], 0
test rdi, rdi
je 0x14002cc69
mov rcx, rdi
call fcn.140055a14
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140056980
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, rdi
mov r8, rbx
call fcn.140059cf0
jmp 0x14002cb2a
mov r14, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea r15, str.0x_X_in__S:_d
lea r12, str.MaybePrefixRegistryValueName
mov rcx, r15
mov edx, 0x800700a1
mov r8, r12
mov r9d, 0x1e
call fcn.140058910
cdqe
lea r13, [rax + 1]
lea rbp, [rax + rax]
add rbp, 2
mov rcx, rbp
call fcn.140055a0c
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x30], 0x1e
mov dword [rsp + 0x20], 0x800700a1
mov rcx, rbx
mov rdx, r13
mov r9, r15
call fcn.140058990
xor ecx, ecx
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x14002cd66
mov r14, rax
lea rax, [rsp + 0x50]
mov qword [rax], rbx
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 1
mov rcx, r14
mov dx, 1
xor r8d, r8d
mov r9d, 0x800700a1
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rbx
call fcn.140055a14
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
mov dword [rsi + 0x20], 0x800700a1
jmp 0x14002cc5c
mov rdx, r14
mov r8, rdi
call fcn.140059cf0
jmp 0x14002cbb9
lea r8, [0x1400a2afc]
lea rcx, [rsp + 0x50]
mov edx, 1
mov r9d, 1
call fcn.14005a1d0
jmp 0x14002cbee
lea rcx, [rsp + 0x50]
mov rdx, rax
mov r8, rbx
mov r9, rax
call fcn.14005a1d0
jmp 0x14002cc44