Function at 0x451c29
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x6c56f8]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x44
mov eax, 0x5c7f7f
call fcn.0058ec2b
mov edi, dword [ebp + 0x810]
mov eax, dword [ebp + 0x80c]
mov esi, dword [ebp + 0x814]
and dword [ebp - 0x10], 0
push edi
push edx
push ecx
push eax
push ebx
mov dword [ebp - 0x2c], ebx
call fcn.0045c440
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebx + 0x9c]
push eax
mov ecx, esi
mov dword [ebx], vtable.ServiceGeneric.0
mov dword [ebp - 0x1c], eax
call fcn.0041fb57
mov dword [ebp - 4], 4
lea eax, [ebx + 0xc0]
push eax
mov dword [ebx], vtable.AVSuiteService.0
call fcn.004849a0
mov byte [ebp - 4], 5
push edi
push 0x6c9630
push 0x6ddaac
call sub.gdiplus.dll_GdiplusStartup
push 0x40
call fcn.005812e3
pop ecx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 6
cmp eax, edi
je 0x451d13
push 0xffffffffffffffff
push str.TTAV
call fcn.004c9e40
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 7
xor ecx, ecx
inc ecx
mov eax, 0x6c30d4
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], eax
lock xadd dword [eax], ecx
mov dword [ebp - 4], 8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], 3
call fcn.00401266
jmp 0x451d15
xor eax, eax
mov dword [ebp - 4], 0xa
mov dword [0x6ddaa4], eax
mov dword [ebp - 4], 9
test byte [ebp - 0x10], 2
je 0x451d47
and dword [ebp - 0x10], 0xfffffffd
mov eax, dword [ebp - 0x24]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x451d47
push dword [ebp - 0x24]
call fcn.004c6150
pop ecx
push 5
pop esi
mov dword [ebp - 4], esi
test byte [ebp - 0x10], 1
je 0x451d6c
and dword [ebp - 0x10], 0xfffffffe
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x451d6c
push dword [ebp - 0x14]
call fcn.004c6150
pop ecx
push 1
push str.ServiceStarted
push 0x68b6e0
call fcn.00401920
call fcn.00401cbd
push edi
push 0x23
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x451d95
mov ecx, esi
mov esi, str.SMTHR.xml
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp]
push eax
movsw word es:[edi], word [esi]
call fcn.00421f7e
pop ecx
xor edi, edi
push edi
push str.AllLogsDelete
push str.Main
call fcn.004019dc
test al, al
jne 0x451eaf
lea eax, [ebp - 0x50]
push eax
push edi
mov esi, str.c:PCDCTRkrn.log
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x451eaf
push edi
push edi
push 3
push edi
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
mov esi, 0x989680
cmp eax, edi
je 0x451e4a
push edi
call fcn.00583034
pop ecx
mov dword [ebp - 0x24], edx
cdq
push edi
add eax, 0xb6109100
push esi
adc edx, 2
push edx
push eax
call fcn.00587090
push edi
mov dword [ebp - 0x20], eax
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
push edi
add ecx, 0x2ac18000
push esi
adc eax, 0xfe624e21
push eax
push ecx
call fcn.005870d0
push edi
mov dword [ebp - 0x1c], eax
call fcn.00583034
pop ecx
push 0x1e
push str.AllLogsTips
push str.Main
mov esi, eax
mov edi, edx
call fcn.00401843
imul eax, eax, 0x15180
cdq
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov ecx, edx
cdq
sub esi, eax
sbb edi, edx
cmp edi, ecx
jl 0x451ead
jg 0x451ea2
cmp esi, dword [ebp - 0x18]
jbe 0x451ead
push str.c:PCDCTRkrn.log
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
push str.c:PCDCTRkrn.log
mov dword [0x6c438c], 7
call fcn.00540f2c
push edi
push str.c:PCDCTRkrnMailLogs
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [0x6c438c], 1
jl 0x451eec
push str.Started
push str.AVSuiteService::AVSuiteService
push 1
call fcn.00540a02
add esp, 0xc
mov dword [0x6ddaa8], ebx
or dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00581268
add ebp, 0x804
leave
ret 0xc