Function at 0x642590
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x642598
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
mov edx, dword [0x641dac]
call sub.rtl260.bpl__System__InitializeRecord_qqrpvt1
xor eax, eax
push ebp
push 0x642a7c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov eax, dword [eax + 0x2f0]
dec eax
test eax, eax
jle 0x64265d
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 1
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov ecx, dword [ebp - 0x18]
xor edx, edx
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov ecx, dword [ebp - 0x18]
mov edx, 1
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov ecx, dword [ebp - 0x18]
mov edx, 2
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov ecx, dword [ebp - 0x18]
mov edx, 3
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov ecx, dword [ebp - 0x18]
mov edx, 4
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
inc dword [ebp - 0x18]
dec dword [ebp - 0x28]
jne 0x6425e0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov eax, dword [eax + 0x2f0]
dec eax
test eax, eax
jle 0x6426c8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 1
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov ecx, dword [ebp - 0x18]
xor edx, edx
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov ecx, dword [ebp - 0x18]
mov edx, 1
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov ecx, dword [ebp - 0x18]
mov edx, 2
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
inc dword [ebp - 0x18]
dec dword [ebp - 0x28]
jne 0x64267b
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x2c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x2c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x642a94
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x2c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x642b80
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e4]
call sub.vcl260.bpl__Vcl_Comctrls_TCommonCalendar_GetDate_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x40]
mov eax, 0x642bb8
call sub.rtl260.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
lea eax, [ebp - 0x40]
mov edx, 0x642bd0
call sub.rtl260.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x40]
push eax
mov edx, 0x642be0
mov eax, dword [ebp - 0x2c]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x2c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x6428b8
inc dword [ebp - 0x18]
mov edx, 0x642bf8
mov eax, dword [ebp - 0x2c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x642c0c
mov eax, dword [ebp - 0x2c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x642c24
mov eax, dword [ebp - 0x2c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x642be0
mov eax, dword [ebp - 0x2c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov ecx, dword [ebp - 0x18]
xor edx, edx
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov ecx, dword [ebp - 0x18]
mov edx, 1
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x642c3c
mov eax, dword [ebp - 0x2c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x3c]
call fcn.00642264
mov eax, dword [ebp - 0x38]
mov edx, 0x642c54
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x642849
push 0x642c64
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov ecx, dword [ebp - 0x18]
mov edx, 2
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
jmp 0x642864
push 0x642c78
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov ecx, dword [ebp - 0x18]
mov edx, 2
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push dword [ebp - 0x34]
push 0x642c8c
push dword [ebp - 0x30]
lea eax, [ebp - 0x48]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov ecx, dword [ebp - 0x18]
mov edx, 3
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov ecx, dword [ebp - 0x18]
mov edx, 4
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov eax, dword [ebp - 0x2c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0xad], 0
je 0x642766
mov eax, dword [ebp - 0x2c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x2c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x2c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x642c9c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e4]
call sub.vcl260.bpl__Vcl_Comctrls_TCommonCalendar_GetDate_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x4c]
mov eax, 0x642bb8
call sub.rtl260.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
lea eax, [ebp - 0x4c]
mov edx, 0x642bd0
call sub.rtl260.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x4c]
push eax
mov edx, 0x642be0
mov eax, dword [ebp - 0x2c]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x2c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
jmp 0x642a21
mov edx, 0x642dac
mov eax, dword [ebp - 0x2c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x642dc4
mov eax, dword [ebp - 0x2c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x642ddc
mov eax, dword [ebp - 0x2c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x88]
lea eax, [ebp - 0x54]
push eax
mov ecx, 6
mov edx, 1
mov eax, dword [ebp - 0x1c]
call sub.rtl260.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
push dword [ebp - 0x54]
push 0x642df0
lea eax, [ebp - 0x58]
push eax
mov ecx, 1
mov edx, 7
mov eax, dword [ebp - 0x1c]
call sub.rtl260.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
push dword [ebp - 0x58]
lea eax, [ebp - 0x50]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov ecx, dword [ebp - 0x18]
xor edx, edx
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov ecx, dword [ebp - 0x18]
mov edx, 1
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov ecx, dword [ebp - 0x18]
mov edx, 2
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov eax, dword [ebp - 0x2c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0xad], 0
je 0x642942
mov eax, dword [ebp - 0x2c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x642a83
lea eax, [ebp - 0x58]
mov edx, 7
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x3c]
mov edx, dword [0x641dac]
call sub.rtl260.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 0x24]
mov edx, 3
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x14]
mov edx, 4
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
ret