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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
push ebx
push esi
push edi
xor esi, esi
push esi
mov dword [esp + 0x14], esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
cmp edi, esi
je 0x1000647a
call fcn.10004250
test eax, eax
jne 0x1000647a
cmp dword [0x101e6544], eax
jne 0x1000623c
push 0x101ab640
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x1000643a
cmp dword [0x101e6544], ebx
jne 0x10006222
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x101e6544], eax
je 0x1000643a
push 0x101e6540
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x101e6544]
test eax, eax
je 0x1000643a
mov eax, dword [0x101e6540]
push 0x42ea
mov dword [esp + 0x18], eax
call fcn.10004c50
add esp, 4
test eax, eax
je 0x100062b5
xor eax, eax
mov word [esp + 0x38], 0
mov ecx, 0x82
lea edi, [esp + 0x3a]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x38]
call fcn.100042e0
cmp word [esp + 0x38], 0
jne 0x10006286
mov ecx, edi
push ecx
call fcn.10005b30
add esp, 4
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x3c]
call fcn.100058e0
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100062ac
test al, 0x50
je 0x1000643a
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
push 0
call fcn.10005db0
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
je 0x1000643a
mov eax, dword [ebp + 8]
call fcn.100059a0
mov ebx, eax
test ebx, ebx
je 0x1000643a
push ebx
call fcn.10159312
lea edi, [ebx + eax*2]
add esp, 4
cmp ebx, edi
mov eax, edi
jae 0x10006306
nop
mov cx, word [eax]
cmp cx, 0x5c
je 0x10006306
cmp cx, 0x2e
je 0x10006306
sub eax, 2
cmp ebx, eax
jb 0x100062f0
cmp word [eax], 0x2e
jne 0x1000630e
mov edi, eax
push str..dll
push edi
call fcn.1015c4c3
add esp, 8
test eax, eax
je 0x10006336
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10006336
push eax
push ebx
call fcn.10005050
add esp, 8
mov esi, eax
push str..sys
push edi
call fcn.1015c4c3
add esp, 8
xor edi, edi
test eax, eax
je 0x100063f1
cmp esi, edi
jne 0x1000643a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100063bf
cmp dword [esp + 0x14], edi
mov dword [esp + 0x18], str.UserModeDriverNameWow
mov dword [esp + 0x1c], str.OpenGLDriverNameWow
mov dword [esp + 0x20], str.UserModeDListDriverNameWow
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], str.UserModeDriverName
mov dword [esp + 0x2c], str.OpenGLDriverName
mov dword [esp + 0x30], str.UserModeDListDriverName
mov dword [esp + 0x34], edi
lea eax, [esp + 0x18]
jne 0x100063a6
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x10]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
push ebx
call fcn.10005240
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x1000643a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100063f5
push reloc.OLEAUT32.dll_SysReAllocString
push ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], str.SOFTWAREKhronosVulkanDrivers
mov dword [esp + 0x24], str.SOFTWAREKhronosOpenCLVendors
mov dword [esp + 0x28], edi
call fcn.100053d0
add esp, 8
mov esi, eax
cmp esi, edi
jne 0x1000643a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000643a
cmp dword [esp + 0x14], edi
mov dword [esp + 0x28], str.DriverSupportModulesWow
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], str.DriverSupportModules
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x28]
jne 0x10006425
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x10]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
push ebx
call fcn.10005240
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
call edi
push ebx
call edi
test esi, esi
je 0x1000645f
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10006471
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret