Function at 0x40b353
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push esi
push edi
mov ecx, 8
mov esi, str.ConnGetOperator
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], 0
mov ax, word [0x44866c]
mov word [ebp - 0x428], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x426]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [ebp + 0xc], 0
je 0x40b39e
cmp dword [ebp + 0x10], 0
jne 0x40b3a5
xor eax, eax
jmp 0x40b620
push 0x3a0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 0x28]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004078f6
add esp, 0xc
test eax, eax
je 0x40b608
mov ecx, dword [ebp + 0xc]
push ecx
push str.SELECT_id__name__enabled__email_address__pager_address__netsend_address__weekday_pager_start_time__weekday_pager_end_time__saturday_pager_start_time__saturday_pager_end_time__sunday_pager_start_time__sunday_pager_end_time__pager_days_FROM_msdb.dbo.sysoperators_WHERE__id___ld__AND__enabled__1_
lea edx, [ebp - 0x428]
push edx
mov eax, dword [0x449ba0]
call dword [eax + 0x4cc]
add esp, 0xc
lea ecx, [ebp - 0x428]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLExecDirect]
add esp, 8
cmp eax, 1
jne 0x40b606
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 4
push 0xfffffffffffffff0
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 4
push ecx
push 0x108
push 0xfffffffffffffff8
push 2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x10c
push ecx
push 4
push 0xfffffffffffffff0
push 3
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x114
push ecx
push 0xd0
push 0xfffffffffffffff8
push 4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x1e4
push ecx
push 0xd0
push 0xfffffffffffffff8
push 5
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x2b4
push ecx
push 0xd0
push 0xfffffffffffffff8
push 6
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x384
push ecx
push 4
push 0xfffffffffffffff0
push 7
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x388
push ecx
push 4
push 0xfffffffffffffff0
push 8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x38c
push ecx
push 4
push 0xfffffffffffffff0
push 9
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x390
push ecx
push 4
push 0xfffffffffffffff0
push 0xa
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x394
push ecx
push 4
push 0xfffffffffffffff0
push 0xb
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x398
push ecx
push 4
push 0xfffffffffffffff0
push 0xc
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x39c
push ecx
push 1
push 0xfffffffffffffff0
push 0xd
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
push 0x3a0
push 0
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLNextRow]
add esp, 4
cmp eax, 0xffffffff
jne 0x40b5f0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x10c]
mov dword [ebp - 4], eax
jmp 0x40b5d0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x40b40d
jmp 0x40b61d
mov edx, dword [ebp + 0xc]
push edx
push 0xfc
push 0
push 1
call fcn.0041b8d1
add esp, 0x10
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret