Function at 0x4c7ac0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56da36
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x230], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x4c7b06
xor eax, eax
jmp 0x4c7e9d
xor edi, edi
mov dword [ebp - 0x238], 0xa
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], edi
push eax
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], edi
call fcn.004c3bc0
lea eax, [ebp - 0x220]
push eax
push 0x2001f
push edi
push dword [0x5d6808]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c7e90
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00525ee0
push 0x7ffe
mov dword [ebp - 0x250], 0x104
mov dword [ebp - 0x254], edi
call fcn.005243ff
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0x22c], ebx
mov ecx, 0x3fff
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x4c7ba8
lea eax, [ebp - 0x270]
mov dword [ebp - 0x234], 0x3fff
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x254]
push eax
push ecx
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor esi, esi
cmp dword [ebp - 0x228], esi
jbe 0x4c7c7b
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, edi
xor eax, eax
mov dword [ebp - 0x234], 0x3fff
push eax
push eax
push eax
push eax
mov word [ebx], ax
lea eax, [ebp - 0x234]
push eax
push ebx
push esi
push dword [ebp - 0x220]
call edi
test eax, eax
jne 0x4c7c69
mov eax, dword [ebp - 0x230]
push ebx
push dword [eax]
call fcn.00526fc5
add esp, 8
lea ecx, [ebp - 0x24c]
test eax, eax
je 0x4c7c74
push ebx
call fcn.004c3bc0
inc esi
cmp esi, dword [ebp - 0x228]
jb 0x4c7c20
jmp 0x4c7c79
call fcn.004c7890
xor edi, edi
cmp dword [ebp - 0x244], 1
jbe 0x4c7e7b
mov ecx, dword [ebp - 0x24c]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4c7ca3
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx + 8]
mov ebx, dword [ecx]
sub eax, 0x10
push eax
call fcn.0045a950
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
mov byte [ebp - 4], 1
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x4c7c99
mov ecx, dword [ebx + 8]
lea edi, [esi - 0x10]
mov ebx, dword [ebx]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x4c7d33
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4c7d1e
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4c7d1e
push edx
call fcn.0045a950
mov dword [ebp - 0x224], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x4c7d0d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x224]
add esi, 0x10
mov dword [ebp - 0x21c], esi
jmp 0x4c7d33
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.0045b6e0
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 0xc], 0
je 0x4c7d46
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test ebx, ebx
jne 0x4c7cc1
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [ebp - 0x24c]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4c7d75
push 0x80004005
call fcn.0045a8f0
mov ebx, dword [ecx]
lea eax, [ecx + 8]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0045a580
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 0xc], 0
je 0x4c7da7
push 0
push 0
push 1
push 0
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x4c7c99
mov ecx, dword [ebx + 8]
lea edi, [esi - 0x10]
mov ebx, dword [ebx]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x4c7e1d
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4c7e08
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4c7e08
push edx
call fcn.0045a950
mov dword [ebp - 0x224], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x4c7df7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x224]
add esi, 0x10
mov dword [ebp - 0x21c], esi
jmp 0x4c7e1d
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.0045b6e0
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 0xc], 0
je 0x4c7e4d
mov eax, dword [ebp - 0x230]
push esi
push dword [eax]
call fcn.00526fc5
add esp, 8
test eax, eax
je 0x4c7e4d
push 0
push 0
push 1
push 0
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
jne 0x4c7da7
add esi, 0xfffffff0
mov byte [ebp - 4], bl
lea edi, [ebx + 1]
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c7e75
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x22c]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00525873
add esp, 4
lea ecx, [ebp - 0x24c]
call fcn.004c7890
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret 0x10