Function at 0x41c1c60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x41c1c69
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x20]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp + 0x1c]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp + 0x18]
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 0x41c2130
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
cmp esi, 1
jle 0x41c1cc1
test bl, bl
jne 0x41c1cc1
mov edi, 0x15
jmp 0x41c1cf1
cmp esi, 1
jne 0x41c1cd1
test bl, bl
jne 0x41c1cd1
mov edi, 0x65
jmp 0x41c1cf1
cmp esi, 1
jle 0x41c1ce2
cmp bl, 1
jne 0x41c1ce2
mov edi, 0x16
jmp 0x41c1cf1
cmp esi, 1
jne 0x41c1cf1
cmp bl, 1
jne 0x41c1cf1
mov edi, 0x66
lea eax, [ebp - 0x24]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
or ecx, 0xffffffff
mov dl, 0x27
mov eax, dword [ebp + 0x1c]
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x41c214c
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov edx, dword [ebp - 0x2c]
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov eax, dword [0x41997b8]
call fcn.0419aa5c
mov ecx, dword [ebp - 0x28]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x41997b8]
call fcn.0419a2ec
lea eax, [ebp - 0x24]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x41c2184
lea edx, [ebp - 0x4c]
mov eax, dword [ebp + 0x24]
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x4c]
push 0x41c21c0
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x50]
lea eax, [ebp - 0x48]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x48]
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov eax, dword [0x41997b8]
call fcn.0419aa5c
mov ecx, dword [ebp - 0x44]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x41997b8]
call fcn.0419a2ec
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x10]
call sub.rtl60.bpl__System__VarToLStr_qqrr17System_AnsiStringrx14System_Variant
test esi, esi
jne 0x41c1e38
lea eax, [ebp - 0x60]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x6c]
push eax
or ecx, 0xffffffff
mov dl, 0x27
mov eax, dword [ebp + 0x20]
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, 0x41c21d8
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov edx, dword [ebp - 0x68]
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov eax, dword [0x41997b8]
call fcn.0419aa5c
mov ecx, dword [ebp - 0x64]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x41997b8]
call fcn.0419a2ec
lea eax, [ebp - 0x60]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov esi, eax
test bl, bl
jne 0x41c1e66
push 0x41c2210
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, edi
mov eax, esi
call fcn.041a5d78
lea eax, [ebp - 0x14]
mov edx, 0x41c2210
call sub.rtl60.bpl__System__LStrLAsg_qqrpvpxv
jmp 0x41c1e8e
push 0x41c2220
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, edi
mov eax, esi
call fcn.041a5d78
mov edx, 0x41c2220
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__System__LStrLAsg_qqrpvpxv
lea edx, [ebp - 0x74]
mov eax, dword [0x41cfeac]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x70]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x70]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x60], edx
lea edx, [ebp - 0x7c]
mov eax, dword [0x41cfeac]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x78]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x78]
mov edx, dword [eax]
call dword [edx + 0x1c]
xor edx, edx
mov dword [eax + 0xc0], edx
mov dword [eax + 0xc4], 0x3ff00000
lea edx, [ebp - 0x84]
mov eax, dword [0x41cfeac]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x80]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x80]
mov edx, dword [eax]
call dword [edx + 0x1c]
add eax, 0x70
mov edx, dword [ebp + 0x1c]
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
lea edx, [ebp - 0x8c]
mov eax, dword [0x41cfeac]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x88]
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 - 0x94]
mov eax, dword [0x41cfeac]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x94]
lea edx, [ebp - 0x90]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x90]
mov edx, dword [eax]
call dword [edx + 0x1c]
add eax, 0x78
mov edx, 0x41c2230
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
lea edx, [ebp - 0x9c]
mov eax, dword [0x41cfeac]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x98]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x98]
mov edx, dword [eax]
call dword [edx + 0x1c]
add eax, 0x7c
mov edx, dword [ebp + 8]
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
lea edx, [ebp - 0xa4]
mov eax, dword [0x41cfeac]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0xa0]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov byte [eax + 0xa0], bl
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x24]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov ecx, esi
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.041c47c8
mov eax, dword [sym.imp.vcl60.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl60.bpl__Forms_TApplication_ProcessMessages_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c213a
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]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x8c]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x88]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x84]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x80]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x7c]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x78]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x74]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x70]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x6c]
mov edx, 3
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x60]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x50]
mov edx, 4
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x40]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x30]
mov edx, 3
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x24]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x14]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp + 8]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp + 0x18]
mov edx, 3
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret