Function at 0x401ad0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x5ee008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x850], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x84c], edx
mov dword [ebp - 0x854], eax
test esi, esi
je 0x401dc2
xor eax, eax
cmp ax, word [esi]
je 0x401dc2
push ebx
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x83c], ebx
push ebx
push eax
mov dword [ebp - 0x838], ebx
mov dword [ebp - 0x848], ebx
mov dword [ebp - 0x840], ebx
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x628]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x834]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x30
push ebx
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x844], eax
test eax, eax
jne 0x401b99
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425e27
mov esp, ebp
pop ebp
ret
push edi
push eax
call fcn.00425f75
mov edi, eax
add esp, 4
test edi, edi
je 0x401daf
push edi
push dword [ebp - 0x844]
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x401da6
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x840]
push eax
push str.VarFileInfoTranslation
push edi
call esi
test eax, eax
je 0x401da6
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_04xFileDescription
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00402670
add esp, 0x24
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
test eax, eax
je 0x401c64
cmp dword [ebp - 0x838], ebx
jbe 0x401c64
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.00402670
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x838]
add esp, 0x24
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call ebx
test eax, eax
je 0x401ce0
cmp dword [ebp - 0x838], 0
jbe 0x401ce0
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.00402670
add esp, 0x24
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call ebx
test eax, eax
je 0x401d56
cmp dword [ebp - 0x838], 0
jbe 0x401d56
push 0x104
push dword [ebp - 0x83c]
lea eax, [ebp - 0x834]
push eax
call esi
mov eax, dword [ebp - 0x84c]
test eax, eax
je 0x401d6f
push 0x104
lea ecx, [ebp - 0x41c]
push ecx
push eax
call esi
mov eax, dword [ebp - 0x850]
test eax, eax
je 0x401d88
push 0x104
lea ecx, [ebp - 0x628]
push ecx
push eax
call esi
mov eax, dword [ebp - 0x854]
test eax, eax
je 0x401da1
push 0x104
lea ecx, [ebp - 0x834]
push ecx
push eax
call esi
mov ebx, 1
push edi
call fcn.00425f7e
add esp, 4
pop edi
mov eax, ebx
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425e27
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00425e27
mov esp, ebp
pop ebp
ret