Function at 0x405590
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7dc
mov eax, dword [0x44d558]
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0xa
mov esi, str.AlertGetResponseInfo
lea edi, [ebp - 0x7d8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x7ac], 0
mov ax, word [0x44d844]
mov word [ebp - 0x408], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x406]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [ebp + 0x14], 0
je 0x4055f8
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 0x40560f
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 0x405626
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 - 0x7d8]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00408190
add esp, 0xc
test eax, eax
je 0x4058f9
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x40565f
mov ecx, dword [ebp + 0x18]
cmp dword [ecx], 0
jne 0x40565f
mov edx, dword [ebp + 0x1c]
cmp dword [edx], 0
je 0x4058ef
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 - 0x408]
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x4cc]
add esp, 0xc
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLExecDirect]
add esp, 8
cmp eax, 1
jne 0x4058d5
lea eax, [ebp - 0x7dc]
push eax
lea ecx, [ebp - 0x7a8]
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 - 0x7dc]
push eax
lea ecx, [ebp - 0x7a4]
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 - 0x7dc]
push eax
lea ecx, [ebp - 0x698]
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 - 0x7dc]
push eax
lea ecx, [ebp - 0x694]
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 - 0x7dc]
push eax
lea ecx, [ebp - 0x5c4]
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 - 0x7dc]
push eax
lea ecx, [ebp - 0x4f4]
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 - 0x7dc]
push eax
lea ecx, [ebp - 0x424]
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 - 0x7dc]
push eax
lea ecx, [ebp - 0x420]
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 - 0x7dc]
push eax
lea ecx, [ebp - 0x41c]
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 - 0x7dc]
push eax
lea ecx, [ebp - 0x418]
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 - 0x7dc]
push eax
lea ecx, [ebp - 0x414]
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 - 0x7dc]
push eax
lea ecx, [ebp - 0x410]
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 - 0x7dc]
push eax
lea ecx, [ebp - 0x40c]
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 - 0x7a8]
push eax
call sub.MSVCR71.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 0x4058b3
mov dword [ebp - 0x69c], 1
lea edx, [ebp - 0x7a8]
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 - 0x7a8]
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
jmp 0x40586b
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x40569c
mov dword [ebp - 0x7ac], 1
jmp 0x4058ed
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push 0xd4
push 0
push 1
call fcn.0041d760
add esp, 0x10
jmp 0x4058f9
mov dword [ebp - 0x7ac], 1
mov eax, dword [ebp - 0x7ac]
mov ecx, dword [ebp - 4]
call fcn.00434de1
pop edi
pop esi
mov esp, ebp
pop ebp
ret