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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140103a28]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor edi, edi
mov qword [rsp + 0x58], rdi
mov r15d, edi
mov r14d, edi
test ecx, ecx
jne 0x14002d71b
mov ecx, 0x42ea
call fcn.14002a8f0
test eax, eax
je 0x14002d6e7
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x20a
call fcn.14006b9a0
lea rcx, [rbp - 0x80]
call fcn.140028b40
cmp di, word [rbp - 0x80]
je 0x14002d6e7
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002d6e7
test al, 0x10
je 0x14002d6e7
lea rax, [rbp - 0x80]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], di
jne 0x14002d655
inc rbx
mov ecx, 0x40
lea rdx, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14002d71b
lea rcx, [rbx - 1]
mov edx, 0x7ffffffe
cmp rcx, rdx
ja 0x14002d6d2
sub rdx, rbx
lea r8, [rbp - 0x80]
sub r8, rax
mov rcx, rax
lea rax, [rdx + rbx]
test rax, rax
je 0x14002d6b7
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14002d6b7
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x14002d697
lea rax, [rcx - 2]
test rbx, rbx
cmovne rax, rcx
xor ecx, ecx
mov word [rax], di
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
jmp 0x14002d71d
test rbx, rbx
je 0x14002d6da
mov word [rax], di
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
jmp 0x14002d71d
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.14002a8f0
test eax, eax
jne 0x14002d749
lea ecx, [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140069d50
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rax, qword [0x140106440]
test rax, rax
jne 0x14002d76f
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.14002ab30
mov qword [0x140106440], rax
test rax, rax
je 0x14002d71b
cmp qword [0x140106468], rdi
jne 0x14002d79b
lea rdx, str.SetupDiGetDevicePropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140106468], rax
test rax, rax
je 0x14002d71b
mov rax, qword [0x140106440]
cmp qword [0x140106478], rdi
jne 0x14002d7cb
lea rdx, str.SetupGetInfDriverStoreLocationW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140106478], rax
test rax, rax
je 0x14002d71b
mov rax, qword [0x140106440]
cmp qword [0x140106470], rdi
jne 0x14002d7f4
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140106470], rax
test rax, rax
je 0x14002d71b
lea r8, [rsp + 0x60]
xor ecx, ecx
lea rdx, [rsp + 0x58]
call fcn.140028790
test eax, eax
je 0x14002d71b
mov rbx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x38], edi
lea r9, [rsp + 0x54]
mov qword [rsp + 0x30], rax
lea r8, [0x1400db3f8]
mov rax, qword [0x140106468]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x28], edi
mov rcx, rbx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x54], edi
call qword [0x1400d5670]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14002da11
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
je 0x14002da11
mov ecx, dword [rsp + 0x50]
lea r9, [rsp + 0x54]
mov dword [rsp + 0x38], edi
lea r8, [0x1400db3f8]
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x28], ecx
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov rax, qword [0x140106468]
call qword [0x1400d5670]
test eax, eax
je 0x14002da11
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rax, qword [0x140106478]
xor edx, edx
mov rcx, r15
mov dword [rsp + 0x20], edi
call qword [0x1400d5670]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14002da11
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x14002da11
mov ecx, dword [rsp + 0x50]
mov r9, rax
mov rax, qword [0x140106478]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rsp + 0x20], ecx
mov rcx, r15
call qword [0x1400d5670]
test eax, eax
je 0x14002da11
mov edx, 0x5c
mov rcx, r14
call fcn.14006da88
lea rsi, [rax + 2]
test rax, rax
jne 0x14002d94d
mov rsi, r14
sub rsi, r14
sar rsi, 1
sub rsi, 1
js 0x14002da11
lfence
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [r14 + rbx*2], di
jne 0x14002d970
cmp rsi, rbx
mov ecx, 0x40
cmovb rbx, rsi
inc rbx
lea rdx, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r8, rax
test rax, rax
je 0x14002da0c
lea rax, [rbx - 1]
mov edx, 0x7ffffffe
cmp rax, rdx
ja 0x14002d9f1
cmp rsi, rdx
ja 0x14002d9f6
sub rsi, rbx
mov rdx, r14
sub rdx, r8
mov rcx, r8
nop word [rax + rax]
lea rax, [rsi + rbx]
test rax, rax
je 0x14002d9df
movzx eax, word [rdx + rcx]
test ax, ax
je 0x14002d9df
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x14002d9c0
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
jne 0x14002da09
jmp 0x14002d9fa
test rbx, rbx
je 0x14002d9fa
mov word [r8], di
lfence
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r8, rdi
mov rdi, r8
mov rbx, qword [rsp + 0x58]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
je 0x14002da38
mov rax, qword [0x140106470]
mov rcx, rbx
call qword [0x1400d5670]
test rdi, rdi
je 0x14002da45
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
jmp 0x14002d71d