Function at 0x404910
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
xor esi, esi
push esi
xor ebp, ebp
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esp + 0x34]
test edi, edi
je 0x404ba0
call fcn.00402a70
test eax, eax
jne 0x404ba0
cmp dword [0x5e4960], eax
jne 0x404993
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x404b62
cmp dword [0x5e4960], esi
jne 0x404979
push 0x59b238
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x5e4960], eax
je 0x404b62
push 0x5e495c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x5e4960]
test eax, eax
je 0x404b62
mov eax, dword [0x5e495c]
push 0x42ea
mov dword [esp + 0x38], eax
call fcn.004036b0
add esp, 4
test eax, eax
je 0x4049e5
call fcn.00402b00
cmp word [eax], 0
jne 0x4049bd
call fcn.00403200
push edi
call fcn.00404550
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4049dc
test al, 0x50
je 0x404b62
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
push 0
call fcn.004047a0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x404b62
mov eax, edi
call fcn.00404610
mov ebx, eax
test ebx, ebx
je 0x404b62
push ebx
call fcn.0056395e
lea edi, [ebx + eax*2]
add esp, 4
cmp ebx, edi
mov eax, edi
jae 0x404a36
lea esp, [esp]
mov cx, word [eax]
cmp cx, 0x5c
je 0x404a36
cmp cx, 0x2e
je 0x404a36
sub eax, 2
cmp ebx, eax
jb 0x404a20
cmp word [eax], 0x2e
jne 0x404a3e
mov edi, eax
push str..dll
push edi
call fcn.00563419
add esp, 8
test eax, eax
je 0x404a66
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x404a66
push eax
push ebx
call fcn.00403ab0
add esp, 8
mov esi, eax
push str..sys
push edi
call fcn.00563419
add esp, 8
xor edi, edi
test eax, eax
je 0x404b1d
cmp esi, edi
jne 0x404b62
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x404aeb
cmp dword [esp + 0x34], edi
mov dword [esp + 0x20], str.UserModeDriverNameWow
mov dword [esp + 0x24], str.OpenGLDriverNameWow
mov dword [esp + 0x28], str.UserModeDListDriverNameWow
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], str.UserModeDriverName
mov dword [esp + 0x14], str.OpenGLDriverName
mov dword [esp + 0x18], str.UserModeDListDriverName
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x20]
jne 0x404ad6
lea eax, [esp + 0x10]
push ebp
push 0x80000002
push ebx
call fcn.00403ca0
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x404b62
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x404b21
push 0x80000002
push ebx
lea eax, [esp + 0x28]
mov dword [esp + 0x28], str.SOFTWAREKhronosVulkanDrivers
mov dword [esp + 0x2c], str.SOFTWAREKhronosOpenCLVendors
mov dword [esp + 0x30], edi
call fcn.00403e30
add esp, 8
mov esi, eax
cmp esi, edi
jne 0x404b62
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x404b62
cmp dword [esp + 0x34], edi
mov dword [esp + 0x10], str.DriverSupportModulesWow
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], str.DriverSupportModules
mov dword [esp + 0x24], edi
lea eax, [esp + 0x10]
jne 0x404b51
lea eax, [esp + 0x20]
push ebp
push 0x80000002
push ebx
call fcn.00403ca0
add esp, 0xc
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
call edi
push ebx
call edi
test esi, esi
je 0x404b84
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x404b96
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret