Function at 0x100462530
Capabilities:
Access the windows event log

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, qword [r8 + 0x78]
xor ebx, ebx
mov qword [rbp - 0x11], rbx
mov edi, ebx
mov rsi, r9
mov r13, r8
mov r15, rcx
nop word [rax + rax]
lea rax, [rbp - 0x29]
mov dword [rbp - 0x29], ebx
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], ebx
xor edx, edx
mov qword [rsp + 0x28], rbx
mov r8d, 0x1000081
mov rcx, rsi
mov dword [rsp + 0x20], ebx
mov rax, r14
call qword [case.0x10044bd0b.0]
test eax, eax
jne 0x100462699
test rdi, rdi
je 0x1004625b5
mov rcx, rdi
call fcn.100469388
mov ecx, dword [rbp - 0x29]
call fcn.100469348
mov rdi, rax
mov qword [rsp + 0x38], rbx
mov eax, dword [rbp - 0x29]
xor r9d, r9d
mov dword [rsp + 0x30], eax
xor edx, edx
mov qword [rsp + 0x28], rdi
mov rax, r14
mov r8d, 0x1000081
mov dword [rsp + 0x20], ebx
mov rcx, rsi
call qword [case.0x10044bd0b.0]
test eax, eax
je 0x100462629
cmp eax, 0xea
je 0x100462570
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [r15 + 8], rbx
je 0x100462729
xor ecx, ecx
mov qword [rbp - 9], rcx
mov qword [rbp - 1], rcx
mov qword [rbp + 7], rcx
mov qword [rbp + 0xf], rcx
lea rcx, str.ClusterResourceIsOurServerResource:CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES_2
jmp 0x1004626c2
mov edx, dword [rbp - 0x29]
lea r9, [rbp - 0x11]
mov rax, qword [r13 + 0x80]
lea r8, str.InstanceName
mov rcx, rdi
call qword [case.0x10044bd0b.0]
test eax, eax
je 0x100462676
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [r15 + 8], rbx
je 0x100462729
xor ecx, ecx
mov qword [rbp - 9], rcx
mov qword [rbp - 1], rcx
mov qword [rbp + 7], rcx
mov qword [rbp + 0xf], rcx
lea rcx, str.ClusterResourceIsOurServerResource:ResUtilFindSzProperty
jmp 0x1004626c2
mov rcx, qword [rbp - 0x11]
lea rdx, str.MSSQLSERVER
xor r8d, r8d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp_l]
test eax, eax
mov edx, 1
cmove ebx, edx
jmp 0x100462729
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [r15 + 8], rbx
je 0x100462729
xor ecx, ecx
mov qword [rbp - 9], rcx
mov qword [rbp - 1], rcx
mov qword [rbp + 7], rcx
mov qword [rbp + 0xf], rcx
lea rcx, str.ClusterResourceIsOurServerResource:CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES_1
mov qword [rbp - 0x21], rcx
lea r8, [0x100471ea8]
lea rcx, [rbp - 9]
mov qword [rbp - 0x19], rbx
mov r9d, eax
mov edx, reloc.ODBC32.dll_SQLFreeStmt
call fcn.10040b460
mov qword [rsp + 0x40], rbx
lea rcx, [rbp - 9]
test eax, eax
mov r9d, 0xc0000144
mov eax, 2
cmovs rcx, qword [rbp - 0x19]
mov qword [rbp - 0x19], rcx
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x38], rcx
mov rcx, qword [r15 + 8]
lea r8d, [rax + 3]
mov dword [rsp + 0x30], ebx
lea edx, [rax - 1]
mov word [rsp + 0x28], ax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
test rdi, rdi
je 0x100462736
mov rcx, rdi
call fcn.100469388
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x100462745
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.100469360
add rsp, 0xa0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret