Function at 0x1401512c0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x9e0]
sub rsp, 0xae0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x9d0], rax
mov r13, rdx
mov r14, rcx
xor esi, esi
mov rax, qword [rcx]
mov rax, qword [rax + 0x98]
call qword [case.0x1400136d6.0]
test al, al
jne 0x140151320
mov dword [0x1402bbd98], 4
mov eax, 0x80010004
jmp 0x140151648
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x88]
call qword [case.0x1400136d6.0]
cmp eax, 1
je 0x140151639
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x88]
call qword [case.0x1400136d6.0]
cmp eax, 3
je 0x140151639
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x1d0]
call fcn.1401e7e40
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x140151672
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0xb0]
call qword [case.0x1400136d6.0]
mov rdi, rax
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400040b0
nop
lea rdx, [rdi + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1400040b0
nop
lea rdx, [rdi + 0x40]
lea rcx, [rbp - 0x80]
call fcn.1400040b0
nop
lea rdx, [rdi + 0x60]
lea rcx, [rbp - 0x60]
call fcn.14006d9f0
nop
mov rax, qword [r14]
mov r9d, 0x400
lea r8, [rbp + 0x1d0]
mov edx, 1
mov rcx, r14
mov rax, qword [rax + 0x70]
call qword [case.0x1400136d6.0]
test eax, eax
je 0x1401515d9
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdi, eax
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
add rcx, rdi
cmp rcx, 0x400
jae 0x140151460
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1401514a0
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x40]
call qword [case.0x1400136d6.0]
mov esi, eax
test eax, eax
jne 0x1401515e8
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1401515d9
xor edx, edx
lea r8d, [rdx + 8]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x1401515d9
lea rdx, str.DriverFileInstaller
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
jne 0x1401514eb
mov esi, 0x80010022
mov dword [0x1402bbd98], 0x22
jmp 0x14015158c
lea rdx, str.DriverFileInstallerFixed
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
jne 0x140151514
mov esi, 0x80010022
mov dword [0x1402bbd98], 0x22
jmp 0x14015158c
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.1401e7e40
mov dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x40]
mov rax, r12
call qword [case.0x1400136d6.0]
test eax, eax
je 0x140151572
cmp dword [rsp + 0x30], 0
setne al
mov byte [r13], al
mov ecx, 1
mov rax, r15
call qword [case.0x1400136d6.0]
test eax, eax
jne 0x14015158c
mov esi, 0x80010070
mov dword [0x1402bbd98], 0x70
jmp 0x14015158c
mov esi, 0x8001006f
mov dword [0x1402bbd98], 0x6f
xor ecx, ecx
mov rax, r15
call qword [case.0x1400136d6.0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
jne 0x1401515e8
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x88]
call qword [case.0x1400136d6.0]
mov rdx, qword [r14]
mov r8, qword [rdx + 0x80]
mov rcx, r14
cmp eax, 4
mov rax, r8
jne 0x1401515cc
lea edx, [rsi + 3]
call qword [case.0x1400136d6.0]
jmp 0x1401515e8
mov edx, 1
call qword [case.0x1400136d6.0]
jmp 0x1401515e8
mov esi, 0x80010022
mov dword [0x1402bbd98], 0x22
lea rcx, [rbp - 0x60]
call fcn.14001a060
lea rcx, [rbp - 0x80]
call fcn.1400048a0
lea rcx, [rsp + 0x60]
call fcn.1400048a0
lea rcx, [rsp + 0x40]
call fcn.1400048a0
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140151635
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
mov eax, esi
jmp 0x140151648
mov dword [0x1402bbd98], 0x71
mov eax, 0x80010071
mov rcx, qword [rbp + 0x9d0]
xor rcx, rsp
call fcn.1401e2900
mov rbx, qword [rsp + 0xb30]
add rsp, 0xae0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001470
int3