Function at 0x1400aa3c0
Capabilities:
Copy file
Delete file
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1f0], rbx
mov rax, qword [0x1400ee0e8]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r15, r8
mov rsi, rdx
mov qword [rsp + 0x78], rdx
xor dil, dil
mov ecx, 1
call fcn.14005ef64
mov qword [rsp + 0x50], rax
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov rcx, qword [rsi]
sub rcx, 0x18
call fcn.14000bbe0
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.1400a9600
lea r13, [0x1400de840]
or ebx, 0xffffffff
test al, al
je 0x1400aa5b8
cmp qword [rsp + 0x58], 0x7530
jbe 0x1400aa5b8
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp - 0x70]
call fcn.1400572a0
mov r8d, 0x104
lea rdx, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov word [rbp - 0x7d], reloc.WS2_32.dll_WSASetLastError
mov word [rbp - 0x80], 0x742e
mov byte [rbp - 0x7e], WSASetLastError
lea r8, [rbp - 0x80]
lea rdx, [0x1400f1d58]
lea rcx, [rsp + 0x68]
call fcn.14000cb80
nop
mov rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400aa57c
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.14000bac0
mov r8, r15
mov rdx, rax
call section..jvs246
test al, al
je 0x1400aa57c
xor r8d, r8d
mov rdx, qword [0x1400f1d60]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
setne dil
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [0x1400f1d68]
call fcn.14000bf50
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400aa5b8
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r13
jne 0x1400aa5b5
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400aa5b8
call r8
mov rcx, qword [rsp + 0x50]
call fcn.140058e2c
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400aa5fd
mov r8, qword [rdx]
mov rcx, qword [r8]
mov rax, qword [rcx + 8]
cmp rcx, r13
jne 0x1400aa5f8
mov rcx, qword [r8 + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400aa5fd
mov rcx, r8
call rax
movzx eax, dil
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400518f0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret