Function at 0x40c218
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40c422
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00448494
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 4]
call fcn.00448ebc
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x34]
call fcn.00448ecc
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40c3f7
mov eax, dword [ebp - 0x18]
call fcn.004466a4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c3f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0x34]
call fcn.00448ecc
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x25], al
cmp byte [ebp - 0x25], 0
jne 0x40c2c3
call fcn.00447f9c
jmp 0x40c3f7
lea eax, [ebp - 0x2c]
mov edx, 0x40c434
call fcn.00448d6c
lea eax, [ebp - 0x30]
mov edx, 0x40c44c
call fcn.00448d6c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x30]
call fcn.00448ecc
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x40c378
xor eax, eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
cmp word [eax + edx*4], 0
jne 0x40c319
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov word [eax + edx*4], 0x409
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
cmp word [eax + edx*4 + 2], 0
jne 0x40c334
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov word [eax + edx*4 + 2], 0x4e4
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
movzx eax, word [eax + edx*4]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
movzx eax, word [eax + edx*4 + 2]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0
lea edx, [ebp - 0x50]
mov ecx, 1
mov eax, 0x40c488
call fcn.00435e98
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x2c]
call fcn.00448ebc
push 0x40c498
push dword [ebp - 0x2c]
push 0x40c4c0
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 8]
call fcn.00448ebc
push dword [ebp - 0x54]
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00448fb8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x30]
call fcn.00448ecc
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
cmp byte [ebp - 0x25], 0
je 0x40c3da
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.004486bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3f7
mov eax, dword [ebp - 0x10]
call fcn.004466c0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c429
lea eax, [ebp - 0x54]
call fcn.00448d08
lea eax, [ebp - 0x40]
call fcn.00448494
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00448d20
ret