Function at 0x4a9990
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 0x55ae61
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
call fcn.004aa990
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00493940
mov dword [ebp - 4], 0
push 0x5c
push dword [esi]
call fcn.0052266c
add esp, 8
test eax, eax
jne 0x4a99ee
or eax, 0xffffffff
jmp 0x4a99f2
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 - 0x1c]
mov ecx, esi
push eax
call fcn.0040bce0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 1
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00418250
mov eax, 1
mov dword [ebp - 0x18], eax
and eax, 0xfffffffe
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a9a51
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 0x4a9a6d
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 - 0x14]
jne 0x4a9a94
mov dword [eax + 0x14], 1
mov dword [ebp - 0x14], 1
jmp 0x4a9c16
add eax, 0x1c
push esi
push 3
mov ecx, eax
mov dword [ebp - 0x20], eax
call fcn.004be0e0
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4a9c49
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
push 0
push eax
call fcn.004be2d0
mov byte [ebp - 4], 6
push dword [eax]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x10]
push 0x58d3ec
push eax
call fcn.00419120
add esp, 0x10
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a9b0a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + 0x184]
call fcn.004b4350
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], 8
xor eax, eax
mov esi, dword [ebp - 0x1c]
mov ecx, esi
cmp dword [esi - 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 0x4a9bc9
mov byte [ebp - 4], 5
cmp byte [ebp - 0x24], al
je 0x4a9bb6
call fcn.004cc300
mov eax, dword [0x5d63e8]
test eax, eax
je 0x4a9bb6
lea ecx, [ebp - 0x28]
push ecx
call eax
mov byte [ebp - 0x24], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], 1
mov dword [eax + 0x14], 1
jmp 0x4a9bfb
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 5
cmp byte [ebp - 0x24], 0
je 0x4a9bf4
call fcn.004cc300
mov eax, dword [0x5d63e8]
test eax, eax
je 0x4a9bf4
lea ecx, [ebp - 0x28]
push ecx
call eax
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a9c16
mov ecx, dword [esi]
push esi
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 0x4a9c35
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
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.004143a0
int3