Function at 0x5ad334
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x29
push 0
push 0
dec ecx
jne 0x5ad33c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
mov edx, dword [sym.imp.PQLibPack17.bpl___xp_20Sysfkts_TTblNameInfo]
call sub.rtl170.bpl__System__InitializeRecord_qqrpvt1
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
xor eax, eax
push ebp
push 0x5ae0be
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [sym.imp.rtl170.bpl__System_Classes_TStringList_]
call sub.rtl170.bpl__System_Classes_TStringList__bctr_qqrv
mov dword [ebp - 0x48], eax
mov dl, 1
mov eax, dword [ebp - 0x48]
call sub.rtl170.bpl__System_Classes_TStringList_SetSorted_qqro
mov eax, dword [ebp - 0x48]
mov byte [eax + 0x39], 0
mov dl, 1
mov eax, dword [sym.imp.rtl170.bpl__System_Classes_TStringList_]
call sub.rtl170.bpl__System_Classes_TStringList__bctr_qqrv
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov byte [eax + 0x39], 0
mov dl, 1
mov eax, dword [sym.imp.rtl170.bpl__System_Classes_TStringList_]
call sub.rtl170.bpl__System_Classes_TStringList__bctr_qqrv
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov byte [eax + 0x39], 0
xor edx, edx
push ebp
push 0x5ae030
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [esi]
mov eax, dword [eax + 0x484]
mov edx, dword [eax]
call dword [edx + 0x10c]
mov eax, dword [esi]
mov eax, dword [eax + 0x434]
call sub.vcl170.bpl__Vcl_Comctrls_TCustomTabControl_GetTabs_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [esi]
mov eax, dword [eax + 0x434]
call sub.vcl170.bpl__Vcl_Comctrls_TCustomTabControl_GetTabs_qqrv
mov edx, 0x5ae0dc
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esi]
mov eax, dword [eax + 0x42c]
call sub.vcl170.bpl__Vcl_Comctrls_TCustomTabControl_GetTabs_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [esi]
mov eax, dword [eax + 0x42c]
call sub.vcl170.bpl__Vcl_Comctrls_TCustomTabControl_GetTabs_qqrv
mov edx, 0x5ae0dc
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esi]
mov eax, dword [eax + 0x468]
call sub.vcl170.bpl__Vcl_Comctrls_TCustomTabControl_GetTabs_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [esi]
mov eax, dword [eax + 0x468]
call sub.vcl170.bpl__Vcl_Comctrls_TCustomTabControl_GetTabs_qqrv
mov edx, 0x5ae0dc
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x978], edx
xor eax, eax
mov dword [ebp - 0x58], eax
mov eax, 0x5e3508
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x8c]
mov eax, dword [sym.imp.PQLibPack17.bpl__Sqlunit_SQLSyntax]
mov eax, dword [eax]
mov edx, 0x5ae0e4
call sub.PQLibPack17.bpl__Sqlunit_TSQLMySQL_GetStdFldStr_qqrrx44System__Set_t15Sysfkts_TStdFld_iuc_0_iuc_68_
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0x11
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CPQSysTblName]
mov eax, dword [eax]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0xa
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x94]
mov edx, dword [ebp - 0x64]
mov edx, dword [edx]
call sub.rtl170.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov ecx, dword [ebp - 0x94]
mov eax, dword [sym.imp.PQLibPack17.bpl__Sqlunit_SQLSyntax]
mov eax, dword [eax]
mov dl, 0x1e
mov ebx, dword [eax]
call dword [ebx + 0xa4]
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0x11
lea edx, [ebp - 0x98]
mov al, 0x2a
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0x11
lea edx, [ebp - 0x88]
mov ecx, 3
mov eax, 0x5ae0fc
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x68]
mov eax, dword [esi]
call fcn.005a744c
test al, al
je 0x5ad8f6
jmp 0x5ad8e1
mov eax, dword [esi]
mov eax, dword [eax + 0x894]
mov eax, dword [eax + 0x38]
xor edx, edx
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov eax, dword [esi]
mov eax, dword [eax + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 1
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
mov edx, dword [eax]
call dword [edx + 0x60]
fstp qword [ebp - 0x50]
wait
mov eax, dword [esi]
mov eax, dword [eax + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 2
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
mov edx, dword [eax]
call dword [edx + 0x70]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jle 0x5ad8d4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x58]
test eax, eax
jl 0x5ad8d4
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call sub.PQLibPack17.bpl__Sysfkts_AnalyseTblName_qqr20System_UnicodeString
push 2
push 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 0xac], 0x11
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 0xa4], 0x11
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
lea eax, [ebp - 0xb4]
call sub.rtl170.bpl__System_Sysutils_DateTimeToStr_qqrx16System_TDateTime
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xa0], eax
mov byte [ebp - 0x9c], 0x11
lea ecx, [ebp - 0xb0]
mov eax, dword [esi]
mov edx, 0x5ae15c
call fcn.005b1a88
cmp byte [ebp - 0x1f], 0
je 0x5ad8d4
mov eax, dword [esi]
mov edx, dword [ebp - 0x2c]
call fcn.005c2760
mov ebx, eax
test ebx, ebx
je 0x5ad8d4
mov eax, dword [ebp - 0x58]
sub eax, 2
jb 0x5ad633
sub eax, 2
jb 0x5ad709
jmp 0x5ad71e
movzx eax, byte [ebp - 0x1d]
push eax
movzx ecx, byte [ebp - 0x1b]
mov edx, dword [ebp - 4]
mov eax, ebx
call sub.PQLibPack17.bpl__Pqigraphstation_TPQGraphStation_Set3SecBasic_qqrx20System_UnicodeString18Sysfkts_TDataClass19Sysfkts_TPQV
mov eax, dword [ebx + 0x38]
mov edx, dword [sym.imp.PQLibPack17.bpl__Pqigraphstation_TPQGroupBox_]
call sub.rtl170.bpl__System__IsClass_qqrxp14System_TObjectp17System_TMetaClass
test al, al
je 0x5ad698
mov eax, dword [ebx + 0x38]
mov edx, dword [sym.imp.PQLibPack17.bpl__Pqigraphstation_TPQGroupBox_]
call sub.rtl170.bpl__System__AsClass_qqrxp14System_TObjectp17System_TMetaClass
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0xb8]
mov eax, dword [ebp - 0x34]
call sub.vcl170.bpl__Vcl_Controls_TControl_GetText_qqrv
mov ecx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x298]
mov eax, dword [esi]
mov eax, dword [eax + 0x9b0]
call sub.PQLibPack17.bpl__Sysvisu_TSumGrpLst_AddItem_qqri20System_UnicodeString
jmp 0x5ad731
mov eax, dword [ebx + 0x38]
mov edx, dword [sym.imp.PQLibPack17.bpl__Pqigraphstation_TPQScrollBox_]
call sub.rtl170.bpl__System__IsClass_qqrxp14System_TObjectp17System_TMetaClass
test al, al
je 0x5ad731
mov eax, dword [ebx + 0x38]
mov edx, dword [sym.imp.PQLibPack17.bpl__Pqigraphstation_TPQScrollBox_]
call sub.rtl170.bpl__System__AsClass_qqrxp14System_TObjectp17System_TMetaClass
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x38]
mov edx, dword [sym.imp.vcl170.bpl__Vcl_Comctrls_TTabSheet_]
call sub.rtl170.bpl__System__IsClass_qqrxp14System_TObjectp17System_TMetaClass
test al, al
je 0x5ad731
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x38]
mov edx, dword [sym.imp.vcl170.bpl__Vcl_Comctrls_TTabSheet_]
call sub.rtl170.bpl__System__AsClass_qqrxp14System_TObjectp17System_TMetaClass
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x88]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x2c0]
mov eax, dword [esi]
mov eax, dword [eax + 0x9b0]
call sub.PQLibPack17.bpl__Sysvisu_TSumGrpLst_AddItem_qqri20System_UnicodeString
jmp 0x5ad731
movzx eax, byte [ebp - 0x1d]
push eax
movzx ecx, byte [ebp - 0x1b]
mov edx, dword [ebp - 4]
mov eax, ebx
call sub.PQLibPack17.bpl__Pqigraphstation_TPQGraphStation_Set10mBasic_qqrx20System_UnicodeString18Sysfkts_TDataClass19Sysfkts_TPQVi
jmp 0x5ad731
movzx eax, byte [ebp - 0x1d]
push eax
movzx ecx, byte [ebp - 0x1b]
mov edx, dword [ebp - 4]
mov eax, ebx
call sub.PQLibPack17.bpl__Pqigraphstation_TPQGraphStation_SetUsrBasic_qqrx20System_UnicodeString18Sysfkts_TDataClass19Sysfkts_TPQVi
lea eax, [ebp - 0xc]
mov edx, dword [ebx + 0x210]
call sub.rtl170.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea ecx, [ebp - 8]
mov edx, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CSepa]
movzx edx, word [edx]
lea eax, [ebp - 0xc]
call sub.PQLibPack17.bpl__Sysfkts_ExtractToChar_qqrr20System_UnicodeStringb
lea edx, [ebp - 0xbc]
mov eax, ebx
call sub.PQLibPack17.bpl__Pqigraphstation_TPQGraphStation_GetIDName_qqrv
mov edx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
test eax, eax
jge 0x5ad7d2
lea eax, [ebp - 0xc0]
push eax
movzx edx, byte [ebp - 0x14]
lea ecx, [ebp - 0xd4]
mov eax, ebx
call sub.PQLibPack17.bpl__Pqigraphstation_TPQGraphStation_GetIDNameBB_qqr17Sysfkts_TPQBusBar
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xc4], 0x11
lea edx, [ebp - 0xd0]
mov ecx, 1
mov eax, 0x5ae18c
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0xc0]
mov ecx, ebx
mov eax, dword [ebp - 0x48]
mov edi, dword [eax]
call dword [edi + 0x40]
lea edx, [ebp - 0xd8]
mov eax, ebx
call sub.PQLibPack17.bpl__Pqigraphstation_TPQGraphStation_GetIDName_qqrv
mov edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
test eax, eax
jge 0x5ad853
lea eax, [ebp - 0xdc]
push eax
lea edx, [ebp - 0xe0]
mov eax, ebx
call sub.PQLibPack17.bpl__Pqigraphstation_TPQGraphStation_GetIDName_qqrv
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xc4], 0x11
lea edx, [ebp - 0xd0]
mov ecx, 1
mov eax, 0x5ae18c
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esi]
inc dword [eax + 0x978]
movzx edx, byte [ebp - 0x14]
lea ecx, [ebp - 0xe4]
mov eax, ebx
call sub.PQLibPack17.bpl__Pqigraphstation_TPQGraphStation_GetIDNameBB_qqr17Sysfkts_TPQBusBar
mov edx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
test eax, eax
jge 0x5ad8d4
lea eax, [ebp - 0xe8]
push eax
movzx edx, byte [ebp - 0x14]
lea ecx, [ebp - 0xec]
mov eax, ebx
call sub.PQLibPack17.bpl__Pqigraphstation_TPQGraphStation_GetIDNameBB_qqr17Sysfkts_TPQBusBar
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xc4], 0x11
lea edx, [ebp - 0xd0]
mov ecx, 1
mov eax, 0x5ae18c
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0xe8]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esi]
mov eax, dword [eax + 0x894]
call sub.dbrtl170.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [esi]
mov eax, dword [eax + 0x894]
cmp byte [eax + 0xa5], 0
je 0x5ad525
inc dword [ebp - 0x58]
add dword [ebp - 0x64], 4
cmp dword [ebp - 0x58], 5
jne 0x5ad468
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5adbca
inc eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0xf0]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x48]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xf0]
push eax
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x484]
mov eax, dword [eax + 0x2c4]
pop edx
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ebx, eax
movzx eax, byte [ebx + 0x37c]
add al, 0xfc
sub al, 2
jae 0x5adbbe
mov eax, ebx
call sub.PQLibPack17.bpl__Pqigraphstation_TPQGraphStation_SetSQLFPALya_qqrv
lea eax, [ebp - 0xf8]
push eax
lea edx, [ebp - 0xfc]
mov al, 0x18
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0x11
lea edx, [ebp - 0x100]
mov eax, ebx
call sub.PQLibPack17.bpl__Pqigraphstation_TPQGraphStation_GetIDName_qqrv
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xc4], 0x11
lea edx, [ebp - 0xd0]
mov ecx, 1
mov eax, 0x5ae1a4
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov eax, dword [ebp - 0xf8]
push eax
lea eax, [ebp - 0x104]
push eax
lea edx, [ebp - 0x110]
mov al, 7
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x10c], eax
mov byte [ebp - 0x108], 0x11
lea edx, [ebp - 0x10c]
xor ecx, ecx
mov eax, 0x5ae1cc
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov eax, dword [ebp - 0x104]
push eax
push 1
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x114]
push eax
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CPQSysTblName]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0xa
movzx eax, byte [ebx + 0x270]
mov edx, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CPQVirtuVer]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xc4], 6
lea edx, [ebp - 0xd0]
mov ecx, 1
mov eax, 0x5ae1fc
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov ecx, dword [ebp - 0x114]
mov eax, dword [sym.imp.PQLibPack17.bpl__Sqlunit_SQLSyntax]
mov eax, dword [eax]
mov edx, 0x5ae214
mov edi, dword [eax]
call dword [edi + 0xa8]
mov edx, dword [ebp - 0xf4]
mov eax, dword [esi]
call fcn.005a744c
test al, al
je 0x5adbbe
mov eax, dword [ebp + 8]
push eax
push 0xbe4ccccd
mov eax, 0x5ae224
call fcn.005acdc8
pop ecx
fstp dword [ebx + 0x5c8]
wait
mov eax, dword [ebp + 8]
push eax
push 0xbdcccccd
mov eax, 0x5ae248
call fcn.005acdc8
pop ecx
fstp dword [ebx + 0x5c4]
wait
mov eax, dword [ebp + 8]
push eax
push 0x3dcccccd
mov eax, 0x5ae26c
call fcn.005acdc8
pop ecx
fstp dword [ebx + 0x5cc]
wait
mov eax, dword [ebp + 8]
push eax
push 0x3e4ccccd
mov eax, 0x5ae290
call fcn.005acdc8
pop ecx
fstp dword [ebx + 0x5d0]
wait
mov dword [ebp - 0x58], 1
mov eax, dword [ebp + 8]
push eax
push 0x3e4ccccd
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x58]
call sub.rtl170.bpl__System_Sysutils_IntToStr_qqri
mov ecx, dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
mov edx, 0x5ae2b4
call sub.rtl170.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x118]
call fcn.005acdc8
pop ecx
add esp, 0xfffffffc
fstp dword [esp]
wait
mov edx, dword [ebp - 0x58]
mov eax, ebx
call sub.PQLibPack17.bpl__Pqigraphstation_TPQGraphStation_SetWarnFPA_qqrif
mov eax, dword [ebp + 8]
push eax
push 0x3f000000
lea edx, [ebp - 0x124]
mov eax, dword [ebp - 0x58]
call sub.rtl170.bpl__System_Sysutils_IntToStr_qqri
mov ecx, dword [ebp - 0x124]
lea eax, [ebp - 0x120]
mov edx, 0x5ae2d8
call sub.rtl170.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x120]
call fcn.005acdc8
pop ecx
add esp, 0xfffffffc
fstp dword [esp]
wait
mov edx, dword [ebp - 0x58]
mov eax, ebx
call sub.PQLibPack17.bpl__Pqigraphstation_TPQGraphStation_SetAlertFPA_qqrif
inc dword [ebp - 0x58]
cmp dword [ebp - 0x58], 0xa
jne 0x5adb1d
inc dword [ebp - 0x54]
dec dword [ebp - 0x60]
jne 0x5ad923
mov eax, dword [esi]
mov eax, dword [eax + 0xaac]
mov eax, dword [eax + 8]
test eax, eax
jle 0x5adc39
dec eax
test eax, eax
jl 0x5adc39
inc eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x54], 0
mov eax, dword [esi]
mov eax, dword [eax + 0xaac]
mov edx, dword [ebp - 0x54]
call sub.rtl170.bpl__System_Classes_TList_Get_qqri
mov ebx, eax
push 0
push 0
lea edx, [ebp - 0x128]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x10c], eax
mov byte [ebp - 0x108], 0x11
lea ecx, [ebp - 0x10c]
mov eax, dword [esi]
mov edx, 0x5ae2fc
call fcn.005b1a88
inc dword [ebp - 0x54]
dec dword [ebp - 0x60]
jne 0x5adbe9
mov eax, dword [esi]
mov ebx, dword [eax + 0x484]
mov eax, dword [ebx + 0x2c4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
dec edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x104]
mov eax, dword [esi]
xor edx, edx
call fcn.005aa00c
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
cmp byte [eax + 0x1f5], 0
je 0x5add94
lea eax, [ebp - 0x12c]
push eax
lea edx, [ebp - 0x130]
mov al, 0x18
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0x11
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CPQSysTblName]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xc4], 0xa
lea edx, [ebp - 0xd0]
mov ecx, 1
mov eax, 0x5ae324
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x12c]
mov eax, dword [esi]
call fcn.005a744c
test al, al
je 0x5add94
jmp 0x5add7f
mov eax, dword [ebx + 0x38]
xor edx, edx
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
test eax, eax
jge 0x5add72
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x5ae368
call sub.rtl170.bpl__System_Pos_qqrx20System_UnicodeStringt1i
mov ebx, eax
mov eax, dword [ebp - 0xc]
call sub.rtl170.bpl__System__UStrLen_qqrx20System_UnicodeString
dec eax
cmp ebx, eax
jge 0x5add72
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0x11
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CEmpty]
mov eax, dword [eax]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xc4], 0xa
lea edx, [ebp - 0xd0]
mov ecx, 1
mov eax, 0x5ae18c
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esi]
mov eax, dword [eax + 0x894]
call sub.dbrtl170.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [esi]
mov ebx, dword [eax + 0x894]
cmp byte [ebx + 0xa5], 0
je 0x5adcdf
lea eax, [ebp - 0x138]
push eax
lea edx, [ebp - 0x13c]
mov al, 0x18
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0x11
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CPQSysTblName]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xc4], 0xa
lea edx, [ebp - 0xd0]
mov ecx, 1
mov eax, 0x5ae324
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x138]
mov eax, dword [esi]
call fcn.005a744c
test al, al
je 0x5ade90
jmp 0x5ade7b
mov eax, dword [ebx + 0x38]
xor edx, edx
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
test eax, eax
jge 0x5ade6e
lea eax, [ebp - 0x140]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0x11
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CEmpty]
mov eax, dword [eax]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xc4], 0xa
lea edx, [ebp - 0xd0]
mov ecx, 1
mov eax, 0x5ae18c
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esi]
mov eax, dword [eax + 0x894]
call sub.dbrtl170.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [esi]
mov ebx, dword [eax + 0x894]
cmp byte [ebx + 0xa5], 0
je 0x5addfc
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
cmp byte [eax + 0x1f4], 0
je 0x5adfb7
lea eax, [ebp - 0x144]
push eax
lea edx, [ebp - 0x148]
mov al, 0x18
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0x11
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CPQSysTblName]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xc4], 0xa
lea edx, [ebp - 0xd0]
mov ecx, 1
mov eax, 0x5ae324
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x144]
mov eax, dword [esi]
call fcn.005a744c
test al, al
je 0x5adfb7
jmp 0x5adfa2
mov eax, dword [ebx + 0x38]
xor edx, edx
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov eax, dword [esi]
mov eax, dword [eax + 0x468]
call sub.vcl170.bpl__Vcl_Comctrls_TCustomTabControl_GetTabs_qqrv
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
test eax, eax
jge 0x5adf95
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0x11
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CEmpty]
mov eax, dword [eax]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xc4], 0xa
lea edx, [ebp - 0xd0]
mov ecx, 1
mov eax, 0x5ae18c
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov eax, dword [ebp - 0x14c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x468]
call sub.vcl170.bpl__Vcl_Comctrls_TCustomTabControl_GetTabs_qqrv
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esi]
mov eax, dword [eax + 0x894]
call sub.dbrtl170.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [esi]
mov ebx, dword [eax + 0x894]
cmp byte [ebx + 0xa5], 0
je 0x5adf0d
mov ebx, 0x5ad204
mov edx, ebx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov eax, dword [esi]
mov eax, dword [eax + 0x434]
call sub.vcl170.bpl__Vcl_Comctrls_TCustomTabControl_GetTabs_qqrv
mov edx, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov edx, ebx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov eax, dword [esi]
mov eax, dword [eax + 0x42c]
call sub.vcl170.bpl__Vcl_Comctrls_TCustomTabControl_GetTabs_qqrv
mov edx, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp + 8]
push eax
call fcn.005acec4
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ae037
mov eax, dword [ebp - 0x48]
call sub.rtl170.bpl__System_TObject_Free_qqrv
mov eax, dword [ebp - 0x40]
call sub.rtl170.bpl__System_TObject_Free_qqrv
mov eax, dword [ebp - 0x44]
call sub.rtl170.bpl__System_TObject_Free_qqrv
ret