Function at 0x1401c22a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, dword [rbx + 0x30]
xor ecx, ecx
mov r8d, 0x3000
mov r14d, eax
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 8], rax
test rax, rax
jne 0x1401c22fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov eax, 4
jmp 0x1401c24f6
mov qword [rsp + 0x340], rsi
lea rcx, [0x1401c5a90]
mov esi, dword [rbx + 0x38]
sub esi, ecx
mov qword [rsp + 0x348], r15
add esi, dword [rbx + 0x30]
lea rcx, [0x1401c5c40]
add ecx, 0x30
add esi, ecx
cmp dword [rbx + 0x74], 1
mov dword [rbx + 0x34], esi
jne 0x1401c244e
xor r15d, r15d
lea rcx, [rsp + 0x70]
xor edx, edx
mov dword [rsp + 0x6c], r15d
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [0x14051faa0]
xor eax, eax
mov edx, dword [0x14051fa20]
xorps xmm0, xmm0
mov r8d, dword [0x14051fa90]
mov qword [rbp + 0x170], rax
mov qword [rbp + 0x198], rax
mov dword [rbp + 0x1b0], eax
mov qword [rbp + 0x1d8], rax
mov qword [rbp + 0x1e0], rax
mov qword [rbp + 0x218], rax
mov eax, dword [0x14051e4f4]
mov qword [rbp + 0x1b8], r15
mov qword [rbp + 0x1c0], r15
mov qword [rbp + 0x1d0], r15
mov qword [rbp + 0x1e8], r15
mov word [rbp + 0x1f0], r15w
mov qword [rsp + 0x60], 0xaed0de
mov dword [rsp + 0x68], reloc.WS2_32.dll_send
mov dword [rbp + 0x1b4], r14d
mov dword [rbp + 0x1c8], esi
movups xmmword [rbp + 0x178], xmm0
movups xmmword [rbp + 0x188], xmm0
movups xmmword [rbp + 0x1a0], xmm0
movups xmmword [rbp + 0x1f8], xmm0
movups xmmword [rbp + 0x208], xmm0
test eax, eax
jne 0x1401c2406
mov qword [rbx + 0x40], r15
jmp 0x1401c24a7
mov dword [rsp + 0x50], ecx
xor r9d, r9d
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x48], rcx
xor ecx, ecx
mov dword [rsp + 0x40], edx
xor edx, edx
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r8d
xor r8d, r8d
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], eax
call fcn.1401c7550
mov rcx, qword [rbp + 0x1d0]
mov qword [rbx + 0x40], rcx
test eax, eax
js 0x1401c24a7
test rcx, rcx
jmp 0x1401c24a5
mov rdx, qword [rbx + 0x20]
mov r9d, 0x3000
mov rcx, qword [rbx + 0x68]
mov r8d, esi
mov dword [rsp + 0x20], 0x40
mov rdx, qword [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbx + 0x40], rax
mov rcx, rax
test rax, rax
jne 0x1401c24c8
mov r8d, dword [rbx + 0x34]
xor edx, edx
mov rcx, qword [rbx + 0x68]
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rcx, rax
mov qword [rbx + 0x40], rax
test rax, rax
jne 0x1401c24c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 8]
xor edx, edx
mov r8d, 0x8000
mov dword [rdi], eax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 3
jmp 0x1401c24e6
mov eax, dword [rbx + 0x38]
add rcx, rax
mov eax, dword [rbx + 0x30]
add rax, rcx
mov qword [rbx + 0x48], rcx
mov qword [rbx + 0x58], rax
add rax, 0x30
mov qword [rbx + 0x50], rax
xor eax, eax
mov rsi, qword [rsp + 0x340]
mov r15, qword [rsp + 0x348]
mov rbx, qword [rsp + 0x350]
add rsp, 0x320
pop r14
pop rdi
pop rbp
ret