Function at 0x1000eae3c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x80
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rdi, r8
mov r12, rdx
mov r13, rcx
lea rax, [0x100152eb8]
mov edx, 5
mov rcx, qword [0x100152eb8]
cmp rcx, rax
je 0x1000eaeaa
test byte [rcx + 0x1c], 1
je 0x1000eaeaa
cmp byte [rcx + 0x19], dl
jb 0x1000eaeaa
mov edx, 0x2f
mov eax, dword [r8]
mov dword [rsp + 0x20], eax
mov r9, r12
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.10009b2f4
xor ebx, ebx
xor ebp, ebp
mov dword [rsp + 0xc8], ebp
mov rdx, r12
mov rcx, r13
call fcn.1000e9d54
mov esi, eax
lea r15d, [rbx + 2]
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x1000eaf01
test byte [rcx + 0x1c], r15b
je 0x1000eaf01
lea eax, [rbx + 5]
cmp byte [rcx + 0x19], al
jb 0x1000eaf01
lea edx, [rbx + 0x30]
mov dword [rsp + 0x20], esi
mov r9, r12
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.10009b2f4
test esi, esi
jne 0x1000eaf0f
mov ebx, 0x490
jmp 0x1000eafc2
lea r8, [rsp + 0xc8]
mov rdx, r12
mov rcx, r13
call fcn.1000eb7b4
mov esi, eax
mov ebp, dword [rsp + 0xc8]
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x1000eaf8b
test byte [rcx + 0x1c], r15b
je 0x1000eaf8b
movzx edx, byte [rcx + 0x19]
mov eax, r15d
test esi, esi
mov r8d, 5
cmove eax, r8d
cmp edx, eax
jl 0x1000eaf84
lea edx, [r8 + 0x2c]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], r12
mov r9d, esi
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.1000e9730
lea rax, [0x100152eb8]
jmp 0x1000eaf8b
lea rax, [0x100152eb8]
test esi, esi
jne 0x1000eafc2
cmp ebp, 1
jne 0x1000eafc2
mov dword [rdi], r15d
mov rcx, qword [0x100152eb8]
cmp rcx, rax
je 0x1000eafc2
test byte [rcx + 0x1c], r15b
je 0x1000eafc2
cmp byte [rcx + 0x19], 4
jb 0x1000eafc2
lea edx, [rsi + 0x32]
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.100034764
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.100035d98
nop
lea rcx, [rsp + 0x30]
call fcn.100069790
xor esi, esi
mov qword [rsp + 0x60], rsi
and qword [rsp + 0x68], rsi
and qword [rsp + 0x70], rsi
test ebp, ebp
jne 0x1000eb303
test ebx, ebx
jne 0x1000eb303
lea rdx, [rsp + 0x60]
mov rcx, r13
call fcn.1000ed7d0
mov ebx, eax
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x1000eb046
test byte [rcx + 0x1c], r15b
je 0x1000eb046
cmp byte [rcx + 0x19], 4
jb 0x1000eb046
lea edx, [rsi + 0x33]
mov r9d, ebx
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
mov rcx, qword [0x100152eb8]
test ebx, ebx
jne 0x1000eb2fc
and dword [rdi], ebx
or ebp, 0xffffffff
mov dword [rsp + 0x58], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x4c]
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1000eb099
mov eax, dword [rsp + 0x4c]
sub eax, 4
neg eax
sbb ebx, ebx
and ebx, 0xd
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x1000eb0e3
test byte [rcx + 0x1c], r15b
je 0x1000eb0e3
cmp byte [rcx + 0x19], 4
jb 0x1000eb0e3
mov edx, 0x34
mov dword [rsp + 0x28], ebx
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x30]
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.1000e9924
mov rcx, qword [0x100152eb8]
cmp ebx, r15d
je 0x1000eb0f8
test ebx, ebx
jne 0x1000eb30a
cmp dword [rdi], ebx
jne 0x1000eb30a
test ebx, ebx
jne 0x1000eb0fe
mov ebp, dword [rdi]
mov dword [rsp + 0x48], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x3c]
xor r8d, r8d
lea rdx, [0x100026ac0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1000eb141
mov eax, dword [rsp + 0x3c]
sub eax, 4
neg eax
sbb ebx, ebx
and ebx, 0xd
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x1000eb18d
test byte [rcx + 0x1c], r15b
je 0x1000eb18d
cmp byte [rcx + 0x19], 4
jb 0x1000eb18d
mov edx, 0x35
mov dword [rsp + 0x28], ebx
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
lea r9, [0x100026ac0]
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.1000e9924
mov rcx, qword [0x100152eb8]
cmp ebx, r15d
jne 0x1000eb217
and dword [rdi], 0
and dword [rsp + 0x50], 0
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x100026ac0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x1000eb217
test byte [rcx + 0x1c], r15b
je 0x1000eb217
cmp byte [rcx + 0x19], 4
jb 0x1000eb217
mov edx, 0x36
mov dword [rsp + 0x28], ebx
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
lea r9, [0x100026ac0]
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.1000e9924
mov rcx, qword [0x100152eb8]
test ebx, ebx
jne 0x1000eb298
mov eax, dword [rdi]
cmp eax, ebp
je 0x1000eb298
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x1000eb298
test byte [rcx + 0x1c], r15b
je 0x1000eb298
cmp byte [rcx + 0x19], 4
jb 0x1000eb298
mov edx, 0x37
mov dword [rsp + 0x28], ebx
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x30]
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.1000e9924
mov rcx, qword [0x100152eb8]
cmp dword [rdi], 0
jne 0x1000eb2dc
and dword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
lea r8, [0x100026ae0]
mov rdx, qword [rsp + 0x30]
mov rcx, r13
call fcn.1000eba94
test eax, eax
jne 0x1000eb2d5
cmp dword [rsp + 0x38], 1
jne 0x1000eb2d5
mov dword [rdi], 1
mov rcx, qword [0x100152eb8]
jmp 0x1000eb2dc
mov rcx, qword [0x100152eb8]
cmp dword [rdi], 0
jne 0x1000eb30a
mov rax, qword [r13]
mov r8, rdi
mov rdx, r12
mov rcx, r13
call qword [rax + 0x28]
mov ebx, eax
mov rcx, qword [0x100152eb8]
jmp 0x1000eb30a
mov rsi, qword [rsp + 0x60]
jmp 0x1000eb30a
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x1000eb34b
test byte [rcx + 0x1c], 1
je 0x1000eb34b
movzx r9d, byte [rcx + 0x19]
mov eax, ebx
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jl 0x1000eb34b
mov edx, 0x38
mov r9d, ebx
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
nop
test rsi, rsi
je 0x1000eb35a
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1000eb37a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret