Function at 0x4073c0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x411855
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x24], eax
mov cl, byte [esp + 0x23]
push eax
mov byte [esp + 0x14], cl
lea ecx, [esp + 0x14]
mov dword [esp + 0x248], eax
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 edi, 0x41c354
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x407446
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
mov esi, 0x41c354
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [eax + ebp], 0
mov ebx, dword [esp + 0x254]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x138]
rep stosd dword es:[edi], eax
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]
xor edi, edi
cmp ebx, edi
mov byte [esp + 0x244], 1
je 0x407472
mov eax, ebx
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea ecx, [esp + 0x13c]
push 0x419588
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x2c]
lea eax, [esp + 0x138]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
je 0x407589
lea ecx, [esi + 1]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
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]
mov dword [esp + 0x28], edi
test ebx, ebx
je 0x4074c4
mov eax, ebx
mov edx, dword [esp + 0x2c]
push edi
push esi
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40757e
lea eax, [esp + 0x30]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0x419630
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40757e
mov eax, dword [esp + 0x24]
mov ecx, 0x41
lea edi, [esp + 0x34]
mov edx, dword [eax + 8]
mov esi, dword [eax + 0xc]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, esi
mov ecx, edx
and eax, 0xffff
and ecx, 0xffff
shr esi, 0x10
push eax
push esi
shr edx, 0x10
push ecx
push edx
lea edx, [esp + 0x44]
push 0x4196d4
push edx
call ebp
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40757a
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [ecx + ebp], 0
mov edi, dword [esp + 0x28]
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor edi, edi
mov esi, dword [esp + 0x24c]
mov dl, byte [esp + 0x10]
mov byte [esi], dl
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0x10]
mov ecx, dword [eax]
push ecx
push edi
push edx
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x14]
cmp ecx, edi
je 0x4075d9
mov al, byte [ecx - 1]
test al, al
je 0x4075cf
cmp al, 0xff
je 0x4075cf
dec al
mov byte [ecx - 1], al
jmp 0x4075d9
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp ebx, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
je 0x407605
mov al, byte [ebx - 1]
test al, al
je 0x4075fb
cmp al, 0xff
je 0x4075fb
dec al
mov byte [ebx - 1], al
jmp 0x407605
dec ebx
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x23c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x238
ret 0x14