Function at 0x14001c7d0
Capabilities:
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x210
mov rax, qword [0x1400fc040]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov ecx, 0x101
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14001c818
mov eax, 0xffffdcd8
jmp 0x14001ca66
movzx eax, word [rsp + 0x60]
cmp al, 1
jne 0x14001ca4d
shr ax, 8
cmp al, 1
jne 0x14001ca4d
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
xor r8d, r8d
mov ebp, 2
mov edx, ebp
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x1402f8650], rax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x1402f8644], eax
mov word [0x1402f8640], bp
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htons]
mov word [0x1402f8642], ax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x14001c8a1
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140018eb0
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rbx, qword [rsp + 0x30]
xor esi, esi
mov dword [rax], esi
lea r8d, [rsi + 0x10]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoll]
cmp rbx, qword [rsp + 0x50]
jne 0x14001c900
lea rcx, str.invalid_stoll_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
cmp dword [rdi], 0x22
jne 0x14001c913
lea rcx, str.stoll_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
mov dword [0x1402f7e00], eax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14001c959
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c954
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c954
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c41d0
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov dword [0x1402f7e04], eax
mov dword [0x1402f7e08], esi
mov dword [0x1402f7e0c], 0xaf3c2828
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1402f7dc8], xmm0
movups xmmword [0x1402f7dd8], xmm0
movups xmmword [0x1402f7de8], xmm0
mov qword [0x1402f7df8], rax
mov qword [0x1402f8210], rax
mov dword [0x1402f8218], eax
mov dword [rsp + 0x28], sendto
lea rbx, [0x1402f8640]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8d, [rax + 0x10]
lea rdx, [0x1402f7e00]
mov rcx, qword [0x1402f8650]
call qword [sym.imp.WS2_32.dll_sendto]
mov ecx, reloc.WS2_32.dll_sendto
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x58], sendto
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8d, 0x400
lea rdx, [0x1402f8220]
mov rcx, qword [0x1402f8650]
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x14001ca1c
mov eax, 0xffffdcdb
jmp 0x14001ca66
mov eax, dword [0x1402f7e0c]
cmp dword [0x1402f822c], eax
je 0x14001ca31
mov eax, 0xffffdcdc
jmp 0x14001ca66
mov eax, dword [0x1402f8224]
mov edx, 0xffffdcdd
mov ecx, dword [0x1402f7e08]
cmp dword [0x1402f8228], ecx
cmovne eax, edx
jmp 0x14001ca66
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rax, 0xffffffffffffffff
mov qword [0x1402f8650], rax
mov eax, 0xffffdcd9
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.1400c41b0
mov rbx, qword [rsp + 0x248]
add rsp, 0x210
pop rdi
pop rsi
pop rbp
ret