Function at 0x4bdb90
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5afde6
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 0x4bdbc5
mov ecx, dword [ebp + 0x4c]
xor eax, eax
test ecx, ecx
setg al
jmp 0x4be043
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 0x603698
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 0x4bdc4a
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x4be043
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x44], 1
je 0x4bdc6a
mov ecx, eax
call sym.ETermProxy.exe_public:_void___thiscall_CAdoConnection::constructor_void_
jmp 0x4bdc6c
xor eax, eax
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x631fbc
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 0x4be058
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 0x4bdceb
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 0x4bdced
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 0x4bdf33
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 0x4bde22
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 0x4bde0a
lea eax, [esp + 0x20]
mov ecx, esi
push eax
push 0x603170
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 0x6108b4
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea eax, [esp + 0x14]
mov ecx, esi
push eax
push 0x6108b0
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.004be2b0
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 0x4bdd60
xor ebx, ebx
cmp dword [ebp + 0x4c], ebx
jle 0x4bdef6
mov eax, dword [0x637760]
cmp eax, ebx
je 0x4bde93
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4bde93
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push 0x61b024
push 0x60b5c0
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str..task.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x637760]
push str.runtime
push 0x603760
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb100
mov eax, dword [0x637760]
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 0x61b024
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x4c], 0xb
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x60b5c0
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 0x60375c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63233c]
mov byte [esp + 0x54], 8
call fcn.00458d90
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 0x4bdffe
mov eax, dword [0x637760]
cmp eax, ebx
je 0x4bdf9b
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4bdf9b
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push 0x61b004
push 0x60b5c0
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str..task.
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x637760]
push str.runtime
push 0x603760
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb100
mov edx, dword [0x637760]
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 0x61b004
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x4c], 0xe
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x60b5c0
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 0x60375c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63233c]
mov byte [esp + 0x54], 3
call fcn.00458d90
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 0
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x4be018
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
je 0x4be025
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 [0x637760]
cmp eax, ebx
je 0x4be0c0
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4be0c0
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push 0x61afe4
push 0x60b5c0
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str..task.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x637760]
push str.runtime
push 0x603760
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb100
mov eax, dword [0x637760]
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 0x61afe4
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x4c], 0x11
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x60b5c0
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 0x60375c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63233c]
mov byte [esp + 0x54], 0
call fcn.00458d90
jmp 0x4be018