Function at 0x100066c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
push 0x28
call 0x10000000
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call fcn.10006520
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], 0
je 0x10006715
cmp dword [ebp - 0x18], 0
jne 0x10006722
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100068c6
cmp dword [ebp + 0x10], 0
je 0x1000674a
mov ecx, dword [ebp + 0x10]
push ecx
call 0x10000000
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1000674a
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100068c6
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
add edx, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 4]
push edx
call fcn.100061d0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100067af
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100068c6
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x100067da
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100068c6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
push 1
push 0
push str.DeviceInstance
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 8]
push edx
call 0x10000000
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.10006310
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000683b
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100068c6
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10006863
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100068c6
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
push 1
push 0
push str.SymbolicLink
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0xc]
push edx
call fcn.10006650
add esp, 4
test eax, eax
je 0x100068ac
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
or ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 8]
push eax
call 0x10000000
add esp, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 4]
jmp 0x100068f8
mov eax, dword [ebp - 4]
push eax
call 0x10000000
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call 0x10000000
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call 0x10000000
add esp, 4
mov eax, dword [ebp - 8]
push eax
call 0x10000000
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret