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

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4db068]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
xor esi, esi
mov dword [esp + 0x10], 0
push esi
xor edi, edi
call ebx
test ebp, ebp
je 0x498572
push ebp
call fcn.00496640
add esp, 4
test eax, eax
jne 0x498572
cmp dword [0x4e11c0], esi
jne 0x49837a
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x498523
cmp dword [0x4e11c0], esi
jne 0x498360
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4e11c0], eax
test eax, eax
je 0x498523
push 0x4e11bc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x4e11c0]
test eax, eax
je 0x498523
mov eax, dword [0x4e11bc]
push 0x42ea
mov dword [esp + 0x18], eax
call fcn.004978b0
add esp, 4
test eax, eax
je 0x4983c0
call fcn.00497300
push ebp
push eax
call fcn.00497c30
add esp, 8
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4983b9
test al, 0x50
je 0x498523
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x4b374c
call fcn.00498590
xor esi, esi
mov dword [esp + 0x14], eax
add esp, 4
cmp eax, esi
je 0x498523
push ebp
call fcn.00496540
mov edi, eax
add esp, 4
test edi, edi
je 0x498523
push edi
call fcn.00497000
push str..dll
push eax
mov dword [esp + 0x34], eax
call fcn.0046f00e
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
test eax, eax
je 0x498426
call ebp
test eax, eax
jne 0x498426
push 0x4b374c
push edi
call fcn.00496a90
add esp, 8
mov esi, eax
push str..sys
push dword [esp + 0x2c]
call fcn.0046f00e
add esp, 8
test eax, eax
je 0x4984dc
test esi, esi
jne 0x498523
call ebp
test eax, eax
jne 0x4984ad
cmp dword [esp + 0x14], esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x18]
cmove eax, ecx
mov dword [esp + 0x18], str.UserModeDriverNameWow
push eax
push dword [esp + 0x14]
mov dword [esp + 0x24], str.OpenGLDriverNameWow
push reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [esp + 0x30], str.UserModeDListDriverNameWow
mov dword [esp + 0x38], str.UserModeDriverName
mov dword [esp + 0x3c], str.OpenGLDriverName
mov dword [esp + 0x40], str.UserModeDListDriverName
call fcn.00496e70
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x498523
call ebp
test eax, eax
jne 0x4984e0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [esp + 0x24], str.SOFTWAREKhronosVulkanDrivers
mov dword [esp + 0x28], str.SOFTWAREKhronosOpenCLVendors
call fcn.00496ce0
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x498523
call ebp
test eax, eax
jne 0x498523
cmp dword [esp + 0x14], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x28]
cmove eax, ecx
mov dword [esp + 0x28], str.DriverSupportModulesWow
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], str.DriverSupportModules
push reloc.OLEAUT32.dll_SysReAllocString
push edi
call fcn.00496e70
add esp, 0x10
mov esi, eax
push dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_LocalFree]
call ebp
push edi
call ebp
test esi, esi
je 0x49854f
push 0
call ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00451f9f
add esp, 0x2c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x49855d
push 0x7e
call ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00451f9f
add esp, 0x2c
ret
push 0xa0
call ebx
mov ecx, dword [esp + 0x38]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00451f9f
add esp, 0x2c
ret