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

Disassembly:
push ebp
sub esp, 0x4b4
lea ebp, [esp - 4]
mov eax, dword [0x44d948]
xor eax, ebp
mov dword [ebp + 0x4b4], eax
push 0x70
mov eax, 0x4392fd
call fcn.0041f00d
mov esi, ecx
lea ecx, [ebp - 0x48]
call fcn.004087cf
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.0040422c
mov byte [ebp - 4], 1
lea eax, [esi + 0xf8]
push eax
lea ecx, [ebp - 0x70]
call fcn.004062a1
mov byte [ebp - 4], 2
lea eax, [ebp + 0x274]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00406ed6
pop ecx
pop ecx
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.0040489f
cmp dword [ebp + 0x28c], 8
mov eax, dword [ebp + 0x278]
jae 0x40a285
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.00420d30
add esp, 0xc
cmp dword [esi + 0xe4], 0xffffffff
jne 0x40a2cd
push dword [ebp - 0x1c]
lea eax, [ebp + 0x2ac]
push str._s.log
push 0x104
push eax
call fcn.00420a64
add esp, 0x10
jmp 0x40a2f6
mov ecx, esi
call fcn.004017ad
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.00420a64
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.004054c3
mov byte [ebp - 4], 3
push ebx
lea ecx, [ebp + 0x290]
mov dword [ebp + 0x2a8], edi
call fcn.0040422c
mov byte [ebp - 4], 4
cmp dword [ebp - 0x10], 0xffffffff
je 0x40a4ce
push dword [ebp - 0x1c]
lea ecx, [ebp + 0x290]
call fcn.00405f18
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x290]
call fcn.00405efb
cmp dword [esi + 0xe4], 0xffffffff
mov eax, dword [ebp + 0x294]
jne 0x40a380
cmp dword [ebp + 0x2a8], 8
jae 0x40a374
lea eax, [ebp + 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40a4b9
cmp dword [ebp + 0x2a8], 8
jae 0x40a38f
lea eax, [ebp + 0x294]
push eax
mov ecx, esi
call fcn.00401ac3
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x28], edi
jl 0x40a4b9
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x24]
call fcn.00404da0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
jmp 0x40a3d5
lea ecx, [ebp - 0x18]
call fcn.004035f3
lea ecx, [ebp - 0x18]
cmp edi, dword [eax]
je 0x40a3f6
call fcn.0040361f
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x30]
call fcn.00404da0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040356e
test al, al
je 0x40a3c1
jmp 0x40a42f
call fcn.004035f3
mov edi, eax
mov eax, dword [edi + 0x24]
add edi, 4
cmp eax, dword [ebp + 0x18]
ja 0x40a412
jne 0x40a42f
mov eax, dword [edi + 0x1c]
cmp eax, dword [ebp + 0x14]
jbe 0x40a42f
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x290]
push eax
mov ecx, edi
call fcn.0040563b
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.00404da0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040356e
test al, al
je 0x40a4b9
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x290]
push eax
lea ecx, [ebp + 0x250]
call fcn.0040563b
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.00406269
mov byte [ebp - 4], 5
push dword [ebp - 0x28]
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 4], 4
call fcn.00407ee2
add esp, 0x2c
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x48]
call fcn.0040a196
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x7c]
call fcn.00405506
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a339
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.0040b8ff
add esp, 0x18
cmp edi, dword [esi + 0xe4]
jle 0x40a5d5
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x24]
call fcn.00404da0
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
call fcn.00404da0
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.00417f46
push 0x401b5e
push eax
push edi
push dword [ebp - 0x2c]
call fcn.0040a0c8
mov eax, dword [ebp - 0x10]
sub eax, dword [esi + 0xe4]
add esp, 0x10
add eax, ebx
xor edi, edi
test eax, eax
jle 0x40a5d5
push edi
lea ecx, [ebp - 0x48]
call fcn.004034c7
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x28], eax
call fcn.004034c7
mov ecx, dword [ebp - 0x28]
push dword [ecx]
push dword [eax]
push str.DeleteLogFiles__AllFilesOfPid_:__lu_0x_08x_
push esi
call fcn.0040b8ff
add esp, 0x10
push edi
lea ecx, [ebp - 0x48]
call fcn.004034c7
push dword [eax]
mov ecx, esi
call fcn.00407369
mov eax, dword [ebp - 0x10]
sub eax, dword [esi + 0xe4]
inc edi
add eax, ebx
cmp edi, eax
jl 0x40a589
lea ecx, [ebp - 0x48]
call fcn.00409ae9
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp + 0x290]
call fcn.004048ea
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x250]
call fcn.004054e4
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp + 0x274]
call fcn.004048ea
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00409abf
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.0041effe
add ebp, 0x4b8
leave
ret