Function at 0x18000f460
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
mov eax, 0x14c0
call fcn.180080020
sub rsp, rax
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x1500], rbx
mov rax, qword [0x1800a7120]
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 0x18000f4c5
xor eax, eax
jmp 0x18000f9fe
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 0x18000f4fe
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x18000f9fe
lea r8, [rdi + 8]
lea rdx, [0x180085808]
lea rcx, [rsp + 0xcb0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0xcb0]
call fcn.18005d39c
mov rdi, rax
lea rcx, [rsp + 0x4b0]
call fcn.18005d39c
mov rdx, rdi
mov rcx, rax
call fcn.18005be04
lea rdx, [rsp + 0x4b0]
cmp rax, rdx
jne 0x18000f9f1
lea rdx, [0x180085810]
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 0x18000f9f1
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.18005c190
lea r8, str...X86
lea rdx, [0x1800a8f50]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, [0x180085848]
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.18005be04
lea rcx, [rsp + 0x90]
cmp rax, rcx
je 0x18000f645
xor eax, eax
jmp 0x18000f9fe
lea rcx, case.0x18003191c.6
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.18000f140
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 0x18000f9cd
mov rbp, qword [rsp + 0x50]
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], r12d
lea rcx, case.0x18003191c.6
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov r9, rbx
lea r8, [0x180085860]
lea rdx, [0x180085870]
lea rcx, [rsp + 0x68]
call fcn.180010c18
mov dword [rsp + 0x30], 0x104
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x90]
lea rdx, [0x180085880]
lea rcx, [rsp + 0x40]
call fcn.180010648
cmp eax, r12d
je 0x18000f77c
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 0x18000f743
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x18000f754
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 0x18000f774
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov eax, r13d
jmp 0x18000f9fe
mov rbx, qword [rsp + 0x68]
mov rdx, rbx
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, r12d
je 0x18000f7ef
lea rdx, [rbx - 0x18]
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 eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r12d
jg 0x18000f7e8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
xor eax, eax
jmp 0x18000f9fe
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.180010a64
cmp rbp, r12
je 0x18000f82e
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 0x18000f97b
mov eax, r12d
cmp rbp, r12
je 0x18000f874
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 0x18000f97b
mov dword [rsp + 0x30], 0x104
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x90]
lea rdx, str.Progid
lea rcx, [rsp + 0x40]
call fcn.180010648
cmp eax, r12d
je 0x18000f90c
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r12d
jg 0x18000f8d3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rcx, qword [rsp + 0x58]
cmp rcx, r12
je 0x18000f8e4
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 0x18000f904
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov eax, r13d
jmp 0x18000f9fe
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 0x18000f943
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rcx, qword [rsp + 0x58]
cmp rcx, r12
je 0x18000f954
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 0x18000f974
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov eax, edi
jmp 0x18000f9fe
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r12d
jg 0x18000f997
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rcx, qword [rsp + 0x40]
cmp rcx, r12
je 0x18000f9a8
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 0x18000f9c8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov eax, r13d
jmp 0x18000f9fe
lea rdx, [rdi - 0x18]
or rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r12d
jg 0x18000f9ec
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov eax, r13d
jmp 0x18000f9fe
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.18005c4c0
mov rbx, qword [rsp + 0x1500]
add rsp, 0x14c0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret