Function at 0x41ad6b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x21
push 0
push 0
dec ecx
jne 0x41ad6b9
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov byte [ebp - 1], cl
mov esi, edx
mov eax, dword [ebp + 0xc]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp + 8]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41adc7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14c]
test eax, eax
jle 0x41adbcc
lea edx, [ebp - 0x24]
mov eax, dword [0x4203984]
call sub.rtl60.bpl__Comobj_CreateComObject_qqrrx5_GUID
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov ecx, 0x41adc94
call sub.rtl60.bpl__System__IntfCast_qqrr45System__DelphiInterface_t17System_IInterface_x45System__DelphiInterface_t17System_IInter
mov eax, dword [sym.imp.vcl60.bpl__Forms_Application]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x200]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
call sub.VEDatasets.bpl__Vedataset_Connection_qqrv
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x1fc]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 1
push 0x61
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x1a0]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x38]
mov edx, dword [ebp + 0xc]
call sub.rtl60.bpl__System__VarFromLStr_qqrr14System_Variantx17System_AnsiString
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0x41adca8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x20c]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_First_qqrv
jmp 0x41ad984
mov edx, 0x41adcc4
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x54]
fcomp dword [0x41adcd8]
fnstsw ax
sahf
jbe 0x41ad97d
lea eax, [ebp - 0x28]
push eax
push 0
push 0
lea eax, [ebp - 0x48]
push eax
mov edx, 0x41adce4
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, eax
mov eax, dword [0x41acdb8]
call fcn.041ade98
add eax, 0xffffffe3
sub eax, 3
setb al
push eax
lea eax, [ebp - 0x58]
xor edx, edx
mov cl, 1
call sub.rtl60.bpl__System__VarFromInt_qqrr14System_Variantxixi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x68]
mov edx, 1
mov cl, 1
call sub.rtl60.bpl__System__VarFromInt_qqrr14System_Variantxixi
lea edx, [ebp - 0x68]
pop ecx
pop eax
call sub.JVCL200_R60.bpl__Jvutils_iif_qqrxorx14System_Variantt2
lea eax, [ebp - 0x48]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
push eax
push 0
push 0
push 0
mov edx, 0x41adcc4
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff8
fstp qword [esp]
wait
push 0
push 0xffffffffffffffff
push 0
mov edx, 0x41adce4
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x1a8]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
xor edx, edx
mov cl, 1
call sub.rtl60.bpl__System__VarFromInt_qqrr14System_Variantxixi
push 0
push 0
push 0
push 0
mov edx, 0x41adcf4
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
lea edx, [ebp - 0x70]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
call sub.rtl60.bpl__System__WStrFromLStr_qqrr17System_WideStringx17System_AnsiString
mov eax, dword [ebp - 0x6c]
push eax
lea eax, [ebp - 0x80]
push eax
call sub.VEDatasets.bpl__Vedataset_Connection_qqrv
mov edx, eax
mov ecx, 0x41add08
mov eax, dword [0x4199340]
call fcn.0419a068
lea eax, [ebp - 0x80]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
push eax
push 0
lea eax, [ebp - 0x20]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
push eax
mov edx, 0x41add44
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov edx, 0x41add44
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff8
fstp qword [esp]
wait
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x1b0]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
mov edx, 0x41add58
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, eax
lea eax, [ebp - 0x90]
mov cl, 0xfc
call sub.rtl60.bpl__System__VarFromInt_qqrr14System_Variantxixi
push dword [ebp - 0x84]
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
push dword [ebp - 0x90]
push 0x41add60
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x210]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_Next_qqrv
cmp byte [esi + 0xa1], 0
je 0x41ad7a9
cmp byte [ebp - 1], 0
je 0x41adbb9
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x1cc]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
mov eax, dword [ebp - 8]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 0xa4], 0
lea eax, [ebp - 0xa8]
push eax
push 0
lea eax, [ebp - 0xa0]
push eax
call sub.VEDatasets.bpl__Vedataset_Connection_qqrv
mov edx, eax
mov ecx, 0x41add7c
mov eax, dword [0x4199340]
call fcn.04199fd0
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xb8]
xor edx, edx
mov cl, 1
call sub.rtl60.bpl__System__VarFromInt_qqrr14System_Variantxixi
lea edx, [ebp - 0xb8]
pop eax
call sub.rtl60.bpl__System__VarCmpGT_qqrrx14System_Variantt1
jle 0x41adba6
mov eax, dword [ebp + 0x10]
call sub.dbrtl60.bpl__Db_TDataSet_Insert_qqrv
lea eax, [ebp - 0xcc]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
push eax
push 0x41addcc
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c4]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
lea edx, [ebp - 0xcc]
lea eax, [ebp - 0xbc]
call sub.rtl60.bpl__System__VarToLStr_qqrr17System_AnsiStringrx14System_Variant
mov eax, dword [ebp - 0xbc]
push eax
mov edx, 0x41adde4
mov eax, dword [ebp + 0x10]
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0xb0]
lea eax, [ebp - 0xe0]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
push eax
push 0x41addf0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c4]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
lea edx, [ebp - 0xe0]
lea eax, [ebp - 0xd0]
call sub.rtl60.bpl__System__VarToLStr_qqrr17System_AnsiStringrx14System_Variant
mov eax, dword [ebp - 0xd0]
push eax
mov edx, 0x41ade04
mov eax, dword [ebp + 0x10]
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0xb0]
lea eax, [ebp - 0xf0]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
push eax
push 0x41ade14
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c0]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
lea eax, [ebp - 0xf0]
call sub.rtl60.bpl__System__VarToReal_qqrrx14System_Variant
add esp, 0xfffffff8
fstp qword [esp]
wait
mov edx, 0x41ade30
mov eax, dword [ebp + 0x10]
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0xa4]
lea eax, [ebp - 0x100]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
push eax
push 0x41ade3c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c4]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
lea eax, [ebp - 0x100]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
push eax
mov edx, 0x41ade4c
mov eax, dword [ebp + 0x10]
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0xa8]
lea eax, [ebp - 0x110]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
push eax
push 0x41ade5c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c4]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
lea eax, [ebp - 0x110]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
push eax
mov edx, 0x41ade78
mov eax, dword [ebp + 0x10]
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov edx, 0x41ade8c
mov eax, dword [ebp + 0x10]
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x248]
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x1f0]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
jmp 0x41adbd1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x1f8]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
jmp 0x41adbd1
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41adc89
lea eax, [ebp - 0x110]
mov edx, dword [sym.imp.rtl60.bpl___xp_14System_Variant]
mov ecx, 4
call sub.rtl60.bpl__System__FinalizeArray_qqrpvt1ui
lea eax, [ebp - 0xd0]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xcc]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0xbc]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xb8]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0xa0]
mov edx, dword [sym.imp.rtl60.bpl___xp_14System_Variant]
mov ecx, 3
call sub.rtl60.bpl__System__FinalizeArray_qqrpvt1ui
lea eax, [ebp - 0x70]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x6c]
call sub.rtl60.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x68]
mov edx, dword [sym.imp.rtl60.bpl___xp_14System_Variant]
mov ecx, 4
call sub.rtl60.bpl__System__FinalizeArray_qqrpvt1ui
lea eax, [ebp - 0x24]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x20]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0xc]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp + 8]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret