Function at 0x41b6bf4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x41b6bfc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41b70a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e8]
xor edx, edx
call sub.dbrtl60.bpl__Db_TDataSource_SetDataSet_qqrp11Db_TDataSet
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
xor edx, edx
call sub.dbrtl60.bpl__Db_TDataSource_SetDataSet_qqrp11Db_TDataSet
xor eax, eax
push ebp
push 0x41b7077
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x41b6c55
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x500]
call sub.dbrtl60.bpl__Db_TDataSet_Delete_qqrv
mov al, byte [0x41b70b8]
push eax
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5b4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__System__VarFromLStr_qqrr14System_Variantx17System_AnsiString
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x500]
mov edx, 0x41b70c4
mov ebx, dword [eax]
call dword [ebx + 0x240]
test al, al
jne 0x41b6c47
mov eax, dword [sym.imp.vcl60.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl60.bpl__Forms_TApplication_ProcessMessages_qqrv
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x438]
mov edx, dword [eax]
call dword [edx + 0x44]
test al, al
je 0x41b6e85
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x434]
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
push 0
call sub.VEDatasets.bpl__Vedataset_Connection_qqrv
mov edx, eax
mov ecx, 0x41b70d4
mov eax, dword [0x4199340]
call fcn.0419a298
mov esi, eax
jmp 0x41b6e6c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x500]
call sub.dbrtl60.bpl__Db_TDataSet_Append_qqrv
push 1
push 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x500]
mov edx, esi
mov eax, dword [0x4199340]
call fcn.0419a7dc
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5b4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5b0]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x534]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x54]
fstp qword [ebp - 0x20]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x448]
mov edx, dword [eax]
call dword [edx + 0x54]
fmul qword [ebp - 0x20]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x514]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x54]
fstp qword [ebp - 0x20]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x448]
mov edx, dword [eax]
call dword [edx + 0x54]
fmul qword [ebp - 0x20]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x51c]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x54]
fstp qword [ebp - 0x20]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x448]
mov edx, dword [eax]
call dword [edx + 0x54]
fmul qword [ebp - 0x20]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x518]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x54]
fstp qword [ebp - 0x20]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x448]
mov edx, dword [eax]
call dword [edx + 0x54]
fmul qword [ebp - 0x20]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5b8]
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5d8]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x524]
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5e0]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x500]
mov edx, dword [eax]
call dword [edx + 0x248]
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_Next_qqrv
cmp byte [esi + 0xa1], 0
je 0x41b6cee
mov eax, esi
call sub.rtl60.bpl__System_TObject_Free_qqrv
jmp 0x41b703b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x434]
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
push 0
call sub.VEDatasets.bpl__Vedataset_Connection_qqrv
mov edx, eax
mov ecx, 0x41b7114
mov eax, dword [0x4199340]
call fcn.0419a298
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x500]
call sub.dbrtl60.bpl__Db_TDataSet_Append_qqrv
push 1
push 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x500]
mov edx, esi
mov eax, dword [0x4199340]
call fcn.0419a7dc
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5b4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5b0]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x448]
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x534]
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x514]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x54]
fstp qword [ebp - 0x20]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x448]
mov edx, dword [eax]
call dword [edx + 0x54]
fmul qword [ebp - 0x20]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x51c]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x54]
fstp qword [ebp - 0x20]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x448]
mov edx, dword [eax]
call dword [edx + 0x54]
fmul qword [ebp - 0x20]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x518]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x54]
fstp qword [ebp - 0x20]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x448]
mov edx, dword [eax]
call dword [edx + 0x54]
fmul qword [ebp - 0x20]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x5dc]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x54]
fstp qword [ebp - 0x20]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x448]
mov edx, dword [eax]
call dword [edx + 0x54]
fmul qword [ebp - 0x20]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5b8]
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5d8]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x500]
mov edx, dword [eax]
call dword [edx + 0x248]
mov eax, esi
call sub.rtl60.bpl__System_TObject_Free_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b707e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x428]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e8]
call sub.dbrtl60.bpl__Db_TDataSource_SetDataSet_qqrp11Db_TDataSet
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x500]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
call sub.dbrtl60.bpl__Db_TDataSource_SetDataSet_qqrp11Db_TDataSet
ret