Function at 0x40c080
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x44d558]
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 8
mov esi, str.ConnGetOperator
lea edi, [ebp - 0x42c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x40c], 0
mov ax, word [0x44d9ac]
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 + 0xc], 0
je 0x40c0db
cmp dword [ebp + 0x10], 0
jne 0x40c0e2
xor eax, eax
jmp 0x40c38d
push 0x3a0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
lea edx, [ebp - 0x42c]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00408190
add esp, 0xc
test eax, eax
je 0x40c372
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 - 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 0x40c370
lea eax, [ebp - 0x430]
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 - 0x430]
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 - 0x430]
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 - 0x430]
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 - 0x430]
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 - 0x430]
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 - 0x430]
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 - 0x430]
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 - 0x430]
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 - 0x430]
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 - 0x430]
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 - 0x430]
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 - 0x430]
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.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 0x40c35a
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x10c]
mov dword [ebp - 0x40c], eax
jmp 0x40c337
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x40c14d
jmp 0x40c387
mov edx, dword [ebp + 0xc]
push edx
push 0xfc
push 0
push 1
call fcn.0041d760
add esp, 0x10
mov eax, dword [ebp - 0x40c]
mov ecx, dword [ebp - 4]
call fcn.00434de1
pop edi
pop esi
mov esp, ebp
pop ebp
ret