Function at 0x4f0314
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x18], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405168
mov eax, dword [ebp - 8]
call fcn.00405168
xor eax, eax
push ebp
push 0x4f05a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404cac
xor eax, eax
push ebp
push 0x4f0567
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.00405178
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x4f03d6
xor eax, eax
push ebp
push 0x4f03c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00402a88
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
push edi
call sub.version.dll_GetFileVersionInfoA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f03e0
call fcn.004046f8
jmp 0x4f056e
mov eax, esi
call fcn.00404cac
test bl, bl
je 0x4f0403
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4f05b0
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueA
jmp 0x4f0408
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4f0430
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00408558
mov edx, dword [ebp - 0xc]
mov dx, word [edx]
call fcn.0040854c
lea ecx, [ebp - 0x18]
mov edx, 8
call fcn.0040af10
test bl, bl
je 0x4f048b
push 0x4f05d4
push dword [ebp - 0x18]
push 0x4f05f0
push dword [ebp - 8]
lea eax, [ebp - 0x124]
mov edx, 4
call fcn.00405040
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 0x120]
call fcn.0040baac
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4f048b
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.0040bc50
cmp dword [esi], 0
jne 0x4f04da
lea eax, [ebp - 0x128]
mov ecx, dword [ebp - 8]
mov edx, 0x4f05fc
call fcn.00404fcc
mov edx, dword [ebp - 0x128]
lea eax, [ebp - 0x120]
call fcn.0040baac
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4f04da
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.0040bc50
cmp dword [esi], 0
jne 0x4f0529
lea eax, [ebp - 0x12c]
mov ecx, dword [ebp - 8]
mov edx, 0x4f0620
call fcn.00404fcc
mov edx, dword [ebp - 0x12c]
lea eax, [ebp - 0x120]
call fcn.0040baac
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4f0529
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.0040bc50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f056e
xor eax, eax
push ebp
push 0x4f055c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x20], 0
je 0x4f0552
mov eax, dword [ebp - 0x20]
call fcn.00402aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f0566
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f05a8
lea eax, [ebp - 0x12c]
mov edx, 3
call fcn.00404cd0
lea eax, [ebp - 0x18]
call fcn.00404cac
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404cd0
ret