Function at 0x4022c0
Capabilities:
Delete file
Get file attributes
Query or enumerate registry value
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x402d1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa44
lea eax, [esp]
mov dword [esp], 0
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp]
test edx, edx
je 0x4025bd
push ebx
push esi
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x230]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.AppData
push edx
mov dword [esp + 0x28], 0x208
call esi
lea edx, [esp + 0x10]
lea eax, [esp + 0x230]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.Desktop
push edx
call esi
lea eax, [esp + 0x28]
push eax
call fcn.004015c0
lea ecx, [esp + 0x234]
push ecx
call fcn.004015c0
mov ecx, 0x82
lea esi, [esp + 0x30]
lea edi, [esp + 0x850]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x82
lea esi, [esp + 0x30]
lea edi, [esp + 0x648]
lea edx, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x82
lea esi, [esp + 0x30]
lea edi, [esp + 0x440]
push eax
rep movsd dword es:[edi], dword [esi]
mov edi, str.MicrosoftInternet_ExplorerQuick_Launch_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.MSVCRT.dll__access]
and ecx, 3
lea eax, [esp + 0x34]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
add esp, 0x10
cmp eax, 0xffffffff
je 0x402405
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, 0x404310
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x848]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x84c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x402457
lea ecx, [esp + 0x848]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, 0x4042c4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x640]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x644]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4024f7
lea ecx, [esp + 0x640]
push 0
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x18]
mov dword [esp + 0xa58], 0
call sub.MFC42.DLL_CFile::GetLength
lea ecx, [esp + 0x18]
mov esi, eax
call sub.MFC42.DLL_CFile::Close
cmp esi, 0xc8
jle 0x4024e3
lea edx, [esp + 0x640]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
mov dword [esp + 0xa58], 0xffffffff
call fcn.0040291c
mov edi, str.MicrosoftInternet_ExplorerQuick_LaunchInternet_Explorer.lnk
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x438]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x43c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x402568
lea ecx, [esp + 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
lea edx, [esp + 0x438]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, str.Internet_Explorer.lnk
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x230]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x234]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
add esp, 8
cmp eax, 0xffffffff
pop edi
pop esi
pop ebx
je 0x4025bd
lea ecx, [esp + 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0xa44]
mov dword fs:[0], ecx
add esp, 0xa50
ret