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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58626b
mov eax, dword fs:[0]
push eax
sub esp, 0x304
mov eax, dword [0x743004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x2e4], edx
lea ecx, [ebp - 0x310]
call fcn.0040a790
mov dword [ebp - 4], 0
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x2dc], ecx
test ecx, ecx
jne 0x409698
cmp dword [edx + 0x24], ecx
mov ecx, 0x5cc06c
je 0x409692
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0x2dc], ecx
mov edi, ecx
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edx, [edi + 2]
mov word [ebp - 0x28], ax
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4096c6
sub edi, edx
sar edi, 1
cmp edi, 7
ja 0x409706
lea esi, [edi + edi]
mov dword [ebp - 0x18], edi
push esi
push ecx
lea eax, [ebp - 0x28]
push eax
call fcn.0056afe0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x2e0], ecx
jmp 0x409767
cmp edi, 0x7ffffffe
ja 0x409b0e
mov ebx, edi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x409726
mov ebx, SysReAllocString
jmp 0x409730
mov eax, 0xa
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.0040a0a0
lea esi, [edi + edi]
mov dword [ebp - 0x18], edi
push esi
push dword [ebp - 0x2dc]
mov dword [ebp - 0x2e0], eax
push eax
mov dword [ebp - 0x14], ebx
call fcn.0056afe0
mov ecx, dword [ebp - 0x2e0]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x28], ecx
mov word [esi + ecx], ax
mov byte [ebp - 4], 1
lea edx, [edi - 1]
cmp edi, edx
jbe 0x409b13
cmp ebx, 8
lea eax, [ebp - 0x28]
cmovae eax, ecx
cmp word [eax + edx*2], 0x5c
je 0x409868
cmp edi, ebx
jae 0x4097a9
lea eax, [edi + 1]
cmp ebx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, ecx
mov dword [eax + edi*2], 0x5c
jmp 0x409868
mov ecx, SysReAllocString
mov eax, ecx
sub eax, edi
cmp eax, 1
jb 0x409b0e
lea esi, [edi + 1]
or esi, 7
cmp esi, ecx
jbe 0x4097c9
mov esi, ecx
jmp 0x4097e1
mov eax, ebx
shr eax, 1
sub ecx, eax
cmp ebx, ecx
jbe 0x4097da
mov esi, SysReAllocString
jmp 0x4097e1
add eax, ebx
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
call fcn.0040a0a0
mov dword [ebp - 0x2dc], eax
lea ecx, [edi + 1]
mov dword [ebp - 0x18], ecx
lea ecx, [edi + edi]
mov dword [ebp - 0x14], esi
lea edi, [ecx + eax]
push ecx
cmp ebx, 8
jb 0x40984c
mov esi, dword [ebp - 0x2e0]
push esi
push eax
call fcn.0056afe0
lea ebx, [ebx*2 + 2]
mov dword [edi], 0x5c
add esp, 0xc
mov eax, esi
cmp ebx, 0x1000
jb 0x409840
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409b18
push ebx
push esi
call fcn.00569663
add esp, 8
jmp 0x40985f
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.0056afe0
add esp, 0xc
mov dword [edi], 0x5c
mov eax, dword [ebp - 0x2dc]
mov dword [ebp - 0x28], eax
push 0x71ac24
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00409b30
add esp, 4
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x409887
mov eax, dword [eax]
lea ecx, [ebp - 0x2d8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040a100
cmp edi, 0xffffffff
jne 0x4098b0
xor esi, esi
jmp 0x409a90
mov ecx, 0x71ac2c
lea eax, [ebp - 0x2ac]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4098e6
test dx, dx
je 0x4098e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4098e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4098c0
xor eax, eax
jmp 0x4098eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x409a50
mov ecx, 0x71ac30
lea eax, [ebp - 0x2ac]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409926
test dx, dx
je 0x409922
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409926
add eax, 4
add ecx, 4
test dx, dx
jne 0x409900
xor eax, eax
jmp 0x40992b
sbb eax, eax
or eax, 1
test eax, eax
je 0x409a50
mov ebx, dword [ebp - 0x2d8]
test bl, 0x10
je 0x4099d9
lea eax, [ebp - 0x2ac]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.00409b30
add esp, 4
mov esi, eax
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x409965
mov esi, dword [esi]
mov eax, dword [ebp - 0x2f4]
mov dword [ebp - 0x304], 0
test eax, eax
je 0x409989
push eax
mov eax, dword [ebp - 0x300]
lea ecx, [ebp - 0x300]
call dword [eax + 0xc]
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2f0], 0
test esi, esi
je 0x4099bd
cmp word [esi], 0
je 0x4099bd
push esi
lea ecx, [ebp - 0x300]
call fcn.00419d50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0040a100
lea ecx, [ebp - 0x310]
call fcn.00409630
jmp 0x409a50
test bl, 1
je 0x409a16
lea eax, [ebp - 0x2ac]
and ebx, 0xfffffffe
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x70]
call fcn.00409b30
add esp, 4
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x409a02
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.0040a100
lea eax, [ebp - 0x2ac]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x88]
call fcn.00409b30
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x409a3a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.0040a100
lea eax, [ebp - 0x2d8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4098b0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x2e4]
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x409a87
cmp dword [ecx + 0x24], eax
mov eax, 0x5cc06c
je 0x409a87
mov eax, dword [ecx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x409aca
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409ac0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409b18
push edx
push ecx
call fcn.00569663
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x310]
call fcn.0040a450
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005691fb
mov esp, ebp
pop ebp
ret
call fcn.00409c50
call fcn.00409b20
call fcn.0056dde4
int3