Function at 0x40135d
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x7d8]
sub esp, 0x858
mov eax, dword [0x404008]
xor eax, ebp
mov dword [ebp + 0x7d4], eax
mov eax, dword [ebp + 0x7e4]
push ebx
mov ebx, dword [ebp + 0x7e0]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x7e8]
push esi
push edi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x7ec]
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x70], eax
je 0x4015e7
cmp word [ebx], di
je 0x4015e7
mov esi, 0x208
push esi
lea eax, [ebp + 0x5ca]
push edi
push eax
mov dword [ebp - 0x78], edi
mov word [ebp + 0x5c8], di
call sub.MSVCR80.dll_memset
push esi
lea eax, [ebp + 0x1b2]
push edi
push eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x6c], edi
mov word [ebp + 0x1b0], di
call sub.MSVCR80.dll_memset
push esi
lea eax, [ebp - 0x5a]
push edi
push eax
mov word [ebp - 0x5c], di
call sub.MSVCR80.dll_memset
push esi
lea eax, [ebp + 0x3be]
push edi
push eax
mov word [ebp + 0x3bc], 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 0x4015e7
push esi
call dword [sym.imp.MSVCR80.dll_malloc]
cmp eax, edi
pop ecx
mov dword [ebp - 0x68], eax
je 0x4015e2
push eax
push esi
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4015d8
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x68]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4015d8
push 0x20a
lea eax, [ebp + 0x5c8]
push edi
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp - 0x6c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov ebx, dword [sym.imp.MSVCR80.dll__snwprintf_s]
push ecx
push eax
push str.StringFileInfo_04x_04xFileDescription
mov esi, 0x104
push esi
lea eax, [ebp + 0x5c8]
push esi
push eax
call ebx
add esp, 0x24
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x5c8]
push eax
push dword [ebp - 0x68]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4014d3
cmp dword [ebp - 0x60], edi
jbe 0x4014d3
push esi
push dword [ebp - 0x64]
lea eax, [ebp + 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x20a
lea eax, [ebp + 0x5c8]
push edi
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp - 0x6c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str.StringFileInfo_04x_04xFileVersion
push esi
lea eax, [ebp + 0x5c8]
push esi
push eax
call ebx
add esp, 0x24
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x5c8]
push eax
push dword [ebp - 0x68]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401532
cmp dword [ebp - 0x60], edi
jbe 0x401532
push esi
push dword [ebp - 0x64]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x20a
lea eax, [ebp + 0x5c8]
push edi
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp - 0x6c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str.StringFileInfo_04x_04xProductName
push esi
lea eax, [ebp + 0x5c8]
push esi
push eax
call ebx
add esp, 0x24
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x5c8]
push eax
push dword [ebp - 0x68]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401598
cmp dword [ebp - 0x60], edi
jbe 0x401598
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
push dword [ebp - 0x64]
lea eax, [ebp + 0x3bc]
push eax
call ebx
jmp 0x40159e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp - 0x74], edi
je 0x4015b0
push esi
lea eax, [ebp + 0x1b0]
push eax
push dword [ebp - 0x74]
call ebx
cmp dword [ebp - 0x7c], edi
je 0x4015bf
push esi
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x7c]
call ebx
cmp dword [ebp - 0x70], edi
je 0x4015d1
push esi
lea eax, [ebp + 0x3bc]
push eax
push dword [ebp - 0x70]
call ebx
mov dword [ebp - 0x78], 1
push dword [ebp - 0x68]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov eax, dword [ebp - 0x78]
jmp 0x4015e9
xor eax, eax
mov ecx, dword [ebp + 0x7d4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401da8
add ebp, 0x7d8
leave
ret