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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x72acfc]
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 0x651852
mov eax, 0xa0
jmp 0x651baf
cmp dword [0x73411c], esi
je 0x651861
xor eax, eax
jmp 0x651baf
push 1
push ebx
call fcn.00651718
test eax, eax
pop ecx
pop ecx
jne 0x65185a
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 0x651899
push eax
call fcn.00597660
mov dword [ebp - 0x220], eax
push edi
lea ecx, [ebp - 0x229]
call fcn.00650d75
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.00650ffa
add esp, 0x14
cmp eax, esi
jne 0x651a50
mov eax, dword [ebp - 0x214]
cmp eax, esi
jne 0x6518e6
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 0x651962
cmp dword [ebp - 0x21c], esi
je 0x651962
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call fcn.00653f0a
test eax, eax
jne 0x65192c
push 8
pop edi
jmp 0x651962
mov eax, dword [ebp - 0x214]
cmp eax, esi
jne 0x65193e
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.00650993
test eax, eax
pop ecx
je 0x6519b5
push 0x796d7469
push esi
call fcn.00652dc1
push dword [ebp - 0x210]
mov ecx, 0x730760
call fcn.00650f13
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.00650ffa
mov edi, eax
add esp, 0x14
cmp edi, esi
je 0x6518d4
jmp 0x6519c5
push dword [ebp - 0x210]
mov ecx, 0x730760
call fcn.00650e91
cmp edi, esi
jne 0x651a50
mov edx, dword [ebp - 0x218]
cmp edx, esi
je 0x651a50
movzx eax, byte [ebx + 0xc]
and eax, 0xf
cmp dword [ebp - 0x228], eax
jne 0x651b35
dec eax
cmp eax, 1
ja 0x651a1d
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.0059a916
test eax, eax
jne 0x651b6d
jmp 0x651b35
mov ecx, dword [ebp - 0x21c]
cmp ecx, dword [ebp + 0x10]
jne 0x651b35
mov edi, dword [ebp - 0x224]
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x651a3f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x651ad2
xor edi, edi
xor esi, esi
jmp 0x651b6d
mov eax, dword [ebx + 4]
cmp eax, 0xcccccccc
je 0x651b35
movzx ecx, byte [ebx + 0xc]
and ecx, 0xf
jle 0x651ab6
cmp ecx, 2
jle 0x651a86
cmp ecx, 4
jne 0x651ab6
mov ecx, dword [ebp - 0x224]
cmp dword [ecx], eax
jne 0x651b35
xor edi, edi
jmp 0x651b6d
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.005949aa
push 4
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
call fcn.0059a916
test eax, eax
je 0x651b35
jmp 0x651a7f
push esi
push 0x6661626f
call fcn.00652d6d
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebx + 4]
mov esi, dword [ebp - 0x224]
jmp 0x651a34
xor esi, esi
jmp 0x651b35
mov eax, dword [ebp - 0x214]
cmp eax, esi
jne 0x651ae8
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.00650993
test eax, eax
pop ecx
je 0x651b5d
push 0x796d746a
push esi
call fcn.00652dc1
push dword [ebp - 0x210]
mov ecx, 0x730760
call fcn.00650f13
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.00650ffa
mov edi, eax
add esp, 0x14
cmp edi, esi
je 0x651ad6
jmp 0x651b6d
push dword [ebp - 0x210]
mov ecx, 0x730760
call fcn.00650e91
cmp dword [ebp - 0x218], esi
je 0x651b86
push dword [ebp - 0x218]
call fcn.00654013
mov dword [ebp - 0x218], esi
cmp dword [ebp - 0x220], esi
je 0x651b99
push dword [ebp - 0x220]
call fcn.00654013
cmp dword [0x730758], esi
je 0x651bac
push 0x730478
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.0066d880
leave
ret 0xc