Function at 0x100406b10
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x378]
sub rsp, 0x478
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov r13, r9
mov r15, r8
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rbp + 0x3e0]
mov r12, qword [rbp + 0x3e8]
movups xmm0, xmmword [str.AlertGetResponseInfo]
movups xmmword [rbp + 0x330], xmm0
movups xmm1, xmmword [0x100472108]
movups xmmword [rbp + 0x340], xmm1
movsd xmm0, qword [0x100472118]
movsd qword [rbp + 0x350], xmm0
movzx eax, word [0x100472120]
mov word [rbp + 0x358], ax
xor r14d, r14d
test r9, r9
je 0x100406bae
mov eax, dword [r8 + 0xbf8]
and eax, 1
mov dword [r9], eax
test rdi, rdi
je 0x100406bbf
mov eax, dword [r8 + 0xbf8]
and eax, 2
mov dword [rdi], eax
test r12, r12
je 0x100406bd2
mov eax, dword [r8 + 0xbf8]
and eax, 4
mov dword [r12], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r14w
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, str.LoginTimeout
lea rcx, [rsp + 0x60]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.100409ee0
mov r9d, eax
lea r8, [rbp + 0x330]
xor edx, edx
mov rcx, rbx
call fcn.10040fcc0
test eax, eax
je 0x100406fa0
test r13, r13
je 0x100406c42
cmp dword [r13], 0
jne 0x100406c60
test rdi, rdi
je 0x100406c4c
cmp dword [rdi], 0
jne 0x100406c60
test r12, r12
je 0x100406fc6
cmp dword [r12], 0
je 0x100406fc6
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x68], r14w
mov r12d, 4
mov qword [rsp + 0x58], r12
mov edi, 1
mov word [rsp + 0x68], di
lea r9d, [r12 - 0x14]
mov r8d, edi
mov edx, edi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r15
mov word [rsp + 0x30], r14w
mov qword [rsp + 0x28], r14
mov word [rsp + 0x20], r12w
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
lea rdx, str.SELECT_o.id__o.name__n.notification_method__o.email_address__o.pager_address__o.netsend_address__o.weekday_pager_start_time__o.weekday_pager_end_time__o.saturday_pager_start_time__o.saturday_pager_end_time__o.sunday_pager_start_time__o.sunday_pager_end_time__o.pager_days_FROM_msdb.dbo.sysnotifications_n__msdb.dbo.sysoperators_o_WHERE__n.alert_id_____AND__n.operator_id__o.id__AND__o.enabled__1_
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, edi
jne 0x100406f78
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov r8d, 0xfffffff0
mov edx, edi
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x20], rax
mov edx, 2
mov r9d, 0x108
lea r8d, [rdx - 0xa]
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov edx, 3
lea r8d, [rdx - 0x13]
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xa4]
mov qword [rsp + 0x20], rax
mov r9d, 0xd0
mov r8d, 0xfffffff8
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x174]
mov qword [rsp + 0x20], rax
mov edx, 5
mov r9d, 0xd0
lea r8d, [rdx - 0xd]
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x244]
mov qword [rsp + 0x20], rax
mov edx, 6
mov r9d, 0xd0
lea r8d, [rdx - 0xe]
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x314]
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov edx, 7
lea r8d, [rdx - 0x17]
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x318]
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov edx, 8
lea r8d, [rdx - 0x18]
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x31c]
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov edx, 9
lea r8d, [rdx - 0x19]
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x320]
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov edx, 0xa
lea r8d, [rdx - 0x1a]
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x324]
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov edx, VariantTimeToDosDateTime
lea r8d, [rdx - 0x1b]
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x328]
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8d, [rdx - 0x1c]
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x32c]
mov qword [rsp + 0x20], rax
mov r9d, edi
mov edx, SQLFreeStmt
lea r8d, [rdx - 0x1d]
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLBind]
xor edx, edx
mov r8d, 0x3a0
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x100406f62
nop dword [rax]
nop dword [rax + rax]
mov dword [rbp + 0x9c], edi
lea rdx, [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.SQLSVC.dll_SHRecMemAdd]
xor edx, edx
mov r8d, 0x3a0
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
je 0x100406f30
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, edi
je 0x100406cd1
mov r14d, edi
jmp 0x100406f8c
lea r9, [r15 + 4]
xor edx, edx
mov r8d, 0xd4
mov ecx, edi
call fcn.100432180
nop
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x100406fa0
mov edx, 3
call qword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, r14d
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.100469360
add rsp, 0x478
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, 1
jmp 0x100406fa3