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

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push edi
mov esi, str.HKCU
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4bf5a5
test cl, cl
je 0x4bf5a1
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4bf5a5
add eax, 2
add esi, 2
test cl, cl
jne 0x4bf57d
xor eax, eax
jmp 0x4bf5aa
sbb eax, eax
sbb eax, 0xffffffff
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4bf607
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push 0
push ebp
push reloc.WS2_32.dll_closesocket
call ebx
test eax, eax
jne 0x4bf607
mov ecx, dword [esp + 0x1c]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.default
push edi
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4bf607
mov edx, dword [esp + 0x1c]
push eax
push 0xc30c0c
push 1
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
mov esi, str.HKCR
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4bf634
test cl, cl
je 0x4bf630
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4bf634
add eax, 2
add esi, 2
test cl, cl
jne 0x4bf610
xor eax, eax
jmp 0x4bf639
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4bf688
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push 0
push ebp
push closesocket
call ebx
test eax, eax
jne 0x4bf688
mov ecx, dword [esp + 0x1c]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.default
push edi
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4bf688
mov edx, dword [esp + 0x1c]
push eax
push 0xc30c0c
push 1
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
mov esi, str.HKLM
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4bf6b5
test cl, cl
je 0x4bf6b1
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4bf6b5
add eax, 2
add esi, 2
test cl, cl
jne 0x4bf691
xor eax, eax
jmp 0x4bf6ba
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4bf709
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push 0
push ebp
push closesocket
call ebx
test eax, eax
jne 0x4bf709
mov ecx, dword [esp + 0x1c]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.default
push edi
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4bf709
mov edx, dword [esp + 0x1c]
push eax
push 0xc30c0c
push 1
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
mov esi, 0x51a568
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4bf736
test cl, cl
je 0x4bf732
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4bf736
add eax, 2
add esi, 2
test cl, cl
jne 0x4bf712
xor eax, eax
jmp 0x4bf73b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4bf78a
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push 0
push ebp
push reloc.WS2_32.dll_closesocket
call ebx
test eax, eax
jne 0x4bf78a
mov ecx, dword [esp + 0x1c]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.default
push edi
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4bf78a
mov edx, dword [esp + 0x1c]
push eax
push 0xc30c0c
push 1
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
mov esi, str.HKEY_CURRENT_CONFIG
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4bf7b7
test cl, cl
je 0x4bf7b3
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4bf7b7
add eax, 2
add esi, 2
test cl, cl
jne 0x4bf793
xor eax, eax
jmp 0x4bf7bc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4bf80b
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push 0
push ebp
push htons
call ebx
test eax, eax
jne 0x4bf80b
mov ecx, dword [esp + 0x1c]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.default
push edi
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4bf80b
mov edx, dword [esp + 0x1c]
push eax
push 0xc30c0c
push 1
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov ax, 1
pop ebx
ret