Function at 0x41ac554
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x41ac55c
push ecx
push ebx
xor edx, edx
push ebp
push 0x41ac7ba
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.041ac1ec
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x20], 0
lea eax, [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41ac7d0
mov eax, dword [0x4199d68]
call fcn.0419a7f8
mov ecx, dword [ebp - 0x1c]
mov edx, dword [0x41fa150]
mov eax, dword [0x4199d68]
call fcn.0419a670
lea edx, [ebp - 0x18]
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__VarToLStr_qqrr17System_AnsiStringrx14System_Variant
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrLAsg_qqrpvpxv
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrLen_qqrx17System_AnsiString
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrCopy_qqrv
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrLen_qqrx17System_AnsiString
mov edx, dword [ebp - 4]
movzx edx, byte [edx + eax - 1]
inc edx
lea eax, [ebp - 0x2c]
call sub.rtl60.bpl__System__LStrFromChar_qqrr17System_AnsiStringc
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
pop edx
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrLen_qqrx17System_AnsiString
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x3a
je 0x41ac6ee
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Sysutils_QuotedStr_qqrx17System_AnsiString
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x40]
push eax
push 1
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41ac814
mov eax, dword [0x4199d68]
call fcn.0419a7f8
mov ecx, dword [ebp - 0x30]
mov edx, dword [0x41fa150]
mov eax, dword [0x4199d68]
call fcn.0419a4fc
lea eax, [ebp - 0x54]
push eax
mov eax, dword [0x41fa178]
push eax
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Sysutils_QuotedStr_qqrx17System_AnsiString
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x40]
push eax
push 1
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [0x41fa174]
mov edx, 0x41ac8ec
mov eax, dword [0x4199d68]
call fcn.0419a7f8
mov ecx, dword [ebp - 0x58]
mov edx, dword [0x41fa150]
mov eax, dword [0x4199d68]
call fcn.0419a670
lea eax, [ebp - 0x54]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov ebx, eax
jmp 0x41ac750
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [0x41fa178]
push eax
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__Sysutils_QuotedStr_qqrx17System_AnsiString
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x40]
push eax
push 1
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [0x41fa174]
mov edx, 0x41ac8ec
mov eax, dword [0x4199d68]
call fcn.0419a7f8
mov ecx, dword [ebp - 0x70]
mov edx, dword [0x41fa150]
mov eax, dword [0x4199d68]
call fcn.0419a670
lea eax, [ebp - 0x6c]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ac7c1
lea eax, [ebp - 0x74]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x6c]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x5c]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x54]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x44]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x30]
mov edx, 3
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x1c]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x18]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret