Function at 0x40b450
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41793c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0x10
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
mov dword [esp + 0x24], 0
je 0x40b4ab
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.SoftwareMicrosoftMSSQLServ65MSSQLServerParameters
call sub.MFC42u.DLL_CString::CString_1
push 0x80000002
mov ecx, esi
call fcn.0040ec20
mov esi, eax
jmp 0x40b4ad
xor esi, esi
push ecx
mov dword [esp + 0x28], 0xffffffff
mov ecx, esp
mov dword [esp + 0x14], esp
push str.SQLArg0
call sub.MFC42u.DLL_CString::CString_1
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.0040ed20
mov ecx, dword [eax]
mov edi, 1
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
cmp eax, edi
setl bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x40b5ab
test esi, esi
je 0x40b4fe
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 4]
push 0x10
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
mov dword [esp + 0x24], edi
je 0x40b537
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.SoftwareMicrosoftMSSQLServ60MSSQLServerParameters
call sub.MFC42u.DLL_CString::CString_1
push 0x80000002
mov ecx, esi
call fcn.0040ec20
mov esi, eax
jmp 0x40b539
xor esi, esi
push ecx
mov dword [esp + 0x28], 0xffffffff
mov ecx, esp
mov dword [esp + 0x14], esp
push str.SQLArg0
call sub.MFC42u.DLL_CString::CString_1
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.0040ed20
mov ecx, dword [eax]
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x10]
cmp edx, edi
setl bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x40b59a
push 0xffffffffffffffff
push 0
push 0x15c
call sub.MFC42u.DLL_AfxMessageBox_1
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4
lea ecx, [ebp + 0x294]
push 0x42282c
mov dword [esp + 0x14], ecx
jmp 0x40b5ba
lea ecx, [ebp + 0x294]
push 0x422824
mov dword [esp + 0x14], ecx
call fcn.00415d82
lea edx, [esp + 0x14]
push 2
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.SQLArg0
call sub.MFC42u.DLL_CString::CString_1
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.0040ed20
mov ecx, eax
mov dword [esp + 0x2c], 2
call sub.MFC42u.DLL_CString::Mid_1
mov edi, dword [esp + 0x2c]
push eax
mov ecx, edi
mov byte [esp + 0x28], 3
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call sub.MFC42u.DLL_CString::CString
or ebx, 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebx
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp + 0x290]
push 0xd3
mov ecx, dword [ecx + 0x118]
call fcn.00403d50
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edi
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [ebp + 0x290]
push 0xb2
mov dword [esp + 0x30], ebx
call fcn.004018c0
mov ecx, eax
call fcn.00403f40
test esi, esi
je 0x40b66e
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
je 0x40b583
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
cmp dword [ecx - 8], 2
jne 0x40b583
mov eax, 1
jmp 0x40b585