Function at 0x401270
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x40d39b
push eax
mov eax, 0x1358
mov dword fs:[0], esp
call fcn.0040aa30
push ebx
push ebp
push esi
lea eax, [esp + 0x18]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_time]
mov ebx, dword [esp + 0x137c]
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [ebx + 0x3a0], ecx
lea ecx, [esp + 0x10]
push str.SOFTWAREShilingtongGnet_pppoe2Account_
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push edx
push 0x80000001
call esi
push str.SoftwareShilingtongGnet_pppoe2_systemset_
push 0x80000001
call esi
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareShilingtongGnet_pppoe2_systemset_
push 0x80000001
call ebp
test eax, eax
je 0x401326
lea ecx, [esp + 0x10]
mov dword [esp + 0x1370], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4014b4
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push 1
push eax
push str.CurADSLAccountID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x401373
lea ecx, [esp + 0x10]
mov dword [esp + 0x1370], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4014b4
mov ecx, 0xe9
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0xa4]
rep stosd dword es:[edi], eax
lea edi, [ebx + 0x80]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x3a4
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x128]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x100]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x228]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4121c0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3cc]
mov edi, 1
push ecx
push edx
mov dword [esp + 0x3b0], edi
mov dword [esp + 0x3c4], edi
call fcn.00401000
add esp, 0xc
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000001
call ebp
test eax, eax
je 0x401467
lea ecx, [esp + 0x10]
mov dword [esp + 0x1370], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4014b4
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x3c8]
push 0x3a4
push eax
push 3
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x18]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov dword [esp + 0x1370], 0xffffffff
lea ecx, [esp + 0x10]
je 0x4014ad
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4014b4
call sub.MFC42.DLL_CString::CString
mov eax, edi
mov ecx, dword [esp + 0x1368]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1364
ret