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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x200
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rsi, qword [0x140062798]
lea rbx, [rsi + 0x80]
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
mov rdi, qword [rbx + 0x10]
jbe 0x140044413
mov rcx, qword [rbx]
cmp rdi, 3
jne 0x140044613
mov r8, rdi
lea rdx, [0x140055eb0]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140044613
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Initializing_Kmbox_Net...
call fcn.1400078e0
lea rdx, [0x140007ab0]
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 ecx, 0x101
mov dword [rsi + 0x28], 1
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140044607
movzx eax, word [rsp + 0x40]
cmp al, 1
jne 0x1400445f6
shr ax, 8
cmp al, 1
jne 0x1400445f6
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]
mov ebx, 2
xor r8d, r8d
mov edx, ebx
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
lea rcx, [rsi + 0xa0]
mov qword [0x140061ec8], rax
call qword [sym.imp.WS2_32.dll_inet_addr]
lea rcx, [rsi + 0xb8]
mov word [0x140062710], bx
mov dword [0x140062714], eax
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]
lea rcx, [rsi + 0xc2]
mov word [0x140062712], ax
call fcn.140041930
mov dword [0x140061ed0], eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov rcx, qword [0x140061ec8]
lea rdi, [0x140062710]
xorps xmm0, xmm0
mov dword [0x140061ed4], eax
xor eax, eax
mov dword [rsp + 0x28], sendto
xor ebx, ebx
mov dword [0x140061edc], 0xaf3c2828
xor r9d, r9d
mov dword [0x140061ed8], ebx
lea rdx, [0x140061ed0]
mov qword [0x140061ec0], rax
movups xmmword [0x140061e90], xmm0
lea r8d, [rbx + 0x10]
mov qword [0x1400622e0], rax
movups xmmword [0x140061ea0], xmm0
mov dword [0x1400622e8], eax
movups xmmword [0x140061eb0], xmm0
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WS2_32.dll_sendto]
lea ecx, [rbx + 0x14]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x140061ec8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400622f0]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov r8d, 0x400
mov dword [rsp + 0x30], sendto
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
js 0x140044607
mov eax, dword [0x140061edc]
cmp dword [0x1400622fc], eax
je 0x1400445d2
mov ebx, 0xffffdcdc
jmp 0x1400445e6
mov eax, dword [0x140061ed8]
mov ecx, 0xffffdcdd
cmp dword [0x1400622f8], eax
cmovne ebx, ecx
test ebx, ebx
jne 0x140044607
lea rdx, str.Kmbox_Net_initialized_successfully.
jmp 0x140044741
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov qword [0x140061ec8], 0xffffffffffffffff
lea rdx, str.Kmbox_Net_failed_to_initialize.
jmp 0x140044741
cmp qword [rbx + 0x18], 0xf
jbe 0x14004461d
mov rbx, qword [rbx]
cmp rdi, 4
jne 0x14004475d
mov r8, rdi
lea rdx, str.BPro
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14004475d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Initializing_Kmbox_B_Pro...
call fcn.1400078e0
lea rdx, [0x140007ab0]
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 ecx, dword [rsi + 0xe4]
lea rdi, [rsi + 0xe8]
mov dword [rsi + 0x28], 3
lea eax, [rcx - 1]
cmp eax, 0x3ff
ja 0x14004473a
mov dword [rdi + 8], ecx
lea r8, str..COM
lea rcx, [rdi + 0x18]
mov edx, reloc.WS2_32.dll_sendto
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov ecx, dword [rdi + 8]
lea rdx, [rsp + 0x1e0]
mov r9d, 0xa
lea r8d, [r9 + 2]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ltoa_s]
lea r8, [rsp + 0x1e0]
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [rdi + 0x18]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
test al, al
je 0x14004473a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + htons]
test al, al
je 0x14004473a
mov rax, qword [rdi + 0x10]
cmp rax, 0xffffffffffffffff
je 0x14004472d
mov rcx, qword [rdi + 0x10]
lea rdx, [rdi + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetCommState]
test eax, eax
je 0x14004472d
mov rcx, qword [rdi + 0x10]
lea rdx, [rdi + 0x2c]
mov dword [rdi + 0x30], 0x1c200
mov word [rdi + 0x3e], 8
mov byte [rdi + 0x40], 0
call qword [sym.imp.KERNEL32.dll_SetCommState]
cmp eax, 1
sete al
jmp 0x14004472f
xor al, al
lea rdx, str.Kmbox_B_Pro_initialized_successfully.
test al, al
jne 0x140044741
lea rdx, str.Kmbox_B_Pro_failed_to_initialize.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400078e0
lea rdx, [0x140007ab0]
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 rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14004b3b0
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret