Function at 0x4cb13c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x4cb144
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4cb9b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x614], 0
je 0x4cb515
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, 0x4cb9d0
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
je 0x4cb1ba
lea eax, [ebp - 0x10]
mov edx, 0x4cb9e0
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, 0x4cb9e0
call fcn.004104b8
mov ecx, eax
lea eax, [ebp - 0x10]
mov edx, 1
call sub.RtlVcl160.bpl__System__UStrDelete_qqrr20System_UnicodeStringii
jmp 0x4cb2c8
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, 0x4cb9e0
call fcn.004104b8
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 0x4cb9d0
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, 0x4cb9e0
call fcn.004104b8
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 0x4cb9d0
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, 0x4cb9e0
call fcn.004104b8
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, 0x4cb9e0
call fcn.004104b8
test eax, eax
jg 0x4cb1fd
xor eax, eax
call fcn.00415204
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 0x4cb50e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4cb9e8
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, 0x4cba34
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d42f8]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cba50
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d45ec]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cba6c
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d4350]
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, 0x4cba8c
call sub.RtlVcl160.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x48]
push eax
mov edx, 0x4cbaac
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, 0x4cbad0
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, 0x4cbaf0
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, 0x4cbb10
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, 0x4cbb28
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d42f8]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cbb40
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d45ec]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cbb58
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, 0x4cbb70
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, 0x4cbb88
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, 0x4cba8c
call sub.RtlVcl160.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x4c]
push eax
mov edx, 0x4cbba0
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, 0x4cbbb8
call sub.RtlVcl160.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x50]
push eax
mov edx, 0x4cbbd8
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 0x4cb515
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, 0x4cb9d0
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
je 0x4cb563
lea eax, [ebp - 0x10]
mov edx, 0x4cb9d0
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, 0x4cb9d0
call fcn.004104b8
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, 0x4cb9d0
call fcn.004104b8
mov ecx, eax
lea eax, [ebp - 0x10]
mov edx, 1
call sub.RtlVcl160.bpl__System__UStrDelete_qqrr20System_UnicodeStringii
jmp 0x4cb6b2
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, 0x4cb9d0
call fcn.004104b8
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, 0x4cbbf0
call fcn.004104b8
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 0x4cb9d0
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, 0x4cbbf0
call fcn.004104b8
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 0x4cb9d0
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, 0x4cb9d0
call fcn.004104b8
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, 0x4cb9d0
call fcn.004104b8
test eax, eax
jg 0x4cb5bb
xor eax, eax
call fcn.00415204
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 0x4cb904
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4cb9e8
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, 0x4cba34
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d42f8]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cba50
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d45ec]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cba6c
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d4350]
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, 0x4cba8c
call sub.RtlVcl160.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x80]
push eax
mov edx, 0x4cbaac
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, 0x4cbad0
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, 0x4cbaf0
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, 0x4cbb10
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, 0x4cbb28
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d42f8]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cbb40
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [0x4d45ec]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov edx, 0x4cbb58
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, 0x4cbb70
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, 0x4cbb88
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, 0x4cba8c
call sub.RtlVcl160.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x84]
push eax
mov edx, 0x4cbba0
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, 0x4cbbb8
call sub.RtlVcl160.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x88]
push eax
mov edx, 0x4cbbd8
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 0x4cb90b
mov eax, dword [ebp - 0x20]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
ret