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

Disassembly:
mov eax, 0x412a43
call fcn.004114d0
sub esp, 0x150
mov eax, dword [0x4211a4]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, ebp
xor esi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x134], esi
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push esi
push esi
push ebx
push esi
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 0x417a88
push eax
lea ecx, [ebp - 0x15c]
call fcn.00406666
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
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
push str.0.0.0.0
jne 0x40c1b5
mov ecx, edi
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 [ebp - 0x134], ebx
jmp 0x40c2ca
lea ecx, [ebp - 0x12c]
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 [ebp - 4], 3
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp + 0xc]
mov word [ebp - 0x110], si
mov dword [ebp - 0x138], esi
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
cmp eax, esi
mov dword [ebp - 0x130], eax
jbe 0x40c2a5
lea eax, [eax + eax + 2]
push eax
call fcn.0041118c
cmp eax, esi
pop ecx
mov dword [ebp - 0x13c], eax
je 0x40c2a5
push eax
push dword [ebp - 0x130]
lea ecx, [ebp + 0xc]
push dword [ebp - 0x138]
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 0x40c299
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x414818
push dword [ebp - 0x13c]
mov dword [ebp - 0x130], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c299
mov eax, dword [ebp - 0x140]
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 - 0x110]
push 0x4176dc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x12c]
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 dword [ebp - 0x13c]
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
lea eax, [ebp - 0x12c]
push eax
mov ecx, edi
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 [ebp - 0x134], ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x12c]
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 [ebp - 4], bl
lea ecx, [ebp - 0x15c]
call fcn.004068e0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
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 ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004113e5
leave
ret