Function at 0x42857b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x428d4c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x435398]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
push edi
mov eax, dword [0x435398]
xor eax, esp
push eax
lea eax, [esp + 0x1d8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
push eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x1c], edi
call fcn.00403cbd
push 0x42f084
lea ecx, [esp + 0x20]
mov dword [esp + 0x1e4], edi
call fcn.00403c98
mov byte [esp + 0x1e0], 1
lea eax, [esp + 0x1c]
lea esi, [esp + 0x70]
mov dword [esp + 0x18], 1
call fcn.0042808e
push 2
pop ebx
test al, al
jne 0x428636
push 0x42f088
lea ecx, [esp + 0x3c]
call fcn.00403c98
mov dword [esp + 0x1e0], ebx
lea eax, [esp + 0x38]
mov dword [esp + 0x18], 3
call fcn.0042808e
mov byte [esp + 0x17], 1
test al, al
je 0x42863b
mov byte [esp + 0x17], 0
test byte [esp + 0x18], bl
je 0x428652
and dword [esp + 0x18], 0xfffffffd
push edi
push 1
lea ecx, [esp + 0x40]
call fcn.0040458b
mov dword [esp + 0x1e0], edi
test byte [esp + 0x18], 1
je 0x42866c
push edi
push 1
lea ecx, [esp + 0x24]
call fcn.0040458b
cmp byte [esp + 0x17], 0
je 0x428681
push 0x42f08c
lea ecx, [esp + 0x74]
call fcn.004040ca
push 0x42f090
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.00405b14
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x4286a3
mov eax, dword [eax + 4]
jmp 0x4286a6
add eax, 4
lea ecx, [esp + 0x8c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push edi
push 1
lea ecx, [esp + 0x5c]
mov esi, eax
call fcn.0040458b
cmp esi, 0xffffffff
jne 0x4286fc
xor bl, bl
push edi
push 1
lea ecx, [esp + 0x78]
call fcn.0040458b
mov al, bl
mov ecx, dword [esp + 0x1d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.00411fc4
mov esp, ebp
pop ebp
ret
test byte [esp + 0x8c], 0x10
je 0x4287a4
push 0x42f094
lea ecx, [esp + 0x3c]
call fcn.00403c98
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1e4], 3
call fcn.00403c98
lea eax, [esp + 0x38]
lea edx, [esp + 0x1c]
mov byte [esp + 0x1e0], 4
call fcn.004280ac
mov bl, al
neg bl
push edi
sbb bl, bl
push 1
lea ecx, [esp + 0x24]
inc bl
call fcn.0040458b
push edi
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x1e8], 0
call fcn.0040458b
test bl, bl
je 0x4287df
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00405b14
push eax
mov byte [esp + 0x1f0], 5
call fcn.0042857b
add esp, 0x10
mov byte [esp + 0x1e0], 0
jmp 0x4287d3
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00405b14
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x4287c9
mov eax, dword [eax + 4]
jmp 0x4287cc
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push 1
lea ecx, [esp + 0x24]
call fcn.0040458b
lea eax, [esp + 0x8c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4286fc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x88], 0x10
mov eax, dword [esp + 0x74]
jae 0x42880f
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne bl
jmp 0x4286ca