Function at 0x405b3a
Capabilities:
Get file version info

Disassembly:
mov eax, 0x40b185
call fcn.0040a520
sub esp, 0x1b8
push ebx
push esi
push edi
lea eax, [ebp - 0x1c4]
push 0x104
xor ebx, ebx
push eax
mov esi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, ebx
jbe 0x405d74
lea eax, [ebp - 0x1c4]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [esi + 0x30]
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_]
lea eax, [ebp - 0x1c4]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x405d74
lea eax, [edi + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x10], eax
push eax
push edi
lea eax, [ebp - 0x1c4]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x40f030
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
fld qword [0x40c298]
mov eax, dword [ebp - 0x28]
push ecx
push ecx
mov eax, dword [eax + 8]
fstp qword [esp]
fld qword [0x40c290]
push ecx
push ecx
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ebx
fstp qword [esp]
call sub.MSVCRT.dll_pow
add esp, 0x10
call sub.MSVCRT.dll__ftol
push dword [esi + 0x44]
push dword [esi + 0x40]
push edx
push eax
call fcn.0040a690
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x44], edx
push 0x1f
mov eax, dword [eax + 0xc]
pop ecx
add dword [esi + 0x40], eax
lea edi, [ebp - 0xbf]
mov byte [ebp - 0xc0], bl
push ebx
adc dword [esi + 0x44], ebx
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [ebp - 0x1d]
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x40], 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_]
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x18]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push str.CompanyName
mov ebx, str.StringFileInfo_04x_04x_s
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0xc0]
push ebx
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x405cbc
mov eax, dword [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea ecx, [esi + 0x10]
push dword [ebp - 0x1c]
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 eax, dword [ebp - 0x18]
push str.ProductName
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0xc0]
push ebx
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x405d0e
mov eax, dword [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
mov ecx, esi
push dword [ebp - 0x1c]
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 eax, dword [ebp - 0x18]
push str.LegalCopyright
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0xc0]
push ebx
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x405d5c
mov edi, dword [ebp - 0x14]
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
lea ecx, [esi + 0x20]
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_]
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
or dword [ebp - 4], 0xffffffff
pop ecx
push 1
lea ecx, [ebp - 0x40]
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 ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret