Function at 0x4e9f00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x15
push 0
push 0
dec ecx
jne 0x4e9f08
push ebx
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4ea3d4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4e4558]
call fcn.004ee064
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x4ea198
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 0x15c]
mov dword [edx + 0x38], eax
lea eax, [ebp - 8]
call sub.rtl170.bpl__System__UStrClr_qqrpv
push eax
lea eax, [ebp - 4]
call sub.rtl170.bpl__System__UStrClr_qqrpv
mov ecx, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov eax, dword [0x5e5910]
call fcn.004eddc4
cmp dword [ebp - 4], 0
je 0x4e9fa4
push 1
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call sub.dac170.bpl__Craccess_TCRCommand_GetSQLInfo_qqrv
xor ecx, ecx
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 4]
call sub.rtl170.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x4e9fb8
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x38]
mov edx, dword [edx + 0x68]
call sub.rtl170.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push 1
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call sub.dac170.bpl__Craccess_TCRCommand_GetSQLInfo_qqrv
xor ecx, ecx
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
call sub.rtl170.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push 0x4ea3ec
push dword [ebp - 8]
push 0x4ea494
push dword [ebp - 4]
push 0x4ea4d8
lea eax, [ebp - 0x30]
mov edx, 5
call sub.rtl170.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x15c]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x40]
xor edx, edx
call sub.rtl170.bpl__System_Variants__VarFromBool_qqrr8TVarDataxo
lea ecx, [ebp - 0x40]
mov edx, 0x1b
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x1c0]
lea eax, [ebp - 0x50]
mov dl, 1
call sub.rtl170.bpl__System_Variants__VarFromBool_qqrr8TVarDataxo
lea ecx, [ebp - 0x50]
mov edx, 0x19
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x1c0]
lea eax, [ebp - 0x60]
mov dl, 1
call sub.rtl170.bpl__System_Variants__VarFromBool_qqrr8TVarDataxo
lea ecx, [ebp - 0x60]
mov edx, 0x16
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x1c0]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x60]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x30]
test eax, eax
jne 0x4ea0ca
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x64]
push 0x4ea3ec
push dword [ebp - 8]
push 0x4ea4ec
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
call sub.dac170.bpl__Crfunctions__LowerCase_qqrx20System_UnicodeString
push dword [ebp - 0x68]
push 0x4ea4d8
lea eax, [ebp - 0x64]
mov edx, 5
call sub.rtl170.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x15c]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x60]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x30]
test eax, eax
jne 0x4ea0e0
call sub.rtl170.bpl__System__TryFinallyExit_qqrv
jmp 0x4ea36e
xor eax, eax
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call sub.dac170.bpl__Memdata_TData_AllocRecBuf_qqrrpv
xor eax, eax
push ebp
push 0x4ea17b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0xc0]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x28]
test al, al
jne 0x4ea15c
lea eax, [ebp - 0x18]
call sub.rtl170.bpl__System_Variants__VarClr_qqrr8TVarData
push eax
mov ecx, dword [ebp - 0x24]
mov dx, 1
mov eax, dword [ebp - 0x20]
call sub.dac170.bpl__Memdata_TData_GetFieldAsVariant_qqruspvr14System_Variant
lea eax, [ebp - 0x70]
lea edx, [ebp - 0x18]
call sub.rtl170.bpl__System_Variants__VarToUStr_qqrr20System_UnicodeStringrx8TVarData
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
call sub.rtl170.bpl__System_Sysutils_UpperCase_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x6c]
mov edx, 0x4ea53c
call sub.rtl170.bpl__System__UStrEqual_qqrv
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
sete byte [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea182
cmp dword [ebp - 0x24], 0
je 0x4ea17a
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call sub.dac170.bpl__Memdata_TData_FreeRecBuf_qqrpv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea3db
lea eax, [ebp - 0xa8]
mov edx, dword [sym.imp.rtl170.bpl___xp_14System_Variant]
mov ecx, 3
call sub.rtl170.bpl__System__FinalizeArray_qqrpvt1ui
lea eax, [ebp - 0x78]
mov edx, 6
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x60]
mov edx, dword [sym.imp.rtl170.bpl___xp_14System_Variant]
mov ecx, 3
call sub.rtl170.bpl__System__FinalizeArray_qqrpvt1ui
lea eax, [ebp - 0x30]
mov edx, 3
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x18]
call sub.rtl170.bpl__System_Variants__VarClr_qqrr8TVarData
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
ret