Function at 0x140011ad0
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.1400145f0
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 0x140011be2
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x60]
call fcn.140017ce0
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 0x140011be2
lea edx, [rsi + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140025280
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140011bc0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140002c80
mov r14b, 1
mov r15, qword [rsp + 0x40]
mov rbx, qword [rbp + 0x68]
test rbx, rbx
je 0x140011c82
test r14b, r14b
jne 0x140011c82
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x60]
call fcn.140017ce0
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 0x140011c82
lea edx, [rax + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140025280
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140011c60
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140002c80
mov r14b, 1
mov r15, qword [rsp + 0x40]
mov esi, r12d
test r14b, r14b
je 0x140011edd
test r15, r15
je 0x140011edd
lea r10, [rsp + 0x30]
mov r14, qword [rsp + 0x48]
cmp r14, 8
cmovae r10, qword [rsp + 0x30]
cmp r15, 5
jb 0x140011d14
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 0x140011d14
cmp word [rcx], 0x45
je 0x140011cde
add rcx, 2
sub rax, 1
jmp 0x140011ccc
test rcx, rcx
je 0x140011d14
mov r8d, 5
mov rdx, rsi
mov r9, rcx
sub r9, rsi
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x140011d0e
add rdx, 2
sub r8, 1
jne 0x140011cf2
sub rcx, r10
sar rcx, 1
jmp 0x140011d1b
add rcx, 2
jmp 0x140011cc3
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 0x140011da2
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 0x140011da2
cmp word [rcx], 0x46
je 0x140011d6b
add rcx, 2
sub rax, 1
jmp 0x140011d59
test rcx, rcx
je 0x140011da2
mov r8d, 4
mov rdx, r14
mov r9, rcx
sub r9, r14
nop
movzx eax, word [rdx]
cmp word [r9 + rdx], ax
jne 0x140011d9c
add rdx, 2
sub r8, 1
jne 0x140011d80
sub rcx, r10
sar rcx, 1
jmp 0x140011da9
add rcx, 2
jmp 0x140011d50
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 0x140011e32
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 0x140011e32
cmp word [rcx], 0x43
je 0x140011dfc
add rcx, 2
sub rax, 1
jmp 0x140011dea
test rcx, rcx
je 0x140011e32
mov r8d, 7
mov rdx, rsi
mov r9, rcx
sub r9, rsi
movzx eax, word [rdx]
cmp word [r9 + rdx], ax
jne 0x140011e2c
add rdx, 2
sub r8, 1
jne 0x140011e10
sub rcx, r10
sar rcx, 1
jmp 0x140011e39
add rcx, 2
jmp 0x140011de1
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 0x140011ec2
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 0x140011ec2
cmp word [rcx], 0x44
je 0x140011e8b
add rcx, 2
sub rax, 1
jmp 0x140011e79
test rcx, rcx
je 0x140011ec2
mov r8d, 5
mov rdx, r14
mov r9, rcx
sub r9, r14
nop
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x140011ebc
add rdx, 2
sub r8, 1
jne 0x140011ea0
sub rcx, r11
sar rcx, 1
jmp 0x140011ec9
add rcx, 2
jmp 0x140011e70
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.140017ce0
test esi, esi
je 0x140012068
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 0x140011f4a
and esi, 0xfffffffe
mov ecx, 0x20
call fcn.14000e7f0
mov qword [rbp + 0x60], rax
test rax, rax
je 0x140011f3c
mov edx, r13d
mov rcx, rax
call fcn.140010870
mov rcx, rax
jmp 0x140011f3f
mov rcx, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], rcx
inc r14d
test sil, 8
je 0x140011f86
and esi, 0xfffffff7
mov ecx, 0x250
call fcn.14000e7f0
mov qword [rbp - 0x18], rax
test rax, rax
je 0x140011f78
mov r8d, r13d
xor edx, edx
mov rcx, rax
call fcn.1400109d0
mov rcx, rax
jmp 0x140011f7b
mov rcx, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], rcx
inc r14d
test sil, 4
je 0x140011fc2
and esi, 0xfffffffb
mov ecx, 0x250
call fcn.14000e7f0
mov qword [rbp - 0x10], rax
test rax, rax
je 0x140011fb4
mov r8d, r13d
mov dl, 1
mov rcx, rax
call fcn.1400109d0
mov rcx, rax
jmp 0x140011fb7
mov rcx, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], rcx
inc r14d
test sil, 2
je 0x14001200b
and esi, 0xfffffffd
mov ecx, 0x18
call fcn.14000e7f0
mov r15, rax
mov qword [rbp - 8], rax
test rax, rax
je 0x140011ffd
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov rcx, rax
call fcn.1400107c0
nop
mov qword [r15], r12
jmp 0x140012000
mov r15, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], r15
inc r14d
test sil, 0x10
je 0x140012054
and esi, 0xffffffef
mov ecx, 0x18
call fcn.14000e7f0
mov r15, rax
mov qword [rbp], rax
test rax, rax
je 0x140012046
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov rcx, rax
call fcn.1400107c0
nop
mov qword [r15], rdi
jmp 0x140012049
mov r15, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], r15
inc r14d
test esi, esi
jne 0x140011f10
mov rbx, qword [rbp + 0x68]
mov rdi, qword [rsp + 0x50]
xor r15d, r15d
mov ecx, 0xb0
call fcn.14000e7f0
mov rsi, rax
mov qword [rbp + 0x60], rax
test rax, rax
je 0x140012156
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.140010740
nop
mov dword [rsi + 0x58], r14d
lea r14, [rsi + 8]
xor edx, edx
lea r8d, [rdx + 0x50]
mov rcx, r14
call fcn.140017ce0
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 0x140012128
mov rax, qword [r12 + r14 - 8]
test rax, rax
je 0x14001211f
mov qword [r14], rax
mov ecx, dword [rax + 8]
cmp ecx, dword [rsi + 0x5c]
jge 0x1400120ee
mov dword [rsi + 0x5c], ecx
mov rax, qword [r14]
mov ecx, dword [rax + 0xc]
cmp ecx, dword [rsi + 0x60]
jle 0x1400120fc
mov dword [rsi + 0x60], ecx
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp eax, 4
je 0x140012118
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp eax, 8
jne 0x14001211f
mov rax, qword [r14]
mov qword [rsi + 0x68], rax
inc r15d
add r14, 8
jmp 0x1400120d0
mov rax, qword [rsi + 0x68]
test rax, rax
je 0x140012141
cmp dword [rax + 0xc], 6
jl 0x140012141
cmp dword [rax + 8], 6
jg 0x140012141
mov byte [rsi + 0x64], 1
cmp qword [rsi], 0x1fa0
jbe 0x140012151
mov qword [rsi], 0x1fa0
xor r15d, r15d
jmp 0x140012159
mov rsi, r15
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x140012197
lea rdx, [rax*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012192
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400121e6
call fcn.14000e830
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r15w
test rdi, rdi
je 0x1400121ba
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
test rbx, rbx
je 0x1400121c8
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.14001bd00
nop
int3