Function at 0x41e6818
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1f
push 0
push 0
dec ecx
jne 0x41e6820
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41e703b
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x41e6e63
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
mov eax, ebx
call fcn.041e4abc
cmp dword [ebp - 4], 1
jne 0x41e6864
mov edi, 0x65
jmp 0x41e6869
mov edi, 0x15
lea eax, [ebp - 0x14]
push eax
mov esi, dword [ebx + 0x3b0]
mov eax, dword [esi + 0x2cc]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, ebx
call fcn.041e2b60
lea edx, [ebp - 0x28]
call fcn.0419fb78
mov eax, dword [ebp - 0x28]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [esi + 0x2c8]
mov edx, 0x41e7054
mov eax, dword [0x419a734]
call fcn.0419b348
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x50c]
mov eax, dword [0x419a734]
call fcn.0419b038
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov esi, eax
cmp esi, 1
jge 0x41e68ea
mov esi, 1
mov eax, dword [ebx + 0x338]
mov edx, dword [eax]
call dword [edx + 0x14c]
test eax, eax
jle 0x41e6e55
push 0x41e7090
push 0
push 0
call sub.rtl60.bpl__Sysutils_Date_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
mov ecx, esi
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.041ac324
lea edx, [ebp - 0x30]
mov eax, dword [0x4203a78]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov dword [eax + 0x60], esi
mov eax, dword [ebx + 0x338]
call sub.dbrtl60.bpl__Db_TDataSet_First_qqrv
jmp 0x41e6ca8
mov eax, dword [ebx + 0x338]
mov edx, 0x41e70a0
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebx + 0x338]
mov edx, 0x41e70b0
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff8
fstp qword [esp]
wait
push 0
push 0
push 0
push 0
push 0
push 1
mov eax, edi
mov edx, 0x41e70c4
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
mov ecx, esi
mov edx, 0x41e70cc
call fcn.041ad344
lea edx, [ebp - 0x38]
mov eax, dword [0x4203a78]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jle 0x41e6c31
lea edx, [ebp - 0x44]
mov eax, dword [0x4203a78]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
push eax
lea edx, [ebp - 0x4c]
mov eax, dword [0x4203a78]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x3c]
pop edx
mov edi, dword [eax]
call dword [edi + 0x24]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov dword [eax + 0x90], esi
mov eax, dword [ebx + 0x338]
mov edx, 0x41e70f4
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
lea edx, [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 0x64]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x6c]
xor edx, edx
mov cl, 1
call sub.rtl60.bpl__System__VarFromInt_qqrr14System_Variantxixi
lea edx, [ebp - 0x6c]
pop eax
call sub.rtl60.bpl__System__VarCmpGT_qqrrx14System_Variantt1
jle 0x41e6ada
lea edx, [ebp - 0x78]
mov eax, dword [0x4203a78]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x74]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
push eax
lea edx, [ebp - 0x80]
mov eax, dword [0x4203a78]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x7c]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x70]
pop edx
mov edi, dword [eax]
call dword [edi + 0x24]
mov eax, dword [ebp - 0x70]
mov edx, dword [eax]
call dword [edx + 0x1c]
add eax, 0x44
push eax
mov eax, dword [ebx + 0x338]
mov edx, 0x41e70f4
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
pop edx
mov dword [edx], eax
lea edx, [ebp - 0x8c]
mov eax, dword [0x4203a78]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x88]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
push eax
lea edx, [ebp - 0x94]
mov eax, dword [0x4203a78]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x94]
lea edx, [ebp - 0x90]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x84]
pop edx
mov edi, dword [eax]
call dword [edi + 0x24]
mov eax, dword [ebp - 0x84]
mov edx, dword [eax]
call dword [edx + 0x1c]
add eax, 0x40
push eax
mov eax, dword [ebx + 0x338]
mov edx, 0x41e7108
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
lea edx, [ebp - 0x98]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x98]
pop eax
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
lea edx, [ebp - 0xa4]
mov eax, dword [0x4203a78]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0xa0]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
push eax
lea edx, [ebp - 0xac]
mov eax, dword [0x4203a78]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xa8]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0x9c]
pop edx
mov edi, dword [eax]
call dword [edi + 0x24]
mov eax, dword [ebp - 0x9c]
mov edx, dword [eax]
call dword [edx + 0x1c]
add eax, 0xe0
push eax
mov eax, dword [ebx + 0x338]
mov edx, 0x41e711c
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
lea edx, [ebp - 0xb0]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0xb0]
pop eax
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov eax, dword [ebx + 0x378]
mov edx, dword [eax]
call dword [edx + 0x54]
fadd qword [ebx + 0x538]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, ebx
call fcn.041e4abc
mov eax, dword [ebx + 0x440]
mov edx, dword [eax + 0x38]
inc edx
call sub.JVCL200_R60.bpl__Jvprogressdlg_TJvProgressDlg_SetValue_qqrxi
push 1
lea eax, [ebp - 0xb4]
push eax
mov edi, dword [ebx + 0x440]
mov eax, dword [edi + 0x38]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 0xc0], 0
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 0xb8], 0
lea ecx, [ebp - 0xc4]
mov edx, 0x41e712c
mov eax, dword [0x419a734]
call fcn.0419b1c0
mov edx, dword [ebp - 0xb4]
mov eax, edi
call sub.JVCL200_R60.bpl__Jvprogressdlg_TJvProgressDlg_SetText_qqrx17System_AnsiString
mov eax, dword [sym.imp.vcl60.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl60.bpl__Forms_TApplication_ProcessMessages_qqrv
mov eax, dword [ebx + 0x338]
call sub.dbrtl60.bpl__Db_TDataSet_Next_qqrv
mov edi, dword [ebx + 0x338]
cmp byte [edi + 0xa1], 0
je 0x41e6956
lea edx, [ebp - 0xcc]
mov eax, dword [0x4203a78]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0xcc]
lea edx, [ebp - 0xc8]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0xc8]
mov edx, dword [eax]
call dword [edx + 0x1c]
add eax, 0x70
push eax
mov eax, ebx
call fcn.041e2b60
lea edx, [ebp - 0xd0]
call fcn.0419fbcc
mov edx, dword [ebp - 0xd0]
pop eax
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
lea edx, [ebp - 0xd8]
mov eax, dword [0x4203a78]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0xd8]
lea edx, [ebp - 0xd4]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0xd4]
mov edx, dword [eax]
call dword [edx + 0x1c]
add eax, 0x74
push eax
mov eax, ebx
call fcn.041e2b60
lea edx, [ebp - 0xdc]
call fcn.0419fb78
mov edx, dword [ebp - 0xdc]
pop eax
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
lea edx, [ebp - 0xe4]
mov eax, dword [0x4203a78]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0xe4]
lea edx, [ebp - 0xe0]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0xe0]
mov edx, dword [eax]
call dword [edx + 0x1c]
add eax, 0x134
push eax
mov eax, ebx
call fcn.041e2b60
call fcn.0419fcec
pop edx
mov dword [edx], eax
lea edx, [ebp - 0xec]
mov eax, dword [0x4203a78]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0xec]
lea edx, [ebp - 0xe8]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0xe8]
mov edx, dword [eax]
call dword [edx + 0x1c]
add eax, 0x40
push eax
mov eax, dword [ebx + 0x4b8]
call sub.RxCtl6.bpl__Curredit_TCustomNumEdit_GetValue_qqrv
pop eax
fstp qword [eax]
wait
lea edx, [ebp - 0xf4]
mov eax, dword [0x4203a78]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0xf4]
lea edx, [ebp - 0xf0]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0xf0]
mov edx, dword [eax]
call dword [edx + 0x1c]
add eax, 0x7c
mov edx, 0x41e7160
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
lea edx, [ebp - 0xfc]
mov eax, dword [0x4203a78]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0xfc]
lea edx, [ebp - 0xf8]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0xf8]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov byte [eax + 0x21], 0
push 0
push 0
call fcn.041ad0a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e6e6a
ret