Function at 0x4cba28
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x4cba30
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4cc2a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x614], 0
je 0x4cbe01
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, 0x4cc2bc
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
je 0x4cbaa6
lea eax, [ebp - 0x10]
mov edx, 0x4cc2cc
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, 0x4cc2cc
call fcn.004104d8
mov ecx, eax
lea eax, [ebp - 0x10]
mov edx, 1
call sub.RtlVcl160.bpl__System__UStrDelete_qqrr20System_UnicodeStringii
jmp 0x4cbbb4
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, 0x4cc2cc
call fcn.004104d8
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 0x4cc2bc
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, 0x4cc2cc
call fcn.004104d8
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 0x4cc2bc
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, 0x4cc2cc
call fcn.004104d8
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, 0x4cc2cc
call fcn.004104d8
test eax, eax
jg 0x4cbae9
xor eax, eax
call fcn.00414f94
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 0x4cbdfa
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4cc2d4
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, 0x4cc320
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4f5a40]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cc33c
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4f5e10]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cc358
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4f5ac0]
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, 0x4cc378
call sub.RtlVcl160.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x48]
push eax
mov edx, 0x4cc398
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, 0x4cc3bc
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, 0x4cc3dc
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, 0x4cc3fc
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, 0x4cc414
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4f5a40]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cc42c
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4f5e10]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cc444
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, 0x4cc45c
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, 0x4cc474
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, 0x4cc378
call sub.RtlVcl160.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x4c]
push eax
mov edx, 0x4cc48c
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, 0x4cc4a4
call sub.RtlVcl160.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x50]
push eax
mov edx, 0x4cc4c4
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 0x4cbe01
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, 0x4cc2bc
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
je 0x4cbe4f
lea eax, [ebp - 0x10]
mov edx, 0x4cc2bc
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, 0x4cc2bc
call fcn.004104d8
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, 0x4cc2bc
call fcn.004104d8
mov ecx, eax
lea eax, [ebp - 0x10]
mov edx, 1
call sub.RtlVcl160.bpl__System__UStrDelete_qqrr20System_UnicodeStringii
jmp 0x4cbf9e
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, 0x4cc2bc
call fcn.004104d8
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, 0x4cc4dc
call fcn.004104d8
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 0x4cc2bc
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, 0x4cc4dc
call fcn.004104d8
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 0x4cc2bc
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, 0x4cc2bc
call fcn.004104d8
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, 0x4cc2bc
call fcn.004104d8
test eax, eax
jg 0x4cbea7
xor eax, eax
call fcn.00414f94
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 0x4cc1f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4cc2d4
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, 0x4cc320
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4f5a40]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cc33c
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4f5e10]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cc358
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4f5ac0]
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, 0x4cc378
call sub.RtlVcl160.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x80]
push eax
mov edx, 0x4cc398
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, 0x4cc3bc
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, 0x4cc3dc
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, 0x4cc3fc
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, 0x4cc414
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4f5a40]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cc42c
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4f5e10]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cc444
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, 0x4cc45c
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, 0x4cc474
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, 0x4cc378
call sub.RtlVcl160.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x84]
push eax
mov edx, 0x4cc48c
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, 0x4cc4a4
call sub.RtlVcl160.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x88]
push eax
mov edx, 0x4cc4c4
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 0x4cc1f7
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
ret