Function at 0x1004622a0
Capabilities:
Access the windows event log

Disassembly:
push rbp
push rbx
push rsi
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r15, qword [rdx + 0x78]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov r14, r8
mov dword [rsp + 0x30], ebx
mov rsi, rcx
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
mov r8d, 0x100002d
mov rcx, r14
mov rax, r15
call qword [case.0x10044bd0b.0]
test eax, eax
je 0x1004623a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rsi + 8], rbx
je 0x100462503
xor ecx, ecx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
lea r8, [0x100471ea8]
mov qword [rsp + 0x70], rcx
lea edx, [rbx + 0x10]
mov qword [rsp + 0x78], rcx
mov r9d, eax
mov qword [rbp - 0x80], rcx
lea rcx, str.ClusterResourceIsSQLAgentType:CLUSCTL_RESOURCE_GET_RESOURCE_TYPE_1
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x68]
call fcn.10040b460
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x68]
test eax, eax
lea edx, [rbx + 1]
lea rax, [rsp + 0x58]
mov r9d, 0xc0000144
cmovs rcx, qword [rsp + 0x60]
lea r8d, [rbx + 5]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x60], rcx
lea ecx, [rbx + 2]
mov dword [rsp + 0x30], ebx
mov word [rsp + 0x28], cx
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
jmp 0x100462503
mov ecx, dword [rsp + 0x50]
mov qword [rsp + 0x2f8], rdi
call fcn.100469348
mov edx, dword [rsp + 0x50]
mov rdi, rax
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov dword [rsp + 0x30], edx
mov r8d, 0x100002d
mov qword [rsp + 0x28], rax
xor edx, edx
mov rax, r15
mov dword [rsp + 0x20], ebx
mov rcx, r14
call qword [case.0x10044bd0b.0]
test eax, eax
je 0x10046248a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rsi + 8], rbx
je 0x1004624ee
xor ecx, ecx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
lea r8, [0x100471ea8]
mov qword [rsp + 0x70], rcx
mov r9d, eax
mov qword [rsp + 0x78], rcx
mov edx, reloc.ODBC32.dll_SQLFreeStmt
mov qword [rbp - 0x80], rcx
lea rcx, str.ClusterResourceIsSQLAgentType:CLUSCTL_RESOURCE_GET_RESOURCE_TYPE_2
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x68]
call fcn.10040b460
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x68]
test eax, eax
mov r9d, 0xc0000144
lea rax, [rsp + 0x58]
cmovs rcx, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x60], rcx
mov ecx, 2
mov dword [rsp + 0x30], ebx
mov word [rsp + 0x28], cx
mov qword [rsp + 0x20], rbx
lea edx, [rcx - 1]
lea r8d, [rcx + 3]
mov rcx, qword [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
jmp 0x1004624ee
lea rax, str.SQL_Server_Agent
mov edx, 0x105
mov qword [rsp + 0x28], rax
lea r9, [0x100481648]
mov r8d, 0x400
mov qword [rsp + 0x20], rbx
lea rcx, [rbp - 0x70]
call fcn.100462c50
test eax, eax
lea rcx, [rbp - 0x70]
mov r8, rdi
cmovs rcx, rbx
sub r8, rcx
nop word [rax + rax]
movzx edx, word [rcx]
movzx eax, word [rcx + r8]
sub edx, eax
jne 0x1004624e4
add rcx, 2
test eax, eax
jne 0x1004624d0
test edx, edx
mov eax, 1
cmove ebx, eax
test rdi, rdi
je 0x1004624fb
mov rcx, rdi
call fcn.100469388
mov rdi, qword [rsp + 0x2f8]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.100469360
add rsp, 0x2b0
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret