Function at 0x45c110
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push ebx
push esi
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x45c397
cmp word [ebx], si
je 0x45c397
push edi
push 0x208
lea eax, [ebp - 0x21e]
push esi
push eax
mov dword [ebp - 0x10], esi
mov word [ebp - 0x220], si
call sub.MSVCR80.dll_memset
push 0x208
lea ecx, [ebp - 0x42a]
push esi
push ecx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov word [ebp - 0x42c], si
call sub.MSVCR80.dll_memset
push 0x208
lea edx, [ebp - 0x636]
push esi
push edx
mov word [ebp - 0x638], si
call sub.MSVCR80.dll_memset
push 0x208
lea eax, [ebp - 0x842]
push esi
push eax
mov word [ebp - 0x844], si
call sub.MSVCR80.dll_memset
add esp, 0x30
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
jne 0x45c1bd
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call sub.MFC80U.DLL_Ordinal_265
mov esi, eax
add esp, 4
test esi, esi
je 0x45c38d
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x45c384
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45c384
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
mov edi, dword [sym.imp.MSVCR80.dll__snwprintf]
push ecx
push edx
push str.StringFileInfo_04x_04xFileDescription
lea eax, [ebp - 0x220]
push 0x104
push eax
call edi
add esp, 0x20
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x220]
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
je 0x45c26f
cmp dword [ebp - 8], 0
jbe 0x45c26f
mov ecx, dword [ebp - 4]
push 0x104
push ecx
lea edx, [ebp - 0x42c]
push edx
call ebx
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04xFileVersion
lea eax, [ebp - 0x220]
push 0x104
push eax
call edi
add esp, 0x20
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x220]
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45c2d5
cmp dword [ebp - 8], 0
jbe 0x45c2d5
mov ecx, dword [ebp - 4]
push 0x104
push ecx
lea edx, [ebp - 0x638]
push edx
call ebx
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04xProductName
lea eax, [ebp - 0x220]
push 0x104
push eax
call edi
add esp, 0x20
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x220]
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45c33b
cmp dword [ebp - 8], 0
jbe 0x45c33b
mov ecx, dword [ebp - 4]
push 0x104
push ecx
lea edx, [ebp - 0x844]
push edx
call ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x45c351
push 0x104
lea ecx, [ebp - 0x42c]
push ecx
push eax
call ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x45c367
push 0x104
lea edx, [ebp - 0x638]
push edx
push eax
call ebx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x45c37d
push 0x104
lea ecx, [ebp - 0x844]
push ecx
push eax
call ebx
mov dword [ebp - 0x10], 1
push esi
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret