Function at 0x5b12f8
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x17
push 0
push 0
dec ecx
jne 0x5b1301
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5b162c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x70]
mov al, 0x1e
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0x11
lea edx, [ebp - 0x74]
mov al, 0x19
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0x11
lea edx, [ebp - 0x78]
mov al, 0x1d
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0x11
lea edx, [ebp - 0x7c]
mov al, 0x1a
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0x11
lea edx, [ebp - 0x80]
mov al, 0x1b
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0x11
lea edx, [ebp - 0x84]
mov al, 0x1c
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CPQSysTblName]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xa
lea edx, [ebp - 0x88]
mov al, 0x1e
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0x11
lea edx, [ebp - 0x8c]
mov al, 0x1e
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0x11
lea edx, [ebp - 0x6c]
mov ecx, 8
mov eax, 0x5b1648
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x24]
mov eax, ebx
call fcn.005a744c
test al, al
je 0x5b15f9
jmp 0x5b15e6
mov eax, dword [esi + 0x38]
xor edx, edx
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x84]
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 - 8]
mov ecx, dword [eax]
call dword [ecx + 0x84]
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 - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov eax, dword [ebx + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 3
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x84]
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 - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov eax, dword [ebx + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 5
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x84]
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 0xbc], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 0xb4], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 0xac], 0x11
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 0xa4], 0x11
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa0], eax
mov byte [ebp - 0x9c], 0x11
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x98], eax
mov byte [ebp - 0x94], 0x11
lea edx, [ebp - 0xc0]
mov ecx, 5
mov eax, 0x5b16dc
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x90]
mov ecx, 1
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax]
call dword [esi + 0x40]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x58]
test eax, eax
jge 0x5b158d
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x58]
test eax, eax
jge 0x5b15a7
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x58]
test eax, eax
jge 0x5b15c1
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x58]
test eax, eax
jge 0x5b15db
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
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 0x5b1439
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b1633
lea eax, [ebp - 0x90]
mov edx, 9
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x24]
call sub.rtl170.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x18]
mov edx, 6
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
ret