Function at 0x4112e2
Capabilities:
Get file version info

Disassembly:
mov eax, 0x424552
call fcn.00414f98
mov eax, 0x20448
call fcn.0040a480
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x453]
push ebx
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x454], bl
call fcn.00415230
mov esi, 0xfffe
push esi
lea eax, [ebp - 0x10453]
push ebx
push eax
mov byte [ebp - 0x10454], bl
call fcn.00415230
push esi
lea eax, [ebp - 0x20453]
push ebx
push eax
mov byte [ebp - 0x20454], bl
call fcn.00415230
add esp, 0x24
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x41182b
push esi
call fcn.004127a2
mov edi, eax
pop ecx
mov dword [ebp - 0x18], edi
cmp edi, ebx
je 0x41182b
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x411822
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
je 0x411822
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str._04x_04x
lea eax, [ebp - 0x454]
push 0x400
push eax
call fcn.00415645
mov esi, 0xffff
push esi
lea eax, [ebp - 0x10454]
push ebx
push eax
call fcn.00415230
mov edi, str.StringFileInfo_
push edi
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.004151c2
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.00415e20
push str.InternalName
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.00415e20
add esp, 0x44
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10454]
push eax
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411480
cmp dword [ebp - 0x10], ebx
jbe 0x411480
push esi
lea eax, [ebp - 0x20454]
push ebx
push eax
call fcn.00415230
push dword [ebp - 0x10]
lea eax, [ebp - 0x20454]
push dword [ebp - 0x14]
push esi
push eax
call fcn.00415d6b
add esp, 0x1c
lea eax, [ebp - 0x20454]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401c30
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], ebx
call fcn.00401e60
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00402260
push esi
lea eax, [ebp - 0x10454]
push ebx
push eax
call fcn.00415230
push edi
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.004151c2
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.00415e20
push str.ProductName
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.00415e20
add esp, 0x30
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10454]
push eax
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41153a
cmp dword [ebp - 0x10], ebx
jbe 0x41153a
push esi
lea eax, [ebp - 0x20454]
push ebx
push eax
call fcn.00415230
push dword [ebp - 0x10]
lea eax, [ebp - 0x20454]
push dword [ebp - 0x14]
push esi
push eax
call fcn.00415d6b
add esp, 0x1c
lea eax, [ebp - 0x20454]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401c30
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], 1
call fcn.00401e60
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00402260
push esi
lea eax, [ebp - 0x10454]
push ebx
push eax
call fcn.00415230
push edi
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.004151c2
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.00415e20
push str.ProductVersion
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.00415e20
add esp, 0x30
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10454]
push eax
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4115f4
cmp dword [ebp - 0x10], ebx
jbe 0x4115f4
push esi
lea eax, [ebp - 0x20454]
push ebx
push eax
call fcn.00415230
push dword [ebp - 0x10]
lea eax, [ebp - 0x20454]
push dword [ebp - 0x14]
push esi
push eax
call fcn.00415d6b
add esp, 0x1c
lea eax, [ebp - 0x20454]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401c30
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], 2
call fcn.00401e60
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00402260
push esi
lea eax, [ebp - 0x10454]
push ebx
push eax
call fcn.00415230
push edi
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.004151c2
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.00415e20
push str.PrivateBuild
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.00415e20
add esp, 0x30
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10454]
push eax
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4116ae
cmp dword [ebp - 0x10], ebx
jbe 0x4116ae
push esi
lea eax, [ebp - 0x20454]
push ebx
push eax
call fcn.00415230
push dword [ebp - 0x10]
lea eax, [ebp - 0x20454]
push dword [ebp - 0x14]
push esi
push eax
call fcn.00415d6b
add esp, 0x1c
lea eax, [ebp - 0x20454]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401c30
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], 3
call fcn.00401e60
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00402260
push esi
lea eax, [ebp - 0x10454]
push ebx
push eax
call fcn.00415230
push edi
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.004151c2
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.00415e20
push str.FileVersion
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.00415e20
add esp, 0x30
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10454]
push eax
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411768
cmp dword [ebp - 0x10], ebx
jbe 0x411768
push esi
lea eax, [ebp - 0x20454]
push ebx
push eax
call fcn.00415230
push dword [ebp - 0x10]
lea eax, [ebp - 0x20454]
push dword [ebp - 0x14]
push esi
push eax
call fcn.00415d6b
add esp, 0x1c
lea eax, [ebp - 0x20454]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401c30
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], 4
call fcn.00401e60
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00402260
push esi
lea eax, [ebp - 0x10454]
push ebx
push eax
call fcn.00415230
push edi
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.004151c2
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.00415e20
push str.OriginalFilename
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.00415e20
add esp, 0x30
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10454]
push eax
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411822
cmp dword [ebp - 0x10], ebx
jbe 0x411822
push esi
lea eax, [ebp - 0x20454]
push ebx
push eax
call fcn.00415230
push dword [ebp - 0x10]
lea eax, [ebp - 0x20454]
push dword [ebp - 0x14]
push esi
push eax
call fcn.00415d6b
add esp, 0x1c
lea eax, [ebp - 0x20454]
push eax
lea ecx, [ebp - 0x54]
call fcn.00401c30
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 4], 5
call fcn.00401e60
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.00402260
push dword [ebp - 0x18]
call fcn.00415d60
pop ecx
mov esi, dword [ebp + 0x10]
push esi
call fcn.0040fd92
mov edi, dword [ebp + 0xc]
push edi
call fcn.00410bc9
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
pop ecx
pop ecx
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
ja 0x411860
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
cdq
idiv ecx
test eax, eax
ja 0x411860
xor eax, eax
jmp 0x411863
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret