Function at 0x4e8e08
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.00404ad8
mov eax, dword [ebp - 8]
call fcn.00404ad8
xor eax, eax
push ebp
push 0x4e9095
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4e905b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040461c
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ae8
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x4e8eca
xor eax, eax
push ebp
push 0x4e8eb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00402790
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 0x4e8ed4
call fcn.00404068
jmp 0x4e9062
mov eax, esi
call fcn.0040461c
test bl, bl
je 0x4e8ef7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4e90a4
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueA
jmp 0x4e8efc
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4e8f24
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00407cc8
mov edx, dword [ebp - 0xc]
mov dx, word [edx]
call fcn.00407cbc
lea ecx, [ebp - 0x18]
mov edx, 8
call fcn.0040959c
test bl, bl
je 0x4e8f7f
push 0x4e90c8
push dword [ebp - 0x18]
push 0x4e90e4
push dword [ebp - 8]
lea eax, [ebp - 0x124]
mov edx, 4
call fcn.004049b0
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 0x120]
call fcn.00409f04
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 0x4e8f7f
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.0040a08c
cmp dword [esi], 0
jne 0x4e8fce
lea eax, [ebp - 0x128]
mov ecx, dword [ebp - 8]
mov edx, 0x4e90f0
call fcn.0040493c
mov edx, dword [ebp - 0x128]
lea eax, [ebp - 0x120]
call fcn.00409f04
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 0x4e8fce
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.0040a08c
cmp dword [esi], 0
jne 0x4e901d
lea eax, [ebp - 0x12c]
mov ecx, dword [ebp - 8]
mov edx, 0x4e9114
call fcn.0040493c
mov edx, dword [ebp - 0x12c]
lea eax, [ebp - 0x120]
call fcn.00409f04
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 0x4e901d
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.0040a08c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e9062
xor eax, eax
push ebp
push 0x4e9050
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x20], 0
je 0x4e9046
mov eax, dword [ebp - 0x20]
call fcn.004027b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e905a
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e909c
lea eax, [ebp - 0x12c]
mov edx, 3
call fcn.00404640
lea eax, [ebp - 0x18]
call fcn.0040461c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404640
ret