Function at 0x1401a4500
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x150], rbx
mov r13d, ecx
mov eax, edx
and eax, 0xc
mov r12d, edx
and r12d, 0xfffffff7
cmp al, 0xc
cmovne r12d, edx
xor esi, esi
mov qword [rbp + 0x68], rsi
mov qword [rsp + 0x50], rsi
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x68]
xor ecx, ecx
call fcn.1401a7010
xor r14b, r14b
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov r15d, esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x1401a4612
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x60]
call fcn.1401a9b30
mov dword [rbp + 0x58], 0x80
mov dword [rbp + 0x60], esi
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x60]
xor r8d, r8d
lea rdx, str.LoggingType
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401a4612
lea edx, [rsi + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1401b085c
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1401a45f0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.1400084c0
mov r14b, 1
mov r15, qword [rsp + 0x40]
mov rbx, qword [rbp + 0x68]
test rbx, rbx
je 0x1401a46b2
test r14b, r14b
jne 0x1401a46b2
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x60]
call fcn.1401a9b30
mov dword [rbp + 0x58], 0x80
mov dword [rbp + 0x60], esi
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x60]
xor r8d, r8d
lea rdx, str.LoggingType
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401a46b2
lea edx, [rax + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1401b085c
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1401a4690
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.1400084c0
mov r14b, 1
mov r15, qword [rsp + 0x40]
mov esi, r12d
test r14b, r14b
je 0x1401a490d
test r15, r15
je 0x1401a490d
lea r10, [rsp + 0x30]
mov r14, qword [rsp + 0x48]
cmp r14, 8
cmovae r10, qword [rsp + 0x30]
cmp r15, 5
jb 0x1401a4744
lea r11, [r10 - 8]
lea r11, [r11 + r15*2]
mov rcx, r10
lea rsi, str.EVENT
mov rax, r11
sub rax, rcx
sar rax, 1
je 0x1401a4744
cmp word [rcx], 0x45
je 0x1401a470e
add rcx, 2
sub rax, 1
jmp 0x1401a46fc
test rcx, rcx
je 0x1401a4744
mov r8d, 5
mov rdx, rsi
mov r9, rcx
sub r9, rsi
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x1401a473e
add rdx, 2
sub r8, 1
jne 0x1401a4722
sub rcx, r10
sar rcx, 1
jmp 0x1401a474b
add rcx, 2
jmp 0x1401a46f3
mov rcx, 0xffffffffffffffff
xor esi, esi
cmp rcx, 0xffffffffffffffff
setne sil
lea r10, [rsp + 0x30]
cmp r14, 8
cmovae r10, qword [rsp + 0x30]
cmp r15, 4
jb 0x1401a47d2
lea r11, [r10 - 6]
lea r11, [r11 + r15*2]
mov rcx, r10
lea r14, str.FILE
nop dword [rax]
mov rax, r11
sub rax, rcx
sar rax, 1
je 0x1401a47d2
cmp word [rcx], 0x46
je 0x1401a479b
add rcx, 2
sub rax, 1
jmp 0x1401a4789
test rcx, rcx
je 0x1401a47d2
mov r8d, 4
mov rdx, r14
mov r9, rcx
sub r9, r14
nop
movzx eax, word [rdx]
cmp word [r9 + rdx], ax
jne 0x1401a47cc
add rdx, 2
sub r8, 1
jne 0x1401a47b0
sub rcx, r10
sar rcx, 1
jmp 0x1401a47d9
add rcx, 2
jmp 0x1401a4780
mov rcx, 0xffffffffffffffff
mov r14d, esi
or r14d, 8
cmp rcx, 0xffffffffffffffff
cmove r14d, esi
lea r10, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r10, qword [rsp + 0x30]
cmp r15, 7
jb 0x1401a4862
lea r11, [r10 - 0xc]
lea r11, [r11 + r15*2]
mov rcx, r10
lea rsi, str.CONSOLE
mov rax, r11
sub rax, rcx
sar rax, 1
je 0x1401a4862
cmp word [rcx], 0x43
je 0x1401a482c
add rcx, 2
sub rax, 1
jmp 0x1401a481a
test rcx, rcx
je 0x1401a4862
mov r8d, 7
mov rdx, rsi
mov r9, rcx
sub r9, rsi
movzx eax, word [rdx]
cmp word [r9 + rdx], ax
jne 0x1401a485c
add rdx, 2
sub r8, 1
jne 0x1401a4840
sub rcx, r10
sar rcx, 1
jmp 0x1401a4869
add rcx, 2
jmp 0x1401a4811
mov rcx, 0xffffffffffffffff
mov esi, r14d
or esi, 0x10
cmp rcx, 0xffffffffffffffff
cmove esi, r14d
lea r11, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r11, qword [rsp + 0x30]
cmp r15, 5
jb 0x1401a48f2
lea r10, [r11 - 8]
lea r10, [r10 + r15*2]
mov rcx, r11
lea r14, str.DEBUG
mov rax, r10
sub rax, rcx
sar rax, 1
je 0x1401a48f2
cmp word [rcx], 0x44
je 0x1401a48bb
add rcx, 2
sub rax, 1
jmp 0x1401a48a9
test rcx, rcx
je 0x1401a48f2
mov r8d, 5
mov rdx, r14
mov r9, rcx
sub r9, r14
nop
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x1401a48ec
add rdx, 2
sub r8, 1
jne 0x1401a48d0
sub rcx, r11
sar rcx, 1
jmp 0x1401a48f9
add rcx, 2
jmp 0x1401a48a0
mov rcx, 0xffffffffffffffff
mov eax, esi
or eax, 2
cmp rcx, 0xffffffffffffffff
cmove eax, esi
mov esi, r12d
test eax, eax
cmovne esi, eax
xor r15d, r15d
mov r14d, r15d
xor edx, edx
lea r8d, [r15 + 0x50]
lea rcx, [rsp + 0x60]
call fcn.1401a9b30
test esi, esi
je 0x1401a4a98
lea r12, vtable.HP::Shared::ChpLogListenerDebug.0
lea rdi, vtable.HP::Shared::ChpLogListenerConsole.0
xor ebx, ebx
nop dword [rax + rax]
test sil, 1
je 0x1401a497a
and esi, 0xfffffffe
mov ecx, 0x20
call fcn.14000fda4
mov qword [rbp + 0x60], rax
test rax, rax
je 0x1401a496c
mov edx, r13d
mov rcx, rax
call fcn.1401a32a0
mov rcx, rax
jmp 0x1401a496f
mov rcx, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], rcx
inc r14d
test sil, 8
je 0x1401a49b6
and esi, 0xfffffff7
mov ecx, 0x250
call fcn.14000fda4
mov qword [rbp - 0x18], rax
test rax, rax
je 0x1401a49a8
mov r8d, r13d
xor edx, edx
mov rcx, rax
call fcn.1401a3400
mov rcx, rax
jmp 0x1401a49ab
mov rcx, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], rcx
inc r14d
test sil, 4
je 0x1401a49f2
and esi, 0xfffffffb
mov ecx, 0x250
call fcn.14000fda4
mov qword [rbp - 0x10], rax
test rax, rax
je 0x1401a49e4
mov r8d, r13d
mov dl, 1
mov rcx, rax
call fcn.1401a3400
mov rcx, rax
jmp 0x1401a49e7
mov rcx, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], rcx
inc r14d
test sil, 2
je 0x1401a4a3b
and esi, 0xfffffffd
mov ecx, 0x18
call fcn.14000fda4
mov r15, rax
mov qword [rbp - 8], rax
test rax, rax
je 0x1401a4a2d
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov rcx, rax
call fcn.1401a31f0
nop
mov qword [r15], r12
jmp 0x1401a4a30
mov r15, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], r15
inc r14d
test sil, 0x10
je 0x1401a4a84
and esi, 0xffffffef
mov ecx, 0x18
call fcn.14000fda4
mov r15, rax
mov qword [rbp], rax
test rax, rax
je 0x1401a4a76
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov rcx, rax
call fcn.1401a31f0
nop
mov qword [r15], rdi
jmp 0x1401a4a79
mov r15, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], r15
inc r14d
test esi, esi
jne 0x1401a4940
mov rbx, qword [rbp + 0x68]
mov rdi, qword [rsp + 0x50]
xor r15d, r15d
mov ecx, 0xb0
call fcn.14000fda4
mov rsi, rax
mov qword [rbp + 0x60], rax
test rax, rax
je 0x1401a4b86
mov qword [rax], 0x200
mov dword [rax + 0x58], r15d
mov byte [rax + 0x64], 0
mov qword [rax + 0x68], r15
lea rcx, [rax + 0x70]
call fcn.1401a3170
nop
mov dword [rsi + 0x58], r14d
lea r14, [rsi + 8]
xor edx, edx
lea r8d, [rdx + 0x50]
mov rcx, r14
call fcn.1401a9b30
mov dword [rsi + 0x5c], 0x63
mov dword [rsi + 0x60], 5
lea r12, [rsp + 0x60]
sub r12, rsi
nop dword [rax + rax]
cmp r15d, dword [rsi + 0x58]
jge 0x1401a4b58
mov rax, qword [r12 + r14 - 8]
test rax, rax
je 0x1401a4b4f
mov qword [r14], rax
mov ecx, dword [rax + 8]
cmp ecx, dword [rsi + 0x5c]
jge 0x1401a4b1e
mov dword [rsi + 0x5c], ecx
mov rax, qword [r14]
mov ecx, dword [rax + 0xc]
cmp ecx, dword [rsi + 0x60]
jle 0x1401a4b2c
mov dword [rsi + 0x60], ecx
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp eax, 4
je 0x1401a4b48
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp eax, 8
jne 0x1401a4b4f
mov rax, qword [r14]
mov qword [rsi + 0x68], rax
inc r15d
add r14, 8
jmp 0x1401a4b00
mov rax, qword [rsi + 0x68]
test rax, rax
je 0x1401a4b71
cmp dword [rax + 0xc], 6
jl 0x1401a4b71
cmp dword [rax + 8], 6
jg 0x1401a4b71
mov byte [rsi + 0x64], 1
cmp qword [rsi], 0x1fa0
jbe 0x1401a4b81
mov qword [rsi], 0x1fa0
xor r15d, r15d
jmp 0x1401a4b89
mov rsi, r15
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x1401a4bc7
lea rdx, [rax*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401a4bc2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401a4c16
call fcn.140002de0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r15w
test rdi, rdi
je 0x1401a4bea
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rbx, rbx
je 0x1401a4bf8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rsi
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401ae974
nop
int3