Function at 0x1400998e0
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.14009c400
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 0x1400999f2
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x60]
call fcn.1400a57c0
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.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400999f2
lea edx, [rsi + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1400c8860
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400999d0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140013240
mov r14b, 1
mov r15, qword [rsp + 0x40]
mov rbx, qword [rbp + 0x68]
test rbx, rbx
je 0x140099a92
test r14b, r14b
jne 0x140099a92
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x60]
call fcn.1400a57c0
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.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140099a92
lea edx, [rax + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1400c8860
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140099a70
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140013240
mov r14b, 1
mov r15, qword [rsp + 0x40]
mov esi, r12d
test r14b, r14b
je 0x140099ced
test r15, r15
je 0x140099ced
lea r10, [rsp + 0x30]
mov r14, qword [rsp + 0x48]
cmp r14, 8
cmovae r10, qword [rsp + 0x30]
cmp r15, 5
jb 0x140099b24
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 0x140099b24
cmp word [rcx], 0x45
je 0x140099aee
add rcx, 2
sub rax, 1
jmp 0x140099adc
test rcx, rcx
je 0x140099b24
mov r8d, 5
mov rdx, rsi
mov r9, rcx
sub r9, rsi
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x140099b1e
add rdx, 2
sub r8, 1
jne 0x140099b02
sub rcx, r10
sar rcx, 1
jmp 0x140099b2b
add rcx, 2
jmp 0x140099ad3
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 0x140099bb2
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 0x140099bb2
cmp word [rcx], 0x46
je 0x140099b7b
add rcx, 2
sub rax, 1
jmp 0x140099b69
test rcx, rcx
je 0x140099bb2
mov r8d, 4
mov rdx, r14
mov r9, rcx
sub r9, r14
nop
movzx eax, word [rdx]
cmp word [r9 + rdx], ax
jne 0x140099bac
add rdx, 2
sub r8, 1
jne 0x140099b90
sub rcx, r10
sar rcx, 1
jmp 0x140099bb9
add rcx, 2
jmp 0x140099b60
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 0x140099c42
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 0x140099c42
cmp word [rcx], 0x43
je 0x140099c0c
add rcx, 2
sub rax, 1
jmp 0x140099bfa
test rcx, rcx
je 0x140099c42
mov r8d, 7
mov rdx, rsi
mov r9, rcx
sub r9, rsi
movzx eax, word [rdx]
cmp word [r9 + rdx], ax
jne 0x140099c3c
add rdx, 2
sub r8, 1
jne 0x140099c20
sub rcx, r10
sar rcx, 1
jmp 0x140099c49
add rcx, 2
jmp 0x140099bf1
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 0x140099cd2
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 0x140099cd2
cmp word [rcx], 0x44
je 0x140099c9b
add rcx, 2
sub rax, 1
jmp 0x140099c89
test rcx, rcx
je 0x140099cd2
mov r8d, 5
mov rdx, r14
mov r9, rcx
sub r9, r14
nop
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x140099ccc
add rdx, 2
sub r8, 1
jne 0x140099cb0
sub rcx, r11
sar rcx, 1
jmp 0x140099cd9
add rcx, 2
jmp 0x140099c80
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.1400a57c0
test esi, esi
je 0x140099e78
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 0x140099d5a
and esi, 0xfffffffe
mov ecx, 0x20
call fcn.140095e50
mov qword [rbp + 0x60], rax
test rax, rax
je 0x140099d4c
mov edx, r13d
mov rcx, rax
call fcn.140098680
mov rcx, rax
jmp 0x140099d4f
mov rcx, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], rcx
inc r14d
test sil, 8
je 0x140099d96
and esi, 0xfffffff7
mov ecx, 0x250
call fcn.140095e50
mov qword [rbp - 0x18], rax
test rax, rax
je 0x140099d88
mov r8d, r13d
xor edx, edx
mov rcx, rax
call fcn.1400987e0
mov rcx, rax
jmp 0x140099d8b
mov rcx, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], rcx
inc r14d
test sil, 4
je 0x140099dd2
and esi, 0xfffffffb
mov ecx, 0x250
call fcn.140095e50
mov qword [rbp - 0x10], rax
test rax, rax
je 0x140099dc4
mov r8d, r13d
mov dl, 1
mov rcx, rax
call fcn.1400987e0
mov rcx, rax
jmp 0x140099dc7
mov rcx, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], rcx
inc r14d
test sil, 2
je 0x140099e1b
and esi, 0xfffffffd
mov ecx, SafeArrayCopy
call fcn.140095e50
mov r15, rax
mov qword [rbp - 8], rax
test rax, rax
je 0x140099e0d
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov rcx, rax
call fcn.1400985d0
nop
mov qword [r15], r12
jmp 0x140099e10
mov r15, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], r15
inc r14d
test sil, 0x10
je 0x140099e64
and esi, 0xffffffef
mov ecx, SafeArrayCopy
call fcn.140095e50
mov r15, rax
mov qword [rbp], rax
test rax, rax
je 0x140099e56
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov rcx, rax
call fcn.1400985d0
nop
mov qword [r15], rdi
jmp 0x140099e59
mov r15, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], r15
inc r14d
test esi, esi
jne 0x140099d20
mov rbx, qword [rbp + 0x68]
mov rdi, qword [rsp + 0x50]
xor r15d, r15d
mov ecx, 0xb0
call fcn.140095e50
mov rsi, rax
mov qword [rbp + 0x60], rax
test rax, rax
je 0x140099f66
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.140098520
nop
mov dword [rsi + 0x58], r14d
lea r14, [rsi + 8]
xor edx, edx
lea r8d, [rdx + 0x50]
mov rcx, r14
call fcn.1400a57c0
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 0x140099f38
mov rax, qword [r12 + r14 - 8]
test rax, rax
je 0x140099f2f
mov qword [r14], rax
mov ecx, dword [rax + 8]
cmp ecx, dword [rsi + 0x5c]
jge 0x140099efe
mov dword [rsi + 0x5c], ecx
mov rax, qword [r14]
mov ecx, dword [rax + 0xc]
cmp ecx, dword [rsi + 0x60]
jle 0x140099f0c
mov dword [rsi + 0x60], ecx
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
cmp eax, 4
je 0x140099f28
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
cmp eax, 8
jne 0x140099f2f
mov rax, qword [r14]
mov qword [rsi + 0x68], rax
inc r15d
add r14, 8
jmp 0x140099ee0
mov rax, qword [rsi + 0x68]
test rax, rax
je 0x140099f51
cmp dword [rax + 0xc], 6
jl 0x140099f51
cmp dword [rax + 8], 6
jg 0x140099f51
mov byte [rsi + 0x64], 1
cmp qword [rsi], 0x1fa0
jbe 0x140099f61
mov qword [rsi], 0x1fa0
xor r15d, r15d
jmp 0x140099f69
mov rsi, r15
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x140099fa7
lea rdx, [rax*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140099fa2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140099ff6
call fcn.140095e90
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r15w
test rdi, rdi
je 0x140099fca
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
test rbx, rbx
je 0x140099fd8
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.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.1400b1720
nop
int3