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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x10079ef8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x21c], eax
cmp ebx, esi
jne 0x10020b77
mov eax, 0xa0
jmp 0x10020eff
call fcn.1001fef3
test eax, eax
jne 0x10020efd
call fcn.100216db
test eax, eax
jne 0x10020efd
push 1
push ebx
call fcn.10020a34
pop ecx
pop ecx
test eax, eax
jne 0x10020efd
mov eax, dword [ebx]
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], esi
cmp eax, esi
je 0x10020bcd
push eax
call fcn.1002acfd
mov dword [ebp - 0x224], eax
push edi
lea ecx, [ebp - 0x22c]
call fcn.1002012f
movzx eax, word [ebx + 0xc]
shr eax, 1
push esi
and eax, 0x10
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebx + 8]
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call fcn.100203a2
add esp, 0x14
cmp eax, esi
jne 0x10020d98
mov eax, dword [ebp - 0x214]
cmp eax, esi
jne 0x10020c23
mov eax, dword [ebp - 0x210]
mov eax, dword [eax]
lea ecx, [ebp - 0x220]
push ecx
push esi
lea ecx, [ebp - 0x228]
push ecx
push esi
push dword [ebp - 0x224]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, esi
jne 0x10020c9f
cmp dword [ebp - 0x220], esi
je 0x10020c9f
push dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
call fcn.1001f191
test eax, eax
jne 0x10020c69
push 8
pop edi
jmp 0x10020c9f
mov eax, dword [ebp - 0x214]
cmp eax, esi
jne 0x10020c7b
mov eax, dword [ebp - 0x210]
mov eax, dword [eax]
lea ecx, [ebp - 0x220]
push ecx
push dword [ebp - 0x218]
lea ecx, [ebp - 0x228]
push ecx
push esi
push dword [ebp - 0x224]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
push edi
call fcn.1001ff8c
pop ecx
test eax, eax
je 0x10020cfb
push 0x796d7469
push esi
call fcn.1001f88e
push dword [ebp - 0x210]
mov ecx, 0x1007f238
call fcn.10020344
movzx eax, word [ebx + 0xc]
shr eax, 1
push esi
and eax, 0x10
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebx + 8]
mov dword [ebp - 0x210], esi
call fcn.100203a2
mov edi, eax
add esp, 0x14
cmp edi, esi
je 0x10020c11
jmp 0x10020d0b
push dword [ebp - 0x210]
mov ecx, 0x1007f238
call fcn.10020294
cmp edi, esi
jne 0x10020d98
mov edx, dword [ebp - 0x218]
cmp edx, esi
je 0x10020d98
movzx eax, word [ebx + 0xc]
and eax, 0xf
cmp dword [ebp - 0x228], eax
jne 0x10020e7e
dec eax
cmp eax, 1
ja 0x10020d65
mov eax, dword [ebp - 0x220]
push 4
push dword [ebp - 0x21c]
shr eax, 1
xor ecx, ecx
mov word [edx + eax*2 - 2], cx
push dword [ebp - 0x218]
call fcn.1002d9e1
test eax, eax
jne 0x10020ec1
jmp 0x10020e7e
mov ecx, dword [ebp - 0x220]
cmp ecx, dword [ebp + 0x10]
jne 0x10020e7e
mov edi, dword [ebp - 0x21c]
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10020d87
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10020e1b
xor edi, edi
xor esi, esi
jmp 0x10020ec1
mov ecx, dword [ebx + 4]
cmp ecx, 0xcccccccc
je 0x10020e7e
movzx eax, word [ebx + 0xc]
and eax, 0xf
jle 0x10020dff
cmp eax, 2
jle 0x10020dcf
cmp eax, 4
jne 0x10020dff
mov eax, dword [ebp - 0x21c]
cmp dword [eax], ecx
jne 0x10020e7e
xor edi, edi
jmp 0x10020ec1
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ecx
call fcn.100296b5
push 4
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
call fcn.1002d9e1
test eax, eax
je 0x10020e7e
jmp 0x10020dc8
push esi
push 0x6661626f
call fcn.1001f84f
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebx + 4]
mov esi, dword [ebp - 0x21c]
jmp 0x10020d7c
xor esi, esi
jmp 0x10020e7e
mov eax, dword [ebp - 0x214]
cmp eax, esi
jne 0x10020e31
mov eax, dword [ebp - 0x210]
mov eax, dword [eax]
push dword [ebp + 0x10]
movzx ecx, word [ebx + 0xc]
push dword [ebp - 0x21c]
and ecx, 0xf
push ecx
push esi
push dword [ebp - 0x224]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push edi
call fcn.1001ff8c
pop ecx
test eax, eax
je 0x10020eb1
push 0x796d746a
push esi
call fcn.1001f88e
push dword [ebp - 0x210]
mov ecx, 0x1007f238
call fcn.10020344
mov dword [ebp - 0x210], esi
movzx eax, word [ebx + 0xc]
and eax, 0x20
or eax, 8
push esi
shr eax, 1
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebx + 8]
call fcn.100203a2
mov edi, eax
add esp, 0x14
cmp edi, esi
je 0x10020e1f
jmp 0x10020ec1
push dword [ebp - 0x210]
mov ecx, 0x1007f238
call fcn.10020294
cmp dword [ebp - 0x218], esi
je 0x10020eda
push dword [ebp - 0x218]
call fcn.1001f298
mov dword [ebp - 0x218], esi
cmp dword [ebp - 0x224], esi
je 0x10020eed
push dword [ebp - 0x224]
call fcn.1001f298
lea ecx, [ebp - 0x22c]
call fcn.10020153
mov eax, edi
pop edi
jmp 0x10020eff
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10035943
leave
ret 0xc