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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497900
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4bb0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], edx
mov esi, ecx
mov edi, dword [ebp + 8]
xor ecx, ecx
xorps xmm0, xmm0
mov byte [ebp - 0x4d], 0
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
mov dword [edx], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], ecx
mov dword [edx + 8], ecx
lea ecx, [ebp - 0x28]
mov dword [edx + 4], eax
lea eax, [edx + 0xc]
push ecx
mov ecx, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x64], eax
call fcn.00409730
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41cd81
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41cd77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cf92
push edx
push ecx
call fcn.0046cebb
add esp, 8
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41cd8b
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0
mov word [eax], cx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41cda1
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41cf1c
cmp ebx, 0x10
je 0x41cf1c
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x5c], 0
jb 0x41cdcd
mov eax, dword [esi]
lea ecx, [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
mov dword [ebp - 0x54], ebx
lea eax, [ebx - 1]
cmp eax, 0x1ffffff
ja 0x41cef1
push ebx
call fcn.0046d25f
add esp, 4
mov ebx, eax
cmp dword [esi + 0x14], 8
jb 0x41cdfe
mov esi, dword [esi]
push ebx
push dword [ebp - 0x54]
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41cebb
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 0
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], 0
push eax
push 0x4b1098
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41cead
mov eax, dword [ebp - 0x58]
cmp eax, 0x34
jb 0x41cea5
mov ecx, dword [ebp - 0x54]
cmp dword [ecx], 0xfeef04bd
jne 0x41cea5
mov edx, dword [ebp - 0x60]
movzx eax, word [ecx + 0xa]
mov byte [ebp - 0x4d], 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, [ebp - 0x58]
push eax
lea eax, [ebp - 0x54]
push eax
push str.StringFileInfo040904b0InternalName
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41cee3
cmp dword [ebp - 0x58], 2
jbe 0x41cee3
mov eax, dword [ebp - 0x54]
cmp word [eax], 0
je 0x41cee3
mov ecx, dword [ebp - 0x64]
push eax
call fcn.0040a770
push ebx
call fcn.0046d25a
add esp, 4
jmp 0x41cf73
push eax
push str.VS_FIXEDFILEINFO_invalid._ValueLen:__i
jmp 0x41cec7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VerQueryValueW_failed._LastErrorCode:__i.
jmp 0x41cec7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileVersionInfoW_failed._LastErrorCode:__i.
lea eax, [ebp - 0x28]
push eax
call fcn.0041d020
add esp, 0xc
mov ecx, edi
push eax
call fcn.00409730
lea ecx, [ebp - 0x28]
call fcn.00403640
push ebx
call fcn.0046d25a
add esp, 4
jmp 0x41cf73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
lea eax, [ebp - 0x28]
push str.GetFileVersionInfoSizeW_returned__i._LastErrorCode:__i.
push eax
call fcn.0041d020
add esp, 0x10
mov ecx, edi
push eax
call fcn.00409730
lea ecx, [ebp - 0x28]
call fcn.00403640
jmp 0x41cf73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
lea eax, [ebp - 0x4c]
push str.Invalid_file_attributes__X_for_QueryFileVersionInfo._LastErrorCode:__i.
push eax
call fcn.0041d020
add esp, 0x10
mov ecx, edi
push eax
call fcn.00409730
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x41cf73
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41cf69
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cf97
push edx
push ecx
call fcn.0046cebb
add esp, 8
mov al, byte [ebp - 0x4d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ce78
mov esp, ebp
pop ebp
ret
call fcn.00471c84
call fcn.00471c84
int3