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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x574
mov eax, dword [0x4b249c]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x574], ecx
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00416660
lea ecx, [ebp - 0xc]
call fcn.00416890
mov dword [ebp - 4], 0
mov dword [ebp - 0x2e4], 0
lea ecx, [ebp - 0x90]
call fcn.00405120
mov eax, dword [ebp - 0x574]
add eax, 0xf8
push eax
lea ecx, [ebp - 0x510]
call fcn.00404cb0
lea ecx, [ebp - 0x90]
push ecx
lea edx, [ebp - 0x510]
push edx
call fcn.0040f060
add esp, 8
lea ecx, [ebp - 0x510]
call fcn.00404cf0
lea ecx, [ebp - 0x90]
call fcn.004052b0
mov dword [ebp - 0x2e4], eax
xor eax, eax
mov word [ebp - 0x4f0], ax
push 0x206
push 0
lea ecx, [ebp - 0x4ee]
push ecx
call fcn.00426300
add esp, 0xc
mov edx, dword [ebp - 0x574]
cmp dword [edx + 0xe4], 0xffffffff
jne 0x412185
mov eax, dword [ebp - 0x2e4]
push eax
push str._s.log
push 0x104
lea ecx, [ebp - 0x4f0]
push ecx
call fcn.0042934a
add esp, 0x10
jmp 0x4121b6
mov ecx, dword [ebp - 0x574]
call fcn.00412560
push eax
push str.TSLOG
mov edx, dword [ebp - 0x2e4]
push edx
push str._s_s._s__..log
push 0x104
lea eax, [ebp - 0x4f0]
push eax
call fcn.0042934a
add esp, 0x18
lea ecx, [ebp - 0x2e0]
push ecx
lea edx, [ebp - 0x4f0]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x74]
call fcn.00412650
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x30]
call fcn.00405120
cmp dword [ebp - 0x10], 0xffffffff
je 0x4123c2
mov eax, dword [ebp - 0x2e4]
push eax
lea ecx, [ebp - 0x30]
call fcn.00405250
lea ecx, [ebp - 0x2b4]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00405290
mov edx, dword [ebp - 0x574]
cmp dword [edx + 0xe4], 0xffffffff
jne 0x41222f
lea ecx, [ebp - 0x30]
call fcn.004052b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4123a9
lea ecx, [ebp - 0x30]
call fcn.004052b0
push eax
mov ecx, dword [ebp - 0x574]
call fcn.004128c0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x412251
jmp 0x4123a9
lea eax, [ebp - 0x518]
push eax
lea ecx, [ebp - 0x48]
call fcn.00422490
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
lea eax, [ebp - 0x520]
push eax
lea ecx, [ebp - 0x48]
call fcn.00416730
push eax
lea ecx, [ebp - 0xc]
call fcn.00409550
movzx ecx, al
test ecx, ecx
je 0x412331
lea ecx, [ebp - 0xc]
call fcn.004168b0
mov edx, dword [ebp - 4]
cmp edx, dword [eax]
jne 0x41231b
lea ecx, [ebp - 0xc]
call fcn.004168b0
add eax, 4
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x20]
cmp ecx, dword [ebp - 0x2c8]
jbe 0x4122dc
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x50]
call fcn.00405230
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x2cc]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 0x2c8]
mov dword [eax + 0x20], edx
jmp 0x412319
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x20]
cmp ecx, dword [ebp - 0x2c8]
jne 0x412319
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x1c]
cmp eax, dword [ebp - 0x2cc]
jbe 0x412319
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x50]
call fcn.00405230
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x2cc]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp - 0x2c8]
mov dword [edx + 0x20], ecx
jmp 0x412331
push 0
lea edx, [ebp - 0x528]
push edx
lea ecx, [ebp - 0xc]
call fcn.004168d0
jmp 0x41226b
lea eax, [ebp - 0x530]
push eax
lea ecx, [ebp - 0x48]
call fcn.00416730
push eax
lea ecx, [ebp - 0xc]
call fcn.0040a180
movzx ecx, al
test ecx, ecx
je 0x4123a9
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x74]
call fcn.00405230
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x54], ecx
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x534], esp
lea edx, [ebp - 0x74]
push edx
call fcn.00412690
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x55c]
push ecx
call fcn.00418390
add esp, 0x2c
push eax
lea ecx, [ebp - 0x48]
call fcn.004167b0
lea ecx, [ebp - 0x55c]
call fcn.004126c0
lea edx, [ebp - 0x2e0]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4121ee
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x48]
call fcn.00416760
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x574]
mov eax, dword [edx + 0xe8]
sub eax, 0xffffffff
neg eax
sbb eax, eax
mov dword [ebp - 0x2e8], eax
lea ecx, [ebp - 0x4f0]
push ecx
mov edx, dword [ebp - 0x574]
mov eax, dword [edx + 0xe8]
push eax
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x2e8]
push ecx
mov edx, dword [ebp - 0x574]
mov eax, dword [edx + 0xe4]
push eax
push str.DeleteLogFile__MaxCountOfHistroyProcess_:__d__CurrentHistroyProcess_:__d__CurrentLogFileHandle_:_0x_08x__PathWildcard_:__s
mov ecx, dword [ebp - 0x574]
push ecx
call fcn.004129b0
add esp, 0x18
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x2e8]
mov eax, dword [ebp - 0x574]
cmp edx, dword [eax + 0xe4]
jle 0x412515
push 0x412a00
lea ecx, [ebp - 0x564]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00416730
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x56c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00422490
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
call fcn.00418400
add esp, 0x14
mov dword [ebp - 0x4f4], 0
jmp 0x41249e
mov ecx, dword [ebp - 0x4f4]
add ecx, 1
mov dword [ebp - 0x4f4], ecx
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x2e8]
mov eax, dword [ebp - 0x574]
sub edx, dword [eax + 0xe4]
cmp dword [ebp - 0x4f4], edx
jge 0x412515
mov ecx, dword [ebp - 0x4f4]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00416780
mov edx, dword [eax]
push edx
mov eax, dword [ebp - 0x4f4]
push eax
lea ecx, [ebp - 0x48]
call fcn.00416780
mov ecx, dword [eax]
push ecx
push str.DeleteLogFiles__AllFilesOfPid_:__lu_0x_08x_
mov edx, dword [ebp - 0x574]
push edx
call fcn.004129b0
add esp, 0x10
mov eax, dword [ebp - 0x4f4]
push eax
lea ecx, [ebp - 0x48]
call fcn.00416780
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x574]
call fcn.004126e0
jmp 0x41248f
lea ecx, [ebp - 0x48]
call fcn.00416830
mov dword [ebp - 0x570], 1
lea ecx, [ebp - 0x30]
call fcn.00405210
lea ecx, [ebp - 0x74]
call fcn.00412670
lea ecx, [ebp - 0x90]
call fcn.00405210
lea ecx, [ebp - 0x48]
call fcn.004166d0
mov eax, dword [ebp - 0x570]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042624f
mov esp, ebp
pop ebp
ret