Function at 0x14008a290
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rsi, r8
mov ebx, edx
lea rdx, str.InstallUsbPrinter::RestoreCustomSettings
lea rcx, [rsp + 0x60]
call fcn.14001abe0
nop
lea r12, [0x1402a8360]
lea r15, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, r12
je 0x14008a321
test byte [rcx + 0x1c], 1
je 0x14008a321
mov r9, r15
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x34
lea r8, [0x140258570]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.1401e7e40
lea rcx, [rsp + 0x38]
call fcn.140091e00
nop
lea r8, [rbp - 0x50]
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.140092cd0
test eax, eax
je 0x14008a503
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x70]
call qword [case.0x1400136d6.0]
mov r8, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0xa8]
lea rdx, [rsp + 0x40]
mov rcx, r8
call qword [case.0x1400136d6.0]
nop
cmp qword [rsp + 0x50], 0
je 0x14008a4c1
xor r14d, r14d
cmp qword [rsi + 0x10], r14
jle 0x14008a4c1
mov edi, r14d
call fcn.1401bb0c4
mov rdx, rax
test rax, rax
je 0x14008a5ee
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
mov rcx, rdx
call qword [case.0x1400136d6.0]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x50]
cmp rax, 0x10000
jae 0x14008a3ea
lea rax, [rbp - 0x50]
movzx edx, ax
lea rcx, [rsp + 0x30]
call fcn.1400041d0
jmp 0x14008a411
lea rcx, [rbp - 0x50]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x14008a3f5
mov r8d, eax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x30]
call fcn.140004e60
nop
test rdi, rdi
js 0x14008a5ff
cmp rdi, qword [rsi + 0x10]
jge 0x14008a5ff
lfence
mov rax, qword [rsi + 8]
mov rdx, qword [rax + rdi*8]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140007390
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14008a488
cmp rdi, qword [rsi + 0x10]
jge 0x14008a5ff
lfence
mov rax, qword [rsi + 8]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov r9, qword [rax + rdi*8]
lea r8, [rbp - 0x50]
lea rcx, [rsp + 0x38]
call fcn.140097470
mov rbx, qword [rsp + 0x30]
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14008a4ae
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
inc r14d
inc rdi
movsxd rax, r14d
cmp rax, qword [rsi + 0x10]
jl 0x14008a3a1
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14008a503
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a4fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008a5f9
call fcn.1400079c0
mov byte [rsp + 0x68], 1
mov rcx, qword [0x1402a8360]
cmp rcx, r12
je 0x14008a543
test byte [rcx + 0x1c], 1
je 0x14008a543
mov r9, r15
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x35
lea r8, [0x140258570]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
nop
lea rcx, [rsp + 0x38]
call fcn.140091f70
nop
lea rax, vtable.WppTrace.0
mov qword [rsp + 0x60], rax
cmp byte [rsp + 0x68], 0
jne 0x14008a5b0
mov rcx, qword [0x1402a8360]
cmp rcx, r12
je 0x14008a5b0
test byte [rcx + 0x1c], 1
je 0x14008a5b0
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rax, qword [rsp + 0x70]
cmp qword [0x1402bbdc8], 8
cmovae r15, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
mov r9, r15
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rbp - 0x70]
call fcn.1400048a0
lea rcx, [rsp + 0x70]
call fcn.1400048a0
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001470
nop
call fcn.1401ec41c
nop
call fcn.1401bb848
int3