Function at 0x100cc2f2
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x18
mov eax, 0x100f05ec
call fcn.10001e61
mov ebx, dword [ebp + 8]
cmp ebx, dword [0x10140d28]
jne 0x100cc313
mov eax, 0xa0
jmp 0x100cc614
mov eax, dword [0x1013cb4c]
cmp eax, 0xffffffff
jne 0x100cc324
movzx eax, byte [0x1013ebd0]
test eax, eax
jne 0x100cc612
call fcn.100036ad
test eax, eax
jne 0x100cc612
push 1
push ebx
call fcn.100cc646
test al, al
jne 0x100cc612
xor edi, edi
mov esi, edi
mov dword [ebp - 0x1c], esi
lea ecx, [ebp + 0xb]
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
call fcn.1002c0e2
movzx eax, word [ebx + 0xc]
shr eax, 1
push edi
and eax, 0x10
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 8]
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
call fcn.1002c103
test eax, eax
je 0x100cc391
jmp 0x100cc4fb
xor edi, edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x100cc3a0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push edi
lea ecx, [ebp - 0x20]
push ecx
push edi
push dword [ebx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x100cc3fa
cmp dword [ebp - 0x14], eax
je 0x100cc3fa
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.10003af5
test al, al
jne 0x100cc3d5
mov esi, dword [ebp - 0x1c]
push 8
pop edi
jmp 0x100cc3fa
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x100cc3e1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push ecx
push esi
lea ecx, [ebp - 0x20]
push ecx
push 0
push dword [ebx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, edi
call fcn.100cc745
test eax, eax
je 0x100cc45b
push 0x1c0497
xor edi, edi
push edi
call fcn.100bbd72
mov eax, dword [ebx + 8]
movzx eax, word [eax + 6]
push dword [ebp - 0x10]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x10107740
mov dword [eax + 0x10106608], edi
call fcn.100cc0c3
movzx eax, word [ebx + 0xc]
shr eax, 1
push edi
and eax, 0x10
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 8]
mov dword [ebp - 0x10], edi
call fcn.1002c103
mov edi, eax
test edi, edi
jne 0x100cc468
jmp 0x100cc38f
push dword [ebp - 0x10]
mov ecx, 0x10107740
call fcn.100038fb
test edi, edi
jne 0x100cc4f9
test esi, esi
je 0x100cc4f9
movzx eax, word [ebx + 0xc]
and eax, 0xf
cmp dword [ebp - 0x20], eax
jne 0x100cc561
dec eax
cmp eax, 1
ja 0x100cc4d2
mov eax, dword [ebp - 0x14]
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100cc4c8
test dx, dx
je 0x100cc4c1
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100cc4c8
add eax, 4
add ecx, 4
test dx, dx
jne 0x100cc49f
xor eax, eax
jmp 0x100cc559
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x100cc559
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x14], eax
jne 0x100cc561
push dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
push eax
push esi
call sub.MSVCR100.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x100cc561
xor edi, edi
jmp 0x100cc5fb
xor edi, edi
mov ecx, dword [ebx + 4]
cmp ecx, 0xcccccccc
je 0x100cc561
movzx eax, word [ebx + 0xc]
and eax, 0xf
jle 0x100cc53c
cmp eax, 2
jle 0x100cc537
cmp eax, 4
je 0x100cc530
cmp eax, 0xb
jne 0x100cc53c
mov eax, dword [ebp + 0xc]
cmp dword [eax], ecx
jne 0x100cc561
cmp dword [eax + 4], edi
je 0x100cc5fb
jmp 0x100cc561
mov eax, dword [ebp + 0xc]
cmp dword [eax], ecx
jmp 0x100cc528
cmp ecx, dword [ebp + 0xc]
jmp 0x100cc528
push 0x1c0499
call fcn.100bbd1d
mov eax, dword [ebp + 0x10]
push eax
push dword [ebx + 4]
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR100.dll_memcmp
add esp, 0xc
test eax, eax
je 0x100cc5fb
push 0
jmp 0x100cc5c6
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x100cc571
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push dword [ebp + 0x10]
movzx eax, word [ebx + 0xc]
push dword [ebp + 0xc]
and eax, 0xf
push eax
push 0
push dword [ebx]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
call fcn.100cc745
test eax, eax
je 0x100cc5ee
push 0x1c049a
xor edi, edi
push edi
call fcn.100bbd72
mov eax, dword [ebx + 8]
movzx eax, word [eax + 6]
push dword [ebp - 0x10]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x10107740
mov dword [eax + 0x10106608], edi
call fcn.100cc0c3
mov dword [ebp - 0x10], edi
push edi
movzx eax, word [ebx + 0xc]
and eax, 0x20
or eax, 8
shr eax, 1
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 8]
call fcn.1002c103
mov edi, eax
test edi, edi
jne 0x100cc5fb
jmp 0x100cc565
push dword [ebp - 0x10]
mov ecx, 0x10107740
call fcn.100038fb
lea ecx, [ebp + 0xb]
call fcn.1002c8d7
test esi, esi
je 0x100cc60e
push esi
call fcn.10003b44
pop ecx
mov eax, edi
jmp 0x100cc614
xor eax, eax
call fcn.10001ea0
ret 0xc