Function at 0x4a9d60
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 0x55b171
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.004aad60
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00493650
mov dword [ebp - 4], 0
push 0x5c
push dword [esi]
call fcn.00522f4c
add esp, 8
test eax, eax
jne 0x4a9dbe
or eax, 0xffffffff
jmp 0x4a9dc2
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.0040a040
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 1
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00416df0
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 0x4a9e21
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 0x4a9e3d
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 0x4a9e64
mov dword [eax + 0x14], 1
mov dword [ebp - 0x14], 1
jmp 0x4a9fe6
add eax, 0x1c
push esi
push 3
mov ecx, eax
mov dword [ebp - 0x20], eax
call fcn.004be310
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4aa019
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.004be500
mov byte [ebp - 4], 6
push dword [eax]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x10]
push 0x58d1b0
push eax
call fcn.00417cc0
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 0x4a9eda
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.004b46f0
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 0x4a9f99
mov byte [ebp - 4], 5
cmp byte [ebp - 0x24], al
je 0x4a9f86
call fcn.004cc820
mov eax, dword [0x5d6390]
test eax, eax
je 0x4a9f86
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 0x4a9fcb
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 5
cmp byte [ebp - 0x24], 0
je 0x4a9fc4
call fcn.004cc820
mov eax, dword [0x5d6390]
test eax, eax
je 0x4a9fc4
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 0x4a9fe6
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 0x4aa005
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.004126a0
int3