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

Disassembly:
sub esp, 0xd40
push ebx
push ebp
mov ebp, dword [esp + 0xd4c]
push esi
test ebp, ebp
push edi
je 0x100600b9
mov eax, dword [esp + 0xd58]
cmp eax, 1
jle 0x100600b9
cmp eax, 0x400
jge 0x100600b9
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x950]
lea edx, [esp + 0x950]
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x950]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10266008
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x954]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100600b9
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
jne 0x10060097
mov esi, 0x1023257c
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1005fec9
test cl, cl
je 0x1005fec5
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1005fec9
add eax, 2
add esi, 2
test cl, cl
jne 0x1005fea5
xor eax, eax
jmp 0x1005fece
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005fe87
mov esi, 0x10232580
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1005feff
test cl, cl
je 0x1005fefb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1005feff
add eax, 2
add esi, 2
test cl, cl
jne 0x1005fedb
xor eax, eax
jmp 0x1005ff04
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005fe87
mov eax, dword [esp + 0x10]
mov ecx, 0x100
and eax, 0x10
cmp al, 0x10
je 0x1005ffe4
xor eax, eax
lea edi, [esp + 0x150]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x150]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x150]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1022722c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x150]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x150]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x107ab964]
mov eax, dword [ecx]
call dword [eax + 0x3c]
cmp eax, 0xffffffff
jne 0x1005fe87
lea eax, [esp + 0x150]
push eax
push 0x10227334
call fcn.10029940
add esp, 8
jmp 0x1005fe87
xor eax, eax
lea edi, [esp + 0x550]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x550]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x550]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1022722c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x550]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x550]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x550]
push ecx
push eax
call fcn.1005fdd0
add esp, 8
jmp 0x1005fe87
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x100600b9
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd40
ret