Function at 0x41bb458
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x15
push 0
push 0
dec ecx
jne 0x41bb460
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x41bb80f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [0x4204168]
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 [0x4204168]
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 [0x4204168]
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 [0x4204168]
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.041baaf8
mov edi, eax
mov edx, dword [ebx + 0x38]
mov eax, esi
call fcn.041bad60
mov dword [ebp - 0x14], eax
test edi, edi
jle 0x41bb558
cmp dword [ebp - 0x14], 0
jle 0x41bb60b
cmp byte [ebp - 0x15], 0
je 0x41bb60b
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp dword [eax + 0x24], 0x22
jne 0x41bb60b
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0
mov dword [ebp - 0x68], esi
mov byte [ebp - 0x64], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0
lea eax, [ebp - 0x74]
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 - 0x74]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0xb
lea eax, [ebp - 0x78]
push eax
or ecx, 0xffffffff
mov dl, 0x27
mov eax, dword [ebx + 0x3c]
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0xb
lea eax, [ebp - 0x70]
push eax
push 5
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41bb828
mov eax, dword [0x419a734]
call fcn.0419b348
mov ecx, dword [ebp - 0x40]
mov edx, dword [0x4204158]
mov eax, dword [0x419a734]
call fcn.0419aec4
test edi, edi
jle 0x41bb766
cmp byte [ebp - 0x15], 0
jne 0x41bb766
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x80]
mov eax, dword [0x4204168]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x7c]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x7c]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, dword [eax + 0x60]
mov ecx, dword [ebx + 0x38]
mov eax, esi
call fcn.041baea0
lea eax, [ebp - 0x90]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
mov dword [ebp - 0xa4], esi
mov byte [ebp - 0xa0], 0
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x98], 0xb
lea eax, [ebp - 0xa4]
push eax
push 1
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41bb8c8
mov eax, dword [0x419a734]
call fcn.0419b348
mov ecx, dword [ebp - 0x94]
mov edx, dword [0x4204158]
mov eax, dword [0x419a734]
call fcn.0419b038
lea eax, [ebp - 0x90]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov edx, 0x41bb948
call sub.rtl60.bpl__System__LStrCmp_qqrv
jne 0x41bb766
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x58], edi
mov byte [ebp - 0x54], 0
lea eax, [ebp - 0xac]
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 - 0xac]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0xb
mov dword [ebp - 0x48], esi
mov byte [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
push 5
lea eax, [ebp - 0xa8]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41bb954
mov eax, dword [0x419a734]
call fcn.0419b348
mov ecx, dword [ebp - 0xa8]
mov edx, dword [0x4204158]
mov eax, dword [0x419a734]
call fcn.0419aec4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bb819
lea eax, [ebp - 0xac]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x94]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x90]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
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]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x40]
call sub.rtl60.bpl__System__LStrClr_qqrpv
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