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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x1a8]
sub rsp, 0x2a0
mov rax, qword [0x1400b1040]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor r15d, r15d
mov ecx, 0x42ea
mov qword [rsp + 0x58], r15
mov edi, r15d
mov ebx, r15d
mov esi, r15d
call fcn.1400055a4
test eax, eax
je 0x140004c06
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x20a
call fcn.140031860
lea rcx, [rbp - 0x80]
call fcn.1400044a8
cmp r15w, word [rbp - 0x80]
je 0x140004c06
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140004c06
test al, 0x10
je 0x140004c06
lea rax, [rbp - 0x80]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x140004bc6
inc rbx
mov ecx, 0x40
lea rdx, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140004c3a
lea r8, [rbp - 0x80]
mov rdx, rbx
mov rcx, rax
call fcn.1400011c0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
jmp 0x140004c3c
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x60], 0x20
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x1770
call fcn.1400055a4
test eax, eax
jne 0x140004c68
lea ecx, [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14002ca00
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov rax, qword [0x1400ba9c8]
test rax, rax
jne 0x140004c8e
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.14000170c
mov qword [0x1400ba9c8], rax
test rax, rax
je 0x140004c3a
cmp qword [0x1400baa00], r15
jne 0x140004cba
lea rdx, str.SetupDiGetDevicePropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400baa00], rax
test rax, rax
je 0x140004c3a
mov rax, qword [0x1400ba9c8]
cmp qword [0x1400baa60], r15
jne 0x140004cea
lea rdx, str.SetupGetInfDriverStoreLocationW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400baa60], rax
test rax, rax
je 0x140004c3a
mov rax, qword [0x1400ba9c8]
cmp qword [0x1400baa50], r15
jne 0x140004d13
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400baa50], rax
test rax, rax
je 0x140004c3a
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x58]
call fcn.1400056dc
test eax, eax
je 0x140004c3a
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x38], r15d
lea r9, [rsp + 0x54]
mov qword [rsp + 0x30], rax
lea r8, [0x14009a148]
mov rax, qword [0x1400baa00]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x50], r15d
mov dword [rsp + 0x54], r15d
call qword [case.0x14002cfb6.0]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140004e77
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140004e77
mov ecx, dword [rsp + 0x50]
lea r9, [rsp + 0x54]
mov dword [rsp + 0x38], r15d
lea r8, [0x14009a148]
mov qword [rsp + 0x30], r15
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400baa00]
call qword [case.0x14002cfb6.0]
test eax, eax
je 0x140004e77
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rax, qword [0x1400baa60]
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call qword [case.0x14002cfb6.0]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140004e77
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140004e77
mov ecx, dword [rsp + 0x50]
mov r9, rax
mov rax, qword [0x1400baa60]
xor r8d, r8d
mov qword [rsp + 0x28], r15
xor edx, edx
mov dword [rsp + 0x20], ecx
mov rcx, rdi
call qword [case.0x14002cfb6.0]
test eax, eax
je 0x140004e77
mov edx, 0x5c
mov rcx, rbx
call fcn.140030f68
lea rdx, [rax + 2]
test rax, rax
jne 0x140004e63
mov rdx, rbx
sub rdx, rbx
mov rcx, rbx
sar rdx, 1
dec rdx
call fcn.14000523c
mov rsi, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rsp + 0x58], r15
je 0x140004ea2
mov rcx, qword [rsp + 0x58]
mov rax, qword [0x1400baa50]
call qword [case.0x14002cfb6.0]
test rsi, rsi
je 0x140004eaf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
jmp 0x140004c3c