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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x140169040]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov rdi, r9
movzx esi, r8w
mov rbx, rdx
mov ecx, 0x101
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400a4f6f
mov eax, 0xffffdcd8
jmp 0x1400a5217
movzx eax, word [rsp + 0x60]
cmp al, 1
jne 0x1400a5201
shr ax, 8
cmp al, 1
jne 0x1400a5201
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
xor r8d, r8d
mov r14d, 2
mov edx, r14d
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x1401e0150], rax
cmp qword [rbx + 0x18], 0xf
jbe 0x1400a4fbe
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x1401e0144], eax
mov word [0x1401e0140], r14w
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
mov word [0x1401e0142], ax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rsi, rax
cmp qword [rdi + 0x18], 0xf
jbe 0x1400a4ff8
mov rdi, qword [rdi]
xor ebx, ebx
mov dword [rax], ebx
mov r8d, recvfrom
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoll]
cmp rdi, qword [rsp + 0x50]
jne 0x1400a5025
lea rcx, [0x14014dac8]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
cmp dword [rsi], 0x22
jne 0x1400a5038
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 [0x1401e0568], eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov dword [0x1401e056c], eax
mov dword [0x1401e0570], ebx
mov dword [0x1401e0574], 0xaf3c2828
mov dword [rsp + 0x28], socket
lea rdi, [0x1401e0140]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, recvfrom
lea rdx, [0x1401e0568]
mov rcx, qword [0x1401e0150]
call qword [sym.imp.WS2_32.dll_sendto]
lea rcx, [rsp + 0x50]
call fcn.140023910
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
movabs r8, 0x7ffffffffeced2ff
cmp rax, r8
je 0x1400a50c7
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x1400a50c7
add rax, 0x1312d00
jmp 0x1400a50d1
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.140024210
mov dword [rsp + 0x58], socket
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, 0x400
lea rdx, [0x1401e0158]
mov rcx, qword [0x1401e0150]
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x1400a5122
mov eax, 0xffffdcdb
jmp 0x1400a5217
mov eax, dword [0x1401e0574]
cmp dword [0x1401e0164], eax
je 0x1400a5137
mov ebx, 0xffffdcdc
jmp 0x1400a514a
mov eax, dword [0x1401e0570]
cmp dword [0x1401e0160], eax
je 0x1400a5174
mov ebx, 0xffffdcdd
lea rdx, str.____Failed_to_initialize_KMbox_NET.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140037d30
lea rdx, [0x140037f00]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, ebx
jmp 0x1400a5217
lea rdx, str.___Successfully_Initialized_KMbox_NET
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140037d30
lea rdx, [0x140037f00]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov r8d, 3
lea rdx, [0x14014dc08]
lea rcx, [rsp + 0x30]
call fcn.1400224d0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
lea rcx, [0x1401de678]
call fcn.140043dc0
mov byte [0x1401de6d0], 1
lea rcx, [rsp + 0x30]
call fcn.140022fc0
mov eax, ebx
jmp 0x1400a5217
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov qword [0x1401e0150], 0xffffffffffffffff
mov eax, 0xffffdcd9
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.14011e4b0
add rsp, 0x210
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret