Function at 0x4a8080
Capabilities:
Check if file exists
Copy file
Create process on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ff76
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push esi
push edi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
call fcn.004a9120
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00491ef0
mov dword [ebp - 4], 0
push 0x5c
push dword [esi]
call fcn.0052387a
add esp, 8
test eax, eax
jne 0x4a80de
or eax, 0xffffffff
jmp 0x4a80e2
sub eax, dword [esi]
sar eax, 1
lea ecx, [eax + 1]
mov byte [ebp - 4], 1
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0040d340
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 1
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00418f60
mov eax, 1
mov dword [ebp - 0x14], eax
and eax, 0xfffffffe
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x20]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a8141
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4a815d
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push dword [ebp - 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov eax, dword [ebp - 0x18]
jne 0x4a8182
mov dword [eax + 0x14], 1
mov esi, 1
jmp 0x4a82ed
add eax, 0x1c
push esi
push 3
mov ecx, eax
mov dword [ebp - 0x20], eax
call fcn.004bb700
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x4a831f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
push 0
push eax
call fcn.004bb800
mov byte [ebp - 4], 5
push dword [eax]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x10]
push 0x594b1c
push eax
call fcn.004087a0
add esp, 0x10
mov byte [ebp - 4], 4
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a81f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
lea ecx, [esi + 0x184]
call fcn.004b24d0
xorps xmm0, xmm0
mov dword [ebp - 0x7c], 0x44
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x24], 0
mov byte [ebp - 4], 7
xor eax, eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx - 0xc], eax
cmove ecx, eax
mov eax, dword [ebp - 0x10]
xor edx, edx
cmp dword [eax - 0xc], edx
cmove eax, edx
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x7c]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4a82a9
mov byte [ebp - 4], 4
cmp byte [ebp - 0x24], al
je 0x4a829b
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
test eax, eax
je 0x4a829b
mov byte [ebp - 0x24], 0
mov dword [esi + 0x14], 1
mov esi, 1
jmp 0x4a82cf
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 4
cmp byte [ebp - 0x24], 0
je 0x4a82cd
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
test eax, eax
je 0x4a82cd
mov byte [ebp - 0x24], 0
xor esi, esi
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a82ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4a830c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408fc0
int3