Function at 0x401198
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
lea eax, [ebp - 0x1c]
push esi
push edi
mov edi, 1
push eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], edi
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x4011d7
push esi
mov eax, dword [0x403160]
push str.No_version_info_for__s_n
push eax
call sub.MSVCRT.dll_fprintf
add esp, 0xc
mov eax, edi
jmp 0x4013dc
add ebx, 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x401210
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.LocalAlloc_LPTR__d__failed__error_ld__in__s_version_check_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0x14
mov eax, 1
jmp 0x4013dc
push dword [ebp - 4]
push ebx
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x401240
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Couldnt_retrieve_version_info_for__s__error_ld_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0x10
jmp 0x4013d0
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x14]
push eax
push ecx
push str.VarFileInfoTranslation
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4013bc
cmp dword [ebp - 0xc], 4
jb 0x4013bc
mov eax, dword [ebp - 0x14]
mov di, word [eax]
mov bx, word [eax + 2]
movzx eax, bx
movzx ecx, di
push eax
lea edx, [ebp - 0x5c]
push ecx
push str.StringFileInfo_04lx_04lxLegalCopyright
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x5c]
push ecx
push edx
push eax
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4012cf
push 0x404640
push dword [ebp - 0x18]
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
jne 0x4012f6
cmp di, 0x409
jne 0x4012c5
cmp bx, 0x4e4
je 0x4012eb
mov di, 0x409
mov bx, 0x4e4
jmp 0x401271
cmp di, 0x409
jne 0x4012e1
cmp bx, 0x4e4
je 0x4013b4
mov di, 0x409
mov bx, 0x4e4
jmp 0x401271
push esi
push str.Non_Microsoft_copyright_info_for__s_n
jmp 0x4013c2
lea eax, [ebp - 0xc]
lea ecx, [ebp - 8]
push eax
push ecx
push 0x4045f8
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4013ac
cmp dword [ebp - 0xc], 0x18
jb 0x4013ac
mov eax, dword [ebp - 8]
push dword [eax + 0x14]
push dword [eax + 0x10]
push esi
push str.Existing__s_file_version:__08lx._08lx_n
mov eax, dword [0x403160]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 0x14
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
cmp dword [0x40315c], eax
jb 0x401358
jne 0x4013a3
mov eax, dword [ebp - 8]
mov ecx, dword [0x403158]
cmp dword [eax + 0x14], ecx
jbe 0x4013a3
push 0x208
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x4013a3
push esi
push str.Your_existing_file__s_is_a_newer_version_than_that_which_will_be_installed_by_setup.__If_you_wish_to_procede_with_setup_press_OK__or_press_Cancel_to_exit_setup_now.
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [0x4042a0]
push 1
push str.Winsock2_Setup:_Warning
push edi
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
cmp eax, 2
jne 0x40139d
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4013d0
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x10], 0
jmp 0x4013d0
push esi
push str.Bad_fixed_file_version_info_for__s_n
jmp 0x4013c2
push esi
push str.No_copyright_info_for__s_n
jmp 0x4013c2
push esi
push str.No_version_translation_info_for__s_n
mov eax, dword [0x403160]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4