Function at 0x41b04a4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
dec ecx
push 0
push 0
jne 0x41b04ad
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41b08e5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x41b0898
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.041a62d8
mov edx, dword [ebp - 4]
mov byte [edx + 0xd88], 1
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.041b0b34
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.041b0b3c
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
call fcn.041b0b44
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.041b0ab0
mov eax, dword [ebp - 4]
call fcn.041b0b4c
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd80]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0xd7c]
mov edx, 0x41b0900
mov eax, dword [0x419960c]
call fcn.0419a3e0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
mov eax, dword [eax + 0x2b4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
xor ecx, ecx
mov dl, 1
call sub.VEDatasets.bpl__Vedataset_TVEDataset_ParseSqlString_qqroiii
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
call sub.dbrtl60.bpl__Db_TDataSet_Append_qqrv
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd7c]
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x41b0948
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3b0]
mov eax, dword [eax + 0x2b4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3b0]
xor ecx, ecx
mov dl, 1
call sub.VEDatasets.bpl__Vedataset_TVEDataset_ParseSqlString_qqroiii
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x320]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3b0]
mov ecx, 0x41b0974
call fcn.041a6138
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3ac]
call sub.dbrtl60.bpl__Db_TDataSet_Close_qqrv
push 0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xd80]
mov dword [ebp - 0x10], edx
mov byte [ebp - 0xc], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xd7c]
mov edx, 0x41b0980
mov eax, dword [0x419960c]
call fcn.0419a3e0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3ac]
mov eax, dword [eax + 0x2b4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3ac]
xor ecx, ecx
mov dl, 1
call sub.VEDatasets.bpl__Vedataset_TVEDataset_ParseSqlString_qqroiii
push 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x320]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3ac]
mov ecx, 0x41b0974
call fcn.041a6138
push 0x41b09b4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x320]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3ac]
mov ecx, 0x41b0974
call fcn.041a6138
push 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 0xc], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0xd7c]
mov edx, 0x41b09c0
mov eax, dword [0x419960c]
call fcn.0419a3e0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3cc]
mov eax, dword [eax + 0x2b4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3cc]
xor ecx, ecx
mov dl, 1
call sub.VEDatasets.bpl__Vedataset_TVEDataset_ParseSqlString_qqroiii
push 0x41b0a00
mov edi, dword [ebp - 4]
mov edx, dword [edi + 0x320]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3cc]
mov ecx, 0x41b0974
call fcn.041a6138
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4cc]
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x348]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x620]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c0]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x624]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c8]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3cc]
mov edx, 0x41b0a0c
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x60]
push dword [ebp - 0x30]
push 0x41b0a18
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3cc]
mov edx, 0x41b0a24
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
lea edx, [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x60]
push dword [ebp - 0x34]
push 0x41b0a34
lea eax, [ebp - 0x2c]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x374]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
call sub.rtl60.bpl__Sysutils_Now_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x378]
mov edx, dword [eax]
call dword [edx + 0xa0]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xd80]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x330]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xd74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x388]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov edi, dword [ebp - 4]
mov edx, dword [edi + 0xd78]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x384]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x504]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x37c]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
xor eax, eax
pop edx
pop edi
pop ecx
mov dword fs:[eax], edx
push 0x41b089f
call fcn.041a62ec
ret