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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x3001dedc]
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
cmp ebx, esi
mov dword [ebp - 0x224], eax
jne 0x30023d10
mov eax, 0xa0
jmp 0x3002406d
cmp dword [0x3007bb54], esi
je 0x30023d1f
xor eax, eax
jmp 0x3002406d
push 1
push ebx
call fcn.30023bd6
test eax, eax
pop ecx
pop ecx
jne 0x30023d18
mov eax, dword [ebx]
cmp eax, esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x228], esi
je 0x30023d57
push eax
call fcn.30032cd0
mov dword [ebp - 0x220], eax
push edi
lea ecx, [ebp - 0x229]
call fcn.300233e1
push esi
push esi
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.30023641
add esp, 0x14
cmp eax, esi
jne 0x30023f0e
mov eax, dword [ebp - 0x214]
cmp eax, esi
jne 0x30023da4
mov eax, dword [ebp - 0x210]
mov eax, dword [eax]
lea ecx, [ebp - 0x21c]
push ecx
push esi
lea ecx, [ebp - 0x228]
push ecx
push esi
push dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, esi
jne 0x30023e20
cmp dword [ebp - 0x21c], esi
je 0x30023e20
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call fcn.30020615
test eax, eax
jne 0x30023dea
push 8
pop edi
jmp 0x30023e20
mov eax, dword [ebp - 0x214]
cmp eax, esi
jne 0x30023dfc
mov eax, dword [ebp - 0x210]
mov eax, dword [eax]
lea ecx, [ebp - 0x21c]
push ecx
push dword [ebp - 0x218]
lea ecx, [ebp - 0x228]
push ecx
push esi
push dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
push edi
call fcn.30022fff
test eax, eax
pop ecx
je 0x30023e73
push 0x796d7469
push esi
call fcn.30022f42
push dword [ebp - 0x210]
mov ecx, 0x3007ab48
call fcn.3002357f
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebx + 8]
mov dword [ebp - 0x210], esi
call fcn.30023641
mov edi, eax
add esp, 0x14
cmp edi, esi
je 0x30023d92
jmp 0x30023e83
push dword [ebp - 0x210]
mov ecx, 0x3007ab48
call fcn.300234fd
cmp edi, esi
jne 0x30023f0e
mov edx, dword [ebp - 0x218]
cmp edx, esi
je 0x30023f0e
movzx eax, byte [ebx + 0xc]
and eax, 0xf
cmp dword [ebp - 0x228], eax
jne 0x30023ff3
dec eax
cmp eax, 1
ja 0x30023edb
mov eax, dword [ebp - 0x21c]
push 4
push dword [ebp - 0x224]
shr eax, 1
mov word [edx + eax*2 - 2], si
push dword [ebp - 0x218]
call fcn.300359fa
test eax, eax
jne 0x3002402b
jmp 0x30023ff3
mov ecx, dword [ebp - 0x21c]
cmp ecx, dword [ebp + 0x10]
jne 0x30023ff3
mov edi, dword [ebp - 0x224]
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x30023efd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x30023f90
xor edi, edi
xor esi, esi
jmp 0x3002402b
mov eax, dword [ebx + 4]
cmp eax, 0xcccccccc
je 0x30023ff3
movzx ecx, byte [ebx + 0xc]
and ecx, 0xf
jle 0x30023f74
cmp ecx, 2
jle 0x30023f44
cmp ecx, 4
jne 0x30023f74
mov ecx, dword [ebp - 0x224]
cmp dword [ecx], eax
jne 0x30023ff3
xor edi, edi
jmp 0x3002402b
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.30031557
push 4
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
call fcn.300359fa
test eax, eax
je 0x30023ff3
jmp 0x30023f3d
push esi
push 0x6661626f
call fcn.30022f03
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebx + 4]
mov esi, dword [ebp - 0x224]
jmp 0x30023ef2
xor esi, esi
jmp 0x30023ff3
mov eax, dword [ebp - 0x214]
cmp eax, esi
jne 0x30023fa6
mov eax, dword [ebp - 0x210]
mov eax, dword [eax]
push dword [ebp + 0x10]
movzx ecx, byte [ebx + 0xc]
push dword [ebp - 0x224]
and ecx, 0xf
push ecx
push esi
push dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push edi
call fcn.30022fff
test eax, eax
pop ecx
je 0x3002401b
push 0x796d746a
push esi
call fcn.30022f42
push dword [ebp - 0x210]
mov ecx, 0x3007ab48
call fcn.3002357f
mov dword [ebp - 0x210], esi
push esi
push 4
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebx + 8]
call fcn.30023641
mov edi, eax
add esp, 0x14
cmp edi, esi
je 0x30023f94
jmp 0x3002402b
push dword [ebp - 0x210]
mov ecx, 0x3007ab48
call fcn.300234fd
cmp dword [ebp - 0x218], esi
je 0x30024044
push dword [ebp - 0x218]
call fcn.3002054a
mov dword [ebp - 0x218], esi
cmp dword [ebp - 0x220], esi
je 0x30024057
push dword [ebp - 0x220]
call fcn.3002054a
cmp dword [0x3007ab44], esi
je 0x3002406a
push 0x3007aab8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.30040fc0
leave
ret 0xc