Function at 0x41c2238
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x16
push 0
push 0
dec ecx
jne 0x41c2241
xchg dword [ebp - 4], ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41c2910
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [sym.imp.vcl60.bpl__Forms_Application]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [sym.imp.adortl60.bpl__Adodb_TADOQuery_]
call sub.adortl60.bpl__Adodb_TADOQuery__bctr_qqrp18Classes_TComponent
mov ebx, eax
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x268]
mov eax, dword [ebp - 8]
sub eax, 0x80
je 0x41c22aa
dec eax
je 0x41c22e4
sub eax, 6
je 0x41c231e
jmp 0x41c2356
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x41c292c
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov eax, dword [ebp - 0x14]
push eax
mov eax, ebx
call sub.adortl60.bpl__Adodb_TADOQuery_GetSQL_qqrv
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x41c2356
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x41c2a08
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov eax, dword [ebp - 0x28]
push eax
mov eax, ebx
call sub.adortl60.bpl__Adodb_TADOQuery_GetSQL_qqrv
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x41c2356
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x41c2ae4
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov eax, dword [ebp - 0x2c]
push eax
mov eax, ebx
call sub.adortl60.bpl__Adodb_TADOQuery_GetSQL_qqrv
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x48]
push eax
or ecx, 0xffffffff
mov dl, 0x27
mov eax, dword [ebp + 0xc]
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, 0x41c2bc0
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov edx, dword [ebp - 0x44]
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov eax, dword [0x41997b8]
call fcn.0419aa5c
mov ecx, dword [ebp - 0x40]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x41997b8]
call fcn.0419a2ec
lea eax, [ebp - 0x3c]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov dword [ebp - 0xc], eax
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_Open_qqrv
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_First_qqrv
jmp 0x41c27cf
mov eax, dword [ebp - 8]
sub eax, 0x80
je 0x41c23ee
dec eax
je 0x41c2496
sub eax, 6
je 0x41c253b
jmp 0x41c259f
push 0
push 0
push 0
mov edx, 0x41c2bf8
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x50]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov ecx, dword [ebp - 0xc]
mov edx, 0x80
xor eax, eax
call fcn.041a5d78
lea edx, [ebp - 0x50]
mov eax, dword [0x41cfeac]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
call dword [edx + 0x1c]
add eax, 0x60
push eax
mov edx, 0x41c2c10
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
pop edx
mov dword [edx], eax
lea edx, [ebp - 0x58]
mov eax, dword [0x41cfeac]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
call dword [edx + 0x1c]
add eax, 0x160
push eax
mov edx, 0x41c2c24
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
pop edx
mov dword [edx], eax
jmp 0x41c259f
push 0
push 0
push 0
mov edx, 0x41c2bf8
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x50]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov ecx, dword [ebp - 0xc]
mov edx, 0x81
xor eax, eax
call fcn.041a5d78
lea edx, [ebp - 0x60]
mov eax, dword [0x41cfeac]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
call dword [edx + 0x1c]
add eax, 0x60
push eax
mov edx, 0x41c2c24
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
pop edx
mov dword [edx], eax
lea edx, [ebp - 0x68]
mov eax, dword [0x41cfeac]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x64]
mov edx, dword [eax]
call dword [edx + 0x1c]
add eax, 0x160
push eax
mov edx, 0x41c2c10
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
pop edx
mov dword [edx], eax
jmp 0x41c259f
push 0
push 0
push 0
mov edx, 0x41c2bf8
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x50]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov edx, 0x41c2c38
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
mov ecx, dword [ebp - 0xc]
mov edx, 0x87
call fcn.041a5d78
lea edx, [ebp - 0x70]
mov eax, dword [0x41cfeac]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x6c]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x60], edx
lea eax, [ebp - 0x80]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x84]
push eax
push 0x41c2c48
mov edx, 0x41c2c84
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
lea edx, [ebp - 0x8c]
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x8c]
push 0x41c2c98
lea edx, [ebp - 0x90]
mov eax, esi
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x90]
lea eax, [ebp - 0x88]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x88]
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov eax, dword [0x41997b8]
call fcn.0419aa5c
mov ecx, dword [ebp - 0x84]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x41997b8]
call fcn.0419a2ec
lea edx, [ebp - 0x80]
lea eax, [ebp - 0x10]
call sub.rtl60.bpl__System__VarToLStr_qqrr17System_AnsiStringrx14System_Variant
lea edx, [ebp - 0x98]
mov eax, dword [0x41cfeac]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x94]
mov edx, dword [eax]
call dword [edx + 0x1c]
xor edx, edx
mov dword [eax + 0xc0], edx
mov dword [eax + 0xc4], 0x3ff00000
lea edx, [ebp - 0xa0]
mov eax, dword [0x41cfeac]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x9c]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x9c]
mov edx, dword [eax]
call dword [edx + 0x1c]
add eax, 0x70
mov edx, dword [ebp + 0xc]
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
lea edx, [ebp - 0xa8]
mov eax, dword [0x41cfeac]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xa4]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0xa4]
mov edx, dword [eax]
call dword [edx + 0x1c]
add eax, 0x74
mov edx, dword [ebp - 0x10]
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
lea edx, [ebp - 0xb0]
mov eax, dword [0x41cfeac]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xac]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0xac]
mov edx, dword [eax]
call dword [edx + 0x1c]
add eax, 0x78
mov edx, 0x41c2cb0
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov edx, 0x41c2c38
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
push eax
mov edx, 0x41c2c24
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
push eax
mov edx, 0x41c2c10
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
push eax
mov edx, 0x41c2cc0
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
push eax
mov edx, 0x41c2bf8
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x50]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp + 0xc]
push eax
mov edx, 0x41c2cd4
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
lea edx, [ebp - 0xb4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0xb4]
push eax
mov edx, 0x41c2c84
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
mov ecx, eax
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.041c2d10
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_Next_qqrv
cmp byte [ebx + 0xa1], 0
je 0x41c23cf
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14c]
test eax, eax
jle 0x41c2800
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x678]
mov edx, 0x41c2ce4
mov eax, dword [ebp - 4]
call fcn.041baec8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c291a
lea eax, [ebp - 0xb4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xb0]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0xac]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0xa8]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0xa4]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0xa0]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x9c]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x98]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x94]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x90]
mov edx, 4
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x80]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x70]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x6c]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x68]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x64]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x60]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x5c]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x58]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x54]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x50]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x4c]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x48]
mov edx, 3
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x3c]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x2c]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x14]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp + 0xc]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret