Function at 0x105929a
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 0x10592cf
sub eax, edx
sar eax, 1
mov esi, eax
lea eax, [esi + 3]
mov edi, 0x104
push ebx
cmp eax, edi
ja 0x1059512
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035811
test esi, esi
je 0x1059325
movzx eax, word [ebx + esi*2 - 2]
cmp ax, 0x3a
je 0x1059325
cmp ax, 0x5c
je 0x1059325
push 0x1005778
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035886
inc esi
push 0x1009f8c
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035886
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 0x105935c
push ebx
jmp 0x1059512
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 0x1059383
sub eax, edx
sar eax, 1
lea eax, [ebp - 0x228]
jne 0x105939f
lea eax, [ebp - 0x430]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035886
mov eax, dword [ebp - 0x45c]
mov esi, eax
test al, 0x10
je 0x1059459
mov ecx, 0x10086b0
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10593ee
test dx, dx
je 0x10593ea
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10593ee
add eax, 4
add ecx, 4
test dx, dx
jne 0x10593c8
xor eax, eax
jmp 0x10593f3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10594e5
mov ecx, 0x1009f84
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x105942c
test dx, dx
je 0x1059428
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x105942c
add eax, 4
add ecx, 4
test dx, dx
jne 0x1059406
xor eax, eax
jmp 0x1059431
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10594e5
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0105929a
test eax, eax
je 0x10594e5
jmp 0x10594dc
test al, 1
je 0x105946a
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 0x10594e5
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1059484
sub eax, edx
sar eax, 1
je 0x10594d2
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.01035886
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.01035886
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 0x105936f
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x46c]
call fcn.01056f98
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret 8