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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1010339c]
sub esp, 0x18
cmp eax, 0xffffffff
jne 0x1000622c
call fcn.1000384d
push ebx
push edi
test eax, eax
jne 0x10006387
call fcn.10002bed
test eax, eax
jne 0x10006387
mov ebx, dword [ebp + 8]
xor edi, edi
inc edi
push edi
push ebx
call fcn.100036c1
test al, al
jne 0x10006387
push esi
xor esi, esi
lea ecx, [ebp + 0xb]
and dword [ebp - 8], esi
and dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.10002f7a
movzx eax, word [ebx + 0x10]
and dword [ebp - 4], esi
and dword [ebp - 0xc], esi
shr eax, 1
push esi
and eax, 0x10
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebx + 0xc]
call fcn.1000a1f4
test eax, eax
jne 0x1000636c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x100062a4
mov eax, dword [ebp - 4]
mov eax, dword [eax]
lea ecx, [ebp - 8]
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push dword [ebx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x100062fc
cmp dword [ebp - 8], eax
je 0x100062fc
push dword [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.10006418
test al, al
je 0x1000d6d6
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x100062e3
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push esi
lea ecx, [ebp - 0x14]
push ecx
push 0
push dword [ebx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
push edi
call fcn.10003480
push dword [ebp - 4]
test eax, eax
jne 0x1000d6e1
call fcn.10002df5
test edi, edi
jne 0x10006382
test esi, esi
je 0x10006382
movzx eax, word [ebx + 0x10]
and eax, 0xf
cmp dword [ebp - 0x14], eax
jne 0x1000638b
dec eax
cmp eax, 1
jbe 0x1000d72d
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 8], eax
jne 0x1000638b
push dword [ebp - 8]
mov eax, dword [ebp + 0xc]
push eax
push esi
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x1000638b
xor edi, edi
lea ecx, [ebp + 0xb]
call fcn.100034b6
test esi, esi
je 0x10006361
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
pop ecx
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx + 4]
cmp ecx, 0xcccccccc
je 0x1000638b
jmp 0x1000d771
test eax, eax
jne 0x1000638b
jmp 0x1000634e
xor edi, edi
inc edi
jmp 0x1000636c
xor eax, eax
jmp 0x10006364
push 0
movzx eax, word [ebx + 0x10]
and eax, 0x20
or eax, 8
shr eax, 1
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebx + 0xc]
call fcn.1000a1f4
mov edi, eax
test edi, edi
jne 0x1000d7fb
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x100063c0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push dword [ebp + 0x10]
movzx eax, word [ebx + 0x10]
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
push edi
call fcn.10003480
test eax, eax
jne 0x1000d7d0
jmp 0x1000d80b
mov esi, dword [ebp - 0x10]
push 8
pop edi
jmp 0x100062fc
mov eax, dword [ebx + 0xc]
xor edi, edi
mov ecx, 0x10104f58
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
mov dword [eax + 0x101033a0], edi
call fcn.100900ea
movzx eax, word [ebx + 0x10]
shr eax, 1
push edi
and eax, 0x10
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebx + 0xc]
call fcn.1000a1f4
mov edi, eax
test edi, edi
jne 0x10006312
jmp 0x10006295
mov eax, dword [ebp - 8]
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
mov eax, esi
mov ecx, dword [ebp + 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000d767
test dx, dx
je 0x1000d760
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000d767
add eax, 4
add ecx, 4
test dx, dx
jne 0x1000d73e
xor eax, eax
jmp 0x1000637c
sbb eax, eax
or eax, 1
jmp 0x1000637c
movzx eax, word [ebx + 0x10]
and eax, 0xf
jle 0x1000d78f
cmp eax, 2
jle 0x1000d7c2
cmp eax, 4
je 0x1000d7b2
cmp eax, 0xb
jne 0x1000d78f
cmp dword [ebp + 0x10], 8
je 0x1000d799
xor ecx, ecx
mov dword [0], edi
int 0x29
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x1000638b
mov eax, dword [ecx + 4]
cmp eax, dword [ebx + 8]
jmp 0x1000634a
cmp dword [ebp + 0x10], 4
jne 0x1000d78f
mov eax, dword [ebp + 0xc]
cmp dword [eax], ecx
jmp 0x1000634a
cmp dword [ebp + 0x10], 2
jb 0x1000d78f
cmp ecx, dword [ebp + 0xc]
jmp 0x1000634a
mov eax, dword [ebx + 0xc]
xor edi, edi
push dword [ebp - 4]
mov ecx, 0x10104f58
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
mov dword [eax + 0x101033a0], edi
call fcn.100900ea
mov dword [ebp - 4], edi
push edi
jmp 0x1000638d
push str.OrapiWriteFail:_CacheKey_in_WriteValue
push edi
call fcn.1009024f
jmp 0x1000634e
test edi, edi
je 0x1000d81a
push str.OrapiWriteFail:_RegSetValueExW
push edi
call fcn.1009024f
push dword [ebp - 4]
call fcn.10002df5
jmp 0x1000634e