Function at 0x46acd0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb5ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x780
push ebx
push esi
push edi
lea eax, [ebp - 0x58c]
mov dword [ebp - 0x10], esp
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.004ab6e0
add esp, 4
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00401350
add esp, 4
lea ecx, [ebp - 0xec]
push 1
call fcn.004f0653
push 1
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
call fcn.004f0653
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.004f0653
mov edx, dword [0x4fe4e8]
lea ecx, [ebp - 0xec]
push edx
push 8
push str.c:endpcacheprocess_log.txt
mov byte [ebp - 4], 3
call fcn.004f0727
push 0x80
push str.c:endpcacheprocess_log_HKLM.txt
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [0x4fe4e8]
lea ecx, [ebp - 0xa4]
push eax
push 1
push str.c:endpcacheprocess_log_HKLM.txt
call fcn.004f0727
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0xa0]
push 0xa
lea ecx, [ebp - 0x30c]
push 0x200
inc esi
push ecx
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xa0], esi
call fcn.004f0ae9
lea edi, [ebp - 0x30c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x30c]
repne scasb al, byte es:[edi]
not ecx
lea eax, [ebp - 0x78c]
dec ecx
push edx
push eax
mov ebx, ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x46aeb9
lea edi, [ebp - 0x30c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x78c]
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 0x46aeb9
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x30c]
push ecx
lea edx, [ebp - 0x50c]
inc eax
push 0x50d39c
push edx
mov dword [ebp - 0x14], eax
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0xc
test eax, eax
jne 0x46ae92
mov eax, dword [0xe56dbc]
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
test eax, eax
lea eax, [ebp - 0x50c]
push eax
push ecx
push edx
jne 0x46ae75
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x46ae8c
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 eax, [ebp - 0x50c]
lea ecx, [ebp - 0xe0]
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ecx + 4]
test byte [ebp + edx - 0x9c], 1
je 0x46ad8b
lea ecx, [ebp - 0xa4]
call fcn.004f076e
mov eax, 0x80
push eax
push str.c:endpcacheprocess_log_HKCU.txt
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [0x4fe4e8]
lea ecx, [ebp - 0x5c]
push eax
push 1
push str.c:endpcacheprocess_log_HKCU.txt
call fcn.004f0727
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x58]
push 0xa
lea ecx, [ebp - 0x30c]
push 0x200
inc esi
push ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x58], esi
call fcn.004f0ae9
lea edi, [ebp - 0x30c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x30c]
repne scasb al, byte es:[edi]
not ecx
lea eax, [ebp - 0x78c]
dec ecx
push edx
push eax
mov ebx, ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x46b02d
lea edi, [ebp - 0x30c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x78c]
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 0x46b02d
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x30c]
push ecx
lea edx, [ebp - 0x50c]
inc eax
push 0x50d39c
push edx
mov dword [ebp - 0x14], eax
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0xc
test eax, eax
jne 0x46b006
mov eax, dword [0xe56dbc]
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
test eax, eax
lea eax, [ebp - 0x50c]
push eax
push ecx
push edx
jne 0x46afe9
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x46b000
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 eax, [ebp - 0x50c]
lea ecx, [ebp - 0xe0]
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 4]
test byte [ebp + edx - 0x54], 1
je 0x46af08
lea ecx, [ebp - 0x5c]
call fcn.004f076e
lea ecx, [ebp - 0xec]
call fcn.004f076e
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.004f0714
lea ecx, [ebp - 0x48]
call fcn.004f05fb
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.004f0714
lea ecx, [ebp - 0x90]
call fcn.004f05fb
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0
call fcn.004f0714
lea ecx, [ebp - 0xd8]
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