Function at 0x140029060
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.14002bb80
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 0x140029172
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x60]
call fcn.14004b830
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 0x140029172
lea edx, [rsi + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140059be0
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140029150
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.14000fea0
mov r14b, 1
mov r15, qword [rsp + 0x40]
mov rbx, qword [rbp + 0x68]
test rbx, rbx
je 0x140029212
test r14b, r14b
jne 0x140029212
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x60]
call fcn.14004b830
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 0x140029212
lea edx, [rax + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140059be0
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400291f0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.14000fea0
mov r14b, 1
mov r15, qword [rsp + 0x40]
mov esi, r12d
test r14b, r14b
je 0x14002946d
test r15, r15
je 0x14002946d
lea r10, [rsp + 0x30]
mov r14, qword [rsp + 0x48]
cmp r14, 8
cmovae r10, qword [rsp + 0x30]
cmp r15, 5
jb 0x1400292a4
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 0x1400292a4
cmp word [rcx], 0x45
je 0x14002926e
add rcx, 2
sub rax, 1
jmp 0x14002925c
test rcx, rcx
je 0x1400292a4
mov r8d, 5
mov rdx, rsi
mov r9, rcx
sub r9, rsi
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x14002929e
add rdx, 2
sub r8, 1
jne 0x140029282
sub rcx, r10
sar rcx, 1
jmp 0x1400292ab
add rcx, 2
jmp 0x140029253
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 0x140029332
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 0x140029332
cmp word [rcx], 0x46
je 0x1400292fb
add rcx, 2
sub rax, 1
jmp 0x1400292e9
test rcx, rcx
je 0x140029332
mov r8d, 4
mov rdx, r14
mov r9, rcx
sub r9, r14
nop
movzx eax, word [rdx]
cmp word [r9 + rdx], ax
jne 0x14002932c
add rdx, 2
sub r8, 1
jne 0x140029310
sub rcx, r10
sar rcx, 1
jmp 0x140029339
add rcx, 2
jmp 0x1400292e0
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 0x1400293c2
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 0x1400293c2
cmp word [rcx], 0x43
je 0x14002938c
add rcx, 2
sub rax, 1
jmp 0x14002937a
test rcx, rcx
je 0x1400293c2
mov r8d, 7
mov rdx, rsi
mov r9, rcx
sub r9, rsi
movzx eax, word [rdx]
cmp word [r9 + rdx], ax
jne 0x1400293bc
add rdx, 2
sub r8, 1
jne 0x1400293a0
sub rcx, r10
sar rcx, 1
jmp 0x1400293c9
add rcx, 2
jmp 0x140029371
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 0x140029452
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 0x140029452
cmp word [rcx], 0x44
je 0x14002941b
add rcx, 2
sub rax, 1
jmp 0x140029409
test rcx, rcx
je 0x140029452
mov r8d, 5
mov rdx, r14
mov r9, rcx
sub r9, r14
nop
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x14002944c
add rdx, 2
sub r8, 1
jne 0x140029430
sub rcx, r11
sar rcx, 1
jmp 0x140029459
add rcx, 2
jmp 0x140029400
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.14004b830
test esi, esi
je 0x1400295f8
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 0x1400294da
and esi, 0xfffffffe
mov ecx, 0x20
call fcn.140025d40
mov qword [rbp + 0x60], rax
test rax, rax
je 0x1400294cc
mov edx, r13d
mov rcx, rax
call fcn.140027e00
mov rcx, rax
jmp 0x1400294cf
mov rcx, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], rcx
inc r14d
test sil, 8
je 0x140029516
and esi, 0xfffffff7
mov ecx, 0x250
call fcn.140025d40
mov qword [rbp - 0x18], rax
test rax, rax
je 0x140029508
mov r8d, r13d
xor edx, edx
mov rcx, rax
call fcn.140027f60
mov rcx, rax
jmp 0x14002950b
mov rcx, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], rcx
inc r14d
test sil, 4
je 0x140029552
and esi, 0xfffffffb
mov ecx, 0x250
call fcn.140025d40
mov qword [rbp - 0x10], rax
test rax, rax
je 0x140029544
mov r8d, r13d
mov dl, 1
mov rcx, rax
call fcn.140027f60
mov rcx, rax
jmp 0x140029547
mov rcx, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], rcx
inc r14d
test sil, 2
je 0x14002959b
and esi, 0xfffffffd
mov ecx, 0x18
call fcn.140025d40
mov r15, rax
mov qword [rbp - 8], rax
test rax, rax
je 0x14002958d
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov rcx, rax
call fcn.140027d50
nop
mov qword [r15], r12
jmp 0x140029590
mov r15, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], r15
inc r14d
test sil, 0x10
je 0x1400295e4
and esi, 0xffffffef
mov ecx, 0x18
call fcn.140025d40
mov r15, rax
mov qword [rbp], rax
test rax, rax
je 0x1400295d6
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov rcx, rax
call fcn.140027d50
nop
mov qword [r15], rdi
jmp 0x1400295d9
mov r15, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], r15
inc r14d
test esi, esi
jne 0x1400294a0
mov rbx, qword [rbp + 0x68]
mov rdi, qword [rsp + 0x50]
xor r15d, r15d
mov ecx, 0xb0
call fcn.140025d40
mov rsi, rax
mov qword [rbp + 0x60], rax
test rax, rax
je 0x1400296e6
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.140027cd0
nop
mov dword [rsi + 0x58], r14d
lea r14, [rsi + 8]
xor edx, edx
lea r8d, [rdx + 0x50]
mov rcx, r14
call fcn.14004b830
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 0x1400296b8
mov rax, qword [r12 + r14 - 8]
test rax, rax
je 0x1400296af
mov qword [r14], rax
mov ecx, dword [rax + 8]
cmp ecx, dword [rsi + 0x5c]
jge 0x14002967e
mov dword [rsi + 0x5c], ecx
mov rax, qword [r14]
mov ecx, dword [rax + 0xc]
cmp ecx, dword [rsi + 0x60]
jle 0x14002968c
mov dword [rsi + 0x60], ecx
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp eax, 4
je 0x1400296a8
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp eax, 8
jne 0x1400296af
mov rax, qword [r14]
mov qword [rsi + 0x68], rax
inc r15d
add r14, 8
jmp 0x140029660
mov rax, qword [rsi + 0x68]
test rax, rax
je 0x1400296d1
cmp dword [rax + 0xc], 6
jl 0x1400296d1
cmp dword [rax + 8], 6
jg 0x1400296d1
mov byte [rsi + 0x64], 1
cmp qword [rsi], 0x1fa0
jbe 0x1400296e1
mov qword [rsi], 0x1fa0
xor r15d, r15d
jmp 0x1400296e9
mov rsi, r15
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x140029727
lea rdx, [rax*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029722
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029776
call fcn.140025d80
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r15w
test rdi, rdi
je 0x14002974a
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
test rbx, rbx
je 0x140029758
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.14004e3b0
nop
int3