Function at 0x4891af
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x320]
sub esp, 0x3a0
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp + 0x31c], eax
mov eax, dword [ebp + 0x338]
push ebx
push esi
push edi
lea esi, [ebp + 0x328]
lea edi, [ebp - 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x29c]
push 0x80
push eax
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x80], 2
call fcn.00469f5d
add esp, 0xc
push 1
push 0
lea eax, [ebp + 0x29c]
push eax
call fcn.0048884b
lea eax, [ebp + 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046d420
mov eax, esp
push esi
lea ecx, [ebp + 0x29c]
push ecx
push eax
call fcn.00487ad8
sub esp, 0x10
lea esi, [ebp - 0x74]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp + 0x9c]
mov dword [ebp - 0x7c], eax
movsd dword es:[edi], dword [esi]
call fcn.00487d95
lea esi, [ebp - 0x74]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
call fcn.00487c24
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
push 0xf003f
push 0
mov eax, ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4892bd
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x48929e
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x80], eax
cmp dword [ebp + 0x33c], 1
jne 0x4892b4
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x33c], 1
jne 0x489363
sub esp, 0x10
lea esi, [ebp - 0x74]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp + 0x9c]
movsd dword es:[edi], dword [esi]
call fcn.00487df5
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
push 0xf003f
push 0
mov eax, ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x489316
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 0x10
lea esi, [ebp - 0x74]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp + 0x9c]
movsd dword es:[edi], dword [esi]
call fcn.00487d95
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
push 0xf003f
push 0
mov eax, ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x489363
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x80]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x31c]
xor ecx, ebp
call fcn.004677af
add ebp, 0x320
leave
ret