Function at 0x180016d10
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x118]
sub rsp, 0x218
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1800ff5a8]
xor rax, rsp
mov qword [rbp + 0x108], rax
mov edi, r9d
mov esi, r8d
mov r14d, edx
mov rbx, rcx
xor r15d, r15d
mov dword [rsp + 0x38], r15d
cmp qword [rcx + 0x88], r15
jne 0x180016d70
mov rax, qword [rcx]
call qword [rax + 0x10]
test al, al
je 0x1800172bf
lea rax, [0x1800e55b0]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea r12, [0x1800e5208]
mov qword [rbp - 0x18], r12
lea r13, [0x1800e52d8]
mov qword [rbp - 0x18], r13
mov dword [rsp + 0x38], 1
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [0x1800e53f0]
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x5c], edx
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
xor r8d, r8d
lea rdx, [rsp + 0x68]
call fcn.180008ab0
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [0x1800e54f0]
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x5c], edx
mov edx, 2
lea rcx, [rsp + 0x68]
call fcn.18000edd0
nop
test esi, esi
jne 0x180016e69
test edi, edi
jne 0x180016e62
lea rdx, str.SELECT__id__FROM__events__WHERE__hashvalue_
lea rcx, [rsp + 0x60]
call fcn.180008e70
mov rcx, rax
mov edx, r14d
call fcn.18000d7d0
mov rcx, rax
lea rdx, str._AND__id____
call fcn.180008e70
mov rcx, rax
mov edx, dword [rbx + 0xb8]
call fcn.18000d970
jmp 0x180016ea1
xor bl, bl
jmp 0x180017299
lea rdx, str.SELECT__id__FROM__events__WHERE__id____
lea rcx, [rsp + 0x60]
call fcn.180008e70
mov rcx, rax
mov edx, esi
call fcn.18000d7d0
mov rcx, rax
test edi, edi
je 0x180016ea4
lea rdx, str._AND__id____
call fcn.180008e70
mov rcx, rax
mov edx, edi
call fcn.18000d7d0
mov rcx, rax
lea rdx, [0x1800e5788]
call fcn.180008e70
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
lea rax, [rbp + 0x98]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x98]
lea rcx, [rsp + 0x60]
call fcn.18000ce40
nop
lea rsi, [rbx + 8]
lea r8, [rsp + 0x40]
mov rdx, rax
mov rcx, rsi
call fcn.18001e940
test al, al
jne 0x180016efb
xor bl, bl
jmp 0x18001728e
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8b, 1
mov rdx, rsi
lea rcx, [rbp + 0xd8]
call fcn.18001da40
nop
mov qword [rbp + 0x88], r15
mov qword [rbp + 0x90], r15
mov qword [rbp + 0x90], 0xf
mov qword [rbp + 0x88], r15
mov byte [rbp + 0x78], 0
mov rdi, r15
mov rcx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
sub rcx, r8
movabs r14, 0x2aaaaaaaaaaaaaab
mov rax, r14
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x180017204
mov rbx, r15
lea rcx, [r8 + rbx]
lea r8, [rbp + 0x78]
xor edx, edx
call fcn.18001ee00
mov qword [rbp + 0xc8], r15
mov qword [rbp + 0xd0], r15
mov qword [rbp + 0xd0], 0xf
mov qword [rbp + 0xc8], r15
mov byte [rbp + 0xb8], 0
lea rcx, [rsp + 0x68]
call fcn.18000ea70
mov r9d, dword [rbp - 0x28]
xor r8d, r8d
lea rdx, [rbp + 0xb8]
lea rcx, [rsp + 0x68]
call fcn.1800103c0
nop
mov rax, qword [rbp + 0xd0]
cmp rax, 0x10
jb 0x18001701e
inc rax
mov rcx, qword [rbp + 0xb8]
cmp rax, 0x1000
jb 0x180017019
test cl, 0x1f
jne 0x1800171e2
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1800171dc
sub rcx, rax
cmp rcx, 8
jb 0x1800171d6
cmp rcx, 0x27
ja 0x1800171d0
mov rcx, rax
call fcn.18009a2cc
mov qword [rbp + 0xd0], 0xf
mov qword [rbp + 0xc8], r15
mov byte [rbp + 0xb8], 0
lea rdx, str.DELETE_FROM__alerts__WHERE__eventid_
lea rcx, [rsp + 0x60]
call fcn.180008e70
mov rcx, rax
lea rdx, [rbp + 0x78]
call fcn.180011240
mov rcx, rax
lea rdx, [0x1800e5788]
call fcn.180008e70
lea rax, [rbp + 0x58]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x58]
lea rcx, [rsp + 0x60]
call fcn.18000ce40
nop
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call fcn.18001e940
test al, al
je 0x180017200
mov qword [rbp + 0xa8], r15
mov qword [rbp + 0xb0], r15
mov qword [rbp + 0xb0], 0xf
mov qword [rbp + 0xa8], r15
mov byte [rbp + 0x98], 0
lea rcx, [rsp + 0x68]
call fcn.18000ea70
mov r9d, dword [rbp - 0x28]
xor r8d, r8d
lea rdx, [rbp + 0x98]
lea rcx, [rsp + 0x68]
call fcn.1800103c0
nop
mov rax, qword [rbp + 0xb0]
cmp rax, 0x10
jb 0x18001712f
inc rax
mov rcx, qword [rbp + 0x98]
cmp rax, 0x1000
jb 0x18001712a
test cl, 0x1f
jne 0x1800171fa
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1800171f4
sub rcx, rax
cmp rcx, 8
jb 0x1800171ee
cmp rcx, 0x27
ja 0x1800171e8
mov rcx, rax
call fcn.18009a2cc
mov qword [rbp + 0xb0], 0xf
mov qword [rbp + 0xa8], r15
mov byte [rbp + 0x98], 0
lea rdx, str.DELETE_FROM__events__WHERE__id_
lea rcx, [rsp + 0x60]
call fcn.180008e70
mov rcx, rax
lea rdx, [rbp + 0x78]
call fcn.180011240
mov rcx, rax
lea rdx, [0x1800e5788]
call fcn.180008e70
lea rax, [rbp + 0x58]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x58]
lea rcx, [rsp + 0x60]
call fcn.18000ce40
nop
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call fcn.18001e940
test al, al
je 0x180017200
inc rdi
add rbx, 0x18
mov rcx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
sub rcx, r8
mov rax, r14
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdi, rdx
jae 0x180017204
jmp 0x180016f71
call fcn.18009e5a0
int3
call fcn.18009e5a0
int3
call fcn.18009e5a0
int3
call fcn.18009e5a0
int3
call fcn.18009e5a0
int3
call fcn.18009e5a0
int3
call fcn.18009e5a0
int3
call fcn.18009e5a0
int3
xor bl, bl
jmp 0x180017212
lea rcx, [rbp + 0xd8]
call fcn.18001e7c0
mov bl, 1
mov rax, qword [rbp + 0x90]
cmp rax, 0x10
jb 0x18001726b
inc rax
mov rcx, qword [rbp + 0x78]
cmp rax, 0x1000
jb 0x180017266
test cl, 0x1f
je 0x180017239
call fcn.18009e5a0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180017248
call fcn.18009e5a0
int3
sub rcx, rax
cmp rcx, 8
jae 0x180017257
call fcn.18009e5a0
int3
cmp rcx, 0x27
jbe 0x180017263
call fcn.18009e5a0
int3
mov rcx, rax
call fcn.18009a2cc
mov qword [rbp + 0x90], 0xf
mov qword [rbp + 0x88], r15
mov byte [rbp + 0x78], 0
lea rcx, [rbp + 0xd8]
call fcn.18001dc70
nop
lea rcx, [rsp + 0x40]
call fcn.18000e970
nop
lea rcx, [rbp - 0x18]
call fcn.18000ce80
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x18], r12
lea rcx, [rbp - 0x18]
call fcn.1800988f4
movzx eax, bl
mov rcx, qword [rbp + 0x108]
xor rcx, rsp
call fcn.180099e90
add rsp, 0x218
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret