Function at 0x4b2aa0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56bc10
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 0x2001f
push dword [0x5d67d4]
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
push reloc.WS2_32.dll_accept
call fcn.0045b220
mov ebx, dword [ebp - 0x38]
test eax, eax
jne 0x4b313c
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4b2b25
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push dword [esi + 0x24]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push dword [0x5d67d4]
push 0x57e340
push eax
call fcn.0045acb0
add esp, 0x10
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
push 0x2001f
push esi
push reloc.WS2_32.dll_accept
mov byte [ebp - 4], 2
call fcn.0045b220
mov edi, dword [ebp - 0x2c]
test eax, eax
jne 0x4b3113
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4b2ba6
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [0x5d6264]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b2be7
cmp dword [ebp - 0x14], 4
je 0x4b2cb1
xor eax, eax
mov dword [ebp - 0x14], 0x800
mov dword [ebp - 0x20], eax
mov edx, 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x800
or ecx, edx
jge 0x4b2c28
push 0x800
lea ecx, [ebp - 0x10]
call fcn.0045b530
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x40], eax
push ecx
push eax
push dword [0x5d693c]
lea ecx, [ebp - 0x2c]
call fcn.0045d730
test eax, eax
lea ecx, [ebp - 0x44]
sete bl
call fcn.0045c070
xor ecx, ecx
test bl, bl
je 0x4b2c5d
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ecx
setne cl
mov dword [ebp - 0x20], ecx
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push eax
push 4
push 0
push dword [0x5d6264]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x5d6854]
mov ebx, dword [ebp - 0x38]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x20]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push dword [0x5d6250]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x5d6868]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [0x5d6268]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b2ce1
cmp dword [ebp - 0x14], 4
je 0x4b2d79
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0x800
mov dword [ebp - 0x44], eax
mov edx, 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x800
or ecx, edx
jge 0x4b2d1d
push 0x800
lea ecx, [ebp - 0x10]
call fcn.0045b530
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x40], eax
push ecx
push eax
push dword [0x5d6940]
lea ecx, [ebp - 0x2c]
call fcn.0045d730
test eax, eax
lea ecx, [ebp - 0x44]
sete bl
call fcn.0045c070
xor ecx, ecx
test bl, bl
je 0x4b2d4f
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ecx
setne cl
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
push eax
push 4
push 0
push dword [0x5d6268]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x5d684c]
mov ebx, dword [ebp - 0x38]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [0x5d626c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b2da9
cmp dword [ebp - 0x14], 4
je 0x4b2e41
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0x800
mov dword [ebp - 0x44], eax
mov edx, 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x800
or ecx, edx
jge 0x4b2de5
push 0x800
lea ecx, [ebp - 0x10]
call fcn.0045b530
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x40], eax
push ecx
push eax
push dword [0x5d6944]
lea ecx, [ebp - 0x2c]
call fcn.0045d730
test eax, eax
lea ecx, [ebp - 0x44]
sete bl
call fcn.0045c070
xor ecx, ecx
test bl, bl
je 0x4b2e17
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ecx
setne cl
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
push eax
push 4
push 0
push dword [0x5d626c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x5d6850]
mov ebx, dword [ebp - 0x38]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [0x5d6248]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b2e71
cmp dword [ebp - 0x14], 4
je 0x4b2f48
xor eax, eax
mov dword [ebp - 0x14], 0x800
mov dword [ebp - 0x20], eax
mov edx, 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x800
or ecx, edx
jge 0x4b2eb2
push 0x800
lea ecx, [ebp - 0x10]
call fcn.0045b530
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x40], eax
push ecx
push eax
push dword [0x5d6914]
lea ecx, [ebp - 0x2c]
call fcn.0045d730
test eax, eax
lea ecx, [ebp - 0x44]
sete bl
call fcn.0045c070
test bl, bl
je 0x4b2ef2
lea eax, [ebp - 0x10]
push 0x57da10
push eax
call fcn.00461e40
movzx eax, al
add esp, 8
mov dword [ebp - 0x20], eax
jmp 0x4b2ef4
xor eax, eax
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push dword [0x5d6248]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x5d6860]
mov ebx, dword [ebp - 0x38]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x20]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push dword [0x5d624c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x5d6864]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [0x5d6254]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b2f78
cmp dword [ebp - 0x14], 4
je 0x4b301d
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0x800
mov dword [ebp - 0x44], eax
mov edx, 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x800
or ecx, edx
jge 0x4b2fb4
push 0x800
lea ecx, [ebp - 0x10]
call fcn.0045b530
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x40], eax
push ecx
push eax
push dword [0x5d6918]
lea ecx, [ebp - 0x2c]
call fcn.0045d730
test eax, eax
lea ecx, [ebp - 0x44]
sete bl
call fcn.0045c070
test bl, bl
je 0x4b2ff1
lea eax, [ebp - 0x10]
push 0x57da10
push eax
call fcn.00461e40
add esp, 8
movzx eax, al
jmp 0x4b2ff3
xor eax, eax
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push dword [0x5d6254]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x5d6858]
mov ebx, dword [ebp - 0x38]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [0x5d6258]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b304d
cmp dword [ebp - 0x14], 4
je 0x4b30f2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0x800
mov dword [ebp - 0x44], eax
mov edx, 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x800
or ecx, edx
jge 0x4b3089
push 0x800
lea ecx, [ebp - 0x10]
call fcn.0045b530
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x40], eax
push ecx
push eax
push dword [0x5d691c]
lea ecx, [ebp - 0x2c]
call fcn.0045d730
test eax, eax
lea ecx, [ebp - 0x44]
sete bl
call fcn.0045c070
test bl, bl
je 0x4b30c6
lea eax, [ebp - 0x10]
push 0x57da10
push eax
call fcn.00461e40
add esp, 8
movzx eax, al
jmp 0x4b30c8
xor eax, eax
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push dword [0x5d6258]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x5d685c]
mov ebx, dword [ebp - 0x38]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 0x10]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b3113
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x4b311e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b313c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x4b3147
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret