Function at 0x40aee0
Capabilities:
Check if file exists
Get file size
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ce68
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5c9440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x40af17
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40af62
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40af2c
mov eax, dword [edi]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40af62
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
test eax, eax
jne 0x40af69
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x40b216
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
xor esi, esi
mov dword [edi + 0x78], eax
mov eax, edi
cmp dword [edi + 0x14], 8
mov byte [ebp - 0x31], 0
mov dword [ebp - 0x44], 0x804
mov dword [ebp - 0x40], 0x4e4
jb 0x40af93
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x40b19b
push eax
call fcn.0045df93
mov esi, eax
add esp, 4
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x3c], esi
jb 0x40afc0
mov eax, dword [edi]
push esi
push dword [ebp - 0x2c]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40b19b
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push eax
push 0x58ae54
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40b19b
mov eax, dword [ebp - 0x28]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x7c], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x6c], xmm0
movups xmm0, xmmword [eax + 0x20]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x58ae58
push esi
movups xmmword [ebp - 0x5c], xmm0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40b04a
cmp dword [ebp - 0x18], 4
jb 0x40b04a
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov ax, word [ebp - 0x12]
mov dword [ebp - 0x40], eax
mov ax, word [ebp - 0x14]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x7c], 0xfeef04bd
jne 0x40b19b
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 0
call fcn.0040b250
mov ecx, eax
test ecx, ecx
je 0x40b231
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x40]
movzx ecx, ax
mov eax, dword [ebp - 0x44]
push str.FileDescription
movzx eax, ax
push ecx
push eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x38]
push str.StringFileInfo_04X_04X_s
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], ecx
call fcn.0040ae20
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x14]
add esp, 0x14
push eax
lea eax, [ebp - 0x30]
push eax
push esi
push dword [ebp - 0x3c]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40b0d5
push dword [ebp - 0x30]
lea ecx, [edi + 0x18]
call fcn.0040ab80
lea edx, [esi - 0x10]
mov dword [ebp - 0x14], 0
cmp dword [edx + 4], 0
mov eax, dword [edx]
mov dword [ebp - 0x44], eax
je 0x40b12f
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x40b10b
cmp dword [esi - 8], 0
jl 0x40b23b
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x40b12f
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40b11f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x38], eax
push 0x58aee4
push dword [ebp - 0x40]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x2c], 0
push dword [ebp - 0x48]
push str.StringFileInfo_04X_04X_s
push eax
call fcn.0040ae20
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x14]
add esp, 0x14
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 0x3c]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40b175
push dword [ebp - 0x2c]
lea ecx, [edi + 0x30]
call fcn.0040ab80
mov byte [ebp - 0x31], 1
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b198
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x3c]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40b1a5
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
mov dword [ebp - 0x48], eax
lea eax, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40b1b4
sub edx, eax
lea ecx, [edi + 0x48]
sar edx, 1
push edx
push dword [ebp - 0x48]
call fcn.00407040
cmp dword [edi + 0x28], 0
lea ecx, [edi + 0x60]
je 0x40b1f4
lea eax, [edi + 0x18]
cmp ecx, eax
je 0x40b206
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x40b1e9
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.00407040
jmp 0x40b206
cmp dword [edi + 0x40], 0
lea eax, [edi + 0x30]
jne 0x40b200
lea eax, [edi + 0x48]
push eax
call fcn.0040ab50
test esi, esi
je 0x40b213
push esi
call fcn.0045df9c
add esp, 4
mov al, byte [ebp - 0x31]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045de7e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040abb0
push 0x80070057
call fcn.0040abb0
int3