Function at 0x18000f910
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r12
mov eax, 0x14d0
call fcn.180083120
sub rsp, rax
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rsp + 0x1500], rbx
mov qword [rsp + 0x1508], rbp
mov rax, qword [0x1800ac2b8]
xor rax, rsp
mov qword [rsp + 0x14c0], rax
mov rbx, rdx
mov rdi, rcx
lea r8, [rsp + 0x78]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x18000f973
xor eax, eax
jmp 0x18000ff62
mov dword [rsp + 0x30], 0x400
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x4c0]
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x18000f9ab
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x18000ff62
lea r8, [rdi + 8]
lea rdx, [0x180089808]
lea rcx, [rsp + 0xcc0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0xcc0]
call fcn.1800604a8
mov rdi, rax
lea rcx, [rsp + 0x4c0]
call fcn.1800604a8
mov rdx, rdi
mov rcx, rax
call fcn.18005ef18
lea rdx, [rsp + 0x4c0]
cmp rax, rdx
jne 0x18000ff55
lea rdx, [0x180089810]
lea rcx, [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x4c0]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18000ff55
mov dword [rsp + 0x80], 0x208
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_CharLowerW]
xor ebp, ebp
mov word [rsp + 0x2b0], bp
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x2b2]
call fcn.18005f790
lea r8, str...X86
lea rdx, [0x1800ae0f0]
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, [0x180089848]
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.USER32.dll_CharLowerW]
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0xa0]
call fcn.18005ef18
lea rcx, [rsp + 0xa0]
cmp rax, rcx
je 0x18000fb05
xor eax, eax
jmp 0x18000ff62
lea rcx, case.0x180034a3c.6
mov rax, qword [case.0x180034a3c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.18000f4a0
mov qword [rsp + 0x58], rbp
mov dword [rsp + 0x60], ebp
mov qword [rsp + 0x48], rbp
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdi, qword [rsp + 0x38]
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000ff32
mov r12, qword [rsp + 0x48]
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], ebp
lea rcx, case.0x180034a3c.6
mov rax, qword [case.0x180034a3c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov r9, rbx
lea r8, [0x180089860]
lea rdx, [0x180089870]
lea rcx, [rsp + 0x70]
call fcn.180011550
mov dword [rsp + 0x40], 0x208
mov dword [rsp + 0x30], ebp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, [0x180089880]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000fed9
mov eax, dword [rsp + 0x68]
cmp eax, 1
je 0x18000fc02
cmp eax, 2
jne 0x18000fed9
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x18000fc29
test cl, 1
jne 0x18000fed9
mov rax, rcx
shr rax, 1
cmp word [rsp + rax*2 + 0x9e], 0
je 0x18000fc31
jmp 0x18000fed9
mov word [rsp + 0xa0], bp
shr ecx, 1
mov dword [rsp + 0x30], ecx
mov rbx, qword [rsp + 0x70]
mov rdx, rbx
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18000fca5
lea rdx, [rbx - 0x18]
or rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000fc70
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18000fc81
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18000fc9e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
xor eax, eax
jmp 0x18000ff62
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
lea rdi, str.UserChoice
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.UserChoice
lea rcx, [rsp + 0x38]
call fcn.1800113a0
test r12, r12
je 0x18000fce6
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12, rbp
mov qword [rsp + 0x58], rbp
mov dword [rsp + 0x60], ebp
mov qword [rsp + 0x50], rbp
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000fe86
mov eax, ebp
test r12, r12
je 0x18000fd2c
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x60], ebp
test eax, eax
jne 0x18000fe86
mov dword [rsp + 0x44], 0x208
mov dword [rsp + 0x30], ebp
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x84]
xor r8d, r8d
lea rdx, str.Progid
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000fe33
mov eax, dword [rsp + 0x84]
cmp eax, 1
je 0x18000fd9a
cmp eax, 2
jne 0x18000fe33
mov ecx, dword [rsp + 0x44]
test ecx, ecx
je 0x18000fdbe
test cl, 1
jne 0x18000fe33
mov rax, rcx
shr rax, 1
cmp word [rsp + rax*2 + 0x9e], 0
je 0x18000fdc6
jmp 0x18000fe33
mov word [rsp + 0xa0], bp
shr ecx, 1
mov dword [rsp + 0x30], ecx
mov rdx, rbx
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
sete bpl
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000fdfe
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18000fe0f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18000fe2c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov eax, ebp
jmp 0x18000ff62
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000fe4e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18000fe5f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18000fe7c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov eax, 1
jmp 0x18000ff62
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000fea1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x18000feb2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18000fecf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov eax, 1
jmp 0x18000ff62
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
or rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000fefd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18000ff0e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18000ff2b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov eax, 1
jmp 0x18000ff62
lea rdx, [rdi - 0x18]
or rsi, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18000ff4e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov eax, 1
jmp 0x18000ff62
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x14c0]
xor rcx, rsp
call fcn.18005f4d0
lea r11, [rsp + 0x14d0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret