Function at 0x4a6fd0
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 0x55a191
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push esi
push edi
mov eax, dword [0x5cf024]
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.004a80b0
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004910b0
mov dword [ebp - 4], 0
push 0x5c
push dword [esi]
call fcn.0051f59b
add esp, 8
test eax, eax
jne 0x4a702e
or eax, 0xffffffff
jmp 0x4a7032
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.0040d3e0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 1
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00418fe0
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 0x4a7091
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 0x4a70ad
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 0x4a70d2
mov dword [eax + 0x14], 1
mov esi, 1
jmp 0x4a724b
add eax, 0x1c
push esi
push 3
mov ecx, eax
mov dword [ebp - 0x20], eax
call fcn.004b9d40
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4a727d
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.004b9e50
mov byte [ebp - 4], 5
push dword [eax]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x10]
push 0x58c0ec
push eax
call fcn.00408670
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 0x4a7148
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.004b13d0
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 0x4a7200
mov byte [ebp - 4], 4
cmp byte [ebp - 0x24], al
je 0x4a71f2
call fcn.004c7ed0
mov eax, dword [0x5d53cc]
test eax, eax
je 0x4a71f2
lea ecx, [ebp - 0x28]
push ecx
call eax
mov byte [ebp - 0x24], 0
mov dword [esi + 0x14], 1
mov esi, 1
jmp 0x4a722d
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 4
cmp byte [ebp - 0x24], 0
je 0x4a722b
call fcn.004c7ed0
mov eax, dword [0x5d53cc]
test eax, eax
je 0x4a722b
lea ecx, [ebp - 0x28]
push ecx
call eax
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 0x4a724b
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 0x4a726a
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.00408f80
int3