Function at 0x40561f
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7d4
push esi
push edi
mov ecx, 0xa
mov esi, str.AlertGetResponseInfo
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 8], 0
mov ax, word [0x448500]
mov word [ebp - 0x7d4], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x7d2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [ebp + 0x14], 0
je 0x405677
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x8f8]
and edx, 1
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
cmp dword [ebp + 0x18], 0
je 0x40568e
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x8f8]
and edx, 2
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
cmp dword [ebp + 0x1c], 0
je 0x4056a5
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x8f8]
and edx, 4
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
lea ecx, [ebp - 0x34]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004078f6
add esp, 0xc
test eax, eax
je 0x405933
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x4056db
mov ecx, dword [ebp + 0x18]
cmp dword [ecx], 0
jne 0x4056db
mov edx, dword [ebp + 0x1c]
cmp dword [edx], 0
je 0x40592c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
push 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___ld__AND__n.operator_id__o.id__AND__o.enabled__1_
lea edx, [ebp - 0x7d4]
push edx
mov eax, dword [0x449ba0]
call dword [eax + 0x4cc]
add esp, 0xc
lea ecx, [ebp - 0x7d4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLExecDirect]
add esp, 8
cmp eax, 1
jne 0x405912
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x3d4]
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 - 4]
push eax
lea ecx, [ebp - 0x3d0]
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 - 4]
push eax
lea ecx, [ebp - 0x2c4]
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 - 4]
push eax
lea ecx, [ebp - 0x2c0]
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 - 4]
push eax
lea ecx, [ebp - 0x1f0]
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 - 4]
push eax
lea ecx, [ebp - 0x120]
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 - 4]
push eax
lea ecx, [ebp - 0x50]
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 - 4]
push eax
lea ecx, [ebp - 0x4c]
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 - 4]
push eax
lea ecx, [ebp - 0x48]
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 - 4]
push eax
lea ecx, [ebp - 0x44]
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 - 4]
push eax
lea ecx, [ebp - 0x40]
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 - 4]
push eax
lea ecx, [ebp - 0x3c]
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 - 4]
push eax
lea ecx, [ebp - 0x38]
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
lea eax, [ebp - 0x3d4]
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 0x4058f3
mov dword [ebp - 0x2c8], 1
lea edx, [ebp - 0x3d4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SQLSVC.dll_SHRecMemAdd]
add esp, 8
push 0x3a0
push 0
lea ecx, [ebp - 0x3d4]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
jmp 0x4058ab
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x405718
mov dword [ebp - 8], 1
jmp 0x40592a
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push 0xd4
push 0
push 1
call fcn.0041b8d1
add esp, 0x10
jmp 0x405933
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret