Function at 0x4be430
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ae896
push eax
mov al, byte [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x2c
cmp al, 1
push ebx
push ebp
push esi
push edi
mov ebp, ecx
jne 0x4be465
mov ecx, dword [ebp + 0x4c]
xor eax, eax
test ecx, ecx
setg al
jmp 0x4be8e3
lea eax, [esp + 0x4c]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
lea ecx, [esp + 0x4c]
push ebx
mov dword [esp + 0x48], ebx
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0xc]
push ebx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push ebx
lea ecx, [esp + 0x50]
inc esi
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0x14]
push edi
add eax, 0x76c
push esi
push eax
lea ecx, [esp + 0x1c]
push 0x601698
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x4c]
push ebx
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 8]
cmp eax, 6
je 0x4be4ea
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x4be8e3
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x44], 1
je 0x4be50a
mov ecx, eax
call sym.ETermProxy.exe_public:_void___thiscall_CAdoConnection::constructor_void_
jmp 0x4be50c
xor eax, eax
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x62fcec
mov byte [esp + 0x50], 0
mov dword [ebp + 0x18], eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x50], 2
mov ecx, esp
mov dword [esp + 0x30], esp
push str..dbibsp.mdb
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp + 0x18]
mov byte [esp + 0x50], 0
call sym.ETermProxy.exe_public:_int___thiscall_CAdoConnection::ConnectAccess_class_CString__class_CString__long_int_
cmp eax, ebx
je 0x4be8f8
push str.SELECT__FROM__tsl_task__WHERE_auto_exec1_and_disable0
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_3
push 0x38
mov byte [esp + 0x48], 3
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x44], 4
je 0x4be58b
mov edx, dword [ebp + 0x18]
mov ecx, eax
push edx
call sym.ETermProxy.exe_public:_void___thiscall_CAdoRecordSet::constructor_class_CAdoConnection__
mov esi, eax
jmp 0x4be58d
xor esi, esi
mov eax, dword [esp + 0x28]
push 3
push 3
push 1
push eax
mov ecx, esi
mov byte [esp + 0x54], 3
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::Open_char_const___long_int__enum_ADODB::CursorTypeEnum__enum_ADODB::LockTypeEnum_
cmp eax, 1
jne 0x4be7d3
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 5
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 7
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x44], 8
mov dword [esp + 0x20], ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x4be6c2
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov bl, 0xa
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
push ecx
push edx
call edi
add esp, 8
test eax, eax
je 0x4be6aa
lea eax, [esp + 0x20]
mov ecx, esi
push eax
push 0x601170
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea ecx, [esp + 0x1c]
push ecx
push str.office_code
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea edx, [esp + 0x18]
mov ecx, esi
push edx
push 0x60e8e4
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea eax, [esp + 0x14]
mov ecx, esi
push eax
push 0x60e8e0
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
push 0xffffffffffffffff
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
mov byte [esp + 0x54], 9
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov byte [esp + 0x58], bl
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x30]
mov ecx, ebp
push eax
mov byte [esp + 0x58], 8
call fcn.004beb50
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x4be600
xor ebx, ebx
cmp dword [ebp + 0x4c], ebx
jle 0x4be796
mov eax, dword [0x635490]
cmp eax, ebx
je 0x4be733
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4be733
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push 0x619334
push 0x6095c0
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str..task.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x635490]
push str.runtime
push 0x601760
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eba10
mov eax, dword [0x635490]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x619334
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x4c], 0xb
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x6095c0
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x50], 0xc
mov ecx, esp
mov dword [esp + 0x38], esp
push str..task.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x54], 0xd
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x60175c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63006c]
mov byte [esp + 0x54], 8
call fcn.00458d40
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CString::CString
jmp 0x4be89e
mov eax, dword [0x635490]
cmp eax, ebx
je 0x4be83b
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4be83b
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push 0x619314
push 0x6095c0
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str..task.
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x635490]
push str.runtime
push 0x601760
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eba10
mov edx, dword [0x635490]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x619314
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x4c], 0xe
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x6095c0
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x50], 0xf
mov ecx, esp
mov dword [esp + 0x3c], esp
push str..task.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x54], 0x10
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x60175c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63006c]
mov byte [esp + 0x54], 3
call fcn.00458d40
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 0
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x4be8b8
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
je 0x4be8c5
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [ebp + 0x18], ebx
mov eax, dword [ebp + 0x4c]
cmp eax, ebx
lea ecx, [esp + 0x10]
setg bl
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, bl
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret 4
mov eax, dword [0x635490]
cmp eax, ebx
je 0x4be960
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4be960
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push 0x6192f4
push 0x6095c0
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str..task.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x635490]
push str.runtime
push 0x601760
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eba10
mov eax, dword [0x635490]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x6192f4
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x4c], 0x11
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x6095c0
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x50], 0x12
mov ecx, esp
mov dword [esp + 0x3c], esp
push str..task.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x54], 0x13
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x60175c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63006c]
mov byte [esp + 0x54], 0
call fcn.00458d40
jmp 0x4be8b8