Function at 0x5b0280
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x5b0288
push ecx
push ebx
push esi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5b04dc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CPQSysTblName]
mov eax, dword [eax + 8]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0xa
lea edx, [ebp - 0x54]
mov al, 0x40
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0x11
mov eax, 0x5b04f8
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0x11
lea edx, [ebp - 0x58]
mov eax, dword [sym.imp.PQLibPack17.bpl__Sqlunit_SQLSyntax]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xe8]
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0x11
lea edx, [ebp - 0x5c]
mov al, 0x3e
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0x11
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CPQManager]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xa
lea edx, [ebp - 0x60]
mov eax, dword [sym.imp.PQLibPack17.bpl__Sqlunit_SQLSyntax]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0x11
lea edx, [ebp - 0x64]
mov al, 0x3e
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
mov eax, 0x5b0510
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea edx, [ebp - 0x50]
mov ecx, 8
mov eax, 0x5b0530
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.005a744c
test al, al
je 0x5b04a9
jmp 0x5b0496
lea eax, [ebp - 0x68]
push eax
mov eax, dword [esi + 0x38]
mov edx, 3
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 0x94]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x90], eax
mov byte [ebp - 0x8c], 0x11
mov eax, dword [ebx + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 2
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 0x98]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0x11
mov eax, dword [ebx + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 4
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 0x9c]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0x11
mov eax, dword [ebx + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 1
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 0xa0]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0x11
mov eax, dword [ebx + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 6
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 0xa4]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0x11
lea edx, [ebp - 0x90]
mov ecx, 4
mov eax, 0x5b05a8
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebx + 0x894]
call sub.dbrtl170.bpl__Data_Db_TDataSet_Next_qqrv
mov esi, dword [ebx + 0x894]
cmp byte [esi + 0xa5], 0
je 0x5b037b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b04e3
lea eax, [ebp - 0xa4]
mov edx, 5
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x68]
mov edx, 6
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 8]
call sub.rtl170.bpl__System__UStrClr_qqrpv
ret