Function at 0x14001dbb0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x98
mov rax, qword [0x140142248]
xor rax, rsp
mov qword [rbp + 7], rax
xor esi, esi
mov rbx, r8
mov dword [rbp - 0x41], esi
mov rdi, r9
mov dword [rbp - 0x11], esi
mov r14, rdx
mov dword [rbp - 0x35], esi
mov r15, rcx
mov qword [rbp - 0x19], rbx
cmp r8, 0x10000
jb 0x14001dd04
lea rax, [r8 + r8]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rbp - 9], rax
lea r9, [rbp - 9]
mov qword [rbp - 0x29], rsi
lea rdx, [rbp - 0x29]
mov dword [rsp + 0x20], 0x1000
lea rcx, [rsi - 1]
call qword [sym.imp.ntdll.dll_ZwAllocateVirtualMemory]
mov r12, qword [rbp - 0x29]
test r12, r12
je 0x14001dcfd
mov r8, rbx
mov rdx, r14
mov rcx, r12
call fcn.1400a50b0
mov qword [rbp - 1], rbx
mov qword [rbp - 0x21], r12
call fcn.140026e60
mov rsi, rax
test rax, rax
je 0x14001dcfd
cmp dword [rax + 0x19c4], 0
jne 0x14001dc81
mov ecx, ebx
mov qword [rax + 0x18], rcx
mov dword [rax + 4], 9
mov dword [rax + 8], 0x18
lea rax, [rbp - 0x29]
mov qword [rbp - 9], rbx
mov qword [rsp + 0x28], rax
lea r14, [r12 + 0xf]
lea rax, [rbp - 9]
add r14, rbx
and r14, 0xfffffffffffffff0
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x21]
mov qword [rbp - 0x29], r14
lea r8, [rbp - 1]
mov rcx, rsi
call fcn.14002a4f0
mov r13, qword [rbp - 0x29]
mov rcx, rsi
sub r13, r14
call fcn.140027090
test r14, r14
je 0x14001dcfd
lea rdx, [r13 + 4]
mov dword [r14 + r13], ebx
lea r8, [rdi + 0x20]
mov qword [rbp - 0x19], rdx
mov rcx, r14
call fcn.14005e5a0
lea rax, [rbp - 0x19]
mov qword [rbp - 0x31], rax
movabs rax, 0x8000000000000000
or qword [rbp - 0x19], rax
xor esi, esi
jmp 0x14001dd1e
xor al, al
jmp 0x14001ded9
lea r8, [r9 + 0x20]
mov rdx, rbx
mov rcx, r14
call fcn.14005e5a0
lea rax, [rbp - 0x19]
mov r12, rsi
mov qword [rbp - 0x31], rax
mov qword [rsp + 0x30], rsi
lea r9, [rbp - 0x41]
mov qword [rsp + 0x28], rdi
lea rdx, [rbp - 0x39]
mov r8d, 1
mov dword [rsp + 0x20], esi
mov rcx, r15
mov dword [rbp - 0x39], 8
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
movabs rax, 0x7fffffffffffffff
and qword [rbp - 0x19], rax
test ebx, ebx
je 0x14001ddb3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x14001deac
mov rcx, qword [rdi + 0x18]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test eax, eax
jne 0x14001deac
lea rax, [rbp - 0x11]
xor r9d, r9d
lea r8, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
mov ebx, esi
sete bl
test eax, eax
je 0x14001deac
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
mov eax, dword [rbp - 0x19]
mov dword [rbp - 0x39], eax
mov qword [rbp - 0x31], r14
mov dword [rbp - 0x41], esi
nop word [rax + rax]
mov rdx, qword [rdi + 0x18]
mov r8d, 0x22
mov rcx, r15
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov rcx, qword [rdi + 0x18]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
cmp eax, 0xffffffff
je 0x14001deac
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
mov qword [rsp + 0x30], rsi
lea r9, [rbp - 0x41]
mov qword [rsp + 0x28], rdi
lea rdx, [rbp - 0x39]
mov r8d, 1
mov dword [rsp + 0x20], esi
mov rcx, r15
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
test eax, eax
jne 0x14001de5d
mov edx, dword [rbp - 0x39]
test edx, edx
je 0x14001deac
mov ecx, dword [rbp - 0x41]
add qword [rbp - 0x31], rcx
sub edx, ecx
mov rcx, qword [rdi + 0x18]
mov dword [rbp - 0x39], edx
mov dword [rbp - 0x41], esi
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp dword [rbp - 0x39], ebx
jne 0x14001ddd0
jmp 0x14001deac
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x14001deac
mov rcx, qword [rdi + 0x18]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test eax, eax
jne 0x14001deac
lea rax, [rbp - 0x11]
xor r9d, r9d
lea r8, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
mov rcx, qword [rdi + 0x18]
mov ebx, esi
test eax, eax
sete bl
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
test r12, r12
je 0x14001ded4
mov r9d, 0x8000
mov qword [rbp - 0x21], r12
lea r8, [rbp - 1]
mov qword [rbp - 1], rsi
lea rdx, [rbp - 0x21]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_ZwFreeVirtualMemory]
test ebx, ebx
sete al
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1400a3970
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret