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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4503dc
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x461194]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push esi
push edi
mov eax, dword [0x461194]
xor eax, esp
push eax
lea eax, [esp + 0x2c8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov word [esp + 0x54], ax
mov eax, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406f11
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0x54]
call fcn.00402fb0
mov dword [esp + 0x2d0], edi
xor ecx, ecx
mov eax, ebx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], edi
mov word [esp + 0x38], cx
lea edx, [eax + 2]
jmp 0x406f50
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406f50
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0x38]
call fcn.00402fb0
push 1
push 0x45b61c
mov eax, esi
mov byte [esp + 0x2d8], 1
call fcn.00406a20
push 2
push 0x45b974
lea eax, [esp + 0x58]
call fcn.00406a20
mov eax, dword [esp + 0x54]
mov esi, 8
cmp dword [esp + 0x68], esi
jae 0x406fa4
lea eax, [esp + 0x54]
lea edx, [esp + 0x6c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x407184
test byte [esp + 0x6c], 0x10
je 0x4070d5
mov ecx, 0x45b658
lea eax, [esp + 0x98]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406ffa
cmp dx, di
je 0x406ff6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406ffa
add eax, 4
add ecx, 4
cmp dx, di
jne 0x406fd4
xor eax, eax
jmp 0x406fff
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x407161
mov ecx, 0x45b65c
lea eax, [esp + 0x98]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407039
cmp dx, di
je 0x407035
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407039
add eax, 4
add ecx, 4
cmp dx, di
jne 0x407013
xor eax, eax
jmp 0x40703e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x407161
push 0xffffffffffffffff
xor eax, eax
push edi
lea ecx, [esp + 0x3c]
mov word [esp + 0x24], ax
push ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], edi
call fcn.004030b0
lea eax, [esp + 0x98]
mov byte [esp + 0x2d0], 2
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407080
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x20]
call fcn.00406a20
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x4070af
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push eax
call fcn.00406eb0
mov byte [esp + 0x2d0], 1
cmp dword [esp + 0x30], esi
jb 0x407161
mov eax, dword [esp + 0x1c]
push eax
jmp 0x407159
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x3c]
xor ecx, ecx
push edx
lea eax, [esp + 0x24]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], edi
mov word [esp + 0x28], cx
call fcn.004030b0
lea eax, [esp + 0x98]
mov byte [esp + 0x2d0], 3
lea edx, [eax + 2]
jmp 0x407110
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407110
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x20]
call fcn.00406a20
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x40713f
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x2d0], 1
cmp dword [esp + 0x30], esi
jb 0x407161
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00431205
add esp, 4
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x6c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406fbd
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esp + 0x4c], esi
jb 0x40719e
mov edx, dword [esp + 0x38]
push edx
call fcn.00431205
add esp, 4
xor eax, eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], edi
mov word [esp + 0x38], ax
cmp dword [esp + 0x68], esi
jb 0x4071c4
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00431205
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x2c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.00430e4c
mov esp, ebp
pop ebp
ret 4