Function at 0x41c3274
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x41c327d
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 0x41c37ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x41c3808
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov eax, esi
mov edx, 0x41c3808
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
xor eax, eax
push ebp
push 0x41c37c9
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, 0x41c3814
mov edx, 0x41c3820
mov eax, 1
call fcn.041c2f48
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, 0x41c3814
mov edx, 0x41c3870
mov eax, 3
call fcn.041c2f48
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 0x41c37ab
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebx]
push 0x41c38b8
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 0x41c333a
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [esi]
push 0x41c38b8
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 0x41c3382
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 0x41c33f1
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 0x41c33ff
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, 0x41c38c4
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 [0x41c3930]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41c393c
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 [0x41c3930]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41c3948
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 [0x41c3930]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41c3954
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 [0x41c3930]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41c3960
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 [0x41c3930]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41c396c
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 [0x41c3930]
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41c3978
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 [0x41c3930]
push eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41c3984
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 [0x41c3930]
push eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41c3990
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 [0x41c3930]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41c399c
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 [0x41c3930]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41c39a8
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 [0x41c3930]
push eax
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41c39b4
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.041c062c
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 [0x41c3930]
push eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41c393c
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 [0x41c3930]
push eax
lea eax, [ebp - 0x74]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41c3948
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 [0x41c3930]
push eax
lea eax, [ebp - 0x78]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41c3954
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 [0x41c3930]
push eax
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41c3960
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 [0x41c3930]
push eax
lea eax, [ebp - 0x80]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41c396c
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 [0x41c3930]
push eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41c3978
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 [0x41c3930]
push eax
lea eax, [ebp - 0x88]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41c3984
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 [0x41c3930]
push eax
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41c3990
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 [0x41c3930]
push eax
lea eax, [ebp - 0x90]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41c399c
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 [0x41c3930]
push eax
lea eax, [ebp - 0x94]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41c39a8
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 [0x41c3930]
push eax
lea eax, [ebp - 0x98]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41c39b4
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.041c062c
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 0x41c37d0
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__Sysutils_FreeAndNil_qqrpv
ret