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

Disassembly:
sub esp, 0x2c
mov eax, dword [0x453034]
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 0x407bd5
push ebp
call fcn.00405b80
add esp, 4
test eax, eax
jne 0x407bd5
cmp dword [0x456c28], esi
jne 0x4079da
push 0x442e54
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x407b86
cmp dword [0x456c28], esi
jne 0x4079c0
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x456c28], eax
test eax, eax
je 0x407b86
push 0x456c24
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x456c28]
test eax, eax
je 0x407b86
mov eax, dword [0x456c24]
push 0x42ea
mov dword [esp + 0x18], eax
call fcn.00406ea0
add esp, 4
test eax, eax
je 0x407a2a
call fcn.004066e0
cmp word [eax], si
jne 0x407a03
call fcn.004067c0
push ebp
push eax
call fcn.00407290
add esp, 8
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407a23
test al, 0x50
je 0x407b86
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
call fcn.00407c00
xor esi, esi
mov dword [esp + 0x14], eax
add esp, 4
cmp eax, esi
je 0x407b86
push ebp
call fcn.00405a80
mov edi, eax
add esp, 4
test edi, edi
je 0x407b86
push edi
call fcn.004064f0
push str..dll
push eax
mov dword [esp + 0x34], eax
call fcn.00426a00
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
test eax, eax
je 0x407a89
call ebp
test eax, eax
jne 0x407a89
push eax
push edi
call fcn.00405f90
add esp, 8
mov esi, eax
push str..sys
push dword [esp + 0x2c]
call fcn.00426a00
add esp, 8
test eax, eax
je 0x407b3f
test esi, esi
jne 0x407b86
call ebp
test eax, eax
jne 0x407b10
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 0x80000002
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.00406330
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x407b86
call ebp
test eax, eax
jne 0x407b43
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 0x80000002
push edi
mov dword [esp + 0x24], str.SOFTWAREKhronosVulkanDrivers
mov dword [esp + 0x28], str.SOFTWAREKhronosOpenCLVendors
call fcn.004061c0
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x407b86
call ebp
test eax, eax
jne 0x407b86
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 0x80000002
push edi
call fcn.00406330
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 0x407bb2
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.0041fb75
add esp, 0x2c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x407bc0
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.0041fb75
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.0041fb75
add esp, 0x2c
ret