Function at 0x477590
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x60fc91
mov eax, dword fs:[0]
push eax
sub esp, 0x844
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x858]
mov dword fs:[0], eax
mov edi, dword [esp + 0x874]
mov eax, dword [esp + 0x86c]
mov ebp, dword [esp + 0x868]
mov esi, dword [esp + 0x870]
push ecx
push edi
push eax
xor ebx, ebx
push ebp
mov ecx, esi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x24], ebx
call fcn.004321e0
mov dword [esp + 0x860], ebx
lea eax, [ebp + 0xc0]
push eax
mov dword [ebp], vtable.AVSuiteService.0
call fcn.004bafc0
mov byte [esp + 0x860], 1
push ebx
push 0x715a88
push 0x72a304
call sub.gdiplus.dll_GdiplusStartup
push 0x40
call fcn.005c39f5
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov byte [esp + 0x860], 2
test esi, esi
je 0x4776a8
push 0xffffffffffffffff
push str.VBRST
call fcn.00502e60
add esp, 8
mov dword [esp + 0x24], eax
mov byte [esp + 0x860], 3
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0x70f0d4
mov ecx, 0x70f0d4
mov edx, 1
lock xadd dword [ecx], edx
mov dword [esp + 0x860], 4
lea eax, [esp + 0x18]
push eax
mov ebx, 3
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], ebx
call fcn.00401460
jmp 0x4776aa
xor eax, eax
mov dword [esp + 0x860], 6
mov dword [0x72a2fc], eax
mov dword [esp + 0x860], 5
test bl, 2
je 0x4776eb
and ebx, 0xfffffffd
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x18]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4776eb
mov eax, dword [esp + 0x18]
push eax
call fcn.004ff160
add esp, 4
mov dword [esp + 0x860], 1
test bl, 1
je 0x47771c
and ebx, 0xfffffffe
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x24]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x47771c
mov eax, dword [esp + 0x24]
push eax
call fcn.004ff160
add esp, 4
push 1
push str.ServiceStarted
push 0x6d3dc0
call fcn.00401cf0
call fcn.004021c0
push 0
push 0x23
lea ecx, [esp + 0x5c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x54]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x477750
mov edx, dword [str.SMTHR.xml]
mov ecx, dword [0x6d3a20]
mov dword [eax], edx
mov edx, dword [0x6d3a24]
mov dword [eax + 4], ecx
mov ecx, dword [0x6d3a28]
mov dword [eax + 8], edx
mov edx, dword [0x6d3a2c]
mov dword [eax + 0xc], ecx
mov cx, word [0x6d3a30]
mov dword [eax + 0x10], edx
mov word [eax + 0x14], cx
lea ecx, [esp + 0x54]
call fcn.00435640
push 0
push str.AllLogsDelete
push str.Main
call fcn.00401e00
test al, al
jne 0x4778a7
lea edx, [esp + 0x30]
push edx
push 0
push str.c:Vibkrn.log
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4778a7
push 0
push 0
push 3
push 0
push 1
push 0x40000000
push str.c:Vibkrn.log
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x47783a
push 0
call fcn.005c4ba6
add esp, 4
mov dword [esp + 0x28], edx
cdq
push 0
add eax, 0xb6109100
push 0x989680
adc edx, 2
push edx
push eax
call fcn.005c98b0
push 0
mov dword [esp + 0x20], eax
push 0
lea eax, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
push 0
add ecx, 0x2ac18000
push 0x989680
adc eax, 0xfe624e21
push eax
push ecx
call fcn.005c98f0
push 0
mov ebx, eax
call fcn.005c4ba6
add esp, 4
push 0x1e
push str.AllLogsTips
push str.Main
mov esi, eax
mov edi, edx
call fcn.00401bd0
imul eax, eax, 0x15180
cdq
mov dword [esp + 0x1c], eax
mov ecx, edx
mov eax, ebx
cdq
sub esi, eax
sbb edi, edx
cmp edi, ecx
jl 0x4778a7
jg 0x47789c
cmp esi, dword [esp + 0x1c]
jbe 0x4778a7
push str.c:Vibkrn.log
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.c:Vibkrn.log
mov dword [0x71038c], 7
call fcn.00579fbc
cmp dword [0x71038c], 1
jl 0x4778d8
push str.Started
push str.AVSuiteService::AVSuiteService
push 1
call fcn.00579a92
add esp, 0xc
mov dword [0x72a300], ebp
mov dword [esp + 0x860], 0xffffffff
mov eax, ebp
mov ecx, dword [esp + 0x858]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.005c397a
add esp, 0x850
ret 0x10