Function at 0x4e8c70
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fce60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38c
push ebx
push esi
push edi
lea eax, [ebp - 0x298]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x80
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.c:endpcache
lea ecx, [ebp - 0x118]
push str._suserinit.exe
push ecx
call fcn.004f175f
lea edx, [ebp - 0x298]
lea eax, [ebp - 0x218]
push edx
push str._sdllcache_bkuserinit.exe
push eax
call fcn.004f175f
lea ecx, [ebp - 0x298]
lea edx, [ebp - 0x398]
push ecx
push str._sdllcacheuserinit.exe
push edx
call fcn.004f175f
push str.c:endpcache
xor edi, edi
xor esi, esi
call fcn.004f2beb
lea eax, [ebp - 0x118]
push eax
call fcn.004bd410
add esp, 0x2c
push 0x5144fc
push eax
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4e8d25
mov edi, 1
lea ecx, [ebp - 0x218]
push ecx
call fcn.004bd410
add esp, 4
push 0x5144fc
push eax
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4e8d4b
mov esi, 1
cmp edi, 1
jne 0x4e8d92
cmp esi, ebx
jne 0x4e8ebe
lea edx, [ebp - 0x218]
push str.c:endpcacheloguserinit.exe
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x218]
push ebx
lea ecx, [ebp - 0x118]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 1
jne 0x4e8df7
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea edx, [ebp - 0x118]
push str.c:endpcacheloguserinit.exe
push edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x118]
push ebx
lea ecx, [ebp - 0x218]
push eax
push ecx
call edi
lea edx, [ebp - 0x118]
push str.c:endpcacheloguserinit.exe
push edx
call esi
lea eax, [ebp - 0x118]
push ebx
lea ecx, [ebp - 0x218]
push eax
push ecx
call edi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x14], ebx
mov ebx, dword [sym.imp.imagehlp.dll_MapFileAndCheckSumA]
push eax
push ecx
mov dword [ebp - 0x18], 1
xor edi, edi
call ebx
test eax, eax
jne 0x4e8e28
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
cmp edx, eax
je 0x4e8e2d
mov edi, 1
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x218]
push ecx
push edx
xor esi, esi
call ebx
test eax, eax
jne 0x4e8e4e
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
je 0x4e8e53
mov esi, 1
cmp edi, 1
jne 0x4e8e96
test esi, esi
jne 0x4e8e96
lea ecx, [ebp - 0x118]
push str.c:endpcacheloguserinit.exe
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea edx, [ebp - 0x118]
push esi
lea eax, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x118]
push str.c:endpcacheloguserinit.exe
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea edx, [ebp - 0x118]
push 0
lea eax, [ebp - 0x398]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret