Function at 0x41d5574
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x41d557d
push ecx
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 0x41d5ac7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x41d5ae0
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov eax, esi
mov edx, 0x41d5ae0
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
xor eax, eax
push ebp
push 0x41d5aa2
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, 0x41d5aec
mov edx, 0x41d5af8
mov eax, 3
call fcn.041d2f50
mov edx, dword [ebp - 0x18]
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]
test eax, eax
jle 0x41d5a84
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebx]
push 0x41d5b40
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 3
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call sub.rtl60.bpl__Sysutils_Trim_qqrx17System_AnsiString
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 1
jne 0x41d5619
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [esi]
push 0x41d5b40
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 3
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call sub.rtl60.bpl__Sysutils_Trim_qqrx17System_AnsiString
mov edx, dword [ebp - 0x28]
mov eax, esi
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 1
jne 0x41d5661
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 0x41d56d0
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 0x41d56de
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, 0x41d5b4c
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 - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebx]
mov eax, ebx
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov al, byte [0x41d5bb8]
push eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41d5bc4
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x38]
mov eax, ebx
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41d5bb8]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41d5bd0
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 [0x41d5bb8]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41d5bdc
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 [0x41d5bb8]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41d5be8
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 [0x41d5bb8]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41d5bf4
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 [0x41d5bb8]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41d5c00
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 [0x41d5bb8]
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41d5c0c
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 [0x41d5bb8]
push eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41d5c18
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 [0x41d5bb8]
push eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41d5c24
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 [0x41d5bb8]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41d5c30
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 [0x41d5bb8]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x41d5c3c
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 eax, dword [ebp - 4]
mov edx, dword [ebx]
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
lea edx, [ebp - 0x64]
mov eax, dword [ebx]
call fcn.041d2f14
mov edx, dword [ebp - 0x64]
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 - 0x68]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x68]
mov ecx, dword [esi]
mov eax, esi
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov al, byte [0x41d5bb8]
push eax
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41d5bc4
call sub.rtl60.bpl__Sysutils_StringReplace_qqrx17System_AnsiStringt1t149System__Set_t21Sysutils_SysUtils__54_iuc_0_iuc_1_
mov edx, dword [ebp - 0x6c]
mov eax, esi
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov al, byte [0x41d5bb8]
push eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41d5bd0
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 [0x41d5bb8]
push eax
lea eax, [ebp - 0x74]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41d5bdc
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 [0x41d5bb8]
push eax
lea eax, [ebp - 0x78]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41d5be8
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 [0x41d5bb8]
push eax
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41d5bf4
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 [0x41d5bb8]
push eax
lea eax, [ebp - 0x80]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41d5c00
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 [0x41d5bb8]
push eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41d5c0c
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 [0x41d5bb8]
push eax
lea eax, [ebp - 0x88]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41d5c18
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 [0x41d5bb8]
push eax
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41d5c24
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 [0x41d5bb8]
push eax
lea eax, [ebp - 0x90]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41d5c30
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 [0x41d5bb8]
push eax
lea eax, [ebp - 0x94]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x41d5c3c
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
lea edx, [ebp - 0x98]
mov eax, dword [esi]
call fcn.041d2f14
mov edx, dword [ebp - 0x98]
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 0x41d5aa9
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__Sysutils_FreeAndNil_qqrpv
ret