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

Disassembly:
push ebp
lea ebp, [esp - 0x320]
sub esp, 0x3a0
mov eax, dword [0x4af6f0]
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.0046fdbd
add esp, 0xc
push 1
push 0
lea eax, [ebp + 0x29c]
push eax
call fcn.00401d73
lea eax, [ebp + 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.004705a0
mov eax, esp
push esi
lea ecx, [ebp + 0x29c]
push ecx
push eax
call fcn.00401000
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.004012bd
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.0040114c
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 0x4027e5
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x4027c6
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 0x4027dc
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 0x40288b
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.0040131d
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 0x40283e
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.004012bd
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 0x40288b
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.0046ecfa
add ebp, 0x320
leave
ret