Function at 0x14001d820
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.14001d490
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 0x14001d927
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.140011970
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.14001a6e0
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.140011ac0
nop
lea rdx, [0x1400e6e38]
lea rcx, [rsp + 0x60]
call fcn.140075be0
nop
mov qword [rbx], rsi
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x20], rbx
lea r9, [0x1400bfd80]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400bfd40]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test eax, eax
jns 0x14001d9c0
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.140011970
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.14001a6e0
nop
lea rax, vtable.HP::Pdsmq::Common::ComException.0
mov qword [rsp + 0x60], rax
mov dword [rbp - 0x68], edi
lea rdx, [0x1400e6dc8]
lea rcx, [rsp + 0x60]
call fcn.140075be0
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 0x14001da02
test rdi, rdi
je 0x14001da02
mov ecx, 0x8007000e
call fcn.140057660
nop
mov rdi, qword [rbx]
test rdi, rdi
jne 0x14001da15
mov ecx, 0x80004003
call fcn.140057660
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 0x14001da5e
lea r8, [0x1400bfd80]
mov rdx, rdi
mov ecx, eax
call fcn.140057690
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp word [rbp + 0x98], 0xffff
je 0x14001db09
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.140011970
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.14001a6e0
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.140011ac0
nop
lea rdx, [0x1400e6da8]
lea rcx, [rsp + 0x60]
call fcn.140075be0
nop
xor eax, eax
mov qword [rbp + 0xa0], rax
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14001db25
mov ecx, 0x80004003
call fcn.140057660
int3
lea rdx, [rbp + 0xa0]
call fcn.14001b780
nop
cmp qword [rbp + 0xa0], 0
jne 0x14001dbd3
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.140011970
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.14001a6e0
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.140011ac0
nop
lea rdx, [0x1400e6da8]
lea rcx, [rsp + 0x60]
call fcn.140075be0
nop
lea rax, [rbp - 0x40]
mov qword [rbp - 8], rax
lea rdx, [0x1400ef208]
cmp qword [0x1400ef220], 8
cmovae rdx, qword [0x1400ef208]
lea rcx, [rbp - 0x40]
call fcn.14001ada0
nop
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
jne 0x14001dc13
mov ecx, 0x80004003
call fcn.140057660
nop
mov r8, rax
lea rdx, [rbp + 0x80]
call fcn.14001b610
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 0x14001dc5c
mov r8, rsi
jmp 0x14001dc6b
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x14001dc60
lea rcx, [rbp + 0xa8]
call fcn.140011970
nop
lea r8, [0x1400ef168]
cmp qword [0x1400ef180], 8
cmovae r8, qword [0x1400ef168]
lea rcx, [rbp + 0xa8]
cmp qword [rbp + 0xc0], 8
cmovae rcx, qword [rbp + 0xa8]
mov r9, qword [0x1400ef178]
mov rdx, qword [rbp + 0xb8]
call fcn.1400113b0
test eax, eax
je 0x14001dd70
lea r8, [0x1400ef168]
lea rdx, str.Factory_settings_version_mismatch__expected:_
lea rcx, [rsp + 0x30]
call fcn.140014520
nop
lea r8, str.__actual:_
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.1400146e0
nop
lea r8, [rbp + 0xa8]
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.14001ef00
nop
lea r8, [0x1400bf27c]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400146e0
nop
mov rdx, rax
lea rcx, [rbp]
call fcn.14001a6e0
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.140011ac0
nop
lea rdx, [0x1400e6da8]
lea rcx, [rbp]
call fcn.140075be0
nop
mov r8, qword [rbp + 0xc0]
cmp r8, 8
jb 0x14001dd93
inc r8
mov rdx, qword [rbp + 0xa8]
lea rcx, [rbp + 0xa8]
call fcn.1400129b0
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 0x14001ddcd
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov r8, qword [rbp + 0xe0]
cmp r8, 8
jb 0x14001ddf0
inc r8
mov rdx, qword [rbp + 0xc8]
lea rcx, [rbp + 0xc8]
call fcn.1400129b0
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.140056280
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