Function at 0x41e07e8
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x41e07f1
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp + 8]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
mov esi, dword [0x42039d0]
xor eax, eax
push ebp
push 0x41e0b44
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x41d2f7c]
call fcn.041d37f4
mov dword [esi], eax
mov edx, dword [edi + 0x374]
mov eax, dword [esi]
mov eax, dword [eax + 0x374]
mov cl, byte [0x41e0b58]
mov edi, dword [eax]
call dword [edi + 0x294]
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_First_qqrv
mov eax, dword [esi]
mov eax, dword [eax + 0x350]
call sub.dbrtl60.bpl__Db_TDataSet_Open_qqrv
jmp 0x41e09b2
mov eax, dword [esi]
mov eax, dword [eax + 0x350]
call sub.dbrtl60.bpl__Db_TDataSet_Append_qqrv
push 1
push 1
mov eax, dword [esi]
mov ecx, dword [eax + 0x350]
mov edx, ebx
mov eax, dword [0x4199340]
call fcn.0419a7dc
mov edx, 0x41e0b64
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x358]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov edx, 0x41e0b78
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3c0]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov edx, 0x41e0b88
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
lea edx, [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0xc]
mov eax, dword [esi]
mov eax, dword [eax + 0x3c4]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov edx, 0x41e0b9c
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 0x3e4]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov edx, 0x41e0bb0
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3ec]
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov eax, dword [esi]
mov eax, dword [eax + 0x3d8]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov eax, dword [esi]
mov eax, dword [eax + 0x350]
mov edx, dword [eax]
call dword [edx + 0x248]
lea edx, [ebp - 0x18]
mov eax, dword [esi]
mov edi, dword [eax + 0x32c]
mov eax, edi
call sub.vcl60.bpl__Controls_TControl_GetText_qqrv
push dword [ebp - 0x18]
push 0x41e0bc0
lea edx, [ebp - 0x1c]
mov eax, dword [esi]
mov eax, dword [eax + 0x3c4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 3
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x14]
mov eax, edi
call sub.vcl60.bpl__Controls_TControl_SetText_qqrx17System_AnsiString
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_Next_qqrv
cmp byte [ebx + 0xa1], 0
je 0x41e0868
xor ecx, ecx
mov dl, 1
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_TVEDataset_]
call sub.VEDatasets.bpl__Vedataset_TVEDataset__bctr_qqrp18Classes_TComponent
mov edi, eax
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x268]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x28]
xor ecx, ecx
mov eax, 0x41e0bcc
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x20]
mov eax, dword [edi + 0x2b4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0
push 0
xor ecx, ecx
mov dl, 1
mov eax, edi
call sub.VEDatasets.bpl__Vedataset_TVEDataset_ParseSqlString_qqroiii
mov eax, edi
call sub.dbrtl60.bpl__Db_TDataSet_Append_qqrv
mov eax, dword [esi]
call fcn.041d36b4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x2c]
push eax
mov edx, 0x41e0c10
mov eax, edi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x88]
mov ecx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, 1
call sub.rtl60.bpl__System__LStrCopy_qqrv
mov eax, dword [ebp - 0x2c]
push eax
mov edx, 0x41e0c10
mov eax, edi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0xb0]
push 0
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
call sub.rtl60.bpl__Classes_TStream_SetPosition_qqrxj
mov edx, 0x41e0c24
mov eax, edi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xc]
call sub.dbrtl60.bpl__Db_TBlobField_LoadFromStream_qqrp15Classes_TStream
mov edx, 0x41e0c38
mov eax, edi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov edx, 0x41e0c4c
mov eax, edi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x248]
lea ecx, [ebp - 0x3c]
mov edx, 0x41e0c58
mov eax, edi
call sub.dbrtl60.bpl__Db_TDataSet_GetFieldValue_qqrx17System_AnsiString
lea eax, [ebp - 0x3c]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, edi
call sub.rtl60.bpl__System_TObject_Free_qqrv
mov eax, dword [esi]
call sub.vcl60.bpl__Forms_TCustomForm_Release_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e0b4b
lea eax, [ebp - 0x3c]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x2c]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x20]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x18]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x10]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp + 8]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret