Function at 0x14001d1c0
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xf8]
sub rsp, 0x1f0
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400e9088]
xor rax, rsp
mov qword [rbp + 0xe8], rax
mov rbx, rcx
mov qword [rbp - 0x10], rcx
xor esi, esi
mov dword [rsp + 0x50], esi
lea rcx, [rbp + 0xc8]
call fcn.14001ce00
nop
lea rcx, [rbp + 0xc8]
cmp qword [rbp + 0xe0], 8
cmovae rcx, qword [rbp + 0xc8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14001d2c7
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
lea r8d, [rsi + 0x1f]
lea rdx, str.Factory_settings_file_not_found
lea rcx, [rsp + 0x30]
call fcn.140011700
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140019f50
nop
lea rax, vtable.HP::Pdsmq::Common::FileNotFoundException.0
mov qword [rsp + 0x60], rax
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rsi
mov word [rbp - 0x68], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0xc8]
lea rcx, [rbp - 0x68]
call fcn.140011850
nop
lea rdx, [0x1400e7338]
lea rcx, [rsp + 0x60]
call fcn.140075a20
nop
mov qword [rbx], rsi
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x20], rbx
lea r9, [0x1400bf798]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400bf758]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test eax, eax
jns 0x14001d360
mov qword [rbx], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
mov r8d, 0x37
lea rdx, str.Failed_to_create_an_instance_of_COM_DOMDocument30_class
lea rcx, [rsp + 0x30]
call fcn.140011700
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140019f50
nop
lea rax, vtable.HP::Pdsmq::Common::ComException.0
mov qword [rsp + 0x60], rax
mov dword [rbp - 0x68], edi
lea rdx, [0x1400e72c8]
lea rcx, [rsp + 0x60]
call fcn.140075a20
nop
lea rdi, [rbp + 0xc8]
cmp qword [rbp + 0xe0], 8
cmovae rdi, qword [rbp + 0xc8]
mov eax, 8
mov word [rbp - 0x38], ax
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x14001d3a2
test rdi, rdi
je 0x14001d3a2
mov ecx, 0x8007000e
call fcn.140057480
nop
mov rdi, qword [rbx]
test rdi, rdi
jne 0x14001d3b5
mov ecx, 0x80004003
call fcn.140057480
int3
mov word [rbp + 0x98], si
movups xmm0, xmmword [rbp - 0x38]
movaps xmmword [rsp + 0x30], xmm0
movsd xmm1, qword [rbp - 0x28]
movsd qword [rsp + 0x40], xmm1
mov rax, qword [rdi]
lea r8, [rbp + 0x98]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [rax + 0x1d0]
test eax, eax
jns 0x14001d3fe
lea r8, [0x1400bf798]
mov rdx, rdi
mov ecx, eax
call fcn.1400574b0
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp word [rbp + 0x98], 0xffff
je 0x14001d4a9
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
mov r8d, 0x23
lea rdx, str.Error_parsing_factory_settings_file
lea rcx, [rsp + 0x30]
call fcn.140011700
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140019f50
nop
lea rax, vtable.HP::Pdsmq::Common::FileFormatException.0
mov qword [rsp + 0x60], rax
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rsi
mov word [rbp - 0x68], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0xc8]
lea rcx, [rbp - 0x68]
call fcn.140011850
nop
lea rdx, [0x1400e72a8]
lea rcx, [rsp + 0x60]
call fcn.140075a20
nop
xor eax, eax
mov qword [rbp + 0xa0], rax
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14001d4c5
mov ecx, 0x80004003
call fcn.140057480
int3
lea rdx, [rbp + 0xa0]
call fcn.14001aff0
nop
cmp qword [rbp + 0xa0], 0
jne 0x14001d573
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
mov r8d, 0x38
lea rdx, str.Expected_root_element_not_found_in_factory_settings_file
lea rcx, [rsp + 0x30]
call fcn.140011700
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140019f50
nop
lea rax, vtable.HP::Pdsmq::Common::FileFormatException.0
mov qword [rsp + 0x60], rax
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rsi
mov word [rbp - 0x68], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0xc8]
lea rcx, [rbp - 0x68]
call fcn.140011850
nop
lea rdx, [0x1400e72a8]
lea rcx, [rsp + 0x60]
call fcn.140075a20
nop
lea rax, [rbp - 0x40]
mov qword [rbp - 8], rax
lea rdx, [0x1400ef1b8]
cmp qword [0x1400ef1d0], 8
cmovae rdx, qword [0x1400ef1b8]
lea rcx, [rbp - 0x40]
call fcn.14001a5f0
nop
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
jne 0x14001d5b3
mov ecx, 0x80004003
call fcn.140057480
nop
mov r8, rax
lea rdx, [rbp + 0x80]
call fcn.14001ae70
nop
mov qword [rbp + 0xb8], rsi
mov qword [rbp + 0xc0], rsi
mov qword [rbp + 0xc0], 7
mov qword [rbp + 0xb8], rsi
mov word [rbp + 0xa8], si
mov rdx, qword [rbp + 0x88]
cmp word [rdx], 0
jne 0x14001d5fc
mov r8, rsi
jmp 0x14001d60b
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x14001d600
lea rcx, [rbp + 0xa8]
call fcn.140011700
nop
lea r8, [0x1400ef118]
cmp qword [0x1400ef130], 8
cmovae r8, qword [0x1400ef118]
lea rcx, [rbp + 0xa8]
cmp qword [rbp + 0xc0], 8
cmovae rcx, qword [rbp + 0xa8]
mov r9, qword [0x1400ef128]
mov rdx, qword [rbp + 0xb8]
call fcn.140011140
test eax, eax
je 0x14001d710
lea r8, [0x1400ef118]
lea rdx, str.Factory_settings_version_mismatch__expected:_
lea rcx, [rsp + 0x30]
call fcn.14001ed10
nop
lea r8, str.__actual:_
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.14001e930
nop
lea r8, [rbp + 0xa8]
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.14001e9a0
nop
lea r8, [0x1400bf3dc]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.14001e930
nop
mov rdx, rax
lea rcx, [rbp]
call fcn.140019f50
nop
lea rax, vtable.HP::Pdsmq::Common::FileFormatException.0
mov qword [rbp], rax
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rsi
mov qword [rbp + 0x50], 7
mov qword [rbp + 0x48], rsi
mov word [rbp + 0x38], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0xc8]
lea rcx, [rbp + 0x38]
call fcn.140011850
nop
lea rdx, [0x1400e72a8]
lea rcx, [rbp]
call fcn.140075a20
nop
mov r8, qword [rbp + 0xc0]
cmp r8, 8
jb 0x14001d733
inc r8
mov rdx, qword [rbp + 0xa8]
lea rcx, [rbp + 0xa8]
call fcn.140012760
mov qword [rbp + 0xc0], 7
mov qword [rbp + 0xb8], rsi
mov word [rbp + 0xa8], si
lea rcx, [rbp + 0x80]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x14001d76d
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov r8, qword [rbp + 0xe0]
cmp r8, 8
jb 0x14001d790
inc r8
mov rdx, qword [rbp + 0xc8]
lea rcx, [rbp + 0xc8]
call fcn.140012760
mov qword [rbp + 0xe0], 7
mov qword [rbp + 0xd8], rsi
mov word [rbp + 0xc8], si
mov rax, rbx
mov rcx, qword [rbp + 0xe8]
xor rcx, rsp
call fcn.140056080
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret