Function at 0x401d70
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x41f039
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x428b70]
xor eax, esp
mov dword [esp + 0x15c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x428b70]
xor eax, esp
push eax
lea eax, [esp + 0x174]
mov dword fs:[0], eax
mov eax, dword [esp + 0x184]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x180], 0
call fcn.00401500
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x184], 1
call fcn.00401790
mov eax, dword [eax]
push 0x420480
push eax
call fcn.0040ef38
add esp, 8
test eax, eax
mov eax, dword [esp + 0x18]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x401e31
push 1
push 0x420480
lea ecx, [esp + 0x1c]
call fcn.00401890
push 0x42048c
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.004019c0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x18], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401e7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
je 0x402033
lea ecx, [esp + 0x30]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40202c
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
test byte [esp + 0x30], 0x10
je 0x401fb7
call fcn.00402d12
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4020bc
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x5c]
mov byte [esp + 0x17c], 2
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ee3
sub eax, edx
push eax
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401700
mov esi, dword [esp + 0x1c]
push 0x420488
push esi
call fcn.0040ef38
add esp, 8
test eax, eax
setne al
test al, al
je 0x401f91
push 0x420484
push esi
call fcn.0040ef38
add esp, 8
test eax, eax
setne al
test al, al
je 0x401f91
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.004019c0
add esp, 8
mov edx, esp
mov dword [esp + 0x30], esp
push 0x420480
push eax
push edx
mov byte [esp + 0x18c], 3
call fcn.004019c0
add esp, 0xc
call fcn.00401d70
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x17c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x17c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402010
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x402010
xor edi, edi
lea esp, [esp]
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.004019c0
mov eax, dword [eax]
add esp, 0xc
push eax
call ebp
mov esi, eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ffe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 1
je 0x402010
push 0x3e8
call ebx
inc edi
cmp edi, 3
jl 0x401fc0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401ea5
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
lea eax, [edi - 0x10]
mov byte [esp + 0x17c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402064
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x184]
add eax, 0xfffffff0
mov dword [esp + 0x17c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402092
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x174]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.0040ecf4
add esp, 0x16c
ret
push 0x80004005
call fcn.00401130
int3