Function at 0x40f850
Capabilities:
Check if file exists
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x416b03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x4251a4]
xor eax, esp
push ebx
push esi
mov esi, dword [esp + 0x164]
xor ebx, ebx
mov dword [esp + 0x150], eax
push edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], ebx
mov edi, 1
mov dword [esp + 0x160], edi
push ebx
push ebx
push edi
push ebx
push str.class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t______cdecl_XMP::GetFileVersionString_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t____
push 0x41b968
push str.class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t______cdecl_XMP::GetFileVersionString_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t____
lea ecx, [esp + 0x3c]
call fcn.00408360
mov byte [esp + 0x160], 2
lea ecx, [esp + 0x16c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f910
push str.0.0.0.0
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [esp + 0x10], edi
mov byte [esp + 0x160], 1
lea ecx, [esp + 0x20]
call fcn.00408660
mov byte [esp + 0x160], bl
lea ecx, [esp + 0x16c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x40fa31
push ebp
push str.0.0.0.0
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x164], 3
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x174]
mov word [esp + 0x5c], bx
mov dword [esp + 0x14], ebx
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
cmp ebp, ebx
jbe 0x40f9e4
lea ecx, [ebp + ebp + 2]
push ecx
call fcn.00414b76
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x40f9e4
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
lea ecx, [esp + 0x17c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40f9db
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x418808
push edi
mov dword [esp + 0x2c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f9db
mov eax, dword [esp + 0x18]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
lea ecx, [esp + 0x68]
push 0x41b6cc
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov dword [esp + 0x14], 1
mov byte [esp + 0x164], 2
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x164], 1
lea ecx, [esp + 0x24]
call fcn.00408660
mov byte [esp + 0x164], bl
lea ecx, [esp + 0x170]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
pop ebp
mov ecx, dword [esp + 0x158]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x14c]
pop ebx
xor ecx, esp
call fcn.00414dc9
add esp, 0x158
ret