Function at 0x4e74fc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
xor ecx, ecx
push esi
push ebx
push edi
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ce8
xor eax, eax
push ebp
push 0x4e775e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
call fcn.0040997c
test al, al
je 0x4e772e
xor eax, eax
mov dword [ebp - 0x14], eax
push ebp
xor esi, esi
push 0x4e7714
push dword fs:[esi]
mov dword fs:[esi], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00404cf8
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x4e770a
mov eax, dword [ebp - 0x10]
call fcn.00409124
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4e7703
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x4e7770
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4e760a
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.00407f18
movzx eax, ax
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0
lea edx, [ebp - 0x48]
xor ecx, ecx
mov eax, 0x4e7794
call fcn.0040a86c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x20]
movzx eax, word [eax]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0
lea edx, [ebp - 0x48]
xor ecx, ecx
mov eax, 0x4e7794
call fcn.0040a86c
push 0x4e77a4
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 0x4e77bc
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00404bc0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4e76ea
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
xor edx, edx
push ebp
push 0x4e76c8
push dword fs:[edx]
mov dword fs:[edx], esp
lea ecx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x3c]
mov esi, dword [eax]
call dword [esi + 0xc]
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x30]
call fcn.00404b4c
mov eax, dword [ebp - 0x4c]
call fcn.00404cf8
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4e76be
lea edx, [ebp - 0x34]
mov edx, dword [ebp - 0x38]
call fcn.00404a38
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x34]
call fcn.0041e16c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e76de
inc dword [ebp - 0x3c]
dec dword [ebp - 0x40]
jne 0x4e7645
pop edx
pop eax
xor eax, eax
pop ecx
mov dword fs:[eax], edx
push 0x4e770a
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.004027f8
ret
pop eax
pop ecx
pop ecx
xor edx, edx
mov dword fs:[edx], eax
jmp 0x4e772e
pop edx
pop ecx
pop ecx
xor eax, eax
mov dword fs:[eax], edx
push 0x4e7765
mov edx, 3
lea eax, [ebp - 0x54]
call fcn.0040486c
mov edx, 4
lea eax, [ebp - 0x34]
call fcn.0040486c
lea eax, [ebp - 4]
call fcn.00404848
ret