Function at 0x46a610
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb563
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8bc
push ebx
push esi
push edi
lea eax, [ebp - 0x348]
mov dword [ebp - 0x10], esp
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.004ab6e0
add esp, 4
lea ecx, [ebp - 0xc8]
push ecx
call fcn.00401350
add esp, 4
lea edx, [ebp - 0x3c8]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
lea ecx, [ebp - 0xa8]
call fcn.004f0653
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.004f0653
mov eax, dword [0x4fe4e8]
lea ecx, [ebp - 0xa8]
push eax
push 8
push str.c:endpcacheprocess_log.txt
mov byte [ebp - 4], 2
call fcn.004f0727
mov ecx, dword [0x4fe4e8]
push ecx
push 1
push str.c:endpcache_regService_log.txt
lea ecx, [ebp - 0x60]
call fcn.004f0727
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x5c]
push 0xa
lea edx, [ebp - 0x2c8]
inc esi
push 0x200
push edx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x5c], esi
call fcn.004f0ae9
lea edi, [ebp - 0x2c8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x2c8]
mov ebx, ecx
lea ecx, [ebp - 0x8c8]
push eax
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x46a98d
lea edi, [ebp - 0x2c8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x8c8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebx, 5
rep movsb byte es:[edi], byte [esi]
jle 0x46a98d
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c8]
inc ebx
push 0x5219e0
push ecx
mov dword [ebp - 0x18], ebx
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x46a884
lea edx, [ebp - 0x2c8]
push str..Sys
push edx
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x46a884
lea eax, [ebp - 0x2c8]
push str..SYS
push eax
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x46a884
xor ebx, ebx
xor edi, edi
cmp edi, 3
jge 0x46a7fb
mov ecx, edi
lea edx, [ebp - 0x3c8]
shl ecx, 8
lea eax, [ebp - 0x6c8]
lea esi, [ecx + str.DriversCMBProtector.dat]
push esi
push edx
push str.___s_system32_s
push eax
call fcn.004f175f
lea ecx, [ebp - 0x2c8]
lea edx, [ebp - 0x6c8]
push ecx
push edx
call fcn.004f61e0
add esp, 0x18
test eax, eax
jne 0x46a7df
mov ebx, 1
lea eax, [ebp - 0x2c8]
push esi
push eax
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x46a7f8
mov ebx, 1
inc edi
jmp 0x46a797
test ebx, ebx
jne 0x46a8ee
lea ecx, [ebp - 0x2c8]
push 0x51ed84
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x46a841
lea edx, [ebp - 0x2c8]
push 0x51ed80
push edx
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x46a841
lea eax, [ebp - 0x2c8]
push eax
call fcn.00415640
jmp 0x46a84d
lea ecx, [ebp - 0x2c8]
push ecx
call fcn.0041af60
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, eax
lea eax, [ebp - 0x2c8]
push edx
lea ecx, [ebp - 0xc8]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x348]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
push 0x522abc
jmp 0x46a8df
lea ecx, [ebp - 0x2c8]
push str.REGSYS.SYS
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x46a98d
lea edx, [ebp - 0x2c8]
push edx
call fcn.0044a870
add esp, 4
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x2c8]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x348]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
push 0x522a88
lea eax, [ebp - 0x5c8]
push eax
call fcn.004f175f
add esp, 0x18
mov eax, dword [0xe56db0]
test eax, eax
jne 0x46a94b
mov eax, dword [0xe56dbc]
mov edx, dword [ebp + 0x1b4]
lea ecx, [ebp - 0x5c8]
test eax, eax
mov eax, dword [ebp + 0x1b0]
push ecx
push edx
push eax
jne 0x46a92e
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x46a945
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
mov ecx, dword [ebp - 0x14]
push 0x5147ac
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x46a966
inc dword [0xe56d2c]
lea edx, [ebp - 0x5c8]
lea ecx, [ebp - 0x9c]
push edx
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0x58], 1
je 0x46a6b9
lea ecx, [ebp - 0x60]
call fcn.004f076e
lea ecx, [ebp - 0xa8]
call fcn.004f076e
push 0x80
push str.c:endpcache_regService_log.txt
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.c:endpcache_regService_log.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [0x4fe4e8]
lea ecx, [ebp - 0xa8]
push edx
push 2
push str.c:endpcache_regService_log.txt
call fcn.004f0727
lea ecx, [ebp - 0xa8]
call fcn.004f076e
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.004f0714
lea ecx, [ebp - 0x4c]
call fcn.004f05fb
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.004f0714
lea ecx, [ebp - 0x94]
call fcn.004f05fb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret