Function at 0x140018fd0
Capabilities:
Print debug messages
Set registry value

Disassembly:
mov r11, rsp
push rbp
push rdi
lea rbp, [r11 - 0x5f]
sub rsp, 0xc8
mov rax, qword [0x1400420e0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rax, qword [str.SoftwareHewlett_PackardXPS_Drv]
mov qword [r11 + 0x10], rbx
xor ebx, ebx
mov qword [rbp + 0x17], rax
mov rax, qword [0x140039768]
mov qword [rsp + 0x40], rbx
mov qword [rbp + 0x1f], rax
mov rax, qword [0x140039770]
mov qword [r11 + 0x18], rsi
mov qword [rbp + 0x27], rax
mov rax, qword [0x140039778]
mov rsi, rcx
mov qword [rbp + 0x2f], rax
movzx eax, byte [0x140039780]
lea rdx, [rbp + 0x17]
mov byte [rbp + 0x37], al
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0xf003f
mov qword [r11 - 0x18], r13
mov dword [rsp + 0x20], ebx
mov qword [rbp - 0x29], rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400190ce
mov rax, qword [str.LeakedModule]
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov qword [rbp - 0x21], rax
mov eax, dword [0x140039790]
lea r9d, [rbx + 3]
mov dword [rbp - 0x19], eax
movzx eax, byte [0x140039794]
lea rdx, [rbp - 0x21]
mov byte [rbp - 0x15], al
xor eax, eax
xor r8d, r8d
repne scasb al, byte [rdi]
not rcx
dec rcx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp - 0x29]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x29], rbx
mov rax, qword [str.Logging_memory_leak_information_to:_r_n]
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x11]
mov qword [rbp - 0x11], rax
mov rax, qword [0x1400397a0]
mov qword [rbp - 9], rax
mov rax, qword [0x1400397a8]
mov qword [rbp - 1], rax
mov rax, qword [0x1400397b0]
mov qword [rbp + 7], rax
mov eax, dword [0x1400397b8]
mov dword [rbp + 0xf], eax
movzx eax, word [0x1400397bc]
mov word [rbp + 0x13], ax
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r13, [rcx - 1]
and ecx, ecx
lea eax, [rcx - 1]
cmp eax, 0x7ffdeeff
ja 0x140019184
mov qword [rsp + 0xf8], r12
mov r12d, ecx
call fcn.14001ce7c
mov r8d, r12d
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.14001d640
mov rbx, rdi
test rdi, rdi
je 0x14001917c
lea r8, [rbp - 0x11]
mov r9d, r13d
mov edx, r12d
mov rcx, rbx
call fcn.14001c49c
test eax, eax
jne 0x140019174
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rbx
call fcn.14001ce3c
mov r12, qword [rsp + 0xf8]
mov r13, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xe8]
test rsi, rsi
je 0x1400191b3
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
mov rcx, rsi
call fcn.140019d50
mov ecx, 3
call fcn.14001ce7c
mov rsi, qword [rsp + 0xf0]
mov rdi, rax
xor eax, eax
mov word [rdi], ax
mov byte [rdi + 2], al
test rdi, rdi
je 0x140019200
lea r9d, [rax + 2]
lea r8, [0x140035f60]
lea edx, [rax + 3]
mov rcx, rdi
call fcn.14001c49c
test eax, eax
jne 0x1400191f8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rdi
call fcn.14001ce3c
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14001b510
add rsp, 0xc8
pop rdi
pop rbp
ret