Function at 0x40ec00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x47ea94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x850], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x854], eax
xor eax, eax
push esi
mov dword [ebp - 0x84c], edx
cmp ax, word [ebx]
je 0x40eece
push 0x20a
xor esi, esi
lea eax, [ebp - 0x210]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x83c], esi
push esi
push eax
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x848], esi
mov dword [ebp - 0x840], esi
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x628]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x834]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x30
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x844], eax
test eax, eax
je 0x40eece
push edi
push 0x4708d2
push eax
call fcn.0045ca37
mov edi, eax
add esp, 8
test edi, edi
je 0x40eebb
push edi
push dword [ebp - 0x844]
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40eeb2
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x840]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40eeb2
mov ecx, dword [ebp - 0x840]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xFileDescription
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040c7f0
add esp, 0x18
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
test eax, eax
je 0x40ed70
cmp dword [ebp - 0x838], 0
jbe 0x40ed70
push 0x104
push dword [ebp - 0x83c]
lea eax, [ebp - 0x41c]
push eax
call esi
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x840]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xFileVersion
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040c7f0
add esp, 0x24
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ede9
cmp dword [ebp - 0x838], 0
jbe 0x40ede9
push 0x104
push dword [ebp - 0x83c]
lea eax, [ebp - 0x628]
push eax
call esi
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x840]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xProductName
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040c7f0
add esp, 0x24
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ee62
cmp dword [ebp - 0x838], 0
jbe 0x40ee62
push 0x104
push dword [ebp - 0x83c]
lea eax, [ebp - 0x834]
push eax
call esi
mov eax, dword [ebp - 0x84c]
test eax, eax
je 0x40ee7b
push 0x104
lea ecx, [ebp - 0x41c]
push ecx
push eax
call esi
mov eax, dword [ebp - 0x850]
test eax, eax
je 0x40ee94
push 0x104
lea ecx, [ebp - 0x628]
push ecx
push eax
call esi
mov eax, dword [ebp - 0x854]
test eax, eax
je 0x40eead
push 0x104
lea ecx, [ebp - 0x834]
push ecx
push eax
call esi
mov esi, 1
push edi
call fcn.0045be16
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045be1b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0045be1b
mov esp, ebp
pop ebp
ret