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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fba03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6b4
push ebx
push esi
push edi
lea eax, [ebp - 0x340]
mov dword [ebp - 0x10], esp
xor esi, esi
push eax
mov dword [ebp - 4], esi
mov dword [0xe56df0], esi
call fcn.004ab6e0
add esp, 4
lea ecx, [ebp - 0x78]
push ecx
call fcn.00401350
add esp, 4
lea edx, [ebp - 0x6c0]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 1
lea ecx, [ebp - 0x58]
call fcn.004f0653
push 1
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 1
call fcn.004f0653
mov eax, dword [0x4fe4e8]
lea ecx, [ebp - 0xc0]
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_fileMonitor_proc_log.txt
lea ecx, [ebp - 0x58]
call fcn.004f0727
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [ebp - 0x54]
push 0xa
lea edx, [ebp - 0x2c0]
inc edi
push 0x100
push edx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], edi
call fcn.004f0ae9
lea edi, [ebp - 0x2c0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jl 0x4931df
lea eax, [ebp - 0x2c0]
lea ecx, [ebp - 0x640]
push eax
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4931df
lea edi, [ebp - 0x2c0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x640]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x1c0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x2c0]
or ecx, 0xffffffff
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x1c0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp eax, ecx
jge 0x4930e6
cmp byte [ebp + eax - 0x1c0], 0x2e
je 0x4930e6
inc eax
jmp 0x4930d5
mov byte [ebp + eax - 0x1bc], 0
mov eax, 0x80
lea ecx, [ebp - 0x1c0]
push eax
push ecx
call ebx
lea edx, [ebp - 0x1c0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x1c0]
lea ecx, [ebp - 0x78]
push eax
push ecx
mov byte [ebp - 0x540], 0
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x340]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x540]
push 0x526658
push eax
call fcn.004f175f
mov ecx, dword [0xe56d24]
mov eax, dword [0xe56db0]
add esp, 0x14
inc ecx
test eax, eax
mov dword [0xe56d24], ecx
jne 0x4931b3
mov eax, dword [0xe56dbc]
mov edx, dword [ebp + 0x1b4]
lea ecx, [ebp - 0x540]
test eax, eax
mov eax, dword [ebp + 0x1b0]
push ecx
push edx
push eax
jne 0x493196
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x4931ad
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
lea ecx, [ebp - 0x540]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov esi, 1
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
test byte [ebp + eax - 0x50], 1
je 0x49301f
lea ecx, [ebp - 0x58]
call fcn.004f076e
mov ecx, dword [0x4fe4e8]
push ecx
push 1
push str.c:endpcache_regMonitor_proc_log.txt
lea ecx, [ebp - 0x58]
call fcn.004f0727
mov edi, dword [ebp - 0x54]
push 0xa
lea edx, [ebp - 0x2c0]
inc edi
push 0x100
push edx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], edi
call fcn.004f0ae9
lea edi, [ebp - 0x2c0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jl 0x4933ce
lea eax, [ebp - 0x2c0]
lea ecx, [ebp - 0x640]
push eax
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4933ce
lea edi, [ebp - 0x2c0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x640]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x1c0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x2c0]
or ecx, 0xffffffff
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x1c0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp eax, ecx
jge 0x4932d5
cmp byte [ebp + eax - 0x1c0], 0x2e
je 0x4932d5
inc eax
jmp 0x4932c4
mov byte [ebp + eax - 0x1bc], 0
mov eax, 0x80
lea ecx, [ebp - 0x1c0]
push eax
push ecx
call ebx
lea edx, [ebp - 0x1c0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x1c0]
lea ecx, [ebp - 0x78]
push eax
push ecx
mov byte [ebp - 0x540], 0
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x340]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x540]
push 0x5265f4
push eax
call fcn.004f175f
mov ecx, dword [0xe56d24]
mov eax, dword [0xe56db0]
add esp, 0x14
inc ecx
test eax, eax
mov dword [0xe56d24], ecx
jne 0x4933a2
mov eax, dword [0xe56dbc]
mov edx, dword [ebp + 0x1b4]
lea ecx, [ebp - 0x540]
test eax, eax
mov eax, dword [ebp + 0x1b0]
push ecx
push edx
push eax
jne 0x493385
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x49339c
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
lea ecx, [ebp - 0x540]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov esi, 1
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
test byte [ebp + eax - 0x50], 1
je 0x49320e
lea ecx, [ebp - 0x58]
call fcn.004f076e
mov edi, 0x80
push edi
push str.c:endpcache_fileMonitor_proc_log.txt
call ebx
push str.c:endpcache_fileMonitor_proc_log.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push str.c:endpcache_regMonitor_proc_log.txt
call ebx
push str.c:endpcache_regMonitor_proc_log.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
jne 0x4934db
lea ecx, [ebp - 0x78]
push 0x5265bc
push ecx
mov byte [ebp - 0x540], 0
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x340]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x540]
push 0x5190b4
push eax
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0x14
test eax, eax
jne 0x4934b4
mov eax, dword [0xe56dbc]
mov edx, dword [ebp + 0x1b4]
lea ecx, [ebp - 0x540]
test eax, eax
mov eax, dword [ebp + 0x1b0]
push ecx
push edx
push eax
jne 0x493497
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x4934ae
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
lea ecx, [ebp - 0x540]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
lea ecx, [ebp - 0xc0]
call fcn.004f076e
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 1
call fcn.004f0714
lea ecx, [ebp - 0xac]
call fcn.004f05fb
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.004f0714
lea ecx, [ebp - 0x44]
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