Function at 0x5c75d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5c796c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb58]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [ebp - 4]
cmp byte [eax + 0xb20], 0
je 0x5c7918
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
mov eax, dword [eax + 0xd4]
call sub.rtl170.bpl__System__UStrLen_qqrx20System_UnicodeString
test eax, eax
jle 0x5c7918
lea eax, [ebp - 8]
push eax
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CPQSysTblName]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xa
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
mov eax, dword [eax + 0xd4]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea edx, [ebp - 0x18]
mov ecx, 1
mov eax, 0x5c7988
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005a744c
test al, al
je 0x5c7918
jmp 0x5c7902
mov dl, 1
mov eax, dword [sym.imp.PQLibPack17.bpl__Pqigraphtimer_TTimeCls_]
call sub.rtl170.bpl__System_TObject__bctr_qqrv
mov ebx, eax
xor eax, eax
push ebp
push 0x5c78ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 1
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 4]
call sub.rtl170.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 3
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 8]
call sub.rtl170.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 4
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
mov edx, dword [eax]
call dword [edx + 0x70]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 5
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov edx, dword [ebp - 0x24]
lea eax, [ebx + 0x10]
call sub.rtl170.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 6
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov edx, dword [ebp - 0x28]
lea eax, [ebx + 0x14]
call sub.rtl170.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 7
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
mov edx, dword [eax]
call dword [edx + 0x70]
mov byte [ebx + 0x1c], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 8
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
mov edx, dword [eax]
call dword [edx + 0x70]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 9
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
mov edx, dword [eax]
call dword [edx + 0x70]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 0xa
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
mov edx, dword [eax]
call dword [edx + 0x70]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 0xb
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0x2c]
call sub.rtl170.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 0xc
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
mov edx, dword [eax]
call dword [edx + 0x70]
and eax, 0x80000001
jns 0x5c783b
dec eax
or eax, 0xfffffffe
inc eax
mov byte [ebx + 0x30], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 0xd
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
mov edx, dword [eax]
call dword [edx + 0x60]
fstp qword [ebx + 0x38]
wait
cmp byte [ebx + 0x1c], 0
jbe 0x5c78e0
mov eax, dword [ebx + 0x18]
push eax
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb58]
call sub.PQLibPack17.bpl__Pqigraphtimer_TTimeClsLst_FindHostPortNum_qqrx20System_UnicodeStringt1xi
test eax, eax
jne 0x5c78e0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb58]
mov edx, ebx
call sub.rtl170.bpl__System_Classes_TList_Add_qqrpv
mov eax, ebx
call sub.PQLibPack17.bpl__Pqigraphtimer_TTimeCls_RechneNextStart_qqrv
push 3
push 0
mov eax, dword [ebx + 8]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0x11
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0x11
push dword [ebx + 0x44]
push dword [ebx + 0x40]
lea eax, [ebp - 0x50]
call sub.rtl170.bpl__System_Sysutils_DateTimeToStr_qqrx16System_TDateTime
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0x11
lea ecx, [ebp - 0x4c]
mov edx, 0x5c79e0
mov eax, dword [ebp - 4]
call fcn.005b1a88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5c78f4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x894]
call sub.dbrtl170.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x894]
cmp byte [eax + 0xa5], 0
je 0x5c7686
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb58]
cmp dword [eax + 8], 0
setg al
mov edx, dword [ebp - 4]
mov byte [edx + 0xb20], al
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64c]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c7973
lea eax, [ebp - 0x50]
call sub.rtl170.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x2c]
mov edx, 5
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 8]
call sub.rtl170.bpl__System__UStrClr_qqrpv
ret