Function at 0x420810
Capabilities:
Print debug messages
Reference sql statements

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x28c
test eax, eax
push ebp
push esi
mov esi, ecx
je 0x420aa9
push ebx
push edi
push str.update_counter
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 0x20]
push eax
call sub.MFC42.DLL_COleDateTime::GetTickCount
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [eax + 8]
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_COleDateTime::GetHour
lea ecx, [esp + 0x10]
mov dword [esi + 0x254], eax
call sub.MFC42.DLL_COleDateTime::GetHour
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_COleDateTime::GetYear
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_COleDateTime::GetDay
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_COleDateTime::GetMonth
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_COleDateTime::GetHour
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_COleDateTime::GetYear
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_COleDateTime::GetDay
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_COleDateTime::GetMonth
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea ecx, [esp + 0xbc]
push str.SELECT_COUNT_Scan_ID__FROM_T_ScanLog_WHERE_ImageStart__02d__02d__04d__02d:00:00_AND_ImageStart__02d__02d__04d__02d:59:59
push ecx
call ebp
add esp, 0x28
lea edx, [esp + 0x9c]
push 0
push 0
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
dec edi
push edi
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
test ebx, ebx
je 0x420908
push edi
push ebx
lea eax, [esp + 0xa4]
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x264]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe0]
test eax, eax
jne 0x42096d
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x264]
lea ecx, [esp + 0x1c]
mov edx, dword [eax]
push ecx
push 0
push eax
call dword [edx + 0xf0]
mov eax, dword [esi + 0x264]
push eax
mov edx, dword [eax]
call dword [edx + 0xe4]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
push eax
push 0x4ad1d8
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x38]
lea ecx, [esi + 0x26c]
push 1
push edx
push 4
call sub.MFC42.DLL_CStatusBar::SetPaneText
push 0
push 0
push 1
push 0
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_COleDateTimeSpan::SetDateTimeSpan
lea eax, [esp + 0x20]
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0048c48c
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 8]
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], edx
call sub.MFC42.DLL_COleDateTime::GetYear
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_COleDateTime::GetDay
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_COleDateTime::GetMonth
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_COleDateTime::GetYear
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_COleDateTime::GetDay
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_COleDateTime::GetMonth
push eax
lea eax, [esp + 0xb4]
push str.SELECT_COUNT_Scan_ID__FROM_T_ScanLog_WHERE_ImageStart__02d__02d__04d_00:00:00_AND_ImageStart__02d__02d__04d_23:59:59
push eax
call ebp
add esp, 0x20
lea ecx, [esp + 0x9c]
push 0
push 0
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
dec edi
push edi
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
test ebx, ebx
je 0x420a33
push edi
push ebx
lea edx, [esp + 0xa4]
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x264]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe0]
pop edi
pop ebx
test eax, eax
jne 0x420acf
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x264]
lea ecx, [esp + 0x14]
mov edx, dword [eax]
push ecx
push 0
push eax
call dword [edx + 0xf0]
mov eax, dword [esi + 0x264]
push eax
mov edx, dword [eax]
call dword [edx + 0xe4]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push eax
push 0x4ad1d8
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x30]
lea ecx, [esi + 0x26c]
push 1
push edx
push 5
call sub.MFC42.DLL_CStatusBar::SetPaneText
pop esi
pop ebp
add esp, 0x28c
ret 4
add esi, 0x26c
push 1
push 0x4f11f4
push 4
mov ecx, esi
call sub.MFC42.DLL_CStatusBar::SetPaneText
push 1
push 0x4f11f4
push 5
mov ecx, esi
call sub.MFC42.DLL_CStatusBar::SetPaneText
pop esi
pop ebp
add esp, 0x28c
ret 4