Function at 0x401780
Capabilities:
Check if file exists
Delete file
Delete registry key
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409c57
mov eax, dword fs:[0]
push eax
sub esp, 0x3b0
mov eax, dword [0x40e008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movups xmm0, xmmword [str.SoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSavePidlMRUexe]
mov ecx, 0x13
lea edi, [ebp - 0xb0]
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSavePidlMRU
lea eax, [ebp - 0xb0]
rep movsd dword es:[edi], dword [esi]
movups xmmword [ebp - 0x60], xmm0
push eax
movups xmm0, xmmword [0x40b328]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
movups xmmword [ebp - 0x50], xmm0
push 0x80000001
movups xmm0, xmmword [0x40b338]
movups xmmword [ebp - 0x40], xmm0
movups xmm0, xmmword [0x40b348]
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x40b358]
movups xmmword [ebp - 0x20], xmm0
call esi
lea eax, [ebp - 0x60]
push eax
push 0x80000001
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b368
call fcn.00401020
add esp, 8
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0xf
mov byte [ebp - 0x22c], 0
push str.C:WindowsPrefetch
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401f7f
shr eax, 4
and al, 1
je 0x401f7f
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c8], 0xf
mov byte [ebp - 0x1dc], 0
push 0x100
lea eax, [ebp - 0x1b0]
mov byte [ebp - 4], 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 4
xorps xmm0, xmm0
mov dword [ebp - 0x1b4], 0
push str..exe
lea ecx, [ebp - 0x39c]
mov dword [ebp - 0x38c], 0
movups xmmword [ebp - 0x1c4], xmm0
mov dword [ebp - 0x388], 0xf
mov byte [ebp - 0x39c], 0
call fcn.00402c30
lea eax, [ebp - 0x39c]
mov byte [ebp - 4], 2
push eax
mov edx, str.._.
lea ecx, [ebp - 0x3bc]
call fcn.00402df0
add esp, 4
mov edi, eax
mov byte [ebp - 4], 3
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40193b
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x401922
mov eax, dword [edi]
push 1
lea esi, [eax + ecx]
push 0x40b380
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x40195a
push 1
push 0x40b380
mov byte [ebp - 0x3a0], 0
mov ecx, edi
push dword [ebp - 0x3a0]
push 1
call fcn.00403290
mov edi, eax
mov dword [ebp - 0x374], 0
mov dword [ebp - 0x370], 0
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x384], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x374], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x3a4], eax
push 1
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Init_bool_]
add esp, 4
mov dword [ebp - 0x1b4], eax
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 6
call fcn.00403490
mov byte [ebp - 4], 7
lea esi, [ebp - 0x384]
mov ecx, dword [ebp - 0x370]
lea edx, [ebp - 0x384]
push dword [ebp - 0x3a4]
mov eax, dword [ebp - 0x374]
cmp ecx, 0x10
push ecx
cmovae esi, dword [ebp - 0x384]
lea ecx, [ebp - 0x1c4]
cmovae edx, dword [ebp - 0x384]
add eax, esi
push eax
push edx
call fcn.00403670
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x370]
cmp edx, 0x10
jb 0x401a53
mov ecx, dword [ebp - 0x384]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401a49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401a49
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00408f60
add esp, 8
mov dword [ebp - 0x374], 0
mov dword [ebp - 0x370], 0xf
mov byte [ebp - 0x384], 0
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x3a8]
cmp edx, 0x10
jb 0x401aae
mov ecx, dword [ebp - 0x3bc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401aa4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401aa4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00408f60
add esp, 8
mov dword [ebp - 0x3ac], 0
mov dword [ebp - 0x3a8], 0xf
mov byte [ebp - 0x3bc], 0
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x388]
cmp edx, 0x10
jb 0x401b09
mov ecx, dword [ebp - 0x39c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401aff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401aff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00408f60
add esp, 8
push 0x38
lea eax, [ebp - 0x214]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [ebp - 0x214], 0
mov byte [ebp - 0x210], 0
movups xmmword [ebp - 0x20c], xmm0
mov dword [ebp - 0x1fc], 0
mov byte [ebp - 0x1f8], 0
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1f0], 0
mov byte [ebp - 0x1ec], 0
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1e4], 0
mov byte [ebp - 0x1e0], 0
add esp, 8
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x1c4]
lea edx, [ebp - 0x214]
lea ecx, [ebp - 0x1b0]
push eax
call fcn.00402f80
add esp, 8
test al, al
je 0x401d42
mov ecx, dword [ebp - 0x208]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x20c]
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
lea eax, [ebp - 0x1e8]
jbe 0x401bd1
lea eax, [esi + 0xc]
cmp byte [eax + 8], 0
je 0x401bde
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x401be2
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x38c], 0
mov dword [ebp - 0x388], 0xf
mov byte [ebp - 0x39c], 0
cmp ecx, eax
je 0x401c10
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x39c]
call fcn.00402c30
lea eax, [ebp - 0x39c]
mov byte [ebp - 4], 0xd
push eax
mov edx, str.C:WindowsPrefetch_
lea ecx, [ebp - 0x384]
call fcn.00402df0
push str._.pf
mov edx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x3bc]
call fcn.00402ee0
add esp, 8
lea ecx, [ebp - 0x1dc]
push eax
call fcn.00402b20
mov edx, dword [ebp - 0x3a8]
cmp edx, 0x10
jb 0x401c8c
mov ecx, dword [ebp - 0x3bc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401c82
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401c82
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00408f60
add esp, 8
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x370]
mov dword [ebp - 0x3ac], 0
mov dword [ebp - 0x3a8], 0xf
mov byte [ebp - 0x3bc], 0
cmp edx, 0x10
jb 0x401ce7
mov ecx, dword [ebp - 0x384]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401cdd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401cdd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00408f60
add esp, 8
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x388]
mov dword [ebp - 0x374], 0
mov dword [ebp - 0x370], 0xf
mov byte [ebp - 0x384], 0
cmp edx, 0x10
jb 0x401d42
mov ecx, dword [ebp - 0x39c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401d38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401d38
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00408f60
add esp, 8
cmp dword [ebp - 0x1c8], 0x10
lea ecx, [ebp - 0x36c]
lea eax, [ebp - 0x1dc]
cmovae eax, dword [ebp - 0x1dc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x3a0], esi
cmp esi, 0xffffffff
je 0x401f44
nop word [eax + eax]
push 0x14
push str.C:WindowsPrefetch_
lea ecx, [ebp - 0x384]
mov dword [ebp - 0x374], 0
mov dword [ebp - 0x370], 0xf
mov byte [ebp - 0x384], 0
call fcn.00402c30
lea edi, [ebp - 0x340]
mov byte [ebp - 4], 0xf
lea ecx, [edi + 1]
nop word [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x401dc0
mov edx, dword [ebp - 0x370]
sub edi, ecx
mov ecx, dword [ebp - 0x374]
mov eax, edx
sub eax, ecx
push edi
cmp edi, eax
ja 0x401e1b
lea eax, [edi + ecx]
cmp edx, 0x10
mov dword [ebp - 0x374], eax
lea esi, [ebp - 0x384]
cmovae esi, dword [ebp - 0x384]
lea eax, [ebp - 0x340]
add esi, ecx
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [edi + esi], 0
lea eax, [ebp - 0x384]
mov esi, dword [ebp - 0x3a0]
add esp, 0xc
jmp 0x401e3b
lea eax, [ebp - 0x340]
mov byte [ebp - 0x3a4], 0
push eax
push dword [ebp - 0x3a4]
lea ecx, [ebp - 0x384]
push edi
call fcn.00403290
mov dword [ebp - 0x38c], 0
mov dword [ebp - 0x388], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x39c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x38c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x39c]
cmp dword [ebp - 0x388], 0x10
cmovae eax, dword [ebp - 0x39c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x388]
cmp edx, 0x10
jb 0x401ecc
mov ecx, dword [ebp - 0x39c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401ec2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a43
push edx
push ecx
call fcn.00408f60
add esp, 8
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x370]
mov dword [ebp - 0x38c], 0
mov dword [ebp - 0x388], 0xf
mov byte [ebp - 0x39c], 0
cmp edx, 0x10
jb 0x401f25
mov ecx, dword [ebp - 0x384]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401f1b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a43
push edx
push ecx
call fcn.00408f60
add esp, 8
lea eax, [ebp - 0x36c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401d80
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x401f5e
push 0x1388
call dword [0x41f86c]
mov edx, 0xf
mov ecx, str.Not_found
call fcn.004011a0
lea ecx, [ebp - 0x214]
call fcn.00401f90
lea ecx, [ebp - 0x1c4]
call fcn.00402840
lea ecx, [ebp - 0x1dc]
call fcn.00402ad0
call fcn.004016c0
int3