Function at 0x14001d490
Capabilities:
Check if file exists
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbx, rcx
xor esi, esi
mov dword [rbp - 0x19], esi
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rsi
mov word [rcx], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [0x1400ef228]
call fcn.140011ac0
mov dword [rbp - 0x19], 1
mov cl, 1
call fcn.14003651c
mov rcx, rax
mov qword [rbp - 0x31], rax
cmp qword [rbx + 0x10], rsi
je 0x14001d521
cmp qword [rbx + 0x18], 8
jb 0x14001d508
mov rcx, qword [rbx]
jmp 0x14001d50b
mov rcx, rbx
lea rdx, [rbp - 0x39]
call fcn.140019300
mov rcx, qword [rbp - 0x31]
test al, al
jne 0x14001d521
xor dil, dil
jmp 0x14001d524
mov dil, 1
test rcx, rcx
je 0x14001d542
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14001d542
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
test dil, dil
je 0x14001d660
lea rcx, [rbp - 0x59]
call fcn.14001cfc0
nop
lea r8, str..PdsmqConfig.xml
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.1400146e0
nop
mov rdx, rax
mov rcx, rbx
call fcn.14000e340
nop
mov r8, qword [rbp - 0x21]
cmp r8, 8
jb 0x14001d58f
inc r8
mov rdx, qword [rbp - 0x39]
lea rcx, [rbp - 0x39]
call fcn.1400129b0
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], rsi
mov word [rbp - 0x39], si
mov r8, qword [rbp - 0x41]
cmp r8, 8
jb 0x14001d5b9
inc r8
mov rdx, qword [rbp - 0x59]
lea rcx, [rbp - 0x59]
call fcn.1400129b0
mov qword [rbp - 0x41], 7
mov qword [rbp - 0x49], rsi
mov word [rbp - 0x59], si
cmp qword [rbx + 0x18], 8
jb 0x14001d5d5
mov rcx, qword [rbx]
jmp 0x14001d5d8
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14001d660
lea rcx, [rbp - 0x39]
call fcn.14001d0a0
nop
lea r8, [0x1400ef188]
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.14001cc00
nop
mov rdx, rax
mov rcx, rbx
call fcn.14000e340
nop
mov r8, qword [rbp - 0x41]
cmp r8, 8
jb 0x14001d626
inc r8
mov rdx, qword [rbp - 0x59]
lea rcx, [rbp - 0x59]
call fcn.1400129b0
mov qword [rbp - 0x41], 7
mov qword [rbp - 0x49], rsi
mov word [rbp - 0x59], si
mov r8, qword [rbp - 0x21]
cmp r8, 8
jb 0x14001d650
inc r8
mov rdx, qword [rbp - 0x39]
lea rcx, [rbp - 0x39]
call fcn.1400129b0
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], rsi
mov word [rbp - 0x39], si
mov r8, rbx
lea rdx, str.TRACE:_FactorySettingsPath_is_
lea rcx, [rbp - 0x39]
call fcn.140014520
nop
lea r8, [0x1400bf600]
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.1400146e0
nop
cmp qword [rax + 0x18], 8
jb 0x14001d692
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov r8, qword [rbp - 0x41]
cmp r8, 8
jb 0x14001d6b6
inc r8
mov rdx, qword [rbp - 0x59]
lea rcx, [rbp - 0x59]
call fcn.1400129b0
mov qword [rbp - 0x41], 7
mov qword [rbp - 0x49], rsi
mov word [rbp - 0x59], si
mov r8, qword [rbp - 0x21]
cmp r8, 8
jb 0x14001d6e0
inc r8
mov rdx, qword [rbp - 0x39]
lea rcx, [rbp - 0x39]
call fcn.1400129b0
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], rsi
mov word [rbp - 0x39], si
cmp qword [rbx + 0x18], 8
jb 0x14001d6fc
mov rcx, qword [rbx]
jmp 0x14001d6ff
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14001d790
mov qword [rbp - 0x49], rsi
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x41], 7
mov qword [rbp - 0x49], rsi
mov word [rbp - 0x59], si
lea r8d, [rax + 0x1e]
lea rdx, str.No_factory_settings_file_found
lea rcx, [rbp - 0x59]
call fcn.140011970
nop
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 9]
call fcn.14001a6e0
nop
lea rax, vtable.HP::Pdsmq::Common::FileNotFoundException.0
mov qword [rbp - 9], rax
mov qword [rbp + 0x3f], rsi
mov qword [rbp + 0x47], rsi
mov qword [rbp + 0x47], 7
mov qword [rbp + 0x3f], rsi
mov word [rbp + 0x2f], si
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0x2f]
call fcn.140011ac0
nop
lea rdx, [0x1400e6e38]
lea rcx, [rbp - 9]
call fcn.140075be0
nop
mov rax, rbx
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret