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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x468], eax
mov dword [eax], 1
push esi
mov eax, ebx
push edi
mov dword [ebp - 0x46c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10592f0
sub eax, edx
sar eax, 1
mov esi, eax
lea eax, [esi + 3]
mov edi, 0x104
push ebx
cmp eax, edi
ja 0x1059533
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035831
test esi, esi
je 0x1059346
movzx eax, word [ebx + esi*2 - 2]
cmp ax, 0x3a
je 0x1059346
cmp ax, 0x5c
je 0x1059346
push 0x1005778
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010358a6
inc esi
push 0x1009f8c
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010358a6
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x464], eax
cmp eax, 0xffffffff
jne 0x105937d
push ebx
jmp 0x1059533
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp + esi*2 - 0x20c]
mov dword [ebp - 0x460], eax
mov ecx, dword [ebp - 0x460]
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10593a4
sub eax, edx
sar eax, 1
lea eax, [ebp - 0x228]
jne 0x10593c0
lea eax, [ebp - 0x430]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010358a6
mov eax, dword [ebp - 0x45c]
mov esi, eax
test al, 0x10
je 0x105947a
mov ecx, 0x10086b0
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x105940f
test dx, dx
je 0x105940b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x105940f
add eax, 4
add ecx, 4
test dx, dx
jne 0x10593e9
xor eax, eax
jmp 0x1059414
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1059506
mov ecx, 0x1009f84
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x105944d
test dx, dx
je 0x1059449
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x105944d
add eax, 4
add ecx, 4
test dx, dx
jne 0x1059427
xor eax, eax
jmp 0x1059452
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1059506
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010592bb
test eax, eax
je 0x1059506
jmp 0x10594fd
test al, 1
je 0x105948b
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1059506
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10594a5
sub eax, edx
sar eax, 1
je 0x10594f3
mov ecx, dword [ebp - 0x460]
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x430]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010358a6
mov ecx, dword [ebp - 0x460]
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x228]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010358a6
push esi
lea eax, [ebp - 0x20c]
push eax
call ebx
mov eax, dword [ebp - 0x468]
and dword [eax], 0
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1059390
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x46c]
call fcn.01056fb9
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 8