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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495d80
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4b80c8]
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.00407f20
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41b401
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b3f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b612
push edx
push ecx
call fcn.0046b46b
add esp, 8
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41b40b
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 0x41b421
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41b59c
cmp ebx, 0x10
je 0x41b59c
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x5c], 0
jb 0x41b44d
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 0x41b571
push ebx
call fcn.0046b80e
add esp, 4
mov ebx, eax
cmp dword [esi + 0x14], 8
jb 0x41b47e
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 0x41b53b
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 0
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], 0
push eax
push 0x4af1a0
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41b52d
mov eax, dword [ebp - 0x58]
cmp eax, 0x34
jb 0x41b525
mov ecx, dword [ebp - 0x54]
cmp dword [ecx], 0xfeef04bd
jne 0x41b525
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 0x41b563
cmp dword [ebp - 0x58], 2
jbe 0x41b563
mov eax, dword [ebp - 0x54]
cmp word [eax], 0
je 0x41b563
mov ecx, dword [ebp - 0x64]
push eax
call fcn.00408f20
push ebx
call fcn.0046b809
add esp, 4
jmp 0x41b5f3
push eax
push str.VS_FIXEDFILEINFO_invalid._ValueLen:__i
jmp 0x41b547
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VerQueryValueW_failed._LastErrorCode:__i.
jmp 0x41b547
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileVersionInfoW_failed._LastErrorCode:__i.
lea eax, [ebp - 0x28]
push eax
call fcn.0041b6a0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00407f20
lea ecx, [ebp - 0x28]
call fcn.004034e0
push ebx
call fcn.0046b809
add esp, 4
jmp 0x41b5f3
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.0041b6a0
add esp, 0x10
mov ecx, edi
push eax
call fcn.00407f20
lea ecx, [ebp - 0x28]
call fcn.004034e0
jmp 0x41b5f3
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.0041b6a0
add esp, 0x10
mov ecx, edi
push eax
call fcn.00407f20
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x41b5f3
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b5e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b617
push edx
push ecx
call fcn.0046b46b
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.0046b428
mov esp, ebp
pop ebp
ret
call fcn.00470244
call fcn.00470244
int3