Function at 0x180010040
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rdi, rdx
mov rsi, rcx
lea rcx, case.0x18003191c.6
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov ecx, 0x9c
call fcn.180003240
test rax, rax
je 0x1800100a2
mov r8d, LoadRegTypeLib
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180003b50
mov rbx, qword [rsp + 0x30]
lea rdx, [rdi + 2]
lea rcx, [rsp + 0x78]
call fcn.1800035d0
nop
lea rcx, [rsp + 0x78]
call fcn.1800109f4
lea rcx, case.0x18003191c.6
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x70], rdi
xor edx, edx
mov ecx, 0xcb
call fcn.180003240
test rax, rax
je 0x1800100fe
mov r8d, 0xcb
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180003b50
mov rdi, qword [rsp + 0x70]
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 qword [rsp + 0x20], rdi
mov r9, qword [rsp + 0x78]
mov r8, rbx
lea rdx, str._s__s__s
lea rcx, [rsp + 0x38]
call fcn.180010c18
mov rbx, qword [rsp + 0x38]
mov eax, dword [rbx - 0x10]
test eax, eax
je 0x1800101e7
lea eax, [rax + rax + 2]
mov dword [rsp + 0x20], eax
mov r9, rbx
mov edi, 1
mov r8d, edi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
nop
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x180010183
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1800101a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1800101c3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x1800101e3
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rioctlsocket + 8]
mov eax, edi
jmp 0x180010266
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x180010205
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x180010225
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x180010245
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x180010264
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret