Function at 0x406730
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43e493
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x453d48]
xor eax, esp
mov dword [esp + 0x14c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453d48]
xor eax, esp
push eax
lea eax, [esp + 0x164]
mov dword fs:[0], eax
mov edi, ecx
push 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x17c]
mov dword [esp + 0x174], 0
call fcn.00403830
mov eax, dword [eax]
push 0x442650
push eax
call fcn.0042a1e3
add esp, 8
test eax, eax
mov eax, dword [esp + 0x14]
setne bl
add eax, 0xfffffff0
or esi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4067d9
push 1
push 0x442650
lea ecx, [esp + 0x17c]
call fcn.004039d0
push 0x44269c
lea ecx, [esp + 0x178]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004027c0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406822
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, esi
je 0x4069c1
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, 0x442698
lea eax, [esp + 0x4c]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406860
test dl, dl
je 0x40685c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406860
add eax, 2
add ecx, 2
test dl, dl
jne 0x406840
xor eax, eax
jmp 0x406864
sbb eax, eax
sbb eax, esi
test eax, eax
je 0x40693b
mov ecx, 0x442694
lea eax, [esp + 0x4c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406895
test dl, dl
je 0x406891
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406895
add eax, 2
add ecx, 2
test dl, dl
jne 0x406875
xor eax, eax
jmp 0x406899
sbb eax, eax
sbb eax, esi
test eax, eax
je 0x40693b
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x178]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004027c0
add esp, 0xc
test byte [esp + 0x20], 0x10
mov byte [esp + 0x16c], 1
jne 0x4068ea
mov ecx, dword [esp + 0x14]
push 0x80
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
call fcn.00409510
add esp, 4
cmp al, 1
sete al
jmp 0x406910
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00401fe0
add eax, 0x10
add esp, 4
mov ecx, edi
mov dword [esi], eax
call fcn.00406730
or esi, 0xffffffff
test al, al
je 0x406993
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x16c], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40693b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406830
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x174]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
mov eax, dword [esp + 0x174]
mov dword [esp + 0x16c], esi
jne 0x4069ec
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x4069e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x406a07
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x16c], 0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4069c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x174]
add eax, 0xfffffff0
mov dword [esp + 0x16c], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x4069e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x406a07
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x406a05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.0042997e
add esp, 0x15c
ret 4