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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fce70
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._slogonui.exe
push ecx
call fcn.004f175f
lea edx, [ebp - 0x298]
lea eax, [ebp - 0x218]
push edx
push str._sdllcache_bklogonui.exe
push eax
call fcn.004f175f
lea ecx, [ebp - 0x298]
lea edx, [ebp - 0x398]
push ecx
push str._sdllcachelogonui.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 0x4e8fa5
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 0x4e8fcb
mov esi, 1
cmp edi, 1
jne 0x4e9012
cmp esi, ebx
jne 0x4e913e
lea edx, [ebp - 0x218]
push str.c:endpcacheloglogonui.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 0x4e9077
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea edx, [ebp - 0x118]
push str.c:endpcacheloglogonui.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 0x4e90a8
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
cmp edx, eax
je 0x4e90ad
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 0x4e90ce
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
je 0x4e90d3
mov esi, 1
cmp edi, 1
jne 0x4e9116
test esi, esi
jne 0x4e9116
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