Function at 0x41c6728
Capabilities:
Contain obfuscated stackstrings
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x37
push 0
push 0
dec ecx
jne 0x41c6730
push ecx
push ebx
push esi
push edi
mov ebx, eax
mov edi, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
xor eax, eax
push ebp
push 0x41c6f6c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x41c6f04
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebx + 0x4d8]
xor ecx, ecx
mov dl, 1
call sub.VEDatasets.bpl__Vedataset_TVEDataset_ParseSqlString_qqroiii
mov eax, dword [ebx + 0x4d8]
call sub.dbrtl60.bpl__Db_TDataSet_First_qqrv
jmp 0x41c6ee7
lea eax, [ebp - 0x10]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x4e4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x20]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x41c6f84
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov edx, dword [ebp - 0x18]
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov eax, dword [0x41997b8]
call fcn.0419aa5c
mov ecx, dword [ebp - 0x14]
mov edx, dword [edi]
mov eax, dword [0x41997b8]
call fcn.0419a2ec
lea eax, [ebp - 0x10]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov esi, eax
test esi, esi
jg 0x41c6d9c
lea eax, [ebp - 0xd4]
push eax
lea edx, [ebp - 0xd8]
mov eax, dword [ebx + 0x4e4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0xd8]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0xb
lea eax, [ebp - 0xdc]
push eax
lea edx, [ebp - 0xe0]
mov eax, dword [ebx + 0x4e8]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0xe0]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xc4], 0xb
lea eax, [ebp - 0xe4]
push eax
lea edx, [ebp - 0xe8]
mov eax, dword [ebx + 0x528]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0xe8]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 0xbc], 0xb
lea eax, [ebp - 0xec]
push eax
lea edx, [ebp - 0xf0]
mov eax, dword [ebx + 0x4f4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0xf0]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 0xb4], 0xb
lea eax, [ebp - 0xf4]
push eax
lea edx, [ebp - 0xf8]
mov eax, dword [ebx + 0x4f0]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0xf8]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 0xac], 0xb
lea eax, [ebp - 0xfc]
push eax
lea edx, [ebp - 0x100]
mov eax, dword [ebx + 0x520]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x100]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 0xa4], 0xb
lea eax, [ebp - 0x104]
push eax
lea edx, [ebp - 0x108]
mov eax, dword [ebx + 0x514]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x108]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xa0], eax
mov byte [ebp - 0x9c], 0xb
lea eax, [ebp - 0x10c]
push eax
lea edx, [ebp - 0x110]
mov eax, dword [ebx + 0x4ec]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x110]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x98], eax
mov byte [ebp - 0x94], 0xb
lea eax, [ebp - 0x114]
push eax
lea edx, [ebp - 0x118]
mov eax, dword [ebx + 0x524]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x118]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x90], eax
mov byte [ebp - 0x8c], 0xb
mov dword [ebp - 0x88], 1
mov byte [ebp - 0x84], 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x120]
call fcn.04192398
mov eax, dword [ebp - 0x120]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0xb
mov dword [ebp - 0x78], 1
mov byte [ebp - 0x74], 0
mov eax, dword [ebx + 0x4f8]
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x124]
mov eax, dword [0x41997b8]
call fcn.04199cc0
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0xb
call sub.rtl60.bpl__Sysutils_Date_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x128]
mov eax, dword [0x41997b8]
call fcn.04199d20
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0xb
mov eax, dword [ebx + 0x6b4]
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x12c]
mov eax, dword [0x41997b8]
call fcn.04199cc0
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0xb
mov eax, dword [ebx + 0x6b8]
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, eax
lea ecx, [ebp - 0x130]
mov eax, dword [0x41997b8]
call fcn.04199f18
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xb
lea eax, [ebp - 0x134]
push eax
lea edx, [ebp - 0x138]
mov eax, dword [ebx + 0x500]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x138]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0xb
lea eax, [ebp - 0x13c]
push eax
lea edx, [ebp - 0x140]
mov eax, dword [ebx + 0x504]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x140]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0xb
lea eax, [ebp - 0x144]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebx + 0x508]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x148]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
lea eax, [ebp - 0x14c]
push eax
lea edx, [ebp - 0x150]
mov eax, dword [ebx + 0x50c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x150]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0xb
lea eax, [ebp - 0x154]
push eax
lea edx, [ebp - 0x158]
mov eax, dword [ebx + 0x510]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x158]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea eax, [ebp - 0x15c]
push eax
lea edx, [ebp - 0x160]
mov eax, dword [ebx + 0x524]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x160]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea eax, [ebp - 0xd0]
push eax
push 0x15
mov esi, dword [ebx + 0x4d8]
mov eax, dword [esi + 0x2cc]
push eax
lea eax, [ebp - 0x164]
push eax
mov ecx, dword [esi + 0x2c8]
mov edx, 0x41c6fbc
mov eax, dword [0x41997b8]
call fcn.0419aa5c
mov ecx, dword [ebp - 0x164]
mov edx, dword [edi]
mov eax, dword [0x41997b8]
call fcn.04199ff0
lea eax, [ebp - 0x174]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x180]
push eax
lea edx, [ebp - 0x184]
mov eax, dword [ebx + 0x4e4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x184]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov ecx, dword [ebp - 0x180]
lea eax, [ebp - 0x17c]
mov edx, 0x41c6f84
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov edx, dword [ebp - 0x17c]
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov eax, dword [0x41997b8]
call fcn.0419aa5c
mov ecx, dword [ebp - 0x178]
mov edx, dword [edi]
mov eax, dword [0x41997b8]
call fcn.0419a2ec
lea eax, [ebp - 0x174]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov esi, eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
mov dword [ebp - 0x198], esi
mov byte [ebp - 0x194], 0
lea eax, [ebp - 0x19c]
push eax
lea edx, [ebp - 0x1a0]
mov eax, dword [ebx + 0x4e4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x1a0]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x190], eax
mov byte [ebp - 0x18c], 0xb
lea eax, [ebp - 0x198]
push eax
push 1
lea eax, [ebp - 0x188]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41c70f8
mov eax, dword [0x41997b8]
call fcn.0419a73c
mov ecx, dword [ebp - 0x188]
mov edx, dword [edi]
mov eax, dword [0x41997b8]
call fcn.0419a178
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
mov dword [ebp - 0x198], esi
mov byte [ebp - 0x194], 0
lea eax, [ebp - 0x1a8]
push eax
lea edx, [ebp - 0x1ac]
mov eax, dword [ebx + 0x4e4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x1ac]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x190], eax
mov byte [ebp - 0x18c], 0xb
lea eax, [ebp - 0x198]
push eax
push 1
lea eax, [ebp - 0x1a4]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41c7154
mov eax, dword [0x41997b8]
call fcn.0419a73c
mov ecx, dword [ebp - 0x1a4]
mov edx, dword [edi]
mov eax, dword [0x41997b8]
call fcn.0419a178
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
mov dword [ebp - 0x198], esi
mov byte [ebp - 0x194], 0
lea eax, [ebp - 0x1b4]
push eax
lea edx, [ebp - 0x1b8]
mov eax, dword [ebx + 0x4e4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x1b8]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x190], eax
mov byte [ebp - 0x18c], 0xb
lea eax, [ebp - 0x198]
push eax
push 1
lea eax, [ebp - 0x1b0]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41c71a8
mov eax, dword [0x41997b8]
call fcn.0419a73c
mov ecx, dword [ebp - 0x1b0]
mov edx, dword [edi]
mov eax, dword [0x41997b8]
call fcn.0419a178
lea edx, [ebp - 0x1bc]
mov eax, dword [ebx + 0x4e4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
lea eax, [ebp - 0x1bc]
mov edx, 0x41c71f4
call sub.rtl60.bpl__System__LStrCat_qqrv
mov edx, dword [ebp - 0x1bc]
mov eax, ebx
call fcn.041c6080
mov eax, dword [ebx + 0x4d8]
call sub.dbrtl60.bpl__Db_TDataSet_Next_qqrv
mov eax, dword [ebx + 0x4d8]
cmp byte [eax + 0xa1], 0
je 0x41c6782
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41c6f0e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c6f73
lea eax, [ebp - 0x1bc]
mov edx, 9
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x188]
mov edx, 5
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x174]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x164]
mov edx, 0x25
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x20]
mov edx, 4
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x10]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
ret