Function at 0x100cdd3
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x101d00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
xor ecx, ecx
push esi
mov word [ebp - 0x20c], cx
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
xor ebx, ebx
add eax, 4
push ebx
push 2
mov ecx, eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], 0x104
mov dword [ebp - 0x218], eax
call fcn.01012949
push eax
push 0x10020a0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x100d045
cmp dword [ebp - 0x214], 2
jb 0x100d045
lea esi, [ebp - 0x20c]
lea ecx, [esi + 2]
mov ax, word [esi]
inc esi
inc esi
cmp ax, bx
jne 0x100ce57
sub esi, ecx
sar esi, 1
cmp esi, 0xb
jb 0x100cf15
push edi
lea edi, [ebp - 0x1f6]
push 0xb
lea eax, [edi - 0x16]
push 0x1002550
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x100ceb2
test ebx, ebx
je 0x100ce9f
movzx eax, word [edi - 0x18]
push eax
call sub.msvcrt.dll_isspace
pop ecx
test eax, eax
je 0x100ceb2
movzx eax, word [edi]
push eax
call sub.msvcrt.dll_isspace
pop ecx
test eax, eax
jne 0x100cebe
cmp word [edi], ax
je 0x100cebe
inc ebx
inc edi
lea eax, [esi - 0xb]
inc edi
cmp ebx, eax
jbe 0x100ce75
jmp 0x100cf14
test ebx, ebx
jne 0x100cec6
xor ecx, ecx
jmp 0x100cec9
lea ecx, [ebx - 1]
lea eax, [ebx + 0xb]
cmp eax, esi
jb 0x100cedc
xor eax, eax
mov word [ebp + ecx*2 - 0x20c], ax
jmp 0x100cf14
sub esi, ebx
test ecx, ecx
je 0x100cef8
lea edx, [esi + esi - 0x14]
lea eax, [ebp + eax*2 - 0x20c]
push edx
push eax
lea eax, [ebp + ecx*2 - 0x20c]
jmp 0x100cf0b
lea ecx, [esi + esi - 0x16]
lea eax, [ebp + eax*2 - 0x20a]
push ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_memmove
add esp, 0xc
pop edi
lea eax, [ebp - 0x210]
push eax
push 2
xor ebx, ebx
push ebx
mov esi, 0x10020a0
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100d013
cmp dword [ebp - 0x210], ebx
je 0x100d013
cmp word [ebp - 0x20c], bx
jne 0x100cfa4
mov ecx, dword [ebp - 0x218]
call fcn.01012949
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100cf7b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100d080
test byte [eax + 0x1c], 1
je 0x100d080
push esi
push 0x1002450
push 0x37
jmp 0x100d075
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x100cfad
sub eax, edx
sar eax, 1
add eax, eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100d00f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100cfed
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100d080
test byte [eax + 0x1c], 1
je 0x100d080
push esi
push 0x1002450
push 0x38
jmp 0x100d075
xor esi, esi
jmp 0x100d080
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100d027
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100d080
test byte [eax + 0x1c], 1
je 0x100d080
push esi
push 0x1002450
push 0x36
jmp 0x100d075
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100d059
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100d080
test byte [eax + 0x1c], 1
je 0x100d080
push esi
push 0x1002450
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dc70
cmp dword [ebp - 0x210], ebx
je 0x100d094
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010042af
leave
ret