Function at 0x411897
Capabilities:
Get file version info

Disassembly:
mov eax, 0x424b54
call fcn.00415558
mov eax, 0x20448
call fcn.0040a7d0
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.004157f0
mov esi, 0xfffe
push esi
lea eax, [ebp - 0x10453]
push ebx
push eax
mov byte [ebp - 0x10454], bl
call fcn.004157f0
push esi
lea eax, [ebp - 0x20453]
push ebx
push eax
mov byte [ebp - 0x20454], bl
call fcn.004157f0
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 0x411de0
push esi
call fcn.00412d5e
mov edi, eax
pop ecx
mov dword [ebp - 0x18], edi
cmp edi, ebx
je 0x411de0
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x411dd7
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 0x411dd7
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.00415c05
mov esi, 0xffff
push esi
lea eax, [ebp - 0x10454]
push ebx
push eax
call fcn.004157f0
mov edi, str.StringFileInfo_
push edi
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.00415782
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.004163e0
push 0x426f44
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.004163e0
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 0x411a35
cmp dword [ebp - 0x10], ebx
jbe 0x411a35
push esi
lea eax, [ebp - 0x20454]
push ebx
push eax
call fcn.004157f0
push dword [ebp - 0x10]
lea eax, [ebp - 0x20454]
push dword [ebp - 0x14]
push esi
push eax
call fcn.0041632b
add esp, 0x1c
lea eax, [ebp - 0x20454]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401d50
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], ebx
call fcn.00403350
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00401f00
push esi
lea eax, [ebp - 0x10454]
push ebx
push eax
call fcn.004157f0
push edi
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.00415782
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.004163e0
push 0x426f34
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.004163e0
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 0x411aef
cmp dword [ebp - 0x10], ebx
jbe 0x411aef
push esi
lea eax, [ebp - 0x20454]
push ebx
push eax
call fcn.004157f0
push dword [ebp - 0x10]
lea eax, [ebp - 0x20454]
push dword [ebp - 0x14]
push esi
push eax
call fcn.0041632b
add esp, 0x1c
lea eax, [ebp - 0x20454]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401d50
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], 1
call fcn.00403350
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00401f00
push esi
lea eax, [ebp - 0x10454]
push ebx
push eax
call fcn.004157f0
push edi
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.00415782
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.004163e0
push 0x426f24
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.004163e0
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 0x411ba9
cmp dword [ebp - 0x10], ebx
jbe 0x411ba9
push esi
lea eax, [ebp - 0x20454]
push ebx
push eax
call fcn.004157f0
push dword [ebp - 0x10]
lea eax, [ebp - 0x20454]
push dword [ebp - 0x14]
push esi
push eax
call fcn.0041632b
add esp, 0x1c
lea eax, [ebp - 0x20454]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401d50
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], 2
call fcn.00403350
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00401f00
push esi
lea eax, [ebp - 0x10454]
push ebx
push eax
call fcn.004157f0
push edi
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.00415782
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.004163e0
push str.PrivateBuild
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.004163e0
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 0x411c63
cmp dword [ebp - 0x10], ebx
jbe 0x411c63
push esi
lea eax, [ebp - 0x20454]
push ebx
push eax
call fcn.004157f0
push dword [ebp - 0x10]
lea eax, [ebp - 0x20454]
push dword [ebp - 0x14]
push esi
push eax
call fcn.0041632b
add esp, 0x1c
lea eax, [ebp - 0x20454]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401d50
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], 3
call fcn.00403350
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00401f00
push esi
lea eax, [ebp - 0x10454]
push ebx
push eax
call fcn.004157f0
push edi
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.00415782
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.004163e0
push 0x426f04
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.004163e0
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 0x411d1d
cmp dword [ebp - 0x10], ebx
jbe 0x411d1d
push esi
lea eax, [ebp - 0x20454]
push ebx
push eax
call fcn.004157f0
push dword [ebp - 0x10]
lea eax, [ebp - 0x20454]
push dword [ebp - 0x14]
push esi
push eax
call fcn.0041632b
add esp, 0x1c
lea eax, [ebp - 0x20454]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401d50
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], 4
call fcn.00403350
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00401f00
push esi
lea eax, [ebp - 0x10454]
push ebx
push eax
call fcn.004157f0
push edi
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.00415782
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.004163e0
push str.OriginalFilename
lea eax, [ebp - 0x10454]
push esi
push eax
call fcn.004163e0
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 0x411dd7
cmp dword [ebp - 0x10], ebx
jbe 0x411dd7
push esi
lea eax, [ebp - 0x20454]
push ebx
push eax
call fcn.004157f0
push dword [ebp - 0x10]
lea eax, [ebp - 0x20454]
push dword [ebp - 0x14]
push esi
push eax
call fcn.0041632b
add esp, 0x1c
lea eax, [ebp - 0x20454]
push eax
lea ecx, [ebp - 0x54]
call fcn.00401d50
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 4], 5
call fcn.00403350
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.00401f00
push dword [ebp - 0x18]
call fcn.00416320
pop ecx
mov esi, dword [ebp + 0x10]
push esi
call fcn.00410346
mov edi, dword [ebp + 0xc]
push edi
call fcn.0041117d
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 0x411e15
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
cdq
idiv ecx
test eax, eax
ja 0x411e15
xor eax, eax
jmp 0x411e18
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret