Function at 0x4014d0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x403288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push str.IsFileVersionLower
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
call fcn.00402fd4
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x48], ebp
call fcn.00402fd4
mov eax, dword [0x405960]
mov byte [esp + 0x44], 1
cmp eax, ebp
je 0x40153e
mov ecx, dword [str.__Entering]
mov edx, dword [esp + 0x14]
push ecx
push edx
push str._s_s
push eax
call fcn.00402b30
add esp, 0x10
mov edi, dword [esp + 0x4c]
push ebp
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebp
je 0x4016aa
push esi
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
cmp ebx, ebp
mov dword [esp + 0x28], ebx
je 0x40171b
push ebx
push esi
push ebp
push edi
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, ebp
je 0x4016ba
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0x405298
push ebx
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebp
je 0x4016dd
lea edi, [esp + 0x2c]
mov ebp, 4
mov bl, 2
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
jne 0x4015bc
mov edx, dword [esp + 0x10]
mov esi, dword [edx - 8]
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x4c]
push esi
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], bl
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
sub eax, esi
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x50]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [esp + 0x50]
mov dword [edi], eax
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::CString
add edi, 4
dec ebp
jne 0x4015a3
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + 8]
shr eax, 0x10
cmp edx, eax
ja 0x401700
jb 0x401708
mov edx, dword [esp + 0x30]
xor eax, eax
mov ax, word [ecx + 8]
cmp edx, eax
ja 0x401700
jb 0x401708
mov eax, dword [ecx + 0xc]
mov edx, dword [esp + 0x34]
shr eax, 0x10
cmp edx, eax
ja 0x401700
jb 0x401708
xor eax, eax
mov ax, word [ecx + 0xc]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
ja 0x401700
jmp 0x401708
mov eax, dword [0x405960]
cmp eax, ebp
je 0x401708
push str.Failed_GetFileVersionInfoSize
jmp 0x4016eb
mov eax, dword [0x405960]
cmp eax, ebp
je 0x401708
mov edx, dword [esp + 0x14]
push str.Failed_GetFileVersionInfo
push edx
push str._s_s
push eax
call fcn.00402aa0
add esp, 0x10
jmp 0x401708
mov eax, dword [0x405960]
cmp eax, ebp
je 0x401708
push str._Failed_VerQueryValue
mov ecx, dword [esp + 0x18]
push ecx
push str._s_s
push eax
call fcn.00402aa0
add esp, 0x10
jmp 0x401708
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x28]
xor ebp, ebp
cmp eax, ebp
je 0x40171b
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [0x405960]
pop edi
pop esi
cmp eax, ebp
pop ebp
pop ebx
je 0x401742
mov edx, dword [str.__Exiting]
mov ecx, dword [esp + 4]
push edx
push ecx
push str._s_s
push eax
call fcn.00402b30
add esp, 0x10
lea ecx, [esp]
mov byte [esp + 0x34], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x38
ret