Function at 0x18001996c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
xor r13d, r13d
lea r8, [rax - 0x78]
lea rdx, str.SoftwareMicrosoftWABDLLPath
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rax - 0x68], r13
mov qword [rax - 0x70], r13
mov qword [rax - 0x80], r13
mov qword [rsp + 0x40], r13
mov dword [rax + 0x10], r13d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
cmp eax, r13d
jne 0x180019ad5
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0xe8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov r11d, dword [rsp + 0xe8]
cmp r11d, r13d
je 0x180019ac5
mov rcx, qword [0x180035a68]
mov r8, r11
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, r13
je 0x180019ac5
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0xe8]
mov r8, rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov esi, eax
cmp eax, r13d
jne 0x180019ab1
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_LoadLibraryA]
mov rbx, rax
cmp rax, r13
je 0x180019aa9
mov rdx, qword [0x180035c60]
lea rax, [0x18003a38a]
mov rcx, rbx
add rdx, rax
call qword [sym.imp.kERNEL32.dll_GetProcAddress]
cmp rax, r13
je 0x180019a94
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
call rax
cmp eax, r13d
jne 0x180019a8a
mov qword [rsp + 0x80], rbx
jmp 0x180019ab1
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x180019a99
mov esi, 0x7f
cmp esi, r13d
je 0x180019ab1
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_FreeLibrary]
jmp 0x180019ab1
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
jmp 0x180019aca
mov esi, 8
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, r13d
jne 0x180019d2d
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0xf8]
mov rax, qword [rcx]
or esi, 0xffffffff
call qword [rax + 0xc8]
cmp eax, r13d
jne 0x180019d37
mov rcx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x70]
lea rdx, [rsp + 0x68]
mov rax, qword [rcx]
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0x7c]
mov qword [rsp + 0x28], rdx
mov edx, dword [rsp + 0xf8]
xor r9d, r9d
mov dword [rsp + 0x20], 0x10
call qword [rax + 0x70]
cmp eax, r13d
jne 0x180019d37
cmp dword [rsp + 0x7c], 4
je 0x180019b55
mov esi, 0xe8
jmp 0x180019d3f
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x58]
mov edx, 0x200000
mov rax, qword [rcx]
call qword [rax + 0x70]
cmp eax, r13d
jne 0x180019d37
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x78]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x48]
cmp eax, r13d
jne 0x180019d37
mov rcx, qword [rsp + 0x58]
mov edx, dword [rsp + 0x78]
lea r9, [rsp + 0x40]
mov rax, qword [rcx]
xor r8d, r8d
call qword [rax + 0x98]
cmp eax, r13d
jne 0x180019d37
mov rbp, qword [rsp + 0x40]
mov r15d, r13d
mov dword [rsp + 0xf0], r13d
cmp dword [rbp], r13d
jbe 0x180019d37
mov r12, r13
mov r14d, r13d
cmp dword [r12 + rbp + 0xc], r13d
jbe 0x180019cfd
mov r15, qword [rsp + 0xe0]
mov rbx, qword [r12 + rbp + 0x10]
mov eax, dword [r13 + rbx]
sub eax, 0x3003001e
je 0x180019c48
cmp eax, 1
jne 0x180019ce0
mov rbx, qword [r13 + rbx + 8]
mov rdi, qword [r15]
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_lstrlenW]
xor r9d, r9d
mov rdx, rbx
lea r8d, [rax + rax]
mov rcx, r15
call qword [rdi + 0x20]
mov rbx, qword [r15]
lea rcx, [0x18002f29c]
call qword [sym.imp.kERNEL32.dll_lstrlenW]
lea rdx, [0x18002f29c]
xor r9d, r9d
lea r8d, [rax + rax]
mov rcx, r15
call qword [rbx + 0x20]
jmp 0x180019ce0
mov rcx, qword [r13 + rbx + 8]
call qword [sym.imp.kERNEL32.dll_lstrlenA]
mov rcx, qword [0x180035a68]
xor edx, edx
lea edi, [rax + 1]
lea r8d, [rdi + rdi]
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x88], rax
test rax, rax
je 0x180019ce0
mov rdx, qword [r13 + rbx + 8]
mov r8d, edi
mov rcx, rax
call sub.ntdll.dll_mbstowcs
mov rdi, qword [rsp + 0x88]
mov rbx, qword [r15]
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_lstrlenW]
xor r9d, r9d
mov rdx, rdi
lea r8d, [rax + rax]
mov rcx, r15
call qword [rbx + 0x20]
mov rbx, qword [r15]
lea rcx, [0x18002f29c]
call qword [sym.imp.kERNEL32.dll_lstrlenW]
lea rdx, [0x18002f29c]
xor r9d, r9d
lea r8d, [rax + rax]
mov rcx, r15
call qword [rbx + 0x20]
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
inc r14d
add r13, 0x18
cmp r14d, dword [r12 + rbp + 0xc]
jb 0x180019be4
mov r15d, dword [rsp + 0xf0]
xor r13d, r13d
mov rcx, qword [rsp + 0x48]
mov rdx, qword [r12 + rbp + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rbp, qword [rsp + 0x40]
inc r15d
add r12, 0x10
mov dword [rsp + 0xf0], r15d
cmp r15d, dword [rbp]
jb 0x180019bce
jmp 0x180019d32
mov rbp, qword [rsp + 0x40]
cmp esi, 0xffffffff
jne 0x180019d44
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov esi, eax
mov rbp, qword [rsp + 0x40]
cmp rbp, r13
je 0x180019d58
mov rcx, qword [rsp + 0x48]
mov rdx, rbp
mov r8, qword [rcx]
call qword [r8 + 0x30]
mov rcx, qword [rsp + 0x58]
cmp rcx, r13
je 0x180019d68
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x68]
cmp rcx, r13
je 0x180019d78
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, qword [rsp + 0x70]
cmp rdx, r13
je 0x180019d8d
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x50]
cmp rcx, r13
je 0x180019d9d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
cmp rcx, r13
je 0x180019dad
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x80]
cmp rax, r13
je 0x180019dc3
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_FreeLibrary]
mov eax, esi
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret