Function at 0x453cc0
Capabilities:
Check if file exists
Print debug messages
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4633e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov dword [ebp - 0x4c], ecx
push 0x47cc84
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
call fcn.0043eb20
push eax
mov ecx, dword [ebp + 8]
call fcn.0043eae0
push eax
mov ecx, dword [ebp + 8]
call fcn.0043eaa0
push eax
push str._04d_02d_02d
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x14
push str.NetDetective
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.00435e50
add esp, 0xc
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x54]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.00435da0
add esp, 0xc
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 3
push str..bak
mov edx, dword [ebp - 0x5c]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.00435e50
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push str.QueryDB.mdf
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.00435e50
add esp, 0xc
mov byte [ebp - 4], 7
push str.QueryDB.LDF
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.00435e50
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x453e6d
push 0x472f9c
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.00435e50
add esp, 0xc
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x40]
jmp 0x453feb
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [0x47cd40]
call fcn.00404af0
test eax, eax
jne 0x453f1a
push 0x472fac
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x44]
jmp 0x453feb
push str.IF_EXISTS__SELECT_name_FROM_master.dbo.sysdatabases_WHERE_name__NQueryDB__n_t_t_t_t_tDROP_DATABASE_QueryDB
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [0x47cd40]
call fcn.00402790
mov byte [ebp - 0x1d], al
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
push str.RESTORE_DATABASE_QueryDB_FROM_DISK___s__n_t_t_t_t_tWITH_MOVE__s_TO__s__n_t_t_t_t____MOVE__s_TO__s
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x1c
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [0x47cd40]
call fcn.00402790
mov byte [ebp - 0x1d], al
movzx eax, byte [ebp - 0x1d]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4