Function at 0x105a39e
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 [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x46c], ecx
mov dword [ecx], 1
lea edx, [eax + 2]
xor ebx, ebx
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x105a3d3
push dword [ebp - 0x460]
sub eax, edx
sar eax, 1
mov esi, eax
lea eax, [esi + 3]
mov edi, 0x104
cmp eax, edi
ja 0x105a620
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01034c79
cmp esi, ebx
je 0x105a434
mov eax, dword [ebp - 0x460]
movzx eax, word [eax + esi*2 - 2]
cmp ax, 0x3a
je 0x105a434
cmp ax, 0x5c
je 0x105a434
push 0x1005928
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01034cee
inc esi
push 0x100a4f0
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01034cee
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x468], eax
je 0x105a61a
lea eax, [ebp + esi*2 - 0x20c]
mov dword [ebp - 0x464], eax
mov eax, dword [ebp - 0x464]
mov word [eax], bx
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x105a488
sub eax, edx
sar eax, 1
lea eax, [ebp - 0x228]
jne 0x105a4a4
lea eax, [ebp - 0x430]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01034cee
mov eax, dword [ebp - 0x45c]
test al, 0x10
mov esi, eax
je 0x105a55e
mov ecx, 0x100839c
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x105a4f3
cmp dx, bx
je 0x105a4ef
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x105a4f3
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x105a4cd
xor eax, eax
jmp 0x105a4f8
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x105a5f3
mov ecx, 0x100a4e8
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x105a531
cmp dx, bx
je 0x105a52d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x105a531
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x105a50b
xor eax, eax
jmp 0x105a536
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x105a5f3
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0105a39e
test eax, eax
je 0x105a5f3
jmp 0x105a5eb
test al, 1
je 0x105a573
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x105a5f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x105a593
sub eax, edx
sar eax, 1
je 0x105a5dd
mov eax, dword [ebp - 0x464]
mov word [eax], bx
lea eax, [ebp - 0x430]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01034cee
mov eax, dword [ebp - 0x464]
mov word [eax], bx
lea eax, [ebp - 0x228]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01034cee
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x46c]
mov dword [eax], ebx
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x105a476
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x460]
call fcn.01057de8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 8