Function at 0x408970
Capabilities:
Check if file exists
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459c78
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x46b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x40
call fcn.00411523
mov esi, eax
mov dword [ebp - 0x240], esi
mov dword [ebp - 4], 0
push 0x40
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x20
mov ecx, esi
call fcn.00404cc0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [eax + 0xc]
movzx edx, word [eax + 8]
add ecx, 4
push edx
push dword [eax + 4]
mov dword [0x46b974], eax
mov esi, dword [ecx]
call dword [esi + 0x9c]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x46b978
push 0
call esi
mov edx, 0x72
mov ecx, eax
call fcn.00405d10
add esp, 4
test eax, eax
je 0x408b0f
push str.login.dll
push 0x46bc88
lea eax, [ebp - 0x114]
push 0x4651a0
push eax
call fcn.004030b0
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
push 0
call esi
mov edx, 0x73
mov ecx, eax
call fcn.00405d10
push 0x46b978
lea eax, [ebp - 0x218]
push str._s2022
push eax
call fcn.004030b0
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x408aca
push 0x46bc88
lea eax, [ebp - 0x114]
push str._sMemory2022.ttx
push eax
call fcn.004030b0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push 0
call esi
mov edx, 0x74
mov ecx, eax
call fcn.00405d10
add esp, 4
push 0x46bc88
lea eax, [ebp - 0x114]
push str._sMemoryItems.txt
push eax
call fcn.004030b0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push 0
call esi
mov edx, 0x75
mov ecx, eax
call fcn.00405d10
add esp, 4
push 0
push 0x408660
push 0
push 0x65
push edi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov ecx, dword [0x46b974]
test ecx, ecx
je 0x408b20
mov eax, dword [ecx]
push 1
call dword [eax + 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
movq qword [ebp - 0x224], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.00408780
mov edi, dword [ebp - 0x224]
mov esi, edi
mov ebx, dword [ebp - 0x220]
cmp edi, ebx
je 0x408c5f
nop dword [eax + eax]
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x228], 0
push esi
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], 0
mov byte [ebp - 0x23c], 0
call fcn.00401c60
mov byte [ebp - 4], 2
lea eax, [ebp - 0x240]
cmp dword [ebp - 0x228], 0x10
lea edi, [ebp - 0x23c]
push eax
cmovae edi, dword [ebp - 0x23c]
push 0xf003f
push 0
push str.SOFTWAREWOW6432Node
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408c17
push edi
push str.snda
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueA]
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x228]
cmp eax, 0x10
jb 0x408c33
inc eax
push eax
push dword [ebp - 0x23c]
call fcn.00401df0
add esi, 0x18
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], 0
mov byte [ebp - 0x23c], 0
cmp esi, ebx
jne 0x408b80
mov edi, dword [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x408cbb
push dword [ebp - 0x240]
mov edx, ebx
push ecx
mov ecx, edi
call fcn.00409540
mov ecx, dword [ebp - 0x21c]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
call fcn.00409470
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret