Function at 0x41a271c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x21
push 0
push 0
dec ecx
jne 0x41a2724
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x41a2b4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [esi + 0x30]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
mov edx, dword [ebx + 0x38]
mov edx, dword [edx + 8]
mov edx, dword [edx + 4]
call sub.rtl60.bpl__System__VarFromLStr_qqrr14System_Variantx17System_AnsiString
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
mov edi, dword [ebx + 0x38]
mov edx, dword [edi + 4]
mov edx, dword [edx + 4]
call sub.rtl60.bpl__System__VarFromLStr_qqrr14System_Variantx17System_AnsiString
lea eax, [ebp - 0x44]
push eax
mov eax, dword [edi + 8]
cmp dword [eax + 4], 0
sete al
pop edx
pop ecx
call sub.JVCL200_R60.bpl__Jvutils_iif_qqrxorx14System_Variantt2
lea edx, [ebp - 0x24]
lea eax, [ebp - 8]
call sub.rtl60.bpl__System__VarToLStr_qqrr17System_AnsiStringrx14System_Variant
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x64]
mov edi, dword [ebx + 0x38]
mov edx, dword [edi + 8]
mov edx, dword [edx + 8]
mov cl, 0xfc
call sub.rtl60.bpl__System__VarFromInt_qqrr14System_Variantxixi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
mov edx, dword [edi + 4]
mov edx, dword [edx + 8]
mov cl, 0xfc
call sub.rtl60.bpl__System__VarFromInt_qqrr14System_Variantxixi
lea eax, [ebp - 0x74]
push eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 8]
cmp dword [eax + 4], 0
sete al
pop edx
pop ecx
call sub.JVCL200_R60.bpl__Jvutils_iif_qqrxorx14System_Variantt2
lea eax, [ebp - 0x54]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov esi, eax
cmp dword [ebp - 8], 0
jne 0x41a2807
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0x38]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x78], 0xb
lea edx, [ebp - 0x7c]
xor ecx, ecx
mov eax, 0x41a2b64
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
jmp 0x41a284d
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0x38]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x88], 0xb
mov dword [ebp - 0x84], esi
mov byte [ebp - 0x80], 0
lea edx, [ebp - 0x94]
mov ecx, 2
mov eax, 0x41a2b80
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + 8]
test eax, eax
jle 0x41a29d0
dec eax
test eax, eax
jl 0x41a29d0
inc eax
mov dword [ebp - 0x14], eax
xor esi, esi
mov edx, esi
mov eax, dword [ebx + 0x40]
call fcn.041a34a8
mov edx, dword [0x41a2260]
call sub.rtl60.bpl__System__IsClass_qqrp14System_TObjectp17System_TMetaClass
test al, al
je 0x41a2954
mov edx, esi
mov eax, dword [ebx + 0x40]
call fcn.041a34a8
mov eax, dword [eax + 0x18]
call sub.rtl60.bpl__System__DynArrayLength_qqrv
mov edi, eax
dec edi
test edi, edi
jl 0x41a28e9
inc edi
mov dword [ebp - 0xc], 0
push dword [ebp - 0x10]
push 0x41a2ba8
mov edx, esi
mov eax, dword [ebx + 0x40]
call fcn.041a34a8
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0xc]
add edx, edx
lea eax, [eax + edx*8]
lea edx, [ebp - 0x98]
call fcn.041a25c8
push dword [ebp - 0x98]
lea eax, [ebp - 0x10]
mov edx, 3
call sub.rtl60.bpl__System__LStrCatN_qqrv
inc dword [ebp - 0xc]
dec edi
jne 0x41a28a8
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call sub.rtl60.bpl__System__LStrDelete_qqrv
lea eax, [ebp - 0x9c]
push eax
mov edx, esi
mov eax, dword [ebx + 0x40]
call fcn.041a34a8
mov eax, dword [eax + 4]
mov dword [ebp - 0xac], eax
mov byte [ebp - 0xa8], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 0xa0], 0xb
lea edx, [ebp - 0xac]
mov ecx, 1
mov eax, 0x41a2bb4
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrCat_qqrv
mov eax, dword [ebp - 4]
jmp 0x41a29c6
lea eax, [ebp - 0xb0]
push eax
mov edx, esi
mov eax, dword [ebx + 0x40]
call fcn.041a34a8
mov eax, dword [eax + 4]
mov dword [ebp - 0xac], eax
mov byte [ebp - 0xa8], 0xb
mov edx, esi
mov eax, dword [ebx + 0x40]
call fcn.041a34a8
add eax, 8
lea edx, [ebp - 0xb4]
call fcn.041a25c8
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 0xa0], 0xb
lea edx, [ebp - 0xac]
mov ecx, 1
mov eax, 0x41a2bcc
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrCat_qqrv
mov eax, dword [ebp - 4]
inc esi
dec dword [ebp - 0x14]
jne 0x41a286a
mov eax, dword [ebx + 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x41a2ac2
mov eax, dword [ebp - 4]
mov edx, 0x41a2be0
call sub.rtl60.bpl__System__LStrCat_qqrv
mov eax, dword [ebp - 4]
mov eax, dword [ebx + 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x41a2ac2
inc eax
mov dword [ebp - 0x14], eax
xor esi, esi
lea eax, [ebp - 0xc4]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
call sub.rtl60.bpl__System__VarFromLStr_qqrr14System_Variantx17System_AnsiString
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xd4]
push eax
mov al, 0x2c
mov byte [ebp - 0xe7], al
mov byte [ebp - 0xe8], 1
lea eax, [ebp - 0xe4]
lea edx, [ebp - 0xe8]
call sub.rtl60.bpl__System__VarFromPStr_qqrr14System_Variantrx28System__SmallString_iuc_255_
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xf8]
xor edx, edx
call sub.rtl60.bpl__System__VarFromLStr_qqrr14System_Variantx17System_AnsiString
lea edx, [ebp - 0xf8]
test esi, esi
sete al
pop ecx
call sub.JVCL200_R60.bpl__Jvutils_iif_qqrxorx14System_Variantt2
lea edx, [ebp - 0xd4]
pop eax
call sub.rtl60.bpl__System__VarAdd_qqrr14System_Variantrx14System_Variant
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x10c]
mov edx, esi
mov eax, dword [ebx + 0x48]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
call sub.rtl60.bpl__System__VarFromLStr_qqrr14System_Variantx17System_AnsiString
lea edx, [ebp - 0x108]
pop eax
call sub.rtl60.bpl__System__VarAdd_qqrr14System_Variantrx14System_Variant
lea edx, [ebp - 0xc4]
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__VarToLStr_qqrr17System_AnsiStringrx14System_Variant
inc esi
dec dword [ebp - 0x14]
jne 0x41a2a07
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a2b54
lea eax, [ebp - 0x10c]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x108]
mov edx, dword [sym.imp.rtl60.bpl___xp_14System_Variant]
mov ecx, 2
call sub.rtl60.bpl__System__FinalizeArray_qqrpvt1ui
lea eax, [ebp - 0xe4]
mov edx, dword [sym.imp.rtl60.bpl___xp_14System_Variant]
mov ecx, 3
call sub.rtl60.bpl__System__FinalizeArray_qqrpvt1ui
lea eax, [ebp - 0xb4]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x9c]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x74]
mov edx, dword [sym.imp.rtl60.bpl___xp_14System_Variant]
mov ecx, 6
call sub.rtl60.bpl__System__FinalizeArray_qqrpvt1ui
lea eax, [ebp - 0x10]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 8]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret