Function at 0x4bfb60
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b7796
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 0x4bfb95
mov ecx, dword [ebp + 0x4c]
xor eax, eax
test ecx, ecx
setg al
jmp 0x4c0013
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 0x60c6b4
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 0x4bfc1a
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x4c0013
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x44], 1
je 0x4bfc3a
mov ecx, eax
call sym.ETermProxy.exe_public:_void___thiscall_CAdoConnection::constructor_void_
jmp 0x4bfc3c
xor eax, eax
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x63b90c
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 0x4c0028
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 0x4bfcbb
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 0x4bfcbd
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 0x4bff03
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 0x4bfdf2
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 0x4bfdda
lea eax, [esp + 0x20]
mov ecx, esi
push eax
push 0x60c170
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 0x6199c0
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea eax, [esp + 0x14]
mov ecx, esi
push eax
push 0x6199bc
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.004c0280
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 0x4bfd30
xor ebx, ebx
cmp dword [ebp + 0x4c], ebx
jle 0x4bfec6
mov eax, dword [0x641030]
cmp eax, ebx
je 0x4bfe63
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4bfe63
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push 0x62437c
push 0x6145d8
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str..task.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x641030]
push str.runtime
push 0x60c77c
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ed3c0
mov eax, dword [0x641030]
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 0x62437c
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x4c], 0xb
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x6145d8
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 0x60c778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov byte [esp + 0x54], 8
call fcn.00459390
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 0x4bffce
mov eax, dword [0x641030]
cmp eax, ebx
je 0x4bff6b
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4bff6b
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push 0x62435c
push 0x6145d8
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str..task.
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x641030]
push str.runtime
push 0x60c77c
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ed3c0
mov edx, dword [0x641030]
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 0x62435c
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x4c], 0xe
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x6145d8
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 0x60c778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov byte [esp + 0x54], 3
call fcn.00459390
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 0
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x4bffe8
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
je 0x4bfff5
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 [0x641030]
cmp eax, ebx
je 0x4c0090
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4c0090
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push 0x62433c
push 0x6145d8
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str..task.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x641030]
push str.runtime
push 0x60c77c
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ed3c0
mov eax, dword [0x641030]
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 0x62433c
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x4c], 0x11
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x6145d8
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 0x60c778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov byte [esp + 0x54], 0
call fcn.00459390
jmp 0x4bffe8