Function at 0x401861
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
mov eax, dword [0x42c4fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x84c], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x854], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x848], eax
je 0x401b5e
cmp word [ebx], di
je 0x401b5e
mov esi, 0x208
push esi
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 0x850], edi
mov word [ebp - 0x210], di
call sub.MSVCR80.dll_memset
push esi
lea eax, [ebp - 0x626]
push edi
push eax
mov dword [ebp - 0x83c], edi
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x858], edi
mov dword [ebp - 0x844], edi
mov word [ebp - 0x628], di
call sub.MSVCR80.dll_memset
push esi
lea eax, [ebp - 0x832]
push edi
push eax
mov word [ebp - 0x834], di
call sub.MSVCR80.dll_memset
push esi
lea eax, [ebp - 0x41a]
push edi
push eax
mov word [ebp - 0x41c], di
call sub.MSVCR80.dll_memset
add esp, 0x30
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x401b5e
push esi
call fcn.00416e81
cmp eax, edi
pop ecx
mov dword [ebp - 0x840], eax
je 0x401b56
push eax
push esi
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401b4a
lea eax, [ebp - 0x858]
push eax
lea eax, [ebp - 0x844]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x840]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401b4a
push 0x20a
lea eax, [ebp - 0x210]
push edi
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp - 0x844]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov ebx, dword [sym.imp.MSVCR80.dll__snwprintf]
push ecx
push eax
push str.StringFileInfo_04x_04xFileDescription
mov esi, 0x104
lea eax, [ebp - 0x210]
push esi
push eax
call ebx
add esp, 0x20
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x840]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401a00
cmp dword [ebp - 0x838], edi
jbe 0x401a00
push 0x105
push dword [ebp - 0x83c]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x20a
lea eax, [ebp - 0x210]
push edi
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp - 0x844]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str.StringFileInfo_04x_04xFileVersion
lea eax, [ebp - 0x210]
push esi
push eax
call ebx
add esp, 0x20
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x840]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401a77
cmp dword [ebp - 0x838], edi
jbe 0x401a77
push 0x105
push dword [ebp - 0x83c]
lea eax, [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x20a
lea eax, [ebp - 0x210]
push edi
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp - 0x844]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str.StringFileInfo_04x_04xProductName
lea eax, [ebp - 0x210]
push esi
push eax
call ebx
add esp, 0x20
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x840]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401af2
cmp dword [ebp - 0x838], edi
jbe 0x401af2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x105
push dword [ebp - 0x83c]
lea eax, [ebp - 0x41c]
push eax
call ebx
jmp 0x401af8
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp - 0x84c], edi
je 0x401b10
push esi
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x84c]
call ebx
cmp dword [ebp - 0x854], edi
je 0x401b28
push esi
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0x854]
call ebx
cmp dword [ebp - 0x848], edi
je 0x401b40
push esi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x848]
call ebx
mov dword [ebp - 0x850], 1
push dword [ebp - 0x840]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, dword [ebp - 0x850]
jmp 0x401b60
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416e92
leave
ret