Function at 0x140021b60
Capabilities:
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push r15
mov eax, 0x10200
call fcn.1400366d0
sub rsp, rax
mov r15, rcx
lea rdx, [rsp + 0x40]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140021b92
xor eax, eax
add rsp, 0x10200
pop r15
ret
mov qword [rsp + 0x10210], rbx
lea rcx, [rsp + 0x1e0]
mov qword [rsp + 0x101f8], rbp
xor edx, edx
mov qword [rsp + 0x101f0], rsi
mov r8d, 0x10000
mov qword [rsp + 0x101e8], rdi
mov qword [rsp + 0x101e0], r14
call fcn.1400376d0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, 1
mov byte [rsp + 0x1e2], 1
mov word [rsp + 0x1e0], ax
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [0x1400746d0]
mov word [rsp + 0x1ec], ax
lea rbx, [rsp + 0x1f4]
xor sil, sil
call fcn.140008c70
mov rdi, rax
test rax, rax
je 0x140021e93
mov rbp, 0xffffffffffffffff
xor r8b, r8b
mov rax, rbp
inc rax
cmp byte [rdi + rax], sil
jne 0x140021c30
test eax, eax
js 0x140021ca1
nop dword [rax]
movzx eax, r8b
movzx ecx, byte [rax + rdi]
cmp cl, 0x2e
je 0x140021c51
test cl, cl
jne 0x140021c85
movzx ecx, r8b
sub cl, sil
mov byte [rbx], cl
inc rbx
cmp sil, r8b
jae 0x140021c82
movzx eax, sil
movzx esi, r8b
add rax, rdi
movzx edx, cl
movzx ecx, byte [rax]
lea rax, [rax + 1]
mov byte [rbx], cl
inc rbx
sub rdx, 1
jne 0x140021c70
inc sil
inc r8b
mov rcx, rbp
nop dword [rax + rax]
inc rcx
cmp byte [rdi + rcx], 0
jne 0x140021c90
movzx eax, r8b
cmp eax, ecx
jle 0x140021c40
mov byte [rbx], 0
mov r8, rbp
nop word [rax + rax]
inc r8
cmp byte [rdi + r8], 0
jne 0x140021cb0
xor edx, edx
mov rcx, rdi
call fcn.1400376d0
mov rcx, rdi
call fcn.140038520
lea rax, [rsp + 0x1f4]
mov rbx, rbp
nop word [rax + rax]
cmp byte [rax + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x140021ce0
mov ecx, 1
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, 1
mov word [rsp + rbx + 0x1f5], ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + rbx + 0x1f7], ax
mov ebx, 2
mov edx, ebx
mov ecx, ebx
lea r8d, [rbx + 0xf]
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, rbp
je 0x140021e93
lea r9, [rsp + 0x10218]
mov dword [rsp + 0x10218], 0x7d0
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1006
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140021e8a
lea ecx, [rbx + 0x33]
mov word [rsp + 0x30], bx
call qword [sym.imp.WS2_32.dll_htons]
xor edi, edi
mov word [rsp + 0x32], ax
cmp qword [r15 + 8], rdi
jbe 0x140021e8a
mov ecx, edi
nop dword [rax + rax]
mov rax, qword [r15]
mov rsi, qword [rax + rcx*8]
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x140021e7c
lea rdx, [0x1400746e0]
call fcn.1400093c0
test rax, rax
jne 0x140021e7c
mov rcx, qword [rsi + 0x50]
call fcn.140008bb0
mov rcx, rax
mov rbx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x34], eax
mov rcx, rbp
lea rax, [rsp + 0x1f4]
nop dword [rax]
cmp byte [rax + rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140021de0
lea r8d, [rcx + 0x19]
mov dword [rsp + 0x28], sendto
lea rax, [rsp + 0x30]
mov rcx, r14
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x1e0]
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, ebp
je 0x140021e59
lea rax, [rsp + 0x10220]
mov dword [rsp + 0x10220], 0x10
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x1e0]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov r8d, 0x10000
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, ebp
jne 0x140021ecd
mov r8, rbp
nop dword [rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x140021e60
xor edx, edx
mov rcx, rbx
call fcn.1400376d0
mov rcx, rbx
call fcn.140038520
inc edi
mov ecx, edi
cmp rcx, qword [r15 + 8]
jb 0x140021d90
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rdi, qword [rsp + 0x101e8]
mov rsi, qword [rsp + 0x101f0]
mov rbp, qword [rsp + 0x101f8]
mov rbx, qword [rsp + 0x10210]
mov r14, qword [rsp + 0x101e0]
add rsp, 0x10200
pop r15
ret
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop dword [rax]
inc rbp
cmp byte [rbx + rbp], 0
jne 0x140021ee0
mov r8, rbp
xor edx, edx
mov rcx, rbx
call fcn.1400376d0
mov rcx, rbx
call fcn.140038520
mov rcx, qword [rsi + 0x50]
call fcn.14003fa28
jmp 0x140021e9b