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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498e60
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4bd0c8]
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.004093d0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41d161
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d157
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d372
push edx
push ecx
call fcn.0046e37b
add esp, 8
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41d16b
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 0x41d181
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41d2fc
cmp ebx, 0x10
je 0x41d2fc
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x5c], 0
jb 0x41d1ad
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 0x41d2d1
push ebx
call fcn.0046e71e
add esp, 4
mov ebx, eax
cmp dword [esi + 0x14], 8
jb 0x41d1de
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 0x41d29b
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 0
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], 0
push eax
push 0x4b2218
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41d28d
mov eax, dword [ebp - 0x58]
cmp eax, 0x34
jb 0x41d285
mov ecx, dword [ebp - 0x54]
cmp dword [ecx], 0xfeef04bd
jne 0x41d285
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 0x41d2c3
cmp dword [ebp - 0x58], 2
jbe 0x41d2c3
mov eax, dword [ebp - 0x54]
cmp word [eax], 0
je 0x41d2c3
mov ecx, dword [ebp - 0x64]
push eax
call fcn.0040a460
push ebx
call fcn.0046e719
add esp, 4
jmp 0x41d353
push eax
push str.VS_FIXEDFILEINFO_invalid._ValueLen:__i
jmp 0x41d2a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VerQueryValueW_failed._LastErrorCode:__i.
jmp 0x41d2a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileVersionInfoW_failed._LastErrorCode:__i.
lea eax, [ebp - 0x28]
push eax
call fcn.0041d400
add esp, 0xc
mov ecx, edi
push eax
call fcn.004093d0
lea ecx, [ebp - 0x28]
call fcn.004036b0
push ebx
call fcn.0046e719
add esp, 4
jmp 0x41d353
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.0041d400
add esp, 0x10
mov ecx, edi
push eax
call fcn.004093d0
lea ecx, [ebp - 0x28]
call fcn.004036b0
jmp 0x41d353
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.0041d400
add esp, 0x10
mov ecx, edi
push eax
call fcn.004093d0
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x41d353
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d349
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d377
push edx
push ecx
call fcn.0046e37b
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.0046e338
mov esp, ebp
pop ebp
ret
call fcn.00473144
call fcn.00473144
int3