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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5d5440]
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 0x40bc67
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bcb2
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40bc7c
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 0x40bcb2
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
test eax, eax
jne 0x40bcb9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x40bf66
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 0x40bce3
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 0x40beeb
push eax
call fcn.004675a3
mov esi, eax
add esp, 4
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x3c], esi
jb 0x40bd10
mov eax, dword [edi]
push esi
push dword [ebp - 0x2c]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40beeb
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push eax
push 0x595e54
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40beeb
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 str.VarFileInfoTranslation
push esi
movups xmmword [ebp - 0x5c], xmm0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40bd9a
cmp dword [ebp - 0x18], 4
jb 0x40bd9a
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 0x40beeb
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 0
call fcn.0040bfc0
mov ecx, eax
test ecx, ecx
je 0x40bf81
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.0040bb70
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 0x40be25
push dword [ebp - 0x30]
lea ecx, [edi + 0x18]
call fcn.0040b850
lea edx, [esi - 0x10]
mov dword [ebp - 0x14], 0
cmp dword [edx + 4], 0
mov eax, dword [edx]
mov dword [ebp - 0x44], eax
je 0x40be7f
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x40be5b
cmp dword [esi - 8], 0
jl 0x40bf8b
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x40be7f
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40be6f
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 0x595ee8
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.0040bb70
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 0x40bec5
push dword [ebp - 0x2c]
lea ecx, [edi + 0x30]
call fcn.0040b850
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 0x40bee8
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 0x40bef5
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 0x40bf04
sub edx, eax
lea ecx, [edi + 0x48]
sar edx, 1
push edx
push dword [ebp - 0x48]
call fcn.00407440
cmp dword [edi + 0x28], 0
lea ecx, [edi + 0x60]
je 0x40bf44
lea eax, [edi + 0x18]
cmp ecx, eax
je 0x40bf56
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x40bf39
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.00407440
jmp 0x40bf56
cmp dword [edi + 0x40], 0
lea eax, [edi + 0x30]
jne 0x40bf50
lea eax, [edi + 0x48]
push eax
call fcn.0040b820
test esi, esi
je 0x40bf63
push esi
call fcn.004675ac
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.0046748e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040b900
push 0x80070057
call fcn.0040b900
int3