Function at 0x4aee94
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x4aee9d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404978
xor eax, eax
push ebp
push 0x4af392
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
lea eax, [ebp - 0x20]
mov edx, esi
call fcn.00404560
mov eax, dword [ebp - 0x20]
call fcn.004aea9c
test al, al
je 0x4aef92
xor eax, eax
push ebp
push 0x4aef5c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
call fcn.004aec08
push dword [ebp - 0x24]
lea edx, [ebp - 0x28]
mov eax, esi
call fcn.00409410
push dword [ebp - 0x28]
push 0x4af3ac
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404848
mov eax, dword [ebp - 0x20]
call fcn.00409224
test al, al
je 0x4aef35
mov eax, dword [ebp - 0x20]
call fcn.004aeb64
xor ecx, ecx
mov edx, dword [ebp - 0x20]
mov eax, esi
call fcn.004ae980
test al, al
jne 0x4aef52
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4af367
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aef92
xor eax, eax
push ebp
push 0x4af333
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404988
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x4af329
mov eax, dword [ebp - 0xc]
call fcn.00402a60
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 0x20]
call fcn.00404988
push eax
call sub.version.dll_GetFileVersionInfoA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4af2f7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4af3b0
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4af054
push 0x4af3d4
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov edx, 4
call fcn.00408e30
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0040731c
movzx eax, ax
lea ecx, [ebp - 0x30]
mov edx, 4
call fcn.00408e30
push dword [ebp - 0x30]
push 0x4af3f0
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00404848
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
mov ecx, 0x4af3fc
mov edx, dword [ebp - 0x18]
call fcn.004047d4
mov eax, dword [ebp - 0x34]
call fcn.00404988
push eax
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4af08c
mov eax, edi
mov edx, dword [ebp - 0x10]
call fcn.004046c0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
mov ecx, 0x4af410
mov edx, dword [ebp - 0x18]
call fcn.004047d4
mov eax, dword [ebp - 0x38]
call fcn.00404988
push eax
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4af0c5
lea eax, [edi + 4]
mov edx, dword [ebp - 0x10]
call fcn.004046c0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x3c]
mov ecx, 0x4af428
mov edx, dword [ebp - 0x18]
call fcn.004047d4
mov eax, dword [ebp - 0x3c]
call fcn.00404988
push eax
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4af0fe
lea eax, [edi + 8]
mov edx, dword [ebp - 0x10]
call fcn.004046c0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x40]
mov ecx, 0x4af43c
mov edx, dword [ebp - 0x18]
call fcn.004047d4
mov eax, dword [ebp - 0x40]
call fcn.00404988
push eax
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4af137
lea eax, [edi + 0xc]
mov edx, dword [ebp - 0x10]
call fcn.004046c0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x44]
mov ecx, 0x4af454
mov edx, dword [ebp - 0x18]
call fcn.004047d4
mov eax, dword [ebp - 0x44]
call fcn.00404988
push eax
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4af170
lea eax, [edi + 0x10]
mov edx, dword [ebp - 0x10]
call fcn.004046c0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x48]
mov ecx, 0x4af46c
mov edx, dword [ebp - 0x18]
call fcn.004047d4
mov eax, dword [ebp - 0x48]
call fcn.00404988
push eax
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4af1a9
lea eax, [edi + 0x14]
mov edx, dword [ebp - 0x10]
call fcn.004046c0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x4c]
mov ecx, 0x4af484
mov edx, dword [ebp - 0x18]
call fcn.004047d4
mov eax, dword [ebp - 0x4c]
call fcn.00404988
push eax
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4af1e2
lea eax, [edi + 0x18]
mov edx, dword [ebp - 0x10]
call fcn.004046c0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x50]
mov ecx, 0x4af4a0
mov edx, dword [ebp - 0x18]
call fcn.004047d4
mov eax, dword [ebp - 0x50]
call fcn.00404988
push eax
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4af21b
lea eax, [edi + 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.004046c0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
mov ecx, 0x4af4b4
mov edx, dword [ebp - 0x18]
call fcn.004047d4
mov eax, dword [ebp - 0x54]
call fcn.00404988
push eax
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4af254
lea eax, [edi + 0x20]
mov edx, dword [ebp - 0x10]
call fcn.004046c0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
mov ecx, 0x4af4cc
mov edx, dword [ebp - 0x18]
call fcn.004047d4
mov eax, dword [ebp - 0x58]
call fcn.00404988
push eax
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4af28d
lea eax, [edi + 0x24]
mov edx, dword [ebp - 0x10]
call fcn.004046c0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4af4d8
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4af2ba
mov eax, dword [ebp - 0x10]
push esi
push edi
mov esi, eax
add edi, 0x30
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
cmp dword [ebp - 4], 0
je 0x4af2f7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x5c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
call fcn.004047d4
mov eax, dword [ebp - 0x5c]
call fcn.00404988
push eax
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4af2f7
lea eax, [edi + 0x28]
mov edx, dword [ebp - 0x10]
call fcn.004046c0
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x20]
call fcn.004aec44
mov edx, dword [ebp - 0x60]
lea eax, [edi + 0x64]
call fcn.0040451c
mov eax, dword [ebp - 8]
call fcn.00402a90
mov eax, esi
mov edx, dword [ebp - 0x20]
call fcn.004048d4
je 0x4af329
mov eax, dword [ebp - 0x20]
call fcn.004aeb64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4af367
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af399
lea eax, [ebp - 0x60]
mov edx, 0x11
call fcn.004044ec
lea eax, [ebp - 0x18]
call fcn.004044c8
lea eax, [ebp - 4]
call fcn.004044c8
ret