Function at 0x41b8f68
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x41b9169
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov edx, 0x41b9180
mov eax, dword [esi + 0x3f8]
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
mov ecx, dword [esi + 0x940]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x18], 0
mov ecx, dword [esi + 0x938]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x10], 0
mov edx, dword [esi + 0x934]
mov dword [ebp - 0xc], edx
mov byte [ebp - 8], 0
lea eax, [ebp - 0x24]
push eax
push 3
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [esi + 0x93c]
mov edx, 0x41b918c
mov eax, dword [0x419960c]
call fcn.0419a3e0
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x3fc]
mov eax, dword [eax + 0x2b4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [esi + 0x3fc]
call sub.VEDatasets.bpl__Vedataset_TVEDataset_ParseSqlString_qqroiii
mov eax, dword [esi + 0x3fc]
call sub.dbrtl60.bpl__Db_TDataSet_First_qqrv
jmp 0x41b9138
mov edx, 0x41b92e0
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
mov edi, eax
mov edx, 0x41b92f4
mov eax, dword [esi + 0x3fc]
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
add edi, eax
mov eax, dword [esi + 0x364]
call sub.dbrtl60.bpl__Db_TDataSet_Append_qqrv
push 0
mov ecx, 0x41b9180
mov edx, dword [esi + 0x364]
mov eax, dword [esi + 0x3fc]
call fcn.041a6138
mov edx, 0x41b9308
mov eax, dword [esi + 0x3fc]
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
or eax, eax
je 0x41b90e6
mov edx, 0x41b9308
mov eax, dword [esi + 0x3fc]
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fstp xword [ebp - 0x34]
wait
mov edx, 0x41b931c
mov eax, dword [esi + 0x3fc]
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x54]
fld xword [ebp - 0x34]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
mov al, 0xfe
call sub.rtl60.bpl__Math_SimpleRoundTo_qqrxdxzc
sub esp, 8
fstp qword [esp]
wait
mov eax, dword [esi + 0x37c]
mov edx, dword [eax]
call dword [edx + 0xa4]
mov edx, edi
mov eax, dword [esi + 0x380]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov edx, 0x41b9330
mov eax, dword [esi + 0x3fc]
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x38]
mov eax, dword [esi + 0x384]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov eax, dword [esi + 0x364]
mov edx, dword [eax]
call dword [edx + 0x248]
mov eax, dword [esi + 0x3fc]
call sub.dbrtl60.bpl__Db_TDataSet_Next_qqrv
mov ebx, dword [esi + 0x3fc]
cmp byte [ebx + 0xa1], 0
je 0x41b9024
pop edx
pop eax
pop ecx
xor eax, eax
mov dword fs:[eax], edx
push 0x41b9170
lea eax, [ebp - 0x38]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret