Function at 0x401940
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x432024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x850], ecx
mov dword [ebp - 0x84c], edx
je 0x401c4c
cmp word [esi], di
je 0x401c4c
push ebx
push 0x208
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 0x844], edi
mov word [ebp - 0x210], di
call sub.MSVCR80.dll_memset
push 0x208
lea ecx, [ebp - 0x626]
push edi
push ecx
mov dword [ebp - 0x83c], edi
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x854], edi
mov dword [ebp - 0x840], edi
mov word [ebp - 0x628], di
call sub.MSVCR80.dll_memset
push 0x208
lea edx, [ebp - 0x832]
push edi
push edx
mov word [ebp - 0x834], di
call sub.MSVCR80.dll_memset
push 0x208
lea eax, [ebp - 0x41a]
push edi
push eax
mov word [ebp - 0x41c], di
call sub.MSVCR80.dll_memset
add esp, 0x30
push edi
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, edi
jne 0x401a26
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f808
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0041f7f8
mov edi, eax
add esp, 4
test edi, edi
je 0x401c35
push edi
push ebx
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401c2c
lea ecx, [ebp - 0x854]
push ecx
lea edx, [ebp - 0x840]
push edx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401c2c
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp - 0x840]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
mov esi, dword [sym.imp.MSVCR80.dll__snwprintf]
push ecx
push edx
push str.StringFileInfo_04x_04xFileDescription
lea eax, [ebp - 0x210]
push 0x104
push eax
call esi
add esp, 0x20
lea ecx, [ebp - 0x838]
push ecx
lea edx, [ebp - 0x83c]
push edx
lea eax, [ebp - 0x210]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
je 0x401aed
cmp dword [ebp - 0x838], 0
jbe 0x401aed
mov ecx, dword [ebp - 0x83c]
push 0x105
push ecx
lea edx, [ebp - 0x628]
push edx
call ebx
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp - 0x840]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04xFileVersion
lea eax, [ebp - 0x210]
push 0x104
push eax
call esi
add esp, 0x20
lea ecx, [ebp - 0x838]
push ecx
lea edx, [ebp - 0x83c]
push edx
lea eax, [ebp - 0x210]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401b62
cmp dword [ebp - 0x838], 0
jbe 0x401b62
mov ecx, dword [ebp - 0x83c]
push 0x105
push ecx
lea edx, [ebp - 0x834]
push edx
call ebx
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp - 0x840]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04xProductName
lea eax, [ebp - 0x210]
push 0x104
push eax
call esi
add esp, 0x20
lea ecx, [ebp - 0x838]
push ecx
lea edx, [ebp - 0x83c]
push edx
lea eax, [ebp - 0x210]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401bd7
cmp dword [ebp - 0x838], 0
jbe 0x401bd7
mov ecx, dword [ebp - 0x83c]
push 0x105
push ecx
lea edx, [ebp - 0x41c]
push edx
call ebx
mov eax, dword [ebp - 0x848]
test eax, eax
je 0x401bf0
push 0x104
lea ecx, [ebp - 0x628]
push ecx
push eax
call ebx
mov eax, dword [ebp - 0x850]
test eax, eax
je 0x401c09
push 0x104
lea edx, [ebp - 0x834]
push edx
push eax
call ebx
mov eax, dword [ebp - 0x84c]
test eax, eax
je 0x401c22
push 0x104
lea ecx, [ebp - 0x41c]
push ecx
push eax
call ebx
mov dword [ebp - 0x844], 1
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebp - 0x844]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f808
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041f808
mov esp, ebp
pop ebp
ret