Function at 0x10003df0
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 0x10004080
call fcn.10001f50
test eax, eax
jne 0x10004080
cmp dword [0x100e5ca8], eax
jne 0x10003e73
push 0x100b7278
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10004042
cmp dword [0x100e5ca8], esi
jne 0x10003e59
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x100e5ca8], eax
je 0x10004042
push 0x100e5ca4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x100e5ca8]
test eax, eax
je 0x10004042
mov eax, dword [0x100e5ca4]
push 0x42ea
mov dword [esp + 0x38], eax
call fcn.10002b90
add esp, 4
test eax, eax
je 0x10003ec5
call fcn.10001fe0
cmp word [eax], 0
jne 0x10003e9d
call fcn.100026e0
push edi
call fcn.10003a30
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10003ebc
test al, 0x50
je 0x10004042
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
push 0
call fcn.10003c80
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x10004042
mov eax, edi
call fcn.10003af0
mov ebx, eax
test ebx, ebx
je 0x10004042
push ebx
call fcn.10085b4e
lea edi, [ebx + eax*2]
add esp, 4
cmp ebx, edi
mov eax, edi
jae 0x10003f16
lea esp, [esp]
mov cx, word [eax]
cmp cx, 0x5c
je 0x10003f16
cmp cx, 0x2e
je 0x10003f16
sub eax, 2
cmp ebx, eax
jb 0x10003f00
cmp word [eax], 0x2e
jne 0x10003f1e
mov edi, eax
push str..dll
push edi
call fcn.100843ce
add esp, 8
test eax, eax
je 0x10003f46
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10003f46
push eax
push ebx
call fcn.10002f90
add esp, 8
mov esi, eax
push str..sys
push edi
call fcn.100843ce
add esp, 8
xor edi, edi
test eax, eax
je 0x10003ffd
cmp esi, edi
jne 0x10004042
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10003fcb
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 0x10003fb6
lea eax, [esp + 0x10]
push ebp
push 0x80000002
push ebx
call fcn.10003180
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x10004042
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10004001
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.10003310
add esp, 8
mov esi, eax
cmp esi, edi
jne 0x10004042
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10004042
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 0x10004031
lea eax, [esp + 0x20]
push ebp
push 0x80000002
push ebx
call fcn.10003180
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 0x10004064
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 0x10004076
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