Function at 0x4bf180
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b2a76
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 0x4bf1b5
mov ecx, dword [ebp + 0x4c]
xor eax, eax
test ecx, ecx
setg al
jmp 0x4bf633
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 0x6066b4
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 0x4bf23a
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x4bf633
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x44], 1
je 0x4bf25a
mov ecx, eax
call sym.ETermProxy.exe_public:_void___thiscall_CAdoConnection::constructor_void_
jmp 0x4bf25c
xor eax, eax
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x63546c
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 0x4bf648
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 0x4bf2db
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 0x4bf2dd
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 0x4bf523
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 0x4bf412
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 0x4bf3fa
lea eax, [esp + 0x20]
mov ecx, esi
push eax
push 0x606170
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 0x6139a0
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea eax, [esp + 0x14]
mov ecx, esi
push eax
push 0x61399c
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.004bf8a0
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 0x4bf350
xor ebx, ebx
cmp dword [ebp + 0x4c], ebx
jle 0x4bf4e6
mov eax, dword [0x63ac10]
cmp eax, ebx
je 0x4bf483
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4bf483
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push 0x61e294
push 0x60e5d8
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str..task.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63ac10]
push str.runtime
push 0x60677c
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ec730
mov eax, dword [0x63ac10]
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 0x61e294
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x4c], 0xb
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x60e5d8
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 0x606778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x6357ec]
mov byte [esp + 0x54], 8
call fcn.004590c0
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 0x4bf5ee
mov eax, dword [0x63ac10]
cmp eax, ebx
je 0x4bf58b
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4bf58b
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push 0x61e274
push 0x60e5d8
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str..task.
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x63ac10]
push str.runtime
push 0x60677c
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ec730
mov edx, dword [0x63ac10]
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 0x61e274
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x4c], 0xe
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x60e5d8
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 0x606778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x6357ec]
mov byte [esp + 0x54], 3
call fcn.004590c0
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 0
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x4bf608
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
je 0x4bf615
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 [0x63ac10]
cmp eax, ebx
je 0x4bf6b0
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4bf6b0
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push 0x61e254
push 0x60e5d8
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str..task.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63ac10]
push str.runtime
push 0x60677c
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ec730
mov eax, dword [0x63ac10]
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 0x61e254
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x4c], 0x11
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x60e5d8
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 0x606778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x6357ec]
mov byte [esp + 0x54], 0
call fcn.004590c0
jmp 0x4bf608