Function at 0x5aec7c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x32
push 0
push 0
dec ecx
jne 0x5aec84
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call sub.rtl170.bpl__System__UStrAddRef_qqrpv
lea eax, [ebp - 0x2c]
mov edx, dword [sym.imp.PQLibPack17.bpl___xp_20Sysfkts_TTblNameInfo]
call sub.rtl170.bpl__System__InitializeRecord_qqrpvt1
xor eax, eax
push ebp
push 0x5afd49
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
cmp byte [eax + 0x200], 0
jne 0x5aecd3
lea eax, [ebp - 8]
mov edx, 0x5afd68
call sub.rtl170.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x890]
mov edx, dword [eax]
call dword [edx + 0x48]
test al, al
je 0x5aecfa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa5c]
mov edx, dword [ebp - 8]
call sub.rtl170.bpl__System_Sysutils_CompareText_qqrx20System_UnicodeStringt1
test eax, eax
je 0x5aecfe
xor eax, eax
jmp 0x5aed00
mov al, 1
mov byte [ebp - 0x2d], al
push 3
push 0
mov eax, 0x5afd84
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0x11
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa5c]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0x11
lea ecx, [ebp - 0x68]
mov dl, 1
movzx eax, byte [ebp - 0x2d]
call sub.rtl170.bpl__System_Sysutils_BoolToStr_qqroo
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0x11
lea ecx, [ebp - 0x64]
mov edx, 0x5afd9c
mov eax, dword [ebp - 4]
call fcn.005b1a88
cmp byte [ebp - 0x2d], 0
jne 0x5afcc3
mov eax, dword [ebp - 8]
call sub.rtl170.bpl__System__UStrLen_qqrx20System_UnicodeString
test eax, eax
jle 0x5afcc3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x568]
xor edx, edx
call sub.vcl170.bpl__Vcl_Extctrls_TTimer_SetEnabled_qqro
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CColYellowLime]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0x3fc]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x29c]
mov edx, 1
call sub.TMSMenusDXE3.bpl__Advofficestatusbar_TAdvOfficeStatusPanels_GetItem_qqri
push eax
lea eax, [ebp - 0x6c]
mov edx, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CBoolChar]
movzx edx, word [edx]
call sub.rtl170.bpl__System__UStrFromWChar_qqrr20System_UnicodeStringb
mov edx, dword [ebp - 0x6c]
pop eax
call sub.TMSMenusDXE3.bpl__Advofficestatusbar_TAdvOfficeStatusPanel_SetText_qqrx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x890]
mov edx, dword [eax]
call dword [edx + 0x48]
test al, al
je 0x5aeddd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x890]
call sub.dbrtl170.bpl__Data_Db_TCustomConnection_Close_qqrv
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
mov eax, dword [eax + 0x29c]
xor edx, edx
call sub.TMSMenusDXE3.bpl__Advofficestatusbar_TAdvOfficeStatusPanels_GetItem_qqri
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xa5c]
call sub.TMSMenusDXE3.bpl__Advofficestatusbar_TAdvOfficeStatusPanel_SetText_qqrx20System_UnicodeString
xor eax, eax
push ebp
push 0x5afc02
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 5
call sub.PQLibPack17.bpl__Sysfkts_Wait_ms_qqrxui
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 - 0x38], eax
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 - 0x34], eax
mov dl, 1
mov eax, dword [ebp - 0x34]
call sub.rtl170.bpl__System_Classes_TStringList_SetSorted_qqro
xor edx, edx
mov eax, dword [ebp - 0x34]
call sub.rtl170.bpl__System_Classes_TStringList_SetCaseSensitive_qqrxo
xor eax, eax
push ebp
push 0x5af7e4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff000018
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0x11
lea edx, [ebp - 0x78]
xor ecx, ecx
mov eax, 0x5afde0
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x70]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.005b60d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
mov eax, dword [eax + 0x29c]
xor edx, edx
call sub.TMSMenusDXE3.bpl__Advofficestatusbar_TAdvOfficeStatusPanels_GetItem_qqri
mov edx, dword [ebp - 8]
call sub.TMSMenusDXE3.bpl__Advofficestatusbar_TAdvOfficeStatusPanel_SetText_qqrx20System_UnicodeString
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
mov eax, dword [eax + 0xe0]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 8]
call dword [0x5e5b08]
test al, al
je 0x5af77b
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 8]
mov edx, 0x5afd84
mov eax, dword [ebp - 4]
call fcn.005a6ec0
xor eax, eax
push ebp
push 0x5af728
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x890]
call sub.dbrtl170.bpl__Data_Db_TCustomConnection_Open_qqrv
mov eax, dword [ebp - 4]
add eax, 0xa5c
mov edx, dword [ebp - 8]
call sub.rtl170.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.005a7684
mov eax, dword [ebp - 0x34]
call sub.PQLibPack17.bpl__Sysfkts_RemoveOldTables_qqrp23System_Classes_TStrings
movzx ebx, word [0x5afdf8]
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
cmp byte [eax + 0x1f4], 0
je 0x5aef32
or bx, 0x80
mov word [ebp - 0x44], bx
xor ebx, ebx
mov esi, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CPQSysTblName]
mov eax, ebx
cmp al, 0xf
ja 0x5aef4c
and eax, 0x7f
bt word [ebp - 0x44], ax
jae 0x5aef82
lea eax, [ebp - 0x7c]
mov edx, dword [esi]
call sub.rtl170.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x58]
test eax, eax
jge 0x5aef82
mov edx, ebx
lea ecx, [ebp - 0x80]
mov eax, dword [sym.imp.PQLibPack17.bpl__Sqlunit_SQLSyntax]
mov eax, dword [eax]
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 4]
call fcn.005a723c
inc ebx
add esi, 4
cmp bl, 0x10
jne 0x5aef3e
push 0x5afe08
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa5c]
push eax
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
mov eax, dword [eax + 0xdc]
mov ecx, 0x5afe2c
mov edx, 0x5afe48
call dword [0x5e5b34]
push ebp
call fcn.005ae574
pop ecx
push ebp
call fcn.005ae7ac
pop ecx
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
mov eax, dword [eax + 0x1c8]
push eax
push 0x5afe64
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
mov ecx, dword [ecx + 0x1a0]
mov edx, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
mov edx, dword [edx + 0xd4]
mov eax, dword [sym.imp.PQLibPack17.bpl__Sqlunit_SQLSyntax]
mov eax, dword [eax]
call sub.PQLibPack17.bpl__Sqlunit_TSQLMySQL_GetAcknowledge_qqr20System_UnicodeStringt1t1t1
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 4]
call fcn.005a744c
mov ebx, eax
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
mov eax, dword [eax + 0x1a0]
push eax
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
mov eax, dword [eax + 0x1c8]
push eax
push 0x5afe64
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
mov eax, dword [eax + 0x23c]
push eax
lea eax, [ebp - 0x88]
push eax
mov edx, ebx
xor dl, 1
mov ecx, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
mov ecx, dword [ecx + 0xd4]
mov eax, dword [sym.imp.PQLibPack17.bpl__Sqlunit_SQLSyntax]
mov eax, dword [eax]
call sub.PQLibPack17.bpl__Sqlunit_TSQLMySQL_SetAcknowledge_qqro20System_UnicodeStringt2t2t2t2
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 4]
call fcn.005a723c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb0c]
mov edx, dword [eax]
call dword [edx + 0x48]
lea eax, [ebp - 0x8c]
push eax
lea edx, [ebp - 0xa8]
mov al, 0x1d
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 0xa0], 0x11
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CPQSysTblName]
mov eax, dword [eax]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x98], 0xa
lea edx, [ebp - 0xac]
mov al, 0x1d
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0x11
lea edx, [ebp - 0xa4]
mov ecx, 2
mov eax, 0x5afe80
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 4]
call fcn.005a744c
test al, al
je 0x5af148
jmp 0x5af136
mov eax, dword [ebx + 0x38]
xor edx, edx
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 0xb0]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb0c]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x894]
call sub.dbrtl170.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x894]
cmp byte [ebx + 0xa5], 0
je 0x5af0fc
lea eax, [ebp - 0xb4]
push eax
lea edx, [ebp - 0x118]
mov al, 0x40
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x114], eax
mov byte [ebp - 0x110], 0x11
lea edx, [ebp - 0x11c]
mov al, 0x41
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x10c], eax
mov byte [ebp - 0x108], 0x11
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CPQSysTblName]
mov eax, dword [eax + 8]
mov dword [ebp - 0x104], eax
mov byte [ebp - 0x100], 0xa
lea edx, [ebp - 0x120]
mov al, 0x3d
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0xfc], eax
mov byte [ebp - 0xf8], 0x11
mov eax, 0x5afecc
mov dword [ebp - 0xf4], eax
mov byte [ebp - 0xf0], 0x11
lea edx, [ebp - 0x124]
mov eax, dword [sym.imp.PQLibPack17.bpl__Sqlunit_SQLSyntax]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xe8]
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0xec], eax
mov byte [ebp - 0xe8], 0x11
lea edx, [ebp - 0x128]
mov al, 0x3e
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0xe4], eax
mov byte [ebp - 0xe0], 0x11
mov eax, 0x5afecc
mov dword [ebp - 0xdc], eax
mov byte [ebp - 0xd8], 0x11
lea edx, [ebp - 0x12c]
mov eax, dword [sym.imp.PQLibPack17.bpl__Sqlunit_SQLSyntax]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xe8]
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0xd4], eax
mov byte [ebp - 0xd0], 0x11
lea edx, [ebp - 0x130]
mov al, 0x3f
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0xcc], eax
mov byte [ebp - 0xc8], 0x11
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CGeoCordi]
mov eax, dword [eax]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 0xc0], 0xa
lea edx, [ebp - 0x134]
mov al, 0x40
call sub.PQLibPack17.bpl__Sysfkts_GetStdFldNam_qqrx15Sysfkts_TStdFld
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 0xb8], 0x11
lea edx, [ebp - 0x114]
mov ecx, 0xb
mov eax, 0x5afee4
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 4]
call fcn.005a744c
test al, al
je 0x5af392
jmp 0x5af37c
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebx + 0x38]
xor edx, edx
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 0x14c]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x148], eax
mov byte [ebp - 0x144], 0x11
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x894]
mov eax, dword [eax + 0x38]
mov edx, 1
call sub.dbrtl170.bpl__Data_Db_TFields_GetField_qqri
lea edx, [ebp - 0x150]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x140], eax
mov byte [ebp - 0x13c], 0x11
lea edx, [ebp - 0x148]
mov ecx, 1
mov eax, 0x5aff7c
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc38]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x894]
call sub.dbrtl170.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x894]
cmp byte [ebx + 0xa5], 0
je 0x5af2dc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc3c]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x96c]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x408]
call sub.vcl170.bpl__Vcl_Comctrls_TPageControl_GetPageCount_qqrv
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x974]
dec ebx
test ebx, ebx
jl 0x5af3ea
inc ebx
xor esi, esi
push ebp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x408]
mov edx, esi
call sub.vcl170.bpl__Vcl_Comctrls_TPageControl_GetPage_qqri
call fcn.005ae36c
pop ecx
inc esi
dec ebx
jne 0x5af3cf
call sub.rtl170.bpl__System_Sysutils_Now_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9dc]
neg eax
add eax, 5
cdq
push edx
push eax
call sub.rtl170.bpl__System_Dateutils_IncSecond_qqrx16System_TDateTimexj
mov eax, dword [ebp - 4]
fstp qword [eax + 0xab8]
wait
mov eax, dword [ebp - 4]
mov dword [eax + 0xaf8], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [eax + 0xafc], 0xffffffff
mov eax, dword [ebp - 4]
add eax, 0xb00
mov edx, 0x5aff94
call sub.rtl170.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x428]
mov eax, dword [eax + 0x2b4]
call sub.vcl170.bpl__Vcl_Comctrls_TListItems_Clear_qqrv
call sub.rtl170.bpl__System_Sysutils_Now_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9e8]
neg eax
add eax, 5
cdq
push edx
push eax
call sub.rtl170.bpl__System_Dateutils_IncSecond_qqrx16System_TDateTimexj
mov eax, dword [ebp - 4]
fstp qword [eax + 0xae0]
wait
mov eax, dword [ebp - 4]
mov dword [eax + 0xae8], 0xffffffff
mov eax, dword [ebp - 4]
add eax, 0xaec
mov edx, 0x5aff94
call sub.rtl170.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x430]
mov eax, dword [eax + 0x2b4]
call sub.vcl170.bpl__Vcl_Comctrls_TListItems_Clear_qqrv
call sub.rtl170.bpl__System_Sysutils_Now_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9ec]
neg eax
add eax, 5
cdq
push edx
push eax
call sub.rtl170.bpl__System_Dateutils_IncSecond_qqrx16System_TDateTimexj
mov eax, dword [ebp - 4]
fstp qword [eax + 0xad0]
wait
mov eax, dword [ebp - 4]
mov dword [eax + 0xad8], 0xffffffff
mov eax, dword [ebp - 4]
add eax, 0xadc
mov edx, 0x5aff94
call sub.rtl170.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x464]
mov edx, dword [eax]
call dword [edx + 0x10c]
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
cmp byte [eax + 0x1f3], 0
je 0x5af545
lea eax, [ebp - 0x154]
mov edx, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CPQSysTblName]
mov edx, dword [edx + 0x18]
call sub.rtl170.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x58]
test eax, eax
jge 0x5af549
xor eax, eax
jmp 0x5af54b
mov al, 1
mov edx, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
mov byte [edx + 0x1f3], al
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
cmp byte [eax + 0x1f5], 0
je 0x5af5b1
lea eax, [ebp - 0x158]
mov edx, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CPQSysTblName]
mov edx, dword [edx + 0x20]
call sub.rtl170.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x158]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x58]
test eax, eax
jl 0x5af5b1
lea eax, [ebp - 0x15c]
mov edx, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CPQSysTblName]
mov edx, dword [edx + 0x24]
call sub.rtl170.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x58]
test eax, eax
jge 0x5af5b5
xor eax, eax
jmp 0x5af5b7
mov al, 1
mov edx, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
mov byte [edx + 0x1f5], al
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
mov byte [eax + 0x18e], 0
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
mov byte [eax + 0x18d], 0
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x5af6eb
inc ebx
xor esi, esi
lea ecx, [ebp - 0xc]
mov edx, esi
mov eax, dword [ebp - 0x34]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xc]
call sub.PQLibPack17.bpl__Sysfkts_AnalyseTblType_qqr20System_UnicodeString
mov byte [ebp - 0x39], al
cmp byte [ebp - 0x39], 0xa
jne 0x5af620
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xaa0]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
cmp byte [eax + 0x18c], 0
jne 0x5af638
cmp byte [ebp - 0x39], 0xd
je 0x5af638
xor eax, eax
jmp 0x5af63a
mov al, 1
mov edx, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
mov byte [edx + 0x18c], al
cmp byte [ebp - 0x39], 0xf
jne 0x5af6e3
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call sub.PQLibPack17.bpl__Sysfkts_AnalyseTblName_qqr20System_UnicodeString
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
cmp byte [eax + 0x18e], 0
jne 0x5af677
movzx eax, byte [ebp - 0x1b]
add al, 0xd2
sub al, 2
jb 0x5af677
xor eax, eax
jmp 0x5af679
mov al, 1
mov edx, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
mov byte [edx + 0x18e], al
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
cmp byte [eax + 0x18d], 0
jne 0x5af6a7
movzx eax, byte [ebp - 0x1b]
sub al, 2
je 0x5af6a7
sub al, 0xf
je 0x5af6a7
sub al, 0xd
je 0x5af6a7
xor eax, eax
jmp 0x5af6a9
mov al, 1
mov edx, dword [sym.imp.PQLibPack17.bpl__Sysfkts_FGlobal]
mov byte [edx + 0x18d], al
mov eax, dword [ebp - 0x2c]
call sub.rtl170.bpl__System__UStrLen_qqrx20System_UnicodeString
test eax, eax
jle 0x5af6e3
lea edx, [ebp - 0x160]
mov eax, dword [ebp - 0x2c]
call sub.rtl170.bpl__System_Sysutils_UpperCase_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc3c]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x5af5f1
push ebp
mov eax, dword [ebp - 0x34]
call fcn.005ad334
pop ecx
mov eax, dword [ebp - 4]
call fcn.005acbb4
push ebp
call fcn.005ad08c
pop ecx
mov eax, dword [ebp - 4]
call fcn.005c7270
mov eax, dword [ebp - 4]
call fcn.005c75d0
push ebp
call fcn.005ae918
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5af7c6
mov eax, dword [sym.imp.PQLibPack17.bpl__Sysfkts_CColErr]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x164]
push eax
lea edx, [ebp - 0x168]
mov eax, 0x59e60c
call sub.rtl170.bpl__System_LoadResString_qqrp20System_TResStringRec
mov eax, dword [ebp - 0x168]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0x11
lea edx, [ebp - 0x78]
xor ecx, ecx
pop eax
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x164]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.005b60d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5af7eb
mov eax, dword [ebp - 0x34]
call sub.rtl170.bpl__System_TObject_Free_qqrv
mov eax, dword [ebp - 0x38]
call sub.rtl170.bpl__System_TObject_Free_qqrv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5afd50
lea eax, [ebp - 0x190]
mov edx, 4
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x17c]
mov edx, 0xd
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x138]
mov edx, 9
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0xb4]
mov edx, 4
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x8c]
mov edx, 5
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x70]
mov edx, 3
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x2c]
mov edx, dword [sym.imp.PQLibPack17.bpl___xp_20Sysfkts_TTblNameInfo]
call sub.rtl170.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 0xc]
mov edx, 2
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
ret