Function at 0x40c120
Capabilities:
Get file version info

Disassembly:
sub esp, 0x850
mov eax, dword [0x42202c]
xor eax, esp
mov dword [esp + 0x84c], eax
mov eax, dword [esp + 0x858]
push ebp
push esi
mov esi, dword [esp + 0x85c]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edx
je 0x40c3f5
cmp word [esi], bp
je 0x40c3f5
push ebx
push 0x208
lea eax, [esp + 0x2e]
push ebp
push eax
mov word [esp + 0x34], bp
call sub.MSVCR80.dll_memset
push 0x208
lea ecx, [esp + 0x452]
push ebp
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], ebp
mov word [esp + 0x458], bp
call sub.MSVCR80.dll_memset
push 0x208
lea edx, [esp + 0x252]
push ebp
push edx
mov word [esp + 0x258], bp
call sub.MSVCR80.dll_memset
push 0x208
lea eax, [esp + 0x676]
push ebp
push eax
mov word [esp + 0x67c], bp
call sub.MSVCR80.dll_memset
add esp, 0x30
push ebp
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, ebp
jne 0x40c204
pop ebx
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x84c]
xor ecx, esp
call fcn.004158da
add esp, 0x850
ret
push edi
push ebx
call fcn.004158d0
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x40c3da
push edi
push ebx
push ebp
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40c3d1
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x419e14
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c3d1
push 0x20a
lea eax, [esp + 0x30]
push ebp
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x24]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
mov esi, dword [sym.imp.MSVCR80.dll__snwprintf_s]
push ecx
push edx
push str.StringFileInfo_04x_04xFileDescription
push 0xffffffffffffffff
lea eax, [esp + 0x48]
push 0x104
push eax
call esi
add esp, 0x24
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x34]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
je 0x40c2b8
cmp dword [esp + 0x14], ebp
jbe 0x40c2b8
mov ecx, dword [esp + 0x10]
push 0x105
push ecx
lea edx, [esp + 0x44c]
push edx
call ebx
push 0x20a
lea eax, [esp + 0x30]
push ebp
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x24]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04xFileVersion
push 0xffffffffffffffff
lea eax, [esp + 0x48]
push 0x104
push eax
call esi
add esp, 0x24
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x34]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c31e
cmp dword [esp + 0x14], ebp
jbe 0x40c31e
mov ecx, dword [esp + 0x10]
push 0x105
push ecx
lea edx, [esp + 0x240]
push edx
call ebx
push 0x20a
lea eax, [esp + 0x30]
push ebp
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x24]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04xProductName
push 0xffffffffffffffff
lea eax, [esp + 0x48]
push 0x104
push eax
call esi
add esp, 0x24
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x34]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c384
cmp dword [esp + 0x14], ebp
jbe 0x40c384
mov ecx, dword [esp + 0x10]
push 0x105
push ecx
lea edx, [esp + 0x658]
push edx
call ebx
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x40c39c
push 0x104
lea ecx, [esp + 0x448]
push ecx
push eax
call ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x40c3b4
push 0x104
lea edx, [esp + 0x23c]
push edx
push eax
call ebx
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x40c3cc
push 0x104
lea ecx, [esp + 0x654]
push ecx
push eax
call ebx
mov ebp, 1
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x84c]
xor ecx, esp
call fcn.004158da
add esp, 0x850
ret
mov ecx, dword [esp + 0x854]
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004158da
add esp, 0x850
ret