Function at 0x4011a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov ecx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 0x28c]
push 0x1ff
push eax
push ecx
call dword [0x4080a0]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x28c]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x4011dd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 2
call dword [0x40809c]
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
jne 0x4011f5
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call dword [0x4080a4]
mov ecx, dword [ebp - 0x10]
mov ebx, eax
push ebx
push edi
lea edx, [ebp - 0x28c]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
push eax
push ecx
push 0x40a0cc
push ebx
call sub.VERSION.dll_VerQueryValueA
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
lea edx, [ebp - 4]
mov dword [ecx], eax
lea eax, [ebp + 8]
push edx
push eax
push str.VarFileInfoTranslation
push ebx
mov dword [ebp + 8], 0
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp + 8]
test eax, eax
je 0x40136f
mov esi, dword [0x4081e4]
xor ecx, ecx
mov cx, word [eax]
lea edx, [ebp - 0x1c]
push ecx
push str._04x
push edx
call esi
mov ecx, dword [ebp + 8]
xor eax, eax
lea edx, [ebp - 0x28]
mov ax, word [ecx + 2]
push eax
push str._04x
push edx
call esi
or ecx, 0xffffffff
mov edi, str.StringFileInfo_
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x8c]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [ebp - 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x8c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x8c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40a084
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
mov dword [ebp + 0xc], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0xc]
lea edx, [ebp - 0x8c]
push ecx
push edx
push ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x401367
lea ecx, [esi - 1]
push ecx
push eax
push edi
call dword [0x4081e0]
add esp, 0xc
mov byte [edi + esi - 1], 0
mov esi, dword [ebp - 8]
push esi
call dword [0x4080a8]
push esi
call dword [0x4080f8]
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret