Function at 0x46aa40
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb583
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x738
push ebx
push esi
push edi
lea eax, [ebp - 0x144]
mov dword [ebp - 0x10], esp
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.004ab6e0
add esp, 4
lea ecx, [ebp - 0xc4]
push ecx
call fcn.00401350
add esp, 4
lea ecx, [ebp - 0xa4]
push 1
call fcn.004f0653
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004f0653
mov edx, dword [0x4fe4e8]
lea ecx, [ebp - 0xa4]
push edx
push 8
push str.c:endpcacheprocess_log.txt
mov byte [ebp - 4], 2
call fcn.004f0727
mov eax, dword [0x4fe4e8]
lea ecx, [ebp - 0x5c]
push eax
push 1
push str.c:endpcache_regAccount_log.txt
call fcn.004f0727
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x58]
push 0xa
lea ecx, [ebp - 0x344]
push 0x200
inc esi
push ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x58], esi
call fcn.004f0ae9
lea edi, [ebp - 0x344]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x344]
repne scasb al, byte es:[edi]
not ecx
lea eax, [ebp - 0x744]
dec ecx
push edx
push eax
mov ebx, ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x46ac1c
lea edi, [ebp - 0x344]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x744]
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 0x46ac1c
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x344]
lea edx, [ebp - 0xc4]
inc eax
push ecx
push edx
mov dword [ebp - 0x14], eax
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x544]
push eax
push 0x522b18
push ecx
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0x14
test eax, eax
jne 0x46abf5
mov eax, dword [0xe56dbc]
mov ecx, dword [ebp + 0x1b0]
test eax, eax
mov eax, dword [ebp + 0x1b4]
lea edx, [ebp - 0x544]
push edx
push eax
push ecx
jne 0x46abd8
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x46abef
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 edx, [ebp - 0x544]
lea ecx, [ebp - 0x98]
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 - 0x5c]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0x54], 1
je 0x46aad7
lea ecx, [ebp - 0x5c]
call fcn.004f076e
lea ecx, [ebp - 0xa4]
call fcn.004f076e
push 0x80
push str.c:endpcache_regAccount_log.txt
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.c:endpcache_regAccount_log.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [0x4fe4e8]
lea ecx, [ebp - 0xa4]
push edx
push 2
push str.c:endpcache_regAccount_log.txt
call fcn.004f0727
lea ecx, [ebp - 0xa4]
call fcn.004f076e
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.004f0714
lea ecx, [ebp - 0x48]
call fcn.004f05fb
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0
call fcn.004f0714
lea ecx, [ebp - 0x90]
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