Function at 0x404020
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fc30
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x404059
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4042d8
test al, 0x10
je 0x4042f5
mov ecx, dword [esi + 0x10]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 2
jb 0x40430c
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40408e
mov eax, dword [esi]
push 2
push 0x424614
push ecx
push eax
push ecx
push dword [ebp - 0x184]
lea ecx, [ebp - 0x40]
call fcn.0040fa80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x180]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4042a2
cmp byte [ebp - 0x154], 0x2e
je 0x404204
mov ecx, dword [esi + 0x10]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 1
jb 0x40430c
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4040fb
mov eax, dword [esi]
push 1
push 0x4245e8
push ecx
push eax
push ecx
push dword [ebp - 0x184]
lea ecx, [ebp - 0x19c]
call fcn.0040fa80
lea eax, [ebp - 0x154]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x19c]
call fcn.0040a8d0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x188]
cmp edx, 0x10
jb 0x4041a1
mov ecx, dword [ebp - 0x19c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404197
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404292
push edx
push ecx
call fcn.0041e9db
add esp, 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x188], 0xf
mov byte [ebp - 0x19c], 0
call fcn.00404020
test al, al
je 0x40426c
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x404204
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4041fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404292
push edx
push ecx
call fcn.0041e9db
add esp, 8
lea eax, [ebp - 0x180]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4040d1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 0x10
jb 0x404229
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x4042a2
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x404308
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40425e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4042c8
push edx
push ecx
call fcn.0041e9db
add esp, 8
mov al, 1
jmp 0x4042da
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4042a2
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404298
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404298
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041e9db
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x4042d8
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4042ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4042ce
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041e9db
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e5ae
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 0x10
jb 0x4042fd
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4042d8
mov al, 1
jmp 0x4042da
call fcn.00401600
int3