Function at 0x40d37e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4124dc
call fcn.004111a0
sub esp, 0xac
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0xa8]
push ebx
mov dword [ebp - 4], 1
call fcn.00401b1b
push ebx
push ebx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [ebp - 0xa8]
call fcn.00401d63
test eax, eax
jne 0x40d3cd
xor esi, esi
jmp 0x40d8b1
push ebx
push ebx
lea ecx, [ebp - 0xa8]
call fcn.00402399
mov esi, eax
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x68]
mov byte [ebp - 0x68], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 3
call fcn.00402418
push ebx
lea ecx, [ebp - 0xa8]
call fcn.00401ef4
lea eax, [ebp - 0x21]
lea ecx, [ebp - 0x30]
push eax
call fcn.0040db15
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.00404baf
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 5
cmp eax, ebx
jne 0x40d441
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebx
push eax
lea ecx, [ebp - 0x34]
call fcn.00403658
test al, al
jne 0x40d456
xor esi, esi
jmp 0x40d896
mov ecx, dword [ebp - 0x34]
cmp ecx, ebx
je 0x40d486
mov eax, dword [edi + 0x3ac]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp eax, ebx
jne 0x40d46f
mov eax, edx
mov ecx, dword [ecx + 0x14]
cmp ecx, ebx
jne 0x40d478
mov ecx, edx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x40d44f
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x44]
push str.version
push eax
call fcn.0040518c
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea esi, [edi + 0x428]
mov byte [ebp - 4], 6
push dword [ecx]
mov ecx, esi
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [edi + 0x418]
push esi
push eax
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
pop ecx
test al, al
pop ecx
je 0x40d4da
xor esi, esi
jmp 0x40d4e7
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x40d4e7
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [edi + 0x484]
push esi
mov eax, dword [ecx]
call dword [eax]
test eax, eax
je 0x40d44f
mov eax, dword [ebp - 0x34]
push 1
pop edi
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x20], edi
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp - 0x1c], ecx
je 0x40d893
jmp 0x40d518
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ecx + 8]
cmp dword [esi + 4], 5
jne 0x40d6f4
cmp esi, ebx
je 0x40d6f4
lea eax, [ebp - 0x58]
push str.sha1
push eax
mov ecx, esi
call fcn.0040518c
lea eax, [ebp - 0x44]
push 0x41957c
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.0040518c
lea eax, [ebp - 0xb8]
push str.size
push eax
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.0040518c
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x40d574
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov esi, eax
push edi
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
cmp esi, ebx
jbe 0x40d874
cmp dword [ebp - 0x50], ebx
jbe 0x40d874
mov eax, dword [ebp - 0x40]
cmp eax, ebx
jne 0x40d5a8
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041110c
mov eax, dword [ebp - 0x18]
push 0x2f
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
mov esi, dword [eax - 8]
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
lea eax, [ebp - 0x14]
dec esi
lea ecx, [ebp - 0x18]
push esi
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0xb
push dword [ebp + 0xc]
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d70a
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x78]
mov byte [ebp - 0x78], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x10]
push eax
push ebx
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.0040f776
pop ecx
test eax, eax
pop ecx
je 0x40d80d
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
pop ecx
test al, al
pop ecx
jne 0x40d80d
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, 0x20
mov dword [ebp - 0x48], eax
jb 0x40d6af
push str.DllRegisterServer
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40d6a6
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
call esi
test eax, eax
jl 0x40d748
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xb
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
push edi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push edi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ecx]
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [eax + 0x44]
jne 0x40d515
jmp 0x40d893
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_2
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
push 0x419a18
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push ebx
push 0x41903c
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
jmp 0x40d792
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xf
push 0x419a0c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push ebx
push ebx
push dword [ebp - 0x14]
call sub.MFC42.DLL_AfxMessageBox
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString
push edi
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xb
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
push edi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push edi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00403f61
push edi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.00401c10
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40d8d9
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xe
push 0x419a00
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push ebx
push 0x41903c
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString
push edi
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xb
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
jmp 0x40d877
mov dword [ebp - 0x20], ebx
push edi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push edi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00403f61
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.00401c10
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8