Function at 0x406870
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 0x44faa7
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x460adc]
xor eax, esp
mov dword [esp + 0x4f8], eax
push ebx
push esi
push edi
mov eax, dword [0x460adc]
xor eax, esp
push eax
lea eax, [esp + 0x510]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
push str._s__.
lea eax, [esp + 0x304]
push 0x104
push eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], esi
call fcn.00420f4b
push 0x250
xor edi, edi
lea ecx, [esp + 0xc0]
push edi
push ecx
call fcn.00422fb0
add esp, 0x1c
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x300]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
lea ebx, [edi + 7]
jmp 0x406914
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xac]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [esp + 0x1c], eax
mov ecx, 0x456a4c
lea eax, [esp + 0xd8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40695d
cmp dx, di
je 0x406959
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40695d
add eax, 4
add ecx, 4
cmp dx, di
jne 0x406937
xor eax, eax
jmp 0x406962
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x406b9f
mov ecx, 0x456a50
lea eax, [esp + 0xd8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40699c
cmp dx, di
je 0x406998
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40699c
add eax, 4
add ecx, 4
cmp dx, di
jne 0x406976
xor eax, eax
jmp 0x4069a1
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x406b9f
push edi
xor eax, eax
push 0x45631c
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], edi
mov word [esp + 0x28], ax
call fcn.00403280
push esi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x98]
push edx
mov dword [esp + 0x524], edi
call fcn.004074c0
add esp, 0xc
push eax
mov edx, 0x456a58
lea esi, [esp + 0x78]
mov byte [esp + 0x51c], 1
call fcn.004075b0
add esp, 4
push eax
lea edx, [esp + 0xdc]
lea esi, [esp + 0x5c]
mov byte [esp + 0x51c], 2
call fcn.004075b0
add esp, 4
mov esi, eax
lea eax, [esp + 0x20]
cmp eax, esi
je 0x406a80
cmp dword [esp + 0x34], 8
jb 0x406a38
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004204e8
add esp, 4
xor edx, edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edi
mov word [esp + 0x20], dx
cmp dword [esi + 0x14], 8
jae 0x406a64
mov eax, dword [esi + 0x10]
inc eax
add eax, eax
push eax
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.00420680
add esp, 0xc
jmp 0x406a6c
mov edx, dword [esi]
mov dword [esp + 0x20], edx
mov dword [esi], edi
mov eax, dword [esi + 0x10]
mov dword [esp + 0x30], eax
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x34], ecx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
cmp dword [esp + 0x6c], 8
jb 0x406a94
mov edx, dword [esp + 0x58]
push edx
call fcn.004204e8
add esp, 4
xor eax, eax
cmp dword [esp + 0x88], 8
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], edi
mov word [esp + 0x58], ax
jb 0x406aba
mov ecx, dword [esp + 0x74]
push ecx
call fcn.004204e8
add esp, 4
xor edx, edx
cmp dword [esp + 0xa4], 8
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], edi
mov word [esp + 0x74], dx
jb 0x406ae9
mov eax, dword [esp + 0x90]
push eax
call fcn.004204e8
add esp, 4
xor ecx, ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], cx
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x48]
mov byte [esp + 0x524], 4
call fcn.00402a70
cmp dword [esp + 0x34], 8
mov esi, dword [esp + 0x20]
jae 0x406b20
lea esi, [esp + 0x20]
call fcn.004067d0
test eax, eax
mov eax, dword [esp + 0x3c]
je 0x406b48
mov esi, 8
cmp dword [esp + 0x50], esi
jae 0x406b3c
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x18]
push eax
call fcn.00406870
jmp 0x406b5f
cmp dword [esp + 0x50], 8
jae 0x406b53
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 8
cmp dword [esp + 0x50], esi
jb 0x406b72
mov eax, dword [esp + 0x3c]
push eax
call fcn.004204e8
add esp, 4
xor ecx, ecx
mov dword [esp + 0x518], 0xffffffff
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], cx
cmp dword [esp + 0x34], esi
jb 0x406b9f
mov edx, dword [esp + 0x20]
push edx
call fcn.004204e8
add esp, 4
cmp dword [esp + 0x1c], edi
jne 0x406910
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x510]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4f8]
xor ecx, esp
call fcn.004204f3
mov esp, ebp
pop ebp
ret 4