Function at 0x41a2258
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x41a2261
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 + 8]
xor eax, eax
push ebp
push 0x41a27d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x41a27ec
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov eax, esi
mov edx, 0x41a27ec
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
xor eax, eax
push ebp
push 0x41a27ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [sym.imp.rtl60.bpl__Classes_TStringList_]
call sub.rtl60.bpl__System_TObject__bctr_qqrv
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x41a27f8
mov edx, 0x41a2804
mov eax, 1
call fcn.041a1f2c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x41a27f8
mov edx, 0x41a2854
mov eax, 3
call fcn.041a1f2c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jle 0x41a278f
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebx]
push 0x41a289c
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 3
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call sub.rtl60.bpl__Sysutils_Trim_qqrx17System_AnsiString
mov edx, dword [ebp - 0x20]
mov eax, ebx
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jne 0x41a231e
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [esi]
push 0x41a289c
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 3
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call sub.rtl60.bpl__Sysutils_Trim_qqrx17System_AnsiString
mov edx, dword [ebp - 0x2c]
mov eax, esi
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jne 0x41a2366
xor ecx, ecx
mov dl, 1
mov eax, dword [sym.imp.adortl60.bpl__Adodb_TADOQuery_]
call sub.adortl60.bpl__Adodb_TADOQuery__bctr_qqrp18Classes_TComponent
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 0
jne 0x41a23d5
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x268]
jmp 0x41a23e3
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x268]
mov eax, dword [ebp - 0x14]
call sub.dbrtl60.bpl__Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x14]
call sub.adortl60.bpl__Adodb_TADOQuery_GetSQL_qqrv
mov edx, 0x41a28a8
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x14]
call sub.dbrtl60.bpl__Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x30]
xor edx, edx
call sub.dbrtl60.bpl__Db_TFields_GetField_qqri
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebx]
mov eax, ebx
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41a2920
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x3c]
mov eax, ebx
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41a292c
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x40]
mov eax, ebx
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41a2938
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x44]
mov eax, ebx
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41a2944
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x48]
mov eax, ebx
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41a2950
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x4c]
mov eax, ebx
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41a295c
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x50]
mov eax, ebx
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41a2968
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x54]
mov eax, ebx
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41a2974
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x58]
mov eax, ebx
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41a2980
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x5c]
mov eax, ebx
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41a298c
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x60]
mov eax, ebx
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41a2998
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x64]
mov eax, ebx
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov eax, dword [ebp - 4]
mov edx, dword [ebx]
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
lea edx, [ebp - 0x68]
mov eax, dword [ebx]
call fcn.0419f610
mov edx, dword [ebp - 0x68]
mov eax, ebx
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x30]
xor edx, edx
call sub.dbrtl60.bpl__Db_TFields_GetField_qqri
lea edx, [ebp - 0x6c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x6c]
mov ecx, dword [esi]
mov eax, esi
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41a2920
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x70]
mov eax, esi
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x74]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41a292c
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x74]
mov eax, esi
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x78]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41a2938
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x78]
mov eax, esi
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41a2944
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x7c]
mov eax, esi
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x80]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41a2950
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x80]
mov eax, esi
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41a295c
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x84]
mov eax, esi
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x88]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41a2968
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x88]
mov eax, esi
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41a2974
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x8c]
mov eax, esi
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x90]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41a2980
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x90]
mov eax, esi
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x94]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41a298c
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x94]
mov eax, esi
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41a2914]
push eax
lea eax, [ebp - 0x98]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41a2998
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x98]
mov eax, esi
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
lea edx, [ebp - 0x9c]
mov eax, dword [esi]
call fcn.0419f610
mov edx, dword [ebp - 0x9c]
mov eax, esi
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov eax, dword [ebp - 0x14]
call sub.dbrtl60.bpl__Db_TDataSet_Close_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a27b4
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__Sysutils_FreeAndNil_qqrpv
ret