Function at 0x4a83c0
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 0x560466
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.004a9450
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004920d0
mov dword [ebp - 4], 0
push 0x5c
push dword [esi]
call fcn.0052324a
add esp, 8
test eax, eax
jne 0x4a841e
or eax, 0xffffffff
jmp 0x4a8422
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.0040d3b0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 1
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00418fd0
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 0x4a8481
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 0x4a849d
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 0x4a84c2
mov dword [eax + 0x14], 1
mov esi, 1
jmp 0x4a863b
add eax, 0x1c
push esi
push 3
mov ecx, eax
mov dword [ebp - 0x20], eax
call fcn.004bb8f0
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4a866d
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.004bb9f0
mov byte [ebp - 4], 5
push dword [eax]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x10]
push 0x594a78
push eax
call fcn.004087c0
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 0x4a8538
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.004b27f0
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 0x4a85f0
mov byte [ebp - 4], 4
cmp byte [ebp - 0x24], al
je 0x4a85e2
call fcn.004cab30
mov eax, dword [0x5de4d0]
test eax, eax
je 0x4a85e2
lea ecx, [ebp - 0x28]
push ecx
call eax
mov byte [ebp - 0x24], 0
mov dword [esi + 0x14], 1
mov esi, 1
jmp 0x4a861d
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 4
cmp byte [ebp - 0x24], 0
je 0x4a861b
call fcn.004cab30
mov eax, dword [0x5de4d0]
test eax, eax
je 0x4a861b
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 0x4a863b
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 0x4a865a
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.00408fe0
int3