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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cb28
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 0x40ad57
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ada2
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40ad6c
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 0x40ada2
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
test eax, eax
jne 0x40ada9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x40b056
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 0x40add3
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 0x40afdb
push eax
call fcn.0045dca3
mov esi, eax
add esp, 4
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x3c], esi
jb 0x40ae00
mov eax, dword [edi]
push esi
push dword [ebp - 0x2c]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40afdb
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push eax
push 0x58ad94
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40afdb
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 0x58ad98
push esi
movups xmmword [ebp - 0x5c], xmm0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ae8a
cmp dword [ebp - 0x18], 4
jb 0x40ae8a
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 0x40afdb
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 0
call fcn.0040b090
mov ecx, eax
test ecx, ecx
je 0x40b071
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.0040ac60
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 0x40af15
push dword [ebp - 0x30]
lea ecx, [edi + 0x18]
call fcn.0040a9c0
lea edx, [esi - 0x10]
mov dword [ebp - 0x14], 0
cmp dword [edx + 4], 0
mov eax, dword [edx]
mov dword [ebp - 0x44], eax
je 0x40af6f
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x40af4b
cmp dword [esi - 8], 0
jl 0x40b07b
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x40af6f
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40af5f
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 0x58ae24
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.0040ac60
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 0x40afb5
push dword [ebp - 0x2c]
lea ecx, [edi + 0x30]
call fcn.0040a9c0
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 0x40afd8
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 0x40afe5
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 0x40aff4
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 0x40b034
lea eax, [edi + 0x18]
cmp ecx, eax
je 0x40b046
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x40b029
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.00407040
jmp 0x40b046
cmp dword [edi + 0x40], 0
lea eax, [edi + 0x30]
jne 0x40b040
lea eax, [edi + 0x48]
push eax
call fcn.0040a990
test esi, esi
je 0x40b053
push esi
call fcn.0045dcac
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.0045db8e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040a9f0
push 0x80070057
call fcn.0040a9f0
int3