Function at 0x1805c8870
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
mov r15, rdx
mov rsi, rcx
add r9, r8
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x60], r9
mov word [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
lea rcx, [rsp + 0xd0]
lea rdi, [rsp + 0x58]
mov rdx, rdi
call fcn.1805ca460
mov dword [rsp + 0x7c], 0
mov dword [rsp + 0x3c], 0
mov r14, qword [rsp + 0xd8]
lea r13, [rsp + 0x3c]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x7c]
mov rcx, r15
mov rdx, r14
xor r8d, r8d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
je 0x1805c893e
mov qword [rsi + 8], 0
mov dword [rsi + 0x10], ecx
mov dword [rsi], 6
mov rdx, qword [rsp + 0xd0]
test rdx, rdx
je 0x1805c8a86
add rdx, rdx
mov r8d, 2
mov rcx, r14
jmp 0x1805c8a81
mov eax, dword [rsp + 0x7c]
dec eax
cmp eax, 0xa
ja case.0x1805c895b.5
lea rcx, [0x1806e7c00]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov eax, dword [rsp + 0x3c]
mov r12d, eax
shr r12d, 1
cmp eax, 2
jae 0x1805c8a9b
mov edi, 2
xor ebx, ebx
jmp 0x1805c8abb
mov edi, dword [rsp + 0x3c]
test rdi, rdi
je 0x1805c8c77
mov edx, 1
mov rcx, rdi
call fcn.1804cafc0
test rax, rax
je 0x1805c908f
mov rbx, rax
jmp 0x1805c8c7c
cmp dword [rsp + 0x3c], 4
jne case.0x1805c895b.5
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
mov rcx, r15
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jne 0x1805c890b
mov eax, dword [rsp + 0x58]
mov dword [rsi], 0
mov dword [rsi + 4], eax
jmp 0x1805c8a63
cmp dword [rsp + 0x3c], 8
jne case.0x1805c895b.5
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
mov rcx, r15
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jne 0x1805c890b
mov rax, qword [rsp + 0x58]
mov dword [rsi], 1
mov qword [rsi + 8], rax
jmp 0x1805c8a63
mov qword [rsi + 8], 0
mov dword [rsi + 0x10], 0x8007000d
mov dword [rsi], 6
mov rdx, qword [rsp + 0xd0]
test rdx, rdx
je 0x1805c8a86
mov rcx, qword [rsp + 0xd8]
add rdx, rdx
mov r8d, 2
call fcn.1804cafa0
nop
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [r12 + r12]
mov edx, 2
mov rcx, rbx
call fcn.1804cafc0
test rax, rax
je 0x1805c9082
mov rdi, rax
mov rbx, r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
mov rcx, r15
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
je 0x1805c8b3b
mov qword [rsi + 8], 0
mov dword [rsi + 0x10], ecx
mov dword [rsi], 6
test rbx, rbx
je 0x1805c891c
add rbx, rbx
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
call fcn.1804cafa0
jmp 0x1805c891c
mov eax, dword [rsp + 0x3c]
mov r12d, eax
shr r12d, 1
cmp eax, 2
jae 0x1805c8bfd
mov ebp, 2
xor edi, edi
jmp 0x1805c8c1d
mov rcx, rdi
mov rdx, r12
call fcn.1805df150
mov r14, rax
mov r8, rdx
lea r15, [rax + rdx*2]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 0
mov rax, rdx
shr rax, 1
and r8d, 1
add r8, rax
jne 0x1805c9042
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r15
mov word [rsp + 0x68], 0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
call fcn.18059ec20
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa0], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsp + 0x5c], xmm0
mov qword [rsp + 0x6c], rax
mov dword [rsi], 2
movups xmm0, xmmword [rsp + 0x58]
mov rax, qword [rsp + 0x64]
mov rcx, qword [rsp + 0x6c]
movups xmmword [rsi + 4], xmm0
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rcx
test rbx, rbx
je 0x1805c8a63
add rbx, rbx
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
call fcn.1804cafa0
jmp 0x1805c8a63
lea rbx, [r12 + r12]
mov edx, 2
mov rcx, rbx
call fcn.1804cafc0
test rax, rax
je 0x1805c9082
mov rbp, rax
mov rdi, r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbp
mov rcx, r15
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
je 0x1805c8cde
mov qword [rsi + 8], 0
mov dword [rsi + 0x10], ecx
mov dword [rsi], 6
test rdi, rdi
je 0x1805c891c
add rdi, rdi
mov r8d, 2
mov rcx, rbp
jmp 0x1805c8cd1
mov ebx, 1
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbx
mov rcx, r15
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
je 0x1805c8d3f
mov qword [rsi + 8], 0
mov dword [rsi + 0x10], ecx
mov dword [rsi], 6
test rdi, rdi
je 0x1805c891c
mov r8d, 1
mov rcx, rbx
mov rdx, rdi
call fcn.1804cafa0
jmp 0x1805c891c
mov qword [rsp + 0x88], rdi
mov rcx, rbp
mov rdx, r12
call fcn.1805df150
mov r12, rax
test rdx, rdx
je 0x1805c8d56
mov rbx, rdx
lea rcx, [rdx + rdx]
mov rax, 0xfffffffffffffffe
xor r13d, r13d
nop word [rax + rax]
cmp word [r12 + r13*2], 0
je 0x1805c8d6a
inc r13
lea rdx, [rcx + rax]
add rdx, 0xfffffffffffffffe
add rax, 0xfffffffffffffffe
cmp rdx, 0xfffffffffffffffe
jne 0x1805c8d10
xor eax, eax
mov qword [rsp + 0x80], rax
mov r15, r12
mov r13, rbx
jmp 0x1805c8d83
mov dword [rsi], 3
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], rdi
jmp 0x1805c8a63
xor eax, eax
mov qword [rsp + 0x80], rax
xor ebx, ebx
mov r15, r12
xor r13d, r13d
jmp 0x1805c8d83
mov rcx, r13
not rcx
add rbx, rcx
mov r15, r12
sub r15, rax
mov al, 1
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 0
mov rax, r13
shr rax, 1
mov r8d, r13d
and r8d, 1
add r8, rax
jne 0x1805c9062
movabs rdi, 0x8000000000000000
lea rax, [r12 + r13*2]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], rax
mov word [rsp + 0x68], 0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
call fcn.18059ec20
mov r14, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0xb0], xmm0
cmp r14, rdi
mov qword [rsp + 0xc8], rbp
jne 0x1805c8e13
mov r12d, 8
xor ebp, ebp
xor eax, eax
jmp 0x1805c9004
movzx eax, byte [0x1807afe04]
mov ecx, 0x60
mov edx, 8
call fcn.1804caf90
test rax, rax
je 0x1805c909c
mov r12, rax
mov qword [rax], r14
movaps xmm0, xmmword [rsp + 0xb0]
movups xmmword [rax + 8], xmm0
mov qword [rsp + 0x90], 4
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 1
cmp byte [rsp + 0x80], 0
je 0x1805c8fe8
mov ebp, 1
test rbx, rbx
je 0x1805c8eb7
lea rcx, [rbx + rbx]
mov rax, 0xfffffffffffffffe
xor r14d, r14d
nop word [rax + rax]
cmp word [r15 + r14*2], 0
je 0x1805c8ec3
inc r14
lea rdx, [rcx + rax]
add rdx, 0xfffffffffffffffe
add rax, 0xfffffffffffffffe
cmp rdx, 0xfffffffffffffffe
jne 0x1805c8e90
xor edi, edi
mov r13, r15
mov r14, rbx
jmp 0x1805c8ed5
xor ebx, ebx
mov r13, r15
xor edi, edi
xor r14d, r14d
jmp 0x1805c8ed5
mov rcx, r14
not rcx
add rbx, rcx
mov r13, r15
sub r13, rax
mov dil, 1
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 0
mov rax, r14
shr rax, 1
mov r8d, r14d
and r8d, 1
add r8, rax
jne 0x1805c8f95
lea rax, [r15 + r14*2]
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], rax
mov word [rsp + 0x68], 0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
call fcn.18059ec20
mov r14, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0xb0], xmm0
mov rax, qword [rsp + 0x90]
movabs rcx, 0x8000000000000000
cmp r14, rcx
je 0x1805c8ffc
cmp rbp, rax
je 0x1805c8fb5
lea rax, [rbp*2]
add rax, rbp
mov qword [r12 + rax*8], r14
movaps xmm0, xmmword [rsp + 0xb0]
movups xmmword [r12 + rax*8 + 8], xmm0
inc rbp
mov qword [rsp + 0xa0], rbp
mov r15, r13
test dil, dil
jne 0x1805c8e77
jmp 0x1805c8ff4
mov qword [rsp + 0x20], 1
mov r9d, 1
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.1806a7f20
jmp 0x1805c8f06
movzx r8d, dil
inc r8
mov qword [rsp + 0x20], 0x18
mov r9d, 8
lea rcx, [rsp + 0x90]
mov rdx, rbp
call fcn.1806a7f20
mov r12, qword [rsp + 0x98]
jmp 0x1805c8f5f
mov eax, 4
mov ebp, 1
jmp 0x1805c9004
mov rax, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x88]
mov dword [rsi], 4
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], rbp
test rdx, rdx
je 0x1805c8a63
add rdx, rdx
mov r8d, 2
mov rcx, qword [rsp + 0xc8]
call fcn.1804cafa0
jmp 0x1805c8a63
mov qword [rsp + 0x20], 1
lea rcx, [rsp + 0x40]
mov r9d, 1
xor edx, edx
call fcn.1806a7f20
jmp 0x1805c8b7e
mov qword [rsp + 0x20], 1
lea rcx, [rsp + 0x40]
mov r9d, 1
xor edx, edx
call fcn.1806a7f20
jmp 0x1805c8db4
mov ecx, 2
mov rdx, rbx
call fcn.18063bc30
mov ecx, 1
mov rdx, rdi
call fcn.18063bc30
mov ecx, 8
mov edx, 0x60
call fcn.18063bc30
int3