Function at 0x4ccc68
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x4ccc70
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4cd4e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x614], 0
je 0x4cd041
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x390]
mov edx, dword [edx + 0x2d4]
call sub.RtlVcl160.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System__UStrLen_qqrx20System_UnicodeString
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov eax, dword [ebp - 0x24]
mov edx, 0x4cd4fc
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
je 0x4ccce6
lea eax, [ebp - 0x10]
mov edx, 0x4cd50c
call sub.RtlVcl160.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x390]
mov edx, dword [edx + 0x2cc]
call sub.RtlVcl160.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x28]
mov eax, 0x4cd50c
call fcn.004102f8
mov ecx, eax
lea eax, [ebp - 0x10]
mov edx, 1
call sub.RtlVcl160.bpl__System__UStrDelete_qqrr20System_UnicodeStringii
jmp 0x4ccdf4
push dword [ebp - 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x30]
mov eax, 0x4cd50c
call fcn.004102f8
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
push dword [ebp - 0x2c]
push 0x4cd4fc
lea eax, [ebp - 8]
mov edx, 3
call sub.RtlVcl160.bpl__System__UStrCatN_qqrv
push dword [ebp - 0xc]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x3c]
mov eax, 0x4cd50c
call fcn.004102f8
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x614]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x80]
push dword [ebp - 0x34]
push 0x4cd4fc
lea eax, [ebp - 0xc]
mov edx, 3
call sub.RtlVcl160.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x40]
mov eax, 0x4cd50c
call fcn.004102f8
mov ecx, eax
lea eax, [ebp - 0x10]
mov edx, 1
call sub.RtlVcl160.bpl__System__UStrDelete_qqrr20System_UnicodeStringii
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x44]
mov eax, 0x4cd50c
call fcn.004102f8
test eax, eax
jg 0x4ccd29
xor eax, eax
call fcn.004151cc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
xor eax, eax
push ebp
push 0x4cd03a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4cd514
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x328]
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Insert_qqrv
mov edx, 0x4cd560
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d52f8]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cd57c
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d55e8]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cd598
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d534c]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
call sub.RtlVcl160.bpl__System_Sysutils_Date_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x48]
mov eax, 0x4cd5b8
call sub.RtlVcl160.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x48]
push eax
mov edx, 0x4cd5d8
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cd5fc
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cd61c
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cd63c
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov edx, 0x4cd654
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d52f8]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cd66c
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d55e8]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cd684
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cd69c
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cd6b4
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
call sub.RtlVcl160.bpl__System_Sysutils_Date_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x4c]
mov eax, 0x4cd5b8
call sub.RtlVcl160.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x4c]
push eax
mov edx, 0x4cd6cc
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0xf0]
call sub.RtlVcl160.bpl__System_Sysutils_Time_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x50]
mov eax, 0x4cd6e4
call sub.RtlVcl160.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x50]
push eax
mov edx, 0x4cd704
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2b0]
or edx, 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x334]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cd041
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
ret
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x610]
mov edx, dword [edx + 0x310]
call sub.RtlVcl160.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System__UStrLen_qqrx20System_UnicodeString
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov eax, dword [ebp - 0x54]
mov edx, 0x4cd4fc
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
je 0x4cd08f
lea eax, [ebp - 0x10]
mov edx, 0x4cd4fc
call sub.RtlVcl160.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x58]
mov eax, 0x4cd4fc
call fcn.004102f8
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x5c]
mov eax, 0x4cd4fc
call fcn.004102f8
mov ecx, eax
lea eax, [ebp - 0x10]
mov edx, 1
call sub.RtlVcl160.bpl__System__UStrDelete_qqrr20System_UnicodeStringii
jmp 0x4cd1de
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
mov edx, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x60]
mov eax, 0x4cd4fc
call fcn.004102f8
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
push dword [ebp - 8]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 0x14]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x68]
mov eax, 0x4cd71c
call fcn.004102f8
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call sub.RtlVcl160.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
push dword [ebp - 0x64]
push 0x4cd4fc
lea eax, [ebp - 8]
mov edx, 3
call sub.RtlVcl160.bpl__System__UStrCatN_qqrv
push dword [ebp - 0xc]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
mov edx, dword [ebp - 0x14]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x74]
mov eax, 0x4cd71c
call fcn.004102f8
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call sub.RtlVcl160.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x610]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x6c]
mov ecx, dword [eax]
call dword [ecx + 0x80]
push dword [ebp - 0x6c]
push 0x4cd4fc
lea eax, [ebp - 0xc]
mov edx, 3
call sub.RtlVcl160.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x78]
mov edx, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x78]
mov eax, 0x4cd4fc
call fcn.004102f8
mov ecx, eax
lea eax, [ebp - 0x10]
mov edx, 1
call sub.RtlVcl160.bpl__System__UStrDelete_qqrr20System_UnicodeStringii
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x7c]
mov eax, 0x4cd4fc
call fcn.004102f8
test eax, eax
jg 0x4cd0e7
xor eax, eax
call fcn.004151cc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
xor eax, eax
push ebp
push 0x4cd430
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4cd514
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x328]
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Insert_qqrv
mov edx, 0x4cd560
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d52f8]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cd57c
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d55e8]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cd598
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d534c]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
call sub.RtlVcl160.bpl__System_Sysutils_Date_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x80]
mov eax, 0x4cd5b8
call sub.RtlVcl160.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x80]
push eax
mov edx, 0x4cd5d8
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cd5fc
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cd61c
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cd63c
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov edx, 0x4cd654
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d52f8]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cd66c
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d55e8]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cd684
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cd69c
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cd6b4
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
call sub.RtlVcl160.bpl__System_Sysutils_Date_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x84]
mov eax, 0x4cd5b8
call sub.RtlVcl160.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x84]
push eax
mov edx, 0x4cd6cc
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0xf0]
call sub.RtlVcl160.bpl__System_Sysutils_Time_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x88]
mov eax, 0x4cd6e4
call sub.RtlVcl160.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x88]
push eax
mov edx, 0x4cd704
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x2b0]
or edx, 0xffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x334]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cd437
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
ret