Function at 0x4dbae0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f5f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
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 ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x4dbd03
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4dbb35
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0
push 0
push 0x2001f
push 0
push 0
push dword [0x5d67d4]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
push reloc.WS2_32.dll_accept
call fcn.0045aa10
test eax, eax
mov eax, dword [ebp - 0x20]
jne 0x4dbd17
mov edx, dword [esi]
xor eax, eax
test edx, edx
setne al
test eax, eax
je 0x4dbbca
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4dbba0
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.Retake_PID
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4dbbe6
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push dword [ebx + 0x58]
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push dword [0x5d6824]
push eax
call fcn.0045acb0
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
add esp, 0xc
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0
push 0
push 0x2001f
push 0
push 0
push esi
push reloc.WS2_32.dll_accept
call fcn.0045aa10
mov ebx, dword [ebp - 0x2c]
test eax, eax
jne 0x4dbcac
mov ecx, dword [ebp + 0xc]
call fcn.0045d2c0
mov dword [ebp + 8], eax
test eax, eax
je 0x4dbcac
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
xor eax, eax
test edx, edx
setne al
test eax, eax
je 0x4dbc99
mov eax, edx
lea ebx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4dbc70
sub eax, ebx
mov ebx, dword [ebp - 0x2c]
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
call fcn.004d9f40
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4dbc55
test ebx, ebx
je 0x4dbcb7
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4dbcd7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4dbce5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4dbd03
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
or ebx, 0xffffffff
jmp 0x4dbcda