Function at 0x100402a70
Capabilities:
Access the windows event log

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x538]
sub rsp, 0x638
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x520], rax
mov r14, r9
mov r12, r8
mov r13, rdx
mov r15, rcx
mov rsi, qword [rbp + 0x5a0]
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x120]
call sub.VCRUNTIME140.dll_memset
xor edi, edi
mov word [rsp + 0x50], di
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
mov ebx, edi
mov qword [rbp - 0x58], rdi
mov dword [rbp - 0x80], edi
cmp dword [r15 + 0xc], ebx
jle 0x100402c23
nop word [rax + rax]
mov edx, edi
mov rcx, r15
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
mov rbx, rax
test rax, rax
je 0x100402c17
cmp dword [rax + 0x1e0], 8
je 0x100402c17
cmp dword [rax + 0x1ec], 0
je 0x100402c17
lea rdx, [rax + 0x10c]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x100402c17
mov eax, dword [rbx + 0x1e4]
cmp dword [r14], eax
jne 0x100402ba8
lea rdx, [rbx + 0x200]
cmp word [rdx], 0
je 0x100402b71
mov rcx, rsi
call fcn.100408ac0
test eax, eax
je 0x100402c17
lea rdx, [rbx + 0x2d0]
cmp word [rdx], 0
je 0x100402c23
lea rcx, [r14 + 8]
cmp dword [0x1004a8c78], 0
je 0x100402c0d
sub rdx, rcx
movzx eax, word [rcx]
cmp ax, word [rcx + rdx]
jne 0x100402c06
add rcx, 2
test ax, ax
jne 0x100402b92
xor eax, eax
jmp 0x100402c13
mov eax, dword [rbx + 0x1e8]
cmp dword [r14 + 4], eax
jne 0x100402c17
lea rdx, [rbx + 0x200]
cmp word [rdx], 0
je 0x100402bcd
mov rcx, rsi
call fcn.100408ac0
test eax, eax
je 0x100402c17
lea rdx, [rbx + 0x2d0]
cmp word [rdx], 0
je 0x100402c23
lea rcx, [r14 + 8]
cmp dword [0x1004a8c78], 0
je 0x100402c0d
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [rcx]
cmp ax, word [rcx + rdx]
jne 0x100402c06
add rcx, 2
test ax, ax
jne 0x100402bf0
xor eax, eax
jmp 0x100402c13
sbb eax, eax
or eax, 1
jmp 0x100402c13
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x100402c23
inc edi
cmp edi, dword [r15 + 0xc]
jl 0x100402b00
xor r12d, r12d
mov esi, r12d
cmp edi, dword [r15 + 0xc]
cmovne rsi, rbx
mov r15, rsi
mov qword [rsp + 0x58], rsi
test rsi, rsi
je 0x100402ede
lea rax, [rbp - 0x50]
mov qword [rsp + 0x58], rax
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r12w
lea r8d, [r12 + 0x12]
lea rdx, str.NonAlertableErrors
lea rcx, [rbp - 0x50]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea r8, [rbp - 0x50]
lea rdx, [rbp - 8]
call fcn.10040a3c0
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r12
lea r8, [rbp - 0x78]
lea rcx, [rbp - 8]
call fcn.10040c8a0
mov r8, qword [rbp - 0x70]
mov rbx, qword [rbp - 0x78]
sub r8, rbx
sar r8, 2
mov qword [rsp + 0x58], rsi
cmp edi, r8d
jge 0x100402ce5
movsxd rax, edi
lea rcx, [rbx + rax*4]
mov eax, dword [rcx]
inc edi
lea rcx, [rcx + 4]
test eax, eax
je 0x100402cd8
mov edx, dword [r14]
cmp edx, eax
je 0x100402d7e
cmp edi, r8d
jl 0x100402cc1
mov r15, rsi
mov qword [rsp + 0x58], rsi
mov esi, 4
lea rax, [rsp + 0x60]
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r12w
mov r8d, 0x12
lea rdx, str.AlertForwardAlways
lea rcx, [rsp + 0x60]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.10040a150
nop
test al, al
jne 0x100402e33
test rbx, rbx
je 0x100402dd9
mov rax, qword [rbp - 0x68]
sub rax, rbx
sar rax, 2
lea rdx, [rax*4]
mov rax, rbx
cmp rdx, 0x1000
jb 0x100402dc5
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x100402dc5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rax, [rsi + 4]
mov qword [rsp + 0x38], rax
mov eax, 2
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
mov r15d, 1
mov dword [rsp + 0x20], r15d
mov esi, 4
mov r9d, esi
mov r8d, 0xc0000143
movzx edx, ax
lea ecx, [rax + 1]
call fcn.100431c20
mov r15, r12
mov qword [rsp + 0x58], r12
jmp 0x100402cea
mov rcx, rbx
call fcn.100469388
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r12
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x100402e1c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x100402e17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x100402e17
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.100469388
movdqa xmm0, xmmword [0x100482320]
movdqu xmmword [rbp + 8], xmm0
mov word [rbp - 8], r12w
jmp 0x100403479
test rbx, rbx
je 0x100402e87
mov rax, qword [rbp - 0x68]
sub rax, rbx
sar rax, 2
lea rdx, [rax*4]
mov rax, rbx
cmp rdx, 0x1000
jb 0x100402e73
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x100402e73
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.100469388
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r12
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x100402eca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x100402ec5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x100402ec5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.100469388
movdqa xmm0, xmmword [0x100482320]
movdqu xmmword [rbp + 8], xmm0
mov word [rbp - 8], r12w
jmp 0x100402ee3
mov esi, 4
test r13, r13
je 0x100403479
lea rax, [rsp + 0x60]
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r12w
mov r8d, 0x15
lea rdx, str.AlertForwardingServer
lea rcx, [rsp + 0x60]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x28]
call fcn.10040a3c0
nop
lea rax, [rsp + 0x60]
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r12w
mov r8d, 0x17
lea rdx, str.AlertForwardingSeverity
lea rcx, [rsp + 0x60]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.100409ee0
mov edi, eax
mov ebx, 0x80
mov r8d, ebx
lea rdx, [rbp + 0x20]
lea r9, [rsp + 0x50]
lea rax, [rbp + 0x20]
sub r9, rax
nop dword [rax]
lea rcx, [r8 + 0x7fffff7e]
test rcx, rcx
je 0x100402fc3
movzx eax, word [r9 + rdx]
test ax, ax
je 0x100402fc3
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x100402fa0
lea rax, [rdx - 2]
test r8, r8
cmovne rax, rdx
mov word [rax], r12w
mov r8d, dword [r13 + 0x34]
add r8, r13
cmp dword [r8 + 8], 0
je 0x100403022
add r8, 0xc
mov rdx, rbx
lea rcx, [rbp + 0x20]
lea rax, [rbp + 0x20]
sub r8, rax
lea rax, [rdx + 0x7fffff7e]
test rax, rax
je 0x100403015
movzx eax, word [r8 + rcx]
test ax, ax
je 0x100403015
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100402ff2
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
jmp 0x100403081
lea rcx, [r13 + 0x38]
cmp word [rcx], 0
je 0x100403042
mov edx, dword [r13 + 0x24]
add rdx, r13
cmp rcx, rdx
jae 0x100403042
add rcx, 2
cmp word [rcx], 0
jne 0x100403033
add rcx, 2
mov r8, rbx
lea rdx, [rbp + 0x20]
lea rax, [rbp + 0x20]
sub rcx, rax
lea rax, [r8 + 0x7fffff7e]
test rax, rax
je 0x100403076
movzx eax, word [rcx + rdx]
test ax, ax
je 0x100403076
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x100403054
lea rax, [rdx - 2]
test r8, r8
cmovne rax, rdx
mov word [rax], r12w
cmp qword [rbp - 0x18], 0
jbe 0x100403425
call fcn.10044da70
lea rdx, [rax + 0x68]
cmp qword [rdx + 0x18], 8
jb 0x1004030a3
mov rdx, qword [rdx]
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x100403377
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
lea rdx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x100403377
cmp dword [r14 + 4], edi
jl 0x100403377
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x100403377
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
lea rdi, [0x10049b660]
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x10040312c
cmp qword [0x10049b760], 0
jne 0x10040317e
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
mov rcx, rdi
sub rdx, rdi
lea rax, [rbx + 0x7fffff7e]
test rax, rax
je 0x100403162
movzx eax, word [rdx + rcx]
test ax, ax
je 0x100403162
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x100403140
lea rax, [rcx - 2]
test rbx, rbx
cmovne rax, rcx
mov word [rax], r12w
call fcn.100407860
test eax, eax
je 0x100403425
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rax, qword [rbp - 0x28]
movzx r9d, word [r13 + 0x14]
mov qword [rsp + 0x28], rax
mov eax, dword [r14]
mov dword [rsp + 0x20], eax
xor edx, edx
lea ecx, [rdx + 3]
mov r8d, 0xcb
call fcn.100432180
mov edi, dword [r13 + 0x34]
add rdi, r13
movzx eax, word [r13 + 0x1a]
test ax, ax
je 0x100403231
movzx ecx, ax
shl ecx, 3
mov r8d, 0x423
lea rdx, str.AlertLocateAlert
call fcn.10043acf0
mov rdx, rax
mov rsi, rax
test rax, rax
je 0x100403235
mov ecx, dword [r13 + 0x24]
add rcx, r13
mov qword [rax], rcx
add rdx, 8
mov eax, 1
mov r8d, eax
cmp ax, word [r13 + 0x1a]
jae 0x100403235
cmp word [rcx], 0
je 0x100403217
cmp rcx, rdi
jae 0x100403217
add rcx, 2
cmp word [rcx], 0
jne 0x100403208
add rcx, 2
mov qword [rdx], rcx
add rdx, 8
inc r8d
movzx eax, word [r13 + 0x1a]
cmp r8d, eax
jl 0x100403202
jmp 0x100403235
mov rsi, qword [rbp - 0x58]
mov r15d, dword [rbp - 0x80]
mov r14d, 2
nop
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rsi
mov eax, dword [r13 + 0x30]
mov dword [rsp + 0x30], eax
movzx eax, word [r13 + 0x1a]
mov word [rsp + 0x28], ax
mov qword [rsp + 0x20], r12
mov r9d, dword [r13 + 0x14]
movzx r8d, word [r13 + 0x1c]
movzx edx, word [r13 + 0x18]
mov rcx, qword [0x10049b760]
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x10040335c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
movzx ecx, ax
mov r8d, 0x400
lea rdx, [rbp + 0x120]
call fcn.10044bfe0
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
movzx ecx, word [r13 + 0x14]
lea rax, [rbp + 0x120]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], ecx
mov eax, 1
mov dword [rsp + 0x20], eax
lea r9d, [rax + 5]
mov r8d, 0xc000012c
movzx edx, ax
lea ecx, [rax + 2]
call fcn.100431c20
cmp ebx, 6
jne 0x10040335c
lea rbx, [0x10049b660]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r14d
mov r9d, r14d
mov eax, 4
mov r8d, 0x4000013a
movzx edx, ax
lea ecx, [rax - 1]
call fcn.100431c20
call fcn.100407860
test eax, eax
je 0x10040335c
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r14d
mov r9d, r14d
mov eax, 4
mov r8d, 0x4000013b
movzx edx, ax
lea ecx, [rax - 1]
call fcn.100431c20
test r15d, r15d
jne 0x10040335c
mov r15d, 1
jmp 0x100403240
test rsi, rsi
mov r15, qword [rsp + 0x58]
je 0x100403425
mov rcx, rsi
call fcn.10043b3b0
jmp 0x100403425
cmp qword [rbp - 0x18], 0
jbe 0x100403425
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
lea rdx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1004033dd
cmp dword [r14 + 4], edi
jl 0x1004033dd
movzx eax, word [r13 + 0x14]
lea rdx, [rbp + 0x20]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
mov eax, 1
mov dword [rsp + 0x20], eax
mov r9d, esi
mov r8d, 0xc000013f
movzx edx, ax
lea ecx, [rax + 2]
call fcn.100431c20
jmp 0x100403425
cmp qword [rbp - 0x18], 0
jbe 0x100403425
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x100403425
cmp dword [r14 + 4], edi
jl 0x100403425
movzx eax, word [r13 + 0x14]
mov dword [rsp + 0x28], eax
mov eax, 1
mov dword [rsp + 0x20], eax
lea r9d, [rax + 1]
mov r8d, 0xc0000140
movzx edx, ax
lea ecx, [rax + 2]
call fcn.100431c20
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x100403468
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x100403463
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x100403463
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.100469388
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
mov rax, r15
mov rcx, qword [rbp + 0x520]
xor rcx, rsp
call fcn.100469360
add rsp, 0x638
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret