Function at 0x10008ac1
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x4a4]
sub esp, 0x524
mov eax, dword [0x1002b1f0]
xor eax, ebp
mov dword [ebp + 0x4a0], eax
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x4c]
call fcn.100159e6
lea ecx, [ebp + 0x260]
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_void_]
lea eax, [esi + 0xf8]
push eax
lea ecx, [ebp - 0x74]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp + 0x260]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.1000196a
pop ecx
pop ecx
lea ecx, [ebp - 0x74]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [ebp + 0x278], 8
mov eax, dword [ebp + 0x264]
jae 0x10008b35
lea eax, [ebp + 0x264]
mov dword [ebp - 0x18], eax
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x298], ax
lea eax, [ebp + 0x29a]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [esi + 0xe4], 0xffffffff
jne 0x10008b7e
push dword [ebp - 0x18]
lea eax, [ebp + 0x298]
push str._s.log
push 0x104
push eax
call dword [sym.imp.MSVCR90.dll__snwprintf]
add esp, 0x10
jmp 0x10008ba8
mov ecx, esi
call fcn.10001d1e
push eax
push str.TSLOG
push dword [ebp - 0x18]
lea eax, [ebp + 0x298]
push str._s_s._s__..log
push 0x104
push eax
call dword [sym.imp.MSVCR90.dll__snwprintf]
add esp, 0x18
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp + 0x23c]
mov dword [ebp - 0x1c], eax
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_void_]
lea ecx, [ebp + 0x27c]
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_void_]
cmp dword [ebp - 0x1c], 0xffffffff
je 0x10008d5d
push dword [ebp - 0x18]
lea ecx, [ebp + 0x27c]
call dword [0x1001b238]
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp + 0x27c]
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__]
cmp dword [esi + 0xe4], 0xffffffff
mov eax, dword [ebp + 0x280]
jne 0x10008c27
cmp dword [ebp + 0x294], 8
jae 0x10008c1b
lea eax, [ebp + 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10008d48
cmp dword [ebp + 0x294], 8
jae 0x10008c36
lea eax, [ebp + 0x280]
push eax
mov ecx, esi
call fcn.1000242a
mov ebx, eax
test ebx, ebx
jl 0x10008d48
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x2c]
call fcn.10015893
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
jmp 0x10008c79
lea ecx, [ebp - 0x24]
call fcn.10004a9b
lea ecx, [ebp - 0x24]
cmp ebx, dword [eax]
je 0x10008c9a
call fcn.10004b34
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x34]
call fcn.10015893
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
call fcn.100049e3
test al, al
je 0x10008c65
jmp 0x10008cd1
call fcn.10004a9b
mov edi, eax
mov eax, dword [edi + 0x24]
add edi, 4
cmp eax, dword [ebp + 4]
ja 0x10008cb6
jne 0x10008cd1
mov eax, dword [edi + 0x1c]
cmp eax, dword [ebp]
jbe 0x10008cd1
lea eax, [ebp + 0x27c]
push eax
mov ecx, edi
call dword [0x1001b26c]
mov eax, dword [ebp]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp + 4]
mov dword [edi + 0x20], eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x54]
call fcn.10015893
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x24]
call fcn.100049e3
test al, al
je 0x10008d48
lea eax, [ebp + 0x27c]
push eax
lea ecx, [ebp + 0x23c]
call dword [0x1001b26c]
mov eax, dword [ebp]
mov dword [ebp + 0x258], eax
mov eax, dword [ebp + 4]
sub esp, 0x24
mov dword [ebp + 0x25c], eax
lea eax, [ebp + 0x23c]
mov ecx, esp
mov dword [ebp - 0x58], esp
push eax
call fcn.1000223e
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.10005f34
add esp, 0x2c
push eax
lea ecx, [ebp - 0x4c]
call fcn.100089fd
lea ecx, [ebp - 0x7c]
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_]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10008bde
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
push 0x28
pop ecx
cdq
idiv ecx
xor ecx, ecx
mov ebx, eax
mov eax, dword [esi + 0xe8]
cmp eax, 0xffffffff
sete cl
dec ecx
mov edi, ecx
lea ecx, [ebp + 0x298]
push ecx
push eax
mov dword [ebp - 0x1c], edi
add edi, ebx
push edi
push dword [esi + 0xe4]
push str.DeleteLogFile__MaxCountOfHistroyProcess_:__d__CurrentHistroyProcess_:__d__CurrentLogFileHandle_:_0x_08x__PathWildcard_:__s
push esi
call fcn.1000a259
add esp, 0x18
cmp edi, dword [esi + 0xe4]
jle 0x10008e64
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
call fcn.10015893
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x34]
call fcn.10015893
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], edi
call fcn.10004b65
push 0x100024c7
push eax
push edi
push dword [ebp - 0x30]
call fcn.100082aa
mov eax, dword [ebp - 0x1c]
sub eax, dword [esi + 0xe4]
add esp, 0x10
add eax, ebx
xor edi, edi
test eax, eax
jle 0x10008e64
push edi
lea ecx, [ebp - 0x4c]
call fcn.100049ba
push edi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
call fcn.100049ba
mov ecx, dword [ebp - 0x18]
push dword [ecx]
push dword [eax]
push str.DeleteLogFiles__AllFilesOfPid_:__lu_0x_08x_
push esi
call fcn.1000a259
add esp, 0x10
push edi
lea ecx, [ebp - 0x4c]
call fcn.100049ba
push dword [eax]
mov ecx, esi
call fcn.10002269
mov eax, dword [ebp - 0x1c]
sub eax, dword [esi + 0xe4]
inc edi
add eax, ebx
cmp edi, eax
jl 0x10008e18
lea ecx, [ebp - 0x4c]
call fcn.10007ed9
lea ecx, [ebp + 0x27c]
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_]
lea ecx, [ebp + 0x23c]
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_]
lea ecx, [ebp + 0x260]
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_]
lea ecx, [ebp - 0x4c]
call fcn.10007eb1
mov ecx, dword [ebp + 0x4a0]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.10018dd2
add ebp, 0x4a4
leave
ret