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

Disassembly:
push ebp
lea ebp, [esp - 0x320]
sub esp, 0x3a0
mov eax, dword [0x4a86f0]
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.0046a482
add esp, 0xc
push 1
push 0
lea eax, [ebp + 0x29c]
push eax
call fcn.0040700c
lea eax, [ebp + 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046db50
mov eax, esp
push esi
lea ecx, [ebp + 0x29c]
push ecx
push eax
call fcn.00406299
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.00406556
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.004063e5
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 0x407a7e
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x407a5f
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 0x407a75
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 0x407b24
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.004065b6
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 0x407ad7
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.00406556
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 0x407b24
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.0046984a
add ebp, 0x320
leave
ret