Function at 0x5a7054
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x30
push 0
push 0
dec ecx
jne 0x5a705c
push ecx
push ebx
xor eax, eax
push ebp
push 0x5a80b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov eax, dword [eax + 0x2f0]
test eax, eax
jle 0x5a720d
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x38], 1
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 0x38]
xor edx, edx
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 0x38]
mov edx, 1
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 0x38]
mov edx, 2
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 0x38]
mov edx, 3
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 0x38]
mov edx, 4
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 0x38]
mov edx, 5
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 0x38]
mov edx, 6
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 0x38]
mov edx, 7
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 0x38]
mov edx, 8
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 0x38]
mov edx, 9
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 0x38]
mov edx, 0xa
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 0x38]
mov edx, 0xb
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 0x38]
mov edx, 0xc
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
inc dword [ebp - 0x38]
dec dword [ebp - 0x60]
jne 0x5a7098
lea edx, [ebp - 0x70]
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa70]
mov eax, dword [eax + 0x304]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 4]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov al, byte [0x5a80c4]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
mov edx, dword [ebp - 4]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x78]
mov ecx, 0x5a80d4
mov edx, 0x5a80e8
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov edx, dword [ebp - 0x74]
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa70]
mov eax, dword [eax + 0x304]
mov ecx, dword [eax]
call dword [ecx + 0x30]
xor eax, eax
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x7c]
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa70]
mov eax, dword [eax + 0x304]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x7c]
mov ecx, 1
mov eax, 0x5a80fc
call sub.rtl260.bpl__System_Pos_qqrx20System_UnicodeStringt1i
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jle 0x5a762c
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x80]
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa70]
mov eax, dword [eax + 0x304]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x80]
mov ecx, 0x400
mov edx, dword [ebp - 0x40]
call sub.rtl260.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov ecx, 1
mov edx, dword [ebp - 0x4c]
mov eax, 0x5a8128
call sub.rtl260.bpl__System_Pos_qqrx20System_UnicodeStringt1i
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x40]
mov edx, 1
mov eax, dword [ebp - 0x4c]
call sub.rtl260.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov ecx, 1
mov edx, dword [ebp - 0x4c]
mov eax, 0x5a813c
call sub.rtl260.bpl__System_Pos_qqrx20System_UnicodeStringt1i
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 0x4c]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov edx, dword [ebp - 0x84]
lea ecx, [ebp - 0x50]
mov eax, 0x5a8158
call fcn.005ac770
mov al, byte [0x5a80c4]
push eax
lea eax, [ebp - 0x88]
push eax
xor ecx, ecx
mov edx, 0x5a8170
mov eax, dword [ebp - 0x50]
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x50]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov al, byte [0x5a80c4]
push eax
lea eax, [ebp - 0x8c]
push eax
xor ecx, ecx
mov edx, 0x5a8180
mov eax, dword [ebp - 0x50]
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x50]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov al, byte [0x5a80c4]
push eax
lea eax, [ebp - 0x90]
push eax
xor ecx, ecx
mov edx, 0x5a8190
mov eax, dword [ebp - 0x50]
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov edx, dword [ebp - 0x90]
lea eax, [ebp - 0x50]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x4c]
push eax
mov edx, dword [ebp - 0x40]
add edx, 7
mov ecx, 0x400
mov eax, dword [ebp - 0x4c]
call sub.rtl260.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov ecx, 1
mov edx, dword [ebp - 0x4c]
mov eax, 0x5a813c
call sub.rtl260.bpl__System_Pos_qqrx20System_UnicodeStringt1i
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x94]
mov edx, dword [ebp - 0x4c]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov edx, dword [ebp - 0x94]
lea ecx, [ebp - 0x54]
mov eax, 0x5a8158
call fcn.005ac770
mov al, byte [0x5a80c4]
push eax
lea eax, [ebp - 0x98]
push eax
xor ecx, ecx
mov edx, 0x5a8170
mov eax, dword [ebp - 0x54]
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov edx, dword [ebp - 0x98]
lea eax, [ebp - 0x54]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov al, byte [0x5a80c4]
push eax
lea eax, [ebp - 0x9c]
push eax
xor ecx, ecx
mov edx, 0x5a8180
mov eax, dword [ebp - 0x54]
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov edx, dword [ebp - 0x9c]
lea eax, [ebp - 0x54]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov al, byte [0x5a80c4]
push eax
lea eax, [ebp - 0xa0]
push eax
xor ecx, ecx
mov edx, 0x5a8190
mov eax, dword [ebp - 0x54]
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 0x54]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x4c]
push eax
mov edx, dword [ebp - 0x40]
add edx, 7
mov ecx, 0x400
mov eax, dword [ebp - 0x4c]
call sub.rtl260.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov ecx, 1
mov edx, dword [ebp - 0x4c]
mov eax, 0x5a813c
call sub.rtl260.bpl__System_Pos_qqrx20System_UnicodeStringt1i
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0xa4]
mov edx, dword [ebp - 0x4c]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0x58]
mov eax, 0x5a8158
call fcn.005ac770
mov al, byte [0x5a80c4]
push eax
lea eax, [ebp - 0xa8]
push eax
xor ecx, ecx
mov edx, 0x5a8170
mov eax, dword [ebp - 0x58]
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov edx, dword [ebp - 0xa8]
lea eax, [ebp - 0x58]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov al, byte [0x5a80c4]
push eax
lea eax, [ebp - 0xac]
push eax
xor ecx, ecx
mov edx, 0x5a8180
mov eax, dword [ebp - 0x58]
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov edx, dword [ebp - 0xac]
lea eax, [ebp - 0x58]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov al, byte [0x5a80c4]
push eax
lea eax, [ebp - 0xb0]
push eax
xor ecx, ecx
mov edx, 0x5a8190
mov eax, dword [ebp - 0x58]
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov edx, dword [ebp - 0xb0]
lea eax, [ebp - 0x58]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x50]
call sub.rtl260.bpl__System__UStrLen_qqrx20System_UnicodeString
dec eax
jle 0x5a7580
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x50]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x54]
call sub.rtl260.bpl__System__UStrLen_qqrx20System_UnicodeString
dec eax
jle 0x5a75b6
cmp dword [ebp - 0x5c], 0
jne 0x5a759e
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x54]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x5a75b6
push dword [ebp - 0x5c]
push 0x5a81a0
push dword [ebp - 0x54]
lea eax, [ebp - 0x5c]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 0x58]
call sub.rtl260.bpl__System__UStrLen_qqrx20System_UnicodeString
dec eax
jle 0x5a75ec
cmp dword [ebp - 0x5c], 0
jne 0x5a75d4
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x5a75ec
push dword [ebp - 0x5c]
push 0x5a81a0
push dword [ebp - 0x58]
lea eax, [ebp - 0x5c]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
cmp dword [ebp - 0x5c], 0
je 0x5a762c
lea eax, [ebp - 0x5c]
mov ecx, dword [ebp - 0x5c]
mov edx, 0x5a81b0
call sub.rtl260.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov al, byte [0x5a80c4]
push eax
lea eax, [ebp - 0xb4]
push eax
xor ecx, ecx
mov edx, 0x5a81c0
mov eax, dword [ebp - 0x5c]
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov edx, dword [ebp - 0xb4]
lea eax, [ebp - 0x5c]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa70]
mov eax, dword [eax + 0x304]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5a7f4e
inc eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0xb8]
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa70]
mov eax, dword [eax + 0x304]
mov edx, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0xb8]
lea eax, [ebp - 8]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
lea ecx, [ebp - 0xbc]
mov edx, dword [ebp - 8]
mov eax, 0x5a81d8
call fcn.005ac770
mov edx, dword [ebp - 0xbc]
lea eax, [ebp - 0xc]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
lea ecx, [ebp - 0xc0]
mov edx, dword [ebp - 8]
mov eax, 0x5a81ec
call fcn.005ac770
mov edx, dword [ebp - 0xc0]
lea eax, [ebp - 0x10]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
lea ecx, [ebp - 0xc4]
mov edx, dword [ebp - 8]
mov eax, 0x5a8208
call fcn.005ac770
mov edx, dword [ebp - 0xc4]
lea eax, [ebp - 0x14]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
lea ecx, [ebp - 0xc8]
mov edx, dword [ebp - 8]
mov eax, 0x5a821c
call fcn.005ac770
mov edx, dword [ebp - 0xc8]
lea eax, [ebp - 0x18]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
lea ecx, [ebp - 0xcc]
mov edx, dword [ebp - 8]
mov eax, 0x5a8230
call fcn.005ac770
mov edx, dword [ebp - 0xcc]
lea eax, [ebp - 0x1c]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
lea ecx, [ebp - 0xd0]
mov edx, dword [ebp - 8]
mov eax, 0x5a8248
call fcn.005ac770
mov edx, dword [ebp - 0xd0]
lea eax, [ebp - 0x20]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
lea ecx, [ebp - 0xd4]
mov edx, dword [ebp - 8]
mov eax, 0x5a825c
call fcn.005ac770
mov edx, dword [ebp - 0xd4]
lea eax, [ebp - 0x24]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov al, byte [0x5a80c4]
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xdc]
mov edx, dword [ebp - 0x24]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0xdc]
xor ecx, ecx
mov edx, 0x5a81c0
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov edx, dword [ebp - 0xd8]
lea eax, [ebp - 0x24]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
lea ecx, [ebp - 0xe0]
mov edx, dword [ebp - 8]
mov eax, 0x5a8278
call fcn.005ac770
mov edx, dword [ebp - 0xe0]
lea eax, [ebp - 0x28]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
lea ecx, [ebp - 0xe4]
mov edx, dword [ebp - 8]
mov eax, 0x5a8294
call fcn.005ac770
mov edx, dword [ebp - 0xe4]
lea eax, [ebp - 0x2c]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
lea ecx, [ebp - 0xe8]
mov edx, dword [ebp - 8]
mov eax, 0x5a82a8
call fcn.005ac770
mov edx, dword [ebp - 0xe8]
lea eax, [ebp - 0x30]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
lea ecx, [ebp - 0xec]
mov edx, dword [ebp - 8]
mov eax, 0x5a82c8
call fcn.005ac770
mov edx, dword [ebp - 0xec]
lea eax, [ebp - 0x34]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
lea eax, [ebp - 0x48]
call sub.rtl260.bpl__System__UStrClr_qqrpv
mov eax, dword [ebp - 0x2c]
mov edx, 0x5a82dc
call sub.rtl260.bpl__System__LStrEqual_qqrv
je 0x5a78b6
mov eax, dword [ebp - 0x2c]
mov edx, 0x5a82f4
call sub.rtl260.bpl__System__LStrEqual_qqrv
je 0x5a78b6
mov eax, dword [ebp - 0x2c]
mov edx, 0x5a830c
call sub.rtl260.bpl__System__LStrEqual_qqrv
je 0x5a78b6
mov eax, dword [ebp - 0x2c]
mov edx, 0x5a8328
call sub.rtl260.bpl__System__LStrEqual_qqrv
jne 0x5a7eca
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0xe8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x2c]
mov edx, 0x5a830c
call sub.rtl260.bpl__System__LStrEqual_qqrv
je 0x5a78e8
mov eax, dword [ebp - 0x2c]
mov edx, 0x5a8328
call sub.rtl260.bpl__System__LStrEqual_qqrv
jne 0x5a7a3f
mov eax, dword [ebp - 0x64]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x64]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x64]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5a8340
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x5a8400
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0xf0]
mov edx, dword [ebp - 0x10]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0xf0]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x5a8424
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0xf4]
mov edx, dword [ebp - 0x30]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0xf4]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x64]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x64]
mov edx, dword [eax]
call dword [edx + 0x194]
test eax, eax
jle 0x5a7a30
mov eax, dword [ebp - 0x64]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x64]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x64]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5a8450
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x5a8530
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0xf8]
mov edx, dword [ebp - 0x2c]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0xf8]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x5a8400
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0xfc]
mov edx, dword [ebp - 0x10]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0xfc]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x5a8424
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0x100]
mov edx, dword [ebp - 0x30]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x100]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ExecSQL_qqrv
lea eax, [ebp - 0x48]
mov edx, 0x5a8554
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x5a7a4c
lea eax, [ebp - 0x48]
mov edx, 0x5a856c
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x5a7a4c
lea eax, [ebp - 0x48]
mov edx, 0x5a856c
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x48]
mov edx, 0x5a856c
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x5a7e5a
mov eax, dword [ebp - 0x64]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x64]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x64]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5a8580
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x64]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5a85b4
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x64]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5a864c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x64]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5a86dc
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x64]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5a86f8
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x64]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5a87a0
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x5a883c
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0x104]
mov edx, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x104]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x5a8854
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0x108]
mov edx, dword [ebp - 0x1c]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x108]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
lea eax, [ebp - 0x110]
push eax
mov ecx, 0x1e
mov edx, 1
mov eax, dword [ebp - 0x18]
call sub.rtl260.bpl__System__LStrCopy_qqrx27System__AnsiStringT_us_i0__ii
mov edx, dword [ebp - 0x110]
lea eax, [ebp - 0x10c]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x10c]
push eax
mov edx, 0x5a8874
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
lea eax, [ebp - 0x118]
push eax
mov ecx, 0xf
mov edx, 1
mov eax, dword [ebp - 0x14]
call sub.rtl260.bpl__System__LStrCopy_qqrx27System__AnsiStringT_us_i0__ii
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0x114]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x114]
push eax
mov edx, 0x5a8894
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
lea eax, [ebp - 0x120]
push eax
mov ecx, 0xa
mov edx, 1
mov eax, dword [ebp - 0x1c]
call sub.rtl260.bpl__System__LStrCopy_qqrx27System__AnsiStringT_us_i0__ii
mov edx, dword [ebp - 0x120]
lea eax, [ebp - 0x11c]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x11c]
push eax
mov edx, 0x5a88b4
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
lea eax, [ebp - 0x128]
push eax
mov ecx, 2
mov edx, 0xc
mov eax, dword [ebp - 0x1c]
call sub.rtl260.bpl__System__LStrCopy_qqrx27System__AnsiStringT_us_i0__ii
mov edx, dword [ebp - 0x128]
lea eax, [ebp - 0x124]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x124]
push eax
mov edx, 0x5a88d0
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
lea eax, [ebp - 0x130]
push eax
mov ecx, 2
mov edx, 0xf
mov eax, dword [ebp - 0x1c]
call sub.rtl260.bpl__System__LStrCopy_qqrx27System__AnsiStringT_us_i0__ii
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x12c]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x12c]
push eax
mov edx, 0x5a88ec
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
cmp dword [ebp - 0x5c], 0
jne 0x5a7cd3
lea eax, [ebp - 0x138]
push eax
mov ecx, 0x1f4
mov edx, 1
mov eax, dword [ebp - 0x24]
call sub.rtl260.bpl__System__LStrCopy_qqrx27System__AnsiStringT_us_i0__ii
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 0x134]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x134]
push eax
mov edx, 0x5a8908
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
jmp 0x5a7d62
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x14c]
mov ecx, 0x5a892c
mov edx, dword [ebp - 0x24]
call sub.rtl260.bpl__System__LStrCat3_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__t2
mov edx, dword [ebp - 0x14c]
lea eax, [ebp - 0x148]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0x5c]
call sub.rtl260.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
mov edx, dword [ebp - 0x148]
lea eax, [ebp - 0x144]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x144]
mov ecx, 0x1f4
mov edx, 1
call sub.rtl260.bpl__System__LStrCopy_qqrx27System__AnsiStringT_us_i0__ii
mov edx, dword [ebp - 0x140]
lea eax, [ebp - 0x13c]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x13c]
push eax
mov edx, 0x5a8908
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x5a893c
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 0x20]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x150]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x5a895c
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0x154]
mov edx, dword [ebp - 0x28]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x154]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x5a8530
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0x158]
mov edx, dword [ebp - 0x2c]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x158]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x5a8400
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0x15c]
mov edx, dword [ebp - 0x10]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x15c]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x5a8424
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0x160]
mov edx, dword [ebp - 0x30]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x160]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x5a8980
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0x164]
mov edx, dword [ebp - 0x34]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x164]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ExecSQL_qqrv
lea eax, [ebp - 0x168]
mov edx, dword [ebp - 8]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x168]
push eax
push 0x5a856c
lea eax, [ebp - 0x16c]
mov edx, dword [ebp - 0x14]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x16c]
push eax
lea eax, [ebp - 0x170]
mov edx, dword [ebp - 0x18]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x170]
push eax
lea eax, [ebp - 0x174]
mov edx, dword [ebp - 0x1c]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x174]
pop edx
pop ecx
call fcn.005a89a0
mov eax, dword [ebp - 0x64]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov dword [ebp - 0x44], 0xffffffff
jmp 0x5a7f42
cmp dword [ebp - 0x2c], 0
je 0x5a7f42
mov eax, dword [ebp - 0x14]
call sub.rtl260.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
cmp eax, 5
jle 0x5a7f42
cmp dword [ebp - 0x18], 0
je 0x5a7f42
lea eax, [ebp - 0x178]
mov edx, dword [ebp - 8]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x178]
push eax
push 0x5a8998
lea eax, [ebp - 0x17c]
mov edx, dword [ebp - 0x14]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x17c]
push eax
lea eax, [ebp - 0x180]
mov edx, dword [ebp - 0x18]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x180]
push eax
lea eax, [ebp - 0x184]
mov edx, dword [ebp - 0x1c]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x184]
pop edx
pop ecx
call fcn.005a89a0
inc dword [ebp - 0x38]
dec dword [ebp - 0x60]
jne 0x5a7658
cmp dword [ebp - 0x44], 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x5a7f67
mov eax, dword [0x730bd4]
mov eax, dword [eax]
call fcn.005a3294
jmp 0x5a7f6c
call fcn.005a8e34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a80be
lea eax, [ebp - 0x184]
mov edx, 0xe
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x14c]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x148]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x144]
mov edx, 2
call sub.rtl260.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x13c]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x138]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x134]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x130]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x12c]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x128]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x124]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x120]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x11c]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x118]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x114]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x110]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x10c]
mov edx, 0x1a
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0xa4]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xa0]
mov edx, 3
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x94]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x90]
mov edx, 3
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x84]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x80]
mov edx, 5
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x6c]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x5c]
mov edx, 6
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x34]
mov edx, 0xd
call sub.rtl260.bpl__System__LStrArrayClr_qqrpvi
ret