Function at 0x41d810
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4235fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x568b0]
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x41dca2
mov eax, 0x58
mov ecx, dword [esi + 0x568b0]
add eax, 4
cmp eax, 0xd4
mov dword [eax + ecx - 4], ebx
jl 0x41d89a
mov ecx, dword [esi + 0x568b0]
call fcn.00405ed0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
push ebx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], ecx
mov edx, dword [eax + 8]
push ebx
push ebx
push 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x40], edx
call sub.MFC42.DLL_COleDateTime::GetMonth
push eax
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_COleDateTime::GetYear
push eax
lea eax, [ebp - 0x34]
push str._04d_02d_02d_02d_02d_02d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x20
lea ecx, [ebp - 0x48]
push 0x3b
push 0x3b
push 0x17
push 0x1f
call sub.MFC42.DLL_COleDateTime::GetMonth
push eax
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_COleDateTime::GetYear
push eax
lea ecx, [ebp - 0x30]
push str._04d_02d_02d_02d_02d_02d
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x20
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
push edx
push eax
lea ecx, [ebp - 0x2c]
push str.SELECT_CameraNO_StartTime_Disk_FileName_FROM_tblRecordData_WHERE_StartTime____s_AND_StartTime____s_ORDER_BY_StartTime
push ecx
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x2c]
add esp, 0x10
cmp ecx, ebx
je 0x41d952
call fcn.0041e0b0
mov dword [ebp - 0x1c], ebx
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x38], eax
cmp eax, ebx
mov byte [ebp - 4], 7
je 0x41d971
push esi
mov ecx, eax
call fcn.0041e030
jmp 0x41d973
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
cmp eax, ebx
mov byte [ebp - 4], 8
je 0x41d987
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [ebp - 0x20]
push eax
push 0x42b4d8
push 7
push ebx
push 0x42b580
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x41d9ca
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ole32.dll_OleRun]
cmp eax, ebx
jl 0x41d9c1
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push ecx
push 0x42b570
mov edx, dword [eax]
push eax
call dword [edx]
mov eax, dword [ebp - 0x20]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push 1
push ebx
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0041df30
mov byte [ebp - 4], 9
call fcn.004164e0
lea ecx, [eax + 0xd8]
call fcn.00411e50
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
push ecx
mov ecx, eax
call fcn.0041e1c0
mov edx, dword [eax]
lea ecx, [ebp - 0x18]
push edx
call fcn.0041df00
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x41da17
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x41da3f
push 0x80004003
call fcn.00420bbe
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x12]
push edx
push eax
mov esi, eax
call dword [ecx + 0x50]
cmp eax, ebx
jge 0x41da5b
push 0x42b560
push esi
push eax
call fcn.00420bcc
cmp word [ebp - 0x12], bx
jne 0x41dc11
push 0x42b544
mov word [ebp - 0x68], 8
call fcn.00420c6b
cmp eax, ebx
mov dword [ebp - 0x60], eax
jne 0x41da8f
mov eax, 0x42b544
test eax, eax
je 0x41da8f
push 0x8007000e
call fcn.00420bbe
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0xb
cmp eax, ebx
jne 0x41daa4
push 0x80004003
call fcn.00420bbe
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x88]
push ecx
mov ecx, dword [ebp - 0x18]
push edx
call fcn.0041e290
push eax
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 0xc
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, ebx
jge 0x41dad0
push eax
call fcn.00420bbe
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xb
push ecx
call edi
cmp eax, ebx
jge 0x41dae7
push eax
call fcn.00420bbe
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 0xa
push edx
call edi
cmp eax, ebx
jge 0x41dafb
push eax
call fcn.00420bbe
mov eax, dword [ebp - 0x58]
cmp ax, 1
je 0x41dbd9
cmp ax, 8
mov dword [ebp - 0x20], ebx
jne 0x41db1f
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x20]
push eax
call fcn.0041df50
jmp 0x41db5b
lea ecx, [ebp - 0x78]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x78]
push edx
push 8
mov byte [ebp - 4], 0xd
call fcn.0041e160
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x20]
push eax
call fcn.0041df50
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xa
push ecx
call edi
cmp eax, ebx
jge 0x41db5b
push eax
call fcn.00420bbe
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 0xe
cmp ecx, ebx
je 0x41db6d
call fcn.0041e100
jmp 0x41db6f
xor eax, eax
push eax
lea ecx, [ebp - 0x28]
call fcn.00420348
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 0xa
cmp ecx, ebx
je 0x41db88
call fcn.0041e0b0
push 2
lea edx, [ebp - 0x38]
push 6
push edx
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, 1
jl 0x41dbd9
cmp eax, 0x1f
jg 0x41dbd9
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x568b0]
mov dword [edx + eax*4 + 0x54], 1
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x41dbed
push 0x80004003
call fcn.00420bbe
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
mov esi, eax
call dword [ecx + 0x90]
cmp eax, ebx
jge 0x41da2b
push 0x42b560
push esi
push eax
call fcn.00420bcc
jmp 0x41da2b
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x41dc25
push 0x80004003
call fcn.00420bbe
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
push eax
mov esi, eax
call dword [edx + 0x80]
cmp eax, ebx
jge 0x41dc40
push 0x42b560
push esi
push eax
call fcn.00420bcc
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 8
push eax
call edi
cmp eax, ebx
jge 0x41dc5e
push eax
call fcn.00420bbe
jmp 0x41dc5e
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], 5
cmp esi, ebx
je 0x41dc91
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41dc8e
cmp esi, ebx
je 0x41dc8e
mov ecx, esi
call fcn.0041e130
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x41dca2
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret