Function at 0x18000f4d4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
mov eax, 0x14c0
call fcn.180080990
sub rsp, rax
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x1500], rbx
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0x14b0], rax
mov rbx, rdx
mov rdi, rcx
lea r8, [rsp + 0x60]
mov rsi, 0xffffffff80000000
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
xor r12d, r12d
cmp eax, r12d
je 0x18000f539
xor eax, eax
jmp 0x18000fa72
mov dword [rsp + 0x30], 0x400
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x4b0]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
cmp eax, r12d
je 0x18000f572
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x18000fa72
lea r8, [rdi + 8]
lea rdx, [0x180086808]
lea rcx, [rsp + 0xcb0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0xcb0]
call fcn.18005da0c
mov rdi, rax
lea rcx, [rsp + 0x4b0]
call fcn.18005da0c
mov rdx, rdi
mov rcx, rax
call fcn.18005c474
lea rdx, [rsp + 0x4b0]
cmp rax, rdx
jne 0x18000fa65
lea rdx, [0x180086810]
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x4b0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, r12d
jne 0x18000fa65
mov dword [rsp + 0x70], 0x208
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x90]
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x90]
call qword [sym.imp.USER32.dll_CharLowerW]
mov word [rsp + 0x2a0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x2a2]
call fcn.18005c800
lea r8, str...X86
lea rdx, [0x1800a9f50]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, [0x180086848]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.USER32.dll_CharLowerW]
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x90]
call fcn.18005c474
lea rcx, [rsp + 0x90]
cmp rax, rcx
je 0x18000f6b9
xor eax, eax
jmp 0x18000fa72
lea rcx, case.0x180031f8c.6
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.18000f1b4
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r13d, 1
mov r9d, r13d
xor r8d, r8d
mov rdi, qword [rsp + 0x38]
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r12d
jne 0x18000fa41
mov rbp, qword [rsp + 0x50]
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], r12d
lea rcx, case.0x180031f8c.6
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov r9, rbx
lea r8, [0x180086860]
lea rdx, [0x180086870]
lea rcx, [rsp + 0x68]
call fcn.180010c8c
mov dword [rsp + 0x30], 0x104
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x90]
lea rdx, [0x180086880]
lea rcx, [rsp + 0x40]
call fcn.1800106bc
cmp eax, r12d
je 0x18000f7f0
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
or rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r12d
jg 0x18000f7b7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x18000f7c8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
cmp ecx, r12d
jg 0x18000f7e8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov eax, r13d
jmp 0x18000fa72
mov rbx, qword [rsp + 0x68]
mov rdx, rbx
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, r12d
je 0x18000f863
lea rdx, [rbx - 0x18]
or rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r12d
jg 0x18000f82b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x18000f83c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r12d
jg 0x18000f85c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
xor eax, eax
jmp 0x18000fa72
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
lea rdx, str.UserChoice
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r13
mov r8d, ecx
lea rcx, [rsp + 0x38]
call fcn.180010ad8
cmp rbp, r12
je 0x18000f8a2
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, r12
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x58], r12
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r12d
jne 0x18000f9ef
mov eax, r12d
cmp rbp, r12
je 0x18000f8e8
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x48], r12d
cmp eax, r12d
jne 0x18000f9ef
mov dword [rsp + 0x30], 0x104
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x90]
lea rdx, str.Progid
lea rcx, [rsp + 0x40]
call fcn.1800106bc
cmp eax, r12d
je 0x18000f980
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r12d
jg 0x18000f947
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rcx, qword [rsp + 0x58]
cmp rcx, r12
je 0x18000f958
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r12d
jg 0x18000f978
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov eax, r13d
jmp 0x18000fa72
mov rdx, rbx
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov edi, r12d
cmp eax, r12d
sete dil
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r12d
jg 0x18000f9b7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rcx, qword [rsp + 0x58]
cmp rcx, r12
je 0x18000f9c8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
cmp ecx, r12d
jg 0x18000f9e8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov eax, edi
jmp 0x18000fa72
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r12d
jg 0x18000fa0b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rcx, qword [rsp + 0x40]
cmp rcx, r12
je 0x18000fa1c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r12d
jg 0x18000fa3c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov eax, r13d
jmp 0x18000fa72
lea rdx, [rdi - 0x18]
or rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r12d
jg 0x18000fa60
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov eax, r13d
jmp 0x18000fa72
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x14b0]
xor rcx, rsp
call fcn.18005cb30
mov rbx, qword [rsp + 0x1500]
add rsp, 0x14c0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret