Function at 0x51e184
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x51e18c
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x51e44c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0
jne 0x51e424
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00424998
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov eax, dword [0x40bc48]
call fcn.0040d4dc
test al, al
je 0x51e424
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.00424998
mov edx, dword [ebp - 0x14]
mov eax, dword [0x41ca14]
call fcn.0041cff8
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x51e41d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x51e20d
call sub.rtl250.bpl__System__TryFinallyExit_qqrv
jmp 0x51e424
mov ecx, 0x51e468
mov edx, dword [ebp - 8]
mov eax, dword [0x41ca14]
call fcn.0041d4a8
test al, al
jne 0x51e22d
call sub.rtl250.bpl__System__TryFinallyExit_qqrv
jmp 0x51e424
mov ecx, 0x51e4a0
mov edx, dword [ebp - 8]
mov eax, dword [0x41ca14]
call fcn.0041d4a8
test al, al
jne 0x51e24d
call sub.rtl250.bpl__System__TryFinallyExit_qqrv
jmp 0x51e424
mov edx, 0x51e4d8
mov eax, dword [ebp - 8]
call fcn.0041a720
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x51e26d
call sub.rtl250.bpl__System__TryFinallyExit_qqrv
jmp 0x51e424
xor eax, eax
push ebp
push 0x51e400
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0041bfc4
jmp 0x51e3da
push 7
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.00424998
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x51d838]
call fcn.004123d8
mov ebx, eax
lea ecx, [ebp - 0x1c]
mov edx, 0x51e56c
mov eax, dword [ebp - 0xc]
call fcn.0041b6e4
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x28]
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea ecx, [ebp - 0x20]
mov edx, 0x51e590
mov eax, dword [ebp - 0xc]
call fcn.0041b6e4
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x30]
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
mov edx, 0x51e590
mov eax, dword [ebp - 0xc]
call fcn.0041b6e4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0x11
lea edx, [ebp - 0x2c]
xor ecx, ecx
mov eax, 0x51e5b0
call sub.rtl250.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.0041980c
cdq
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
cmp dword [ebx + 0x24], 0
jne 0x51e3b2
cmp dword [ebx + 0x20], 0
jne 0x51e3b2
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x38]
mov edx, 0x51e590
mov eax, dword [ebp - 0xc]
call fcn.0041b6e4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0x11
lea edx, [ebp - 0x2c]
xor ecx, ecx
mov eax, 0x51e6b8
call sub.rtl250.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.0041980c
cdq
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x40]
mov edx, 0x51e590
mov eax, dword [ebp - 0xc]
call fcn.0041b6e4
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0x11
lea edx, [ebp - 0x2c]
xor ecx, ecx
mov eax, 0x51e7a0
call sub.rtl250.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
call fcn.0041980c
cdq
add eax, dword [ebx + 0x20]
adc edx, dword [ebx + 0x24]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
mov eax, dword [ebp - 0xc]
call fcn.0041bf84
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 4]
cmp byte [eax], 0
je 0x51e3da
call sub.rtl250.bpl__System__TryFinallyExit_qqrv
call sub.rtl250.bpl__System__TryFinallyExit_qqrv
jmp 0x51e424
mov eax, dword [ebp - 0xc]
call fcn.0041b6d0
test al, al
je 0x51e288
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e407
lea eax, [ebp - 0xc]
call sub.rtl250.bpl__System_Sysutils_FreeAndNil_qqrpv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e453
lea eax, [ebp - 0x40]
mov edx, 5
call sub.rtl250.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x24]
mov edx, 6
call sub.rtl250.bpl__System__UStrArrayClr_qqrpvi
ret