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

Disassembly:
push ebp
sub esp, 0x4b4
lea ebp, [esp - 4]
mov eax, dword [0x43b690]
xor eax, ebp
mov dword [ebp + 0x4b4], eax
push 0x70
mov eax, 0x42b75c
call fcn.00413ea5
mov esi, ecx
lea ecx, [ebp - 0x48]
call fcn.00408a04
xor ebx, ebx
mov dword [ebp - 4], ebx
push 7
pop edi
push ebx
lea ecx, [ebp + 0x274]
mov dword [ebp + 0x28c], edi
call fcn.004034fd
mov byte [ebp - 4], 1
lea eax, [esi + 0xf8]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040603f
mov byte [ebp - 4], 2
lea eax, [ebp + 0x274]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00406c74
pop ecx
pop ecx
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.0040461a
cmp dword [ebp + 0x28c], 8
mov eax, dword [ebp + 0x278]
jae 0x40a35a
lea eax, [ebp + 0x278]
mov dword [ebp - 0x1c], eax
xor eax, eax
push 0x206
mov word [ebp + 0x2ac], ax
lea eax, [ebp + 0x2ae]
push ebx
push eax
call fcn.00415aa0
add esp, 0xc
cmp dword [esi + 0xe4], 0xffffffff
jne 0x40a3a2
push dword [ebp - 0x1c]
lea eax, [ebp + 0x2ac]
push str._s.log
push 0x104
push eax
call fcn.004157dd
add esp, 0x10
jmp 0x40a3cb
mov ecx, esi
call fcn.004017b6
push eax
push str.TSLOG
push dword [ebp - 0x1c]
lea eax, [ebp + 0x2ac]
push str._s_s._s__..log
push 0x104
push eax
call fcn.004157dd
add esp, 0x18
lea eax, [ebp]
push eax
lea eax, [ebp + 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp + 0x250]
mov dword [ebp - 0x10], eax
call fcn.00405261
mov byte [ebp - 4], 3
push ebx
lea ecx, [ebp + 0x290]
mov dword [ebp + 0x2a8], edi
call fcn.004034fd
mov byte [ebp - 4], 4
cmp dword [ebp - 0x10], 0xffffffff
je 0x40a5a3
push dword [ebp - 0x1c]
lea ecx, [ebp + 0x290]
call fcn.00405cb6
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x290]
call fcn.00405c99
cmp dword [esi + 0xe4], 0xffffffff
mov eax, dword [ebp + 0x294]
jne 0x40a455
cmp dword [ebp + 0x2a8], 8
jae 0x40a449
lea eax, [ebp + 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40a58e
cmp dword [ebp + 0x2a8], 8
jae 0x40a464
lea eax, [ebp + 0x294]
push eax
mov ecx, esi
call fcn.00401acc
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x28], edi
jl 0x40a58e
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x24]
call fcn.00404b1b
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
jmp 0x40a4aa
lea ecx, [ebp - 0x18]
call fcn.0040351b
lea ecx, [ebp - 0x18]
cmp edi, dword [eax]
je 0x40a4cb
call fcn.00403547
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x30]
call fcn.00404b1b
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
call fcn.004033e3
test al, al
je 0x40a496
jmp 0x40a504
call fcn.0040351b
mov edi, eax
mov eax, dword [edi + 0x24]
add edi, 4
cmp eax, dword [ebp + 0x18]
ja 0x40a4e7
jne 0x40a504
mov eax, dword [edi + 0x1c]
cmp eax, dword [ebp + 0x14]
jbe 0x40a504
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x290]
push eax
mov ecx, edi
call fcn.004053d9
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x20], eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x50]
call fcn.00404b1b
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x18]
call fcn.004033e3
test al, al
je 0x40a58e
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x290]
push eax
lea ecx, [ebp + 0x250]
call fcn.004053d9
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x26c], eax
mov eax, dword [ebp + 0x18]
sub esp, 0x24
mov dword [ebp + 0x270], eax
lea eax, [ebp + 0x250]
mov ecx, esp
mov dword [ebp - 0x54], esp
push eax
call fcn.00406007
mov byte [ebp - 4], 5
push dword [ebp - 0x28]
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 4], 4
call fcn.0040812b
add esp, 0x2c
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x48]
call fcn.0040a26b
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x7c]
call fcn.004052a4
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a40e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x3c]
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 + 0x2ac]
push ecx
push eax
mov dword [ebp - 0x10], 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.0040b9cd
add esp, 0x18
cmp edi, dword [esi + 0xe4]
jle 0x40a6aa
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x24]
call fcn.00404b1b
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
call fcn.00404b1b
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], edi
call fcn.00403576
push 0x401b67
push eax
push edi
push dword [ebp - 0x2c]
call fcn.0040a19d
mov eax, dword [ebp - 0x10]
sub eax, dword [esi + 0xe4]
add esp, 0x10
add eax, ebx
xor edi, edi
test eax, eax
jle 0x40a6aa
push edi
lea ecx, [ebp - 0x48]
call fcn.004033bb
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x28], eax
call fcn.004033bb
mov ecx, dword [ebp - 0x28]
push dword [ecx]
push dword [eax]
push str.DeleteLogFiles__AllFilesOfPid_:__lu_0x_08x_
push esi
call fcn.0040b9cd
add esp, 0x10
push edi
lea ecx, [ebp - 0x48]
call fcn.004033bb
push dword [eax]
mov ecx, esi
call fcn.00407107
mov eax, dword [ebp - 0x10]
sub eax, dword [esi + 0xe4]
inc edi
add eax, ebx
cmp edi, eax
jl 0x40a65e
lea ecx, [ebp - 0x48]
call fcn.00409bbe
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp + 0x290]
call fcn.00404665
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x250]
call fcn.00405282
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp + 0x274]
call fcn.00404665
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00409b94
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4b4]
xor ecx, ebp
call fcn.00413e96
add ebp, 0x4b8
leave
ret