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

Disassembly:
mov eax, 0x41a61d
call fcn.0040e0b0
sub esp, 0x12c
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x24], 8
mov dword [ebp - 4], ebx
jae 0x40a083
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
push str.0.0.0.0
jne 0x40a0b1
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const__]
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
jmp 0x40a19d
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const__]
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 2
mov word [ebp - 0x138], di
mov dword [ebp - 0x10], edi
jae 0x40a0d4
lea eax, [ebp + 0x10]
push esi
lea ecx, [ebp - 0x10]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jbe 0x40a173
lea eax, [esi + esi + 2]
push eax
call fcn.0040e008
mov edi, eax
test edi, edi
pop ecx
je 0x40a173
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x40a106
lea eax, [ebp + 0x10]
push edi
push esi
push dword [ebp - 0x10]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40a16c
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x41cf30
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40a16c
mov eax, dword [ebp - 0x1c]
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 - 0x138]
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_unsigned_short_int_const__]
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret