Function at 0x1400a4bb0
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 [0x140160040]
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 0x1400a4bff
mov eax, 0xffffdcd8
jmp 0x1400a4ea7
movzx eax, word [rsp + 0x60]
cmp al, 1
jne 0x1400a4e91
shr ax, 8
cmp al, 1
jne 0x1400a4e91
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 [0x1401d6e90], rax
cmp qword [rbx + 0x18], 0xf
jbe 0x1400a4c4e
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x1401d6e84], eax
mov word [0x1401d6e80], r14w
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
mov word [0x1401d6e82], ax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rsi, rax
cmp qword [rdi + 0x18], 0xf
jbe 0x1400a4c88
mov rdi, qword [rdi]
xor ebx, ebx
mov dword [rax], ebx
mov r8d, sendto
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 0x1400a4cb5
lea rcx, [0x140146a88]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
cmp dword [rsi], 0x22
jne 0x1400a4cc8
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 [0x1401d72a8], eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov dword [0x1401d72ac], eax
mov dword [0x1401d72b0], ebx
mov dword [0x1401d72b4], 0xaf3c2828
mov dword [rsp + 0x28], sendto
lea rdi, [0x1401d6e80]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, sendto
lea rdx, [0x1401d72a8]
mov rcx, qword [0x1401d6e90]
call qword [sym.imp.WS2_32.dll_sendto]
lea rcx, [rsp + 0x50]
call fcn.140023880
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
movabs r8, 0x7ffffffffeced2ff
cmp rax, r8
je 0x1400a4d57
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x1400a4d57
add rax, 0x1312d00
jmp 0x1400a4d61
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.140024180
mov dword [rsp + 0x58], sendto
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, 0x400
lea rdx, [0x1401d6e98]
mov rcx, qword [0x1401d6e90]
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x1400a4db2
mov eax, 0xffffdcdb
jmp 0x1400a4ea7
mov eax, dword [0x1401d72b4]
cmp dword [0x1401d6ea4], eax
je 0x1400a4dc7
mov ebx, 0xffffdcdc
jmp 0x1400a4dda
mov eax, dword [0x1401d72b0]
cmp dword [0x1401d6ea0], eax
je 0x1400a4e04
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.140037c30
lea rdx, [0x140037e00]
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 0x1400a4ea7
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.140037c30
lea rdx, [0x140037e00]
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, [0x140146bb0]
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, [0x1401d5678]
call fcn.140043c10
mov byte [0x1401d56d0], 1
lea rcx, [rsp + 0x30]
call fcn.140022fc0
mov eax, ebx
jmp 0x1400a4ea7
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov qword [0x1401d6e90], 0xffffffffffffffff
mov eax, 0xffffdcd9
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140116ee0
add rsp, 0x210
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret