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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fce50
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._sexplorer.exe
push ecx
call fcn.004f175f
lea edx, [ebp - 0x298]
lea eax, [ebp - 0x218]
push edx
push str._sdllcache_bkexplorer.exe
push eax
call fcn.004f175f
lea ecx, [ebp - 0x298]
lea edx, [ebp - 0x398]
push ecx
push str._sdllcacheexplorer.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 0x4e8aa5
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 0x4e8acb
mov esi, 1
cmp edi, 1
jne 0x4e8b12
cmp esi, ebx
jne 0x4e8c3e
lea edx, [ebp - 0x218]
push str.c:endpcachelogexplorer.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 0x4e8b77
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea edx, [ebp - 0x118]
push str.c:endpcachelogexplorer.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:endpcachelogexplorer.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 0x4e8ba8
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
cmp edx, eax
je 0x4e8bad
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 0x4e8bce
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
je 0x4e8bd3
mov esi, 1
cmp edi, 1
jne 0x4e8c16
test esi, esi
jne 0x4e8c16
lea ecx, [ebp - 0x118]
push str.c:endpcachelogexplorer.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:endpcachelogexplorer.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