Function at 0x40add8
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4135a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0x800
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x86c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x874]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 0x878]
mov dword [ebp - 0x30], edx
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x50], 0
jne 0x40ae81
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x3c]
jmp 0x40affe
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 0x50]
sub edx, 1
cmp dword [ebp + 8], edx
jbe 0x40aead
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x40]
jmp 0x40affe
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x14
call fcn.0040f700
push eax
lea ecx, [ebp - 0x18]
call fcn.004125e0
push 0x20019
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00404130
push eax
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x48]
call fcn.0040d275
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40af2b
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.0040d1a1
push 0xf003f
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00404130
push eax
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x48]
call fcn.0040d04e
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40af2b
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.0040d1a1
lea ecx, [ebp - 0x18]
call fcn.00404130
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x40af80
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x48]
add ecx, 0x14
call fcn.0040f700
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x48]
add ecx, 0x14
call fcn.0040f810
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x50]
sub eax, 1
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0x50], eax
mov dword [ebp - 0x34], 0
jmp 0x40af92
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [eax + 0x50]
jae 0x40afe5
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x48]
add ecx, 0x14
call fcn.0040f700
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x2c], edx
push 4
lea eax, [ebp - 0x2c]
push eax
push 4
push 0x418768
mov ecx, dword [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x48]
add ecx, 0x14
call fcn.0040f700
mov edx, dword [eax + 0x20]
push edx
mov ecx, dword [ebp - 0x48]
call fcn.0040d334
jmp 0x40af89
mov dword [ebp - 0x44], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4