Function at 0x41b6c18
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1a
push 0
push 0
dec ecx
jne 0x41b6c20
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x41b70e2
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [0x41fa160]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x2c]
mov eax, dword [0x41fa160]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov al, byte [eax + 0xf0]
mov byte [ebp - 0x15], al
lea edx, [ebp - 0x34]
mov eax, dword [0x41fa160]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [eax + 0xf4]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x3c]
mov eax, dword [0x41fa160]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 4]
mov edx, dword [ebx + 0x34]
dec edx
mov esi, dword [eax]
call dword [esi + 0x24]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov esi, dword [eax + 0x20]
mov edx, dword [ebx + 0x38]
mov eax, esi
call fcn.041b7398
mov edi, eax
mov edx, dword [ebx + 0x38]
mov eax, esi
call fcn.041b75f4
mov dword [ebp - 0x14], eax
test edi, edi
jle 0x41b6d18
cmp dword [ebp - 0x14], 0
jle 0x41b6dd5
cmp byte [ebp - 0x15], 0
je 0x41b6dd5
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp dword [eax + 0x24], 0x22
jne 0x41b6dd5
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x40]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
push 0x41b70fc
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0xc]
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x48]
push 0x41b7184
lea edx, [ebp - 0x4c]
mov eax, esi
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x4c]
push 0x41b7190
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x10]
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x50]
push 0x41b7184
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x54]
push 0x41b7184
push 0x41b71a0
lea eax, [ebp - 0x44]
mov edx, 0xa
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x44]
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov eax, dword [0x4199d68]
call fcn.0419a7f8
mov ecx, dword [ebp - 0x40]
mov edx, dword [0x41fa150]
mov eax, dword [0x4199d68]
call fcn.0419a4fc
jmp 0x41b6eb9
test edi, edi
jle 0x41b6de3
cmp dword [ebp - 0x14], 0
jle 0x41b6eb9
cmp byte [ebp - 0x15], 0
je 0x41b6eb9
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp dword [eax + 0x24], 0x64
jne 0x41b6eb9
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x40]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x58]
push eax
push 0x41b71ac
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0xc]
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x60]
push 0x41b7240
push dword [ebx + 0x38]
push 0x41b724c
lea edx, [ebp - 0x64]
mov eax, esi
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x64]
push 0x41b7190
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x10]
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x68]
push 0x41b7184
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x10]
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x6c]
push 0x41b7184
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x70]
push 0x41b7240
push dword [ebx + 0x38]
push 0x41b7258
lea eax, [ebp - 0x5c]
mov edx, 0xf
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x5c]
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov eax, dword [0x4199d68]
call fcn.0419a7f8
mov ecx, dword [ebp - 0x58]
mov edx, dword [0x41fa150]
mov eax, dword [0x4199d68]
call fcn.0419a4fc
test edi, edi
jle 0x41b703b
cmp byte [ebp - 0x15], 0
jne 0x41b703b
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [0x41fa160]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x74]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, dword [eax + 0x60]
mov ecx, dword [ebx + 0x38]
mov eax, esi
call fcn.041b786c
lea eax, [ebp - 0x88]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
mov dword [ebp - 0x9c], esi
mov byte [ebp - 0x98], 0
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0xb
lea eax, [ebp - 0x9c]
push eax
push 1
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41b7264
mov eax, dword [0x4199d68]
call fcn.0419a7f8
mov ecx, dword [ebp - 0x8c]
mov edx, dword [0x41fa150]
mov eax, dword [0x4199d68]
call fcn.0419a670
lea eax, [ebp - 0x88]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov edx, 0x41b72e4
call sub.rtl60.bpl__System__LStrCmp_qqrv
jne 0x41b703b
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xc4], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 0xbc], 0
mov dword [ebp - 0xb8], edi
mov byte [ebp - 0xb4], 0
lea eax, [ebp - 0xd4]
push eax
or ecx, 0xffffffff
mov dl, 0x27
mov eax, dword [ebx + 0x38]
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 0xac], 0xb
mov dword [ebp - 0xa8], esi
mov byte [ebp - 0xa4], 0
lea eax, [ebp - 0xd0]
push eax
push 5
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41b72f0
mov eax, dword [0x4199d68]
call fcn.0419a7f8
mov ecx, dword [ebp - 0xa0]
mov edx, dword [0x41fa150]
mov eax, dword [0x4199d68]
call fcn.0419a4fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b70ec
lea eax, [ebp - 0xd4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xa0]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x8c]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x88]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
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]
mov edx, 0xd
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x3c]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x38]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x34]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x30]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x2c]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x28]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x24]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x20]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x1c]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
ret