Function at 0x40e1a0
Capabilities:
Check if file exists
Get file attributes
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x467074]
xor eax, esp
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x14], edx
xorps xmm0, xmm0
mov word [esp + 0x28], ax
movq qword [esp + 0x1c], xmm0
mov eax, dword [esp + 0x1c]
push ebx
mov dword [edx], eax
lea ebx, [edx + 0xc]
mov eax, dword [esp + 0x24]
push esi
mov esi, dword [ebp + 8]
mov dword [edx + 4], eax
lea eax, [esp + 0x30]
mov byte [esp + 0xb], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 7
mov dword [edx + 8], 0
mov dword [esp + 0x20], ebx
push edi
mov edi, ecx
cmp ebx, eax
je 0x40e222
mov ecx, ebx
call fcn.00401220
movups xmm0, xmmword [esp + 0x34]
movups xmmword [ebx], xmm0
movq xmm0, qword [esp + 0x44]
movq qword [ebx + 0x10], xmm0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40e22c
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x40e242
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e572
cmp ebx, 0x10
je 0x40e572
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [esp + 0x1c], 0
jb 0x40e26f
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
lea eax, [ebx - 1]
cmp eax, 0x1ffffff
ja 0x40e4ec
push ebx
call fcn.0042b6e2
add esp, 4
mov dword [esp + 0x18], eax
cmp dword [edi + 0x14], 8
jb 0x40e2a0
mov edi, dword [edi]
push eax
push ebx
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40e46c
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0x4600ec
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40e3ec
mov eax, dword [esp + 0x10]
cmp eax, 0x34
jb 0x40e399
mov ecx, dword [esp + 0x14]
cmp dword [ecx], 0xfeef04bd
jne 0x40e399
mov edx, dword [esp + 0x20]
movzx eax, word [ecx + 0xa]
mov byte [esp + 0xf], 1
mov dword [edx], eax
movzx eax, word [ecx + 8]
mov dword [edx + 4], eax
movzx eax, word [ecx + 0xe]
mov dword [edx + 8], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push str.StringFileInfo040904b0InternalName
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40e4cd
cmp dword [esp + 0x10], 2
jbe 0x40e4cd
mov edx, dword [esp + 0x14]
cmp word [edx], 0
je 0x40e4cd
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e360
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x28]
push edx
call fcn.00401470
push edi
call fcn.0042b6dd
mov al, byte [esp + 0x13]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret
push eax
lea eax, [esp + 0x2c]
push str.VS_FIXEDFILEINFO_invalid._ValueLen:__i
push eax
call fcn.0040e6a0
add esp, 0xc
mov ecx, esi
push eax
call fcn.00401280
mov edx, dword [esp + 0x3c]
cmp edx, 8
jb 0x40e4cd
mov ecx, dword [esp + 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e443
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e60a
jmp 0x40e443
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x2c]
push str.VerQueryValueW_failed._LastErrorCode:__i.
push eax
call fcn.0040e6a0
add esp, 0xc
mov ecx, esi
push eax
call fcn.00401280
mov edx, dword [esp + 0x3c]
cmp edx, 8
jb 0x40e4cd
mov ecx, dword [esp + 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e443
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e60f
push edx
push ecx
call fcn.0042b435
add esp, 8
push edi
call fcn.0042b6dd
mov al, byte [esp + 0x13]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x2c]
push str.GetFileVersionInfoW_failed._LastErrorCode:__i.
push eax
call fcn.0040e6a0
add esp, 0xc
mov ecx, esi
push eax
call fcn.00401280
mov edx, dword [esp + 0x3c]
cmp edx, 8
jb 0x40e4c9
mov ecx, dword [esp + 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e4bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e614
push edx
push ecx
call fcn.0042b435
add esp, 8
mov edi, dword [esp + 0x18]
push edi
call fcn.0042b6dd
mov al, byte [esp + 0x13]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
lea eax, [esp + 0x30]
push str.GetFileVersionInfoSizeW_returned__i._LastErrorCode:__i.
push eax
call fcn.0040e6a0
mov edi, eax
add esp, 0x10
cmp esi, edi
je 0x40e536
mov ecx, esi
call fcn.00401220
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [esp + 0x3c]
cmp edx, 8
jb 0x40e5f4
mov ecx, dword [esp + 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e5ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e619
jmp 0x40e5ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
lea eax, [esp + 0x30]
push str.Invalid_file_attributes__X_for_QueryFileVersionInfo._LastErrorCode:__i.
push eax
call fcn.0040e6a0
mov edi, eax
add esp, 0x10
cmp esi, edi
je 0x40e5bc
mov ecx, esi
call fcn.00401220
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [esp + 0x3c]
cmp edx, 8
jb 0x40e5f4
mov ecx, dword [esp + 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e5ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e61e
push edx
push ecx
call fcn.0042b435
add esp, 8
mov ecx, dword [esp + 0x4c]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret
call fcn.0043012a
call fcn.0043012a
call fcn.0043012a
call fcn.0043012a
call fcn.0043012a
int3