Function at 0x100408110
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0xd8]
sub rsp, 0x1c0
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rdi, rdx
mov rbx, rcx
movups xmm0, xmmword [str.MakeMinimalFailSafeOperator]
movups xmmword [rbp + 0x78], xmm0
movups xmm1, xmmword [0x1004724d8]
movups xmmword [rbp + 0x88], xmm1
movups xmm0, xmmword [0x1004724e8]
movups xmmword [rbp + 0x98], xmm0
movsd xmm1, qword [0x1004724f8]
movsd qword [rbp + 0xa8], xmm1
xor esi, esi
mov dword [rsp + 0x50], esi
mov qword [rbp - 0x78], rsi
xor edx, edx
mov r8d, 0x3a0
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp - 0x70]
mov qword [rsp + 0x58], rax
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], si
lea r8d, [rsi + 0x15]
lea rdx, str.AlertFailSafeOperator
lea rcx, [rbp - 0x70]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea r8, [rbp - 0x70]
lea rdx, [rbp - 8]
call fcn.10040a3c0
nop
mov dword [rdi], esi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], si
lea r8d, [rsi + 0xc]
lea rdx, str.LoginTimeout
lea rcx, [rsp + 0x68]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rsp + 0x68]
call fcn.100409ee0
mov r9d, eax
lea r8, [rbp + 0x78]
xor edx, edx
mov rcx, rbx
call fcn.10040fcc0
lea r14d, [rsi + 1]
test eax, eax
je 0x100408326
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x60], si
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rcx, qword [rbp - 8]
mov eax, dword [rbp + 8]
add eax, eax
mov word [rsp + 0x60], r14w
movsxd r10, eax
lea r11d, [rsi - 9]
lea r9d, [rsi - 8]
mov r8d, r14d
mov edx, r14d
lea rax, [0x100499038]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x38], rcx
mov word [rsp + 0x30], si
mov qword [rsp + 0x28], 0x80
mov word [rsp + 0x20], r11w
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
lea rdx, str.SELECT_id_FROM_msdb.dbo.sysoperators_WHERE__name____
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, r14d
jne 0x100408312
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8d, [r9 - 0x14]
mov edx, r14d
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLBind]
nop word [rax + rax]
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
je 0x1004082f0
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x1004082c1
mov eax, dword [rsp + 0x50]
mov dword [rdi], eax
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x100408326
mov edx, 3
call qword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], si
mov r8d, 0x19
lea rdx, str.AlertFailSafeEmailAddress
lea rcx, [rsp + 0x68]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0x58]
call fcn.10040a3c0
nop
lea rax, [rbp - 0x50]
mov qword [rsp + 0x58], rax
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], si
mov r8d, 0x19
lea rdx, str.AlertFailSafePagerAddress
lea rcx, [rbp - 0x50]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea r8, [rbp - 0x50]
lea rdx, [rbp + 0x38]
call fcn.10040a3c0
nop
lea rax, [rbp - 0x30]
mov qword [rsp + 0x58], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], si
mov r8d, 0x1b
lea rdx, str.AlertFailSafeNetSendAddress
lea rcx, [rbp - 0x30]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea r8, [rbp - 0x30]
lea rdx, [rbp + 0x18]
call fcn.10040a3c0
nop
lea r8, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae r8, qword [rbp - 8]
lea rcx, [rdi + 4]
mov edx, 0x84
sub r8, rcx
nop word [rax + rax]
lea rax, [rdx + 0x7fffff7a]
test rax, rax
je 0x100408445
movzx eax, word [r8 + rcx]
test ax, ax
je 0x100408445
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100408420
jmp 0x10040844a
test rdx, rdx
jne 0x10040844e
sub rcx, 2
mov word [rcx], si
lea r9, [rbp + 0x58]
cmp qword [rbp + 0x70], 8
cmovae r9, qword [rbp + 0x58]
lea rcx, [rdi + 0x114]
mov edx, 0x68
mov r8d, edx
sub r9, rcx
lea rax, [r8 + 0x7fffff96]
test rax, rax
je 0x100408496
movzx eax, word [r9 + rcx]
test ax, ax
je 0x100408496
mov word [rcx], ax
add rcx, 2
sub r8, 1
jne 0x100408471
jmp 0x10040849b
test r8, r8
jne 0x10040849f
sub rcx, 2
mov word [rcx], si
lea r9, [rbp + 0x38]
cmp qword [rbp + 0x50], 8
cmovae r9, qword [rbp + 0x38]
lea rcx, [rdi + 0x1e4]
mov r8, rdx
sub r9, rcx
nop dword [rax]
lea rax, [r8 + 0x7fffff96]
test rax, rax
je 0x1004084e5
movzx eax, word [r9 + rcx]
test ax, ax
je 0x1004084e5
mov word [rcx], ax
add rcx, 2
sub r8, 1
jne 0x1004084c0
jmp 0x1004084ea
test r8, r8
jne 0x1004084ee
sub rcx, 2
mov word [rcx], si
lea r8, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae r8, qword [rbp + 0x18]
lea rcx, [rdi + 0x2b4]
sub r8, rcx
nop dword [rax]
lea rax, [rdx + 0x7fffff96]
test rax, rax
je 0x100408535
movzx eax, word [r8 + rcx]
test ax, ax
je 0x100408535
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100408510
jmp 0x10040853a
test rdx, rdx
jne 0x10040853e
sub rcx, 2
mov word [rcx], si
mov dword [rdi + 0x110], esi
mov qword [rdi + 0x384], rsi
mov qword [rdi + 0x38c], rsi
mov qword [rdi + 0x394], rsi
mov dword [rdi + 0x39c], esi
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
jb 0x1004085a5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1004085a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1004085a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.100469388
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], si
mov rdx, qword [rbp + 0x50]
cmp rdx, 8
jb 0x1004085f8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1004085f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1004085f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.100469388
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], 7
mov word [rbp + 0x38], si
mov rdx, qword [rbp + 0x70]
cmp rdx, 8
jb 0x10040864b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x100408646
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x100408646
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.100469388
mov qword [rbp + 0x68], rsi
mov qword [rbp + 0x70], 7
mov word [rbp + 0x58], si
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x10040869e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x100408699
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x100408699
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.100469388
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], 7
mov word [rbp - 8], si
mov eax, r14d
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.100469360
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret