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

Disassembly:
push ebp
sub esp, 0x11c
lea ebp, [esp - 4]
mov eax, dword [0x4313f4]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push 0x2c
mov eax, 0x41bfe3
call fcn.004127a4
mov esi, dword [ebp + 0x128]
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], edi
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push edi
push edi
push ebx
push edi
mov eax, 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 eax
push 0x4219fc
push eax
lea ecx, [ebp - 0x38]
call fcn.00407ab1
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x12c]
call dword [sym.imp.MSVCP90.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]
push 0x4219ec
test eax, eax
jne 0x40bdc3
mov ecx, esi
call dword [sym.imp.MSVCP90.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 [ebp - 0x18], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
call fcn.00407d23
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x12c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
jmp 0x40bec5
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.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 [ebp - 4], 3
xor eax, eax
mov word [ebp + 0x1c], ax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x12c]
mov dword [ebp - 0x14], edi
call dword [sym.imp.MSVCP90.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 esi, eax
cmp esi, edi
jbe 0x40be8a
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412666
mov edi, eax
pop ecx
test edi, edi
je 0x40be8a
push edi
push esi
push dword [ebp - 0x14]
lea ecx, [ebp + 0x12c]
call dword [sym.imp.MSVCP90.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 0x40be83
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x41ebb0
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40be83
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp + 0x1c]
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.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.MSVCR90.dll_void___cdecl_operator_delete___void__
pop ecx
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call dword [sym.imp.MSVCP90.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 [ebp - 0x18], ebx
mov byte [ebp - 4], 2
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
call fcn.00407d23
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x12c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.0041276a
add ebp, 0x120
leave
ret