Function at 0x40649d
Capabilities:
Get file version info

Disassembly:
mov eax, 0x40e499
call fcn.0040db00
sub esp, 0x410
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0x10]
push 1
pop edi
cmp eax, esi
mov dword [ebp - 4], edi
jne 0x4064c7
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]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x406507
mov ebx, dword [ebp + 8]
mov al, byte [ebp + 0xb]
push esi
mov ecx, ebx
mov byte [ebx], 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_]
mov esi, str.0.0.0.0
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
mov ecx, ebx
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_]
mov dword [ebp - 0x10], edi
jmp 0x4065f6
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
mov eax, dword [ebp + 0x10]
cmp eax, esi
pop ecx
mov dword [ebp - 0x14], esi
jne 0x406520
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 dword [ebp - 0x18]
push dword [ebp - 0x1c]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4134e8
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4065c3
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x4065c3
movzx ecx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
movzx ecx, word [eax + 8]
mov eax, dword [eax + 8]
push ecx
shr eax, 0x10
push eax
lea eax, [ebp - 0x41c]
push str._d._d._d._d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0xb]
add esp, 0x1c
mov ecx, esi
mov byte [esi], al
push 0
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 - 0x41c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x41c]
push eax
mov ecx, esi
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_]
and byte [ebp - 4], 0
push edi
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x10], edi
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 eax, esi
jmp 0x406606
push ebx
call dword [sym.imp.MSVCRT.dll_free]
mov ebx, dword [ebp + 8]
mov al, byte [ebp + 0xb]
pop ecx
push 0
mov ecx, ebx
mov byte [ebx], 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_]
mov esi, str.0.0.0.0
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
mov ecx, ebx
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_]
mov dword [ebp - 0x10], edi
and byte [ebp - 4], 0
push edi
lea ecx, [ebp + 0xc]
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 eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret