Function at 0x1021360
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x29c
mov eax, 0x10241cd
call fcn.010176ea
mov esi, ecx
mov eax, dword [esi + 0x18]
xor edi, edi
cmp eax, edi
jne 0x1021382
xor al, al
call fcn.0101777c
ret
cmp dword [esi + 0x38], 8
jb 0x102138d
mov eax, dword [esi + 0x24]
jmp 0x1021390
lea eax, [esi + 0x24]
lea ecx, [ebp - 0x298]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x29c], eax
cmp eax, 0xffffffff
je 0x102137a
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp - 0x278]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x2a0], eax
add edi, dword [ebp - 0x278]
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x1021435
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x2a0], eax
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x29c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x102144f
inc ebx
jmp 0x10213e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x29c]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 1
jle 0x10214ea
cmp edi, dword [esi + 0x3c]
jbe 0x10214ea
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call dword [0x1001214]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x1021499
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10214c7
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
jmp 0x102137c
sub edi, dword [ebp - 0x2a0]
cmp edi, dword [esi + 0x3c]
jbe 0x10214dd
mov ecx, esi
call fcn.01021360
mov bl, al
jmp 0x10214a6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov bl, 1
jmp 0x10214b3