Function at 0x100ed60
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rsi, rcx
xor r12d, r12d
mov rdi, r12
mov qword [rax - 0x38], r12
mov rbx, r12
mov qword [rax + 0x20], rbx
mov dword [rcx], r12d
mov dword [rcx + 0x1078], r12d
mov qword [rax + 8], r12
lea rax, [rax + 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x01002f38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100ee30
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x30], rdi
mov ebp, r12d
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x01002f58]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], 4
jne 0x100ee21
test eax, eax
cmove ebp, dword [rsp + 0x78]
mov eax, r12d
cmp ebp, 1
sete al
mov dword [rsi + 0x1078], eax
mov qword [rsp + 0x70], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x01002ec0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100f121
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x88], rax
lea rdx, [rsi + 0x10]
lea r8, [0x01003290]
lea rcx, [rsp + 0x88]
call fcn.0100ebe0
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x01003278]
mov rbx, qword [rsp + 0x88]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], 4
jne 0x100eee7
test eax, eax
jne 0x100eee7
mov eax, dword [rsp + 0x78]
mov dword [rsi + 0x30], eax
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x01003258]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], 4
jne 0x100ef43
test eax, eax
jne 0x100ef43
mov eax, r12d
cmp dword [rsp + 0x78], eax
setne al
mov dword [rsi + 0x20], eax
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x01003240]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], 4
jne 0x100ef9f
test eax, eax
jne 0x100ef9f
mov eax, r12d
cmp dword [rsp + 0x78], eax
setne al
mov dword [rsi + 0x18], eax
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x01003220]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], 4
jne 0x100effb
test eax, eax
jne 0x100effb
mov eax, r12d
cmp dword [rsp + 0x78], eax
setne al
mov dword [rsi + 0x1c], eax
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x01003200]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], 4
jne 0x100f057
test eax, eax
jne 0x100f057
mov eax, r12d
cmp dword [rsp + 0x78], eax
setne al
mov dword [rsi + 0x28], eax
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x010031d8]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], 4
jne 0x100f0b3
test eax, eax
jne 0x100f0b3
mov eax, r12d
cmp dword [rsp + 0x78], eax
setne al
mov dword [rsi + 0x24], eax
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x010031b8]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], 4
jne 0x100f10f
test eax, eax
jne 0x100f10f
mov eax, r12d
cmp dword [rsp + 0x78], eax
setne al
mov dword [rsi + 0x2c], eax
cmp dword [rsi + 0x1c], 0
jne 0x100f11b
cmp dword [rsi + 0x18], 0
je 0x100f121
mov dword [rsi], 1
test rbx, rbx
je 0x100f137
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x88], r12
test rdi, rdi
je 0x100f14e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x30], r12
xor eax, eax
jmp 0x100f150
xor eax, eax
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret