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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov dword [ebp - 4], ebx
je 0x27820e23
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0x6c]
shl edi, 2
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x27820e19
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x27820e10
cmp dword [esi + 0x6c], ebx
mov dword [ebp + 0x14], ebx
jle 0x27820de9
mov edx, dword [ebp + 8]
lea eax, [esi + 0xe4]
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x27820dd6
mov cl, byte [eax + 4]
not cl
movzx ecx, cl
shr ecx, 3
or ecx, 0xfffffffe
inc dword [ebp + 0x14]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x14]
add eax, 0x14
add edx, 4
cmp ecx, dword [esi + 0x6c]
jl 0x27820dc2
push edi
push dword [ebp + 8]
push 3
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x27820e07
mov dword [ebp - 4], 1
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x27820e19
lea eax, [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x18]
mov dword [ebp + 0x10], ebx
push dword [ebp + 0x14]
call esi
test eax, eax
jne 0x278210cd
mov edi, dword [ebp + 0x10]
cmp edi, 4
jbe 0x278210cd
cmp edi, 0x800
jae 0x278210cd
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x278210cd
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call esi
test eax, eax
jne 0x278210c4
cmp dword [ebp - 0xc], 3
jne 0x278210c4
cmp dword [ebp + 0xc], edi
jne 0x278210c4
shr edi, 2
mov esi, edi
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x27820f0b
cmp dword [edi + 0x28], ebx
je 0x27820f0b
mov eax, dword [edi]
cmp dword [edi + 0x6c], ebx
mov dword [ebp - 0x4c], 0x2c
mov dword [ebp - 0x44], eax
mov dword [ebp + 0x18], ebx
jle 0x27820f0b
lea ebx, [edi + 0xe4]
test byte [ebx + 5], 1
jne 0x27820efd
mov eax, dword [ebx]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x405
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SendMessageA]
inc dword [ebp + 0x18]
add ebx, 0x14
mov eax, dword [ebp + 0x18]
cmp eax, dword [edi + 0x6c]
jl 0x27820ede
lea eax, [esi + esi*4]
push 2
lea eax, [eax*4 + 0xe0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
test ebx, ebx
je 0x278210c4
push ebx
push 0
push dword [ebx]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [ebx + 0x6c]
cmp edx, esi
jge 0x27820f5f
mov eax, esi
sub eax, edx
lea edx, [edx + edx*4]
lea ecx, [eax + eax*4]
lea edi, [ebx + edx*4 + 0xe0]
shl ecx, 2
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
mov dword [ebx + 0x6c], esi
test esi, esi
jle 0x27820fa4
mov esi, dword [ebp - 8]
lea eax, [ebx + 0xe8]
mov ecx, dword [esi]
test ecx, ecx
jge 0x2782105a
mov byte [eax + 1], 1
mov ecx, dword [0x277cb9e8]
mov dword [eax - 8], ecx
and dword [eax - 4], 0
mov ecx, dword [esi]
inc ecx
neg ecx
sbb cl, cl
and ecx, 8
mov byte [eax], cl
inc edi
add esi, 4
add eax, 0x14
cmp edi, dword [ebx + 0x6c]
jl 0x27820f71
push 0
push 0xfffffd41
push ebx
call fcn.277b9878
lea eax, [ebp - 0xcc]
push pe_nt_image_headers32
push eax
lea eax, [ebp - 0x20]
xor esi, esi
push eax
mov dword [ebp + 0x18], esi
mov dword [ebp - 0x1c], esi
push esi
push ebx
call fcn.2781f918
test eax, eax
je 0x27821066
test byte [ebp - 0x17], 1
je 0x27820fe3
cmp dword [ebp - 0x1c], esi
je 0x2782103a
push dword [ebp - 0x1c]
push ebx
call fcn.2780d4e6
cmp eax, esi
jl 0x2782103a
lea eax, [eax + eax*4]
push 5
pop ecx
lea esi, [ebp - 0x20]
lea eax, [ebx + eax*4]
lea edi, [eax + 0xe0]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x2782103a
mov eax, dword [eax + 0xe4]
mov edx, dword [ebx]
and dword [ebp - 0x48], 0
or dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x404
push ecx
mov dword [ebp - 0x4c], 0x2c
mov dword [ebp - 0x44], edx
call dword [sym.imp.USER32.dll_SendMessageA]
inc dword [ebp + 0x18]
lea eax, [ebp - 0xcc]
push pe_nt_image_headers32
push eax
lea eax, [ebp - 0x20]
xor esi, esi
push eax
mov dword [ebp - 0x1c], esi
push dword [ebp + 0x18]
jmp 0x27820fca
mov dword [eax - 4], ecx
or dword [eax - 8], 0xffffffff
jmp 0x27820f98
push esi
push 0xfffffd40
push ebx
call fcn.277b9878
mov edi, dword [ebx + 0x6c]
dec edi
js 0x27821096
lea eax, [edi + edi*4]
lea esi, [ebx + eax*4 + 0xe0]
cmp dword [esi], 0
jge 0x2782108e
push edi
push ebx
call fcn.2780dddb
dec edi
sub esi, 0x14
test edi, edi
jge 0x27821082
xor eax, eax
xor ecx, ecx
cmp dword [ebx + 0x6c], eax
push eax
push eax
push 0x421
push dword [ebx]
setne cl
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push dword [ebx]
call dword [sym.imp.USER32.dll_InvalidateRect]
push ebx
call fcn.2780dbb4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x27820e19