Function at 0x100461e80
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
push rbp
push rbx
lea rbp, [r11 - 0x358]
sub rsp, 0x448
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov qword [r11 + 0x10], rsi
lea rdx, [rsp + 0x70]
mov qword [r11 - 0x18], rdi
xor ebx, ebx
mov rdi, rcx
mov dword [rsp + 0x60], ebx
mov rsi, r8
call fcn.100461b80
test eax, eax
jne 0x100461f72
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rdi + 8], rbx
je 0x10046224c
xor ecx, ecx
mov qword [rsp + 0x58], rbx
mov qword [rbp + 0xf0], rcx
lea r8, [0x100471ea8]
mov qword [rbp + 0xf8], rcx
lea edx, [rbx + 0x10]
mov qword [rbp + 0x100], rcx
mov r9d, eax
mov qword [rbp + 0x108], rcx
lea rcx, str.LoadClusterLibrary
mov qword [rsp + 0x50], rcx
lea rcx, [rbp + 0xf0]
call fcn.10040b460
mov qword [rsp + 0x40], rbx
lea rcx, [rbp + 0xf0]
test eax, eax
lea edx, [rbx + 1]
lea eax, [rbx + 2]
mov r9d, 0xc0000144
cmovs rcx, qword [rsp + 0x58]
lea r8d, [rbx + 5]
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rdi + 8]
mov dword [rsp + 0x30], ebx
mov word [rsp + 0x28], ax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
jmp 0x10046224c
mov rax, qword [rbp - 0x80]
xor ecx, ecx
mov qword [rsp + 0x438], r14
call qword [case.0x10044bd0b.0]
mov r14, rax
test rax, rax
jne 0x10046203c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rdi + 8], rbx
je 0x100462244
xor ecx, ecx
mov qword [rsp + 0x58], rbx
mov qword [rbp + 0xf0], rcx
lea r8, [0x100471ea8]
mov qword [rbp + 0xf8], rcx
lea edx, [r14 + 0x10]
mov qword [rbp + 0x100], rcx
mov r9d, eax
mov qword [rbp + 0x108], rcx
lea rcx, str.OpenCluster
mov qword [rsp + 0x50], rcx
lea rcx, [rbp + 0xf0]
call fcn.10040b460
mov qword [rsp + 0x40], rbx
lea rcx, [rbp + 0xf0]
test eax, eax
lea r8d, [r14 + 5]
lea eax, [r14 + 2]
mov r9d, 0xc0000144
cmovs rcx, qword [rsp + 0x58]
lea edx, [rax - 1]
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rdi + 8]
mov dword [rsp + 0x30], ebx
mov word [rsp + 0x28], ax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
jmp 0x100462244
lea rax, [rsp + 0x70]
mov qword [rsp + 0x430], r15
movups xmm0, xmmword [rax]
lea rcx, [rbp + 0x30]
mov r9, r14
movups xmm1, xmmword [rax + 0x10]
lea r8, [rbp + 0x30]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax + 0x80]
movups xmmword [rcx + 0x60], xmm0
movups xmm0, xmmword [rax + 0x70]
movups xmmword [rcx + 0x70], xmm0
movups xmm0, xmmword [rax + 0x90]
movups xmmword [rcx + 0x80], xmm1
movups xmm1, xmmword [rax + 0xa0]
movups xmmword [rcx + 0x90], xmm0
movups xmm0, xmmword [rax + 0xb0]
movups xmmword [rcx + 0xa0], xmm1
movups xmmword [rcx + 0xb0], xmm0
mov rcx, rdi
call fcn.100462770
mov r15, rax
test rax, rax
je 0x10046222f
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor edx, edx
lea rax, [rbp + 0x110]
mov dword [rsp + 0x30], 0x105
mov qword [rsp + 0x28], rax
mov r8d, 0x1000039
mov rax, qword [rbp - 0x18]
mov rcx, r15
mov dword [rsp + 0x20], ebx
call qword [case.0x10044bd0b.0]
test eax, eax
je 0x1004621d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rdi + 8], rbx
je 0x1004621c7
xor ecx, ecx
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0xf8], rcx
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], rcx
lea rcx, str.GetSQLAgentClusterResourceId:CLUSCTL_RESOURCE_GET_ID
mov qword [rsp + 0x50], rcx
lea r8, [0x100471ea8]
lea rcx, [rbp + 0xf0]
mov qword [rsp + 0x58], rbx
mov r9d, eax
mov edx, reloc.ODBC32.dll_SQLFreeStmt
call fcn.10040b460
mov qword [rsp + 0x40], rbx
lea rcx, [rbp + 0xf0]
test eax, eax
mov r9d, 0xc0000144
mov eax, 2
cmovs rcx, qword [rsp + 0x58]
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rdi + 8]
lea edx, [rax - 1]
mov dword [rsp + 0x30], ebx
lea r8d, [rax + 3]
mov word [rsp + 0x28], ax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
movups xmm0, xmmword [0x1004711d8]
movups xmmword [rsi], xmm0
jmp 0x100462222
mov rdx, rsi
lea rcx, [rbp + 0x110]
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
je 0x10046221d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rdi + 8], rbx
je 0x1004621c7
xor ecx, ecx
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0xf8], rcx
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], rcx
lea rcx, [0x1004811e0]
jmp 0x100462155
mov ebx, 1
mov rax, qword [rbp - 0x50]
mov rcx, r15
call qword [case.0x10044bd0b.0]
mov rax, qword [rbp - 0x78]
mov rcx, r14
call qword [case.0x10044bd0b.0]
mov r15, qword [rsp + 0x430]
mov r14, qword [rsp + 0x438]
mov rcx, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x440]
mov rsi, qword [rsp + 0x468]
test rcx, rcx
je 0x10046226c
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x10046227c
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.100469360
add rsp, 0x448
pop rbx
pop rbp
ret