Function at 0x140052740
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, 0x230
mov rax, qword [0x1400c1fc0]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x101
lea rdx, [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebp, 2
test eax, eax
jne 0x14005291f
movzx eax, word [rsp + 0x80]
cmp al, 1
jne 0x14005290e
shr ax, 8
cmp al, 1
jne 0x14005290e
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 edx, ebp
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x1400d0b80], rax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x1400d0b74], eax
mov word [0x1400d0b70], bp
mov rcx, rdi
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 [0x1400d0b72], ax
mov rcx, rsi
call fcn.14004cd40
mov dword [0x1400d0340], eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov dword [0x1400d0344], eax
xor ebx, ebx
mov dword [0x1400d0348], ebx
mov dword [0x1400d034c], 0xaf3c2828
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1400d0308], xmm0
movups xmmword [0x1400d0318], xmm0
movups xmmword [0x1400d0328], xmm0
mov qword [0x1400d0338], rax
mov qword [0x1400d0750], rax
mov dword [0x1400d0758], eax
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea rdi, [0x1400d0b70]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x1400d0340]
mov rcx, qword [0x1400d0b80]
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 + 0x30], reloc.WS2_32.dll_recv
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, 0x400
lea rdx, [0x1400d0760]
mov rcx, qword [0x1400d0b80]
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
js 0x14005291f
mov eax, dword [0x1400d034c]
cmp dword [0x1400d076c], eax
je 0x1400528db
mov ebx, 0xffffdcdc
jmp 0x1400528ef
mov ecx, 0xffffdcdd
mov eax, dword [0x1400d0348]
cmp dword [0x1400d0768], eax
cmovne ebx, ecx
test ebx, ebx
jne 0x14005291f
mov byte [0x1400c3da0], 1
mov dword [rsp + 0x30], 1
lea rdx, str.Misc_KmBox_Net_Connection_successfully
jmp 0x1400529e9
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov qword [0x1400d0b80], 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
mov ecx, 0x30
call qword [sym.imp.mfc140.dll_Ordinal_1485]
mov qword [rsp + 0x58], rax
movdqa xmm0, xmmword [0x1400b1730]
movdqu xmmword [rsp + 0x68], xmm0
movups xmm0, xmmword [str.Misc_KmBox_Net_Connection_Failed]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400b02e8]
movups xmmword [rax + 0x10], xmm1
mov byte [rax + 0x20], 0
lea rdx, [rsp + 0x38]
call fcn.140068410
mov rcx, qword [rax]
add rcx, 0x18
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x48]
call fcn.140067ed0
mov rcx, qword [rax]
add rcx, 0x30
cmp qword [rcx + 0x18], 0xf
jbe 0x140052998
mov rcx, qword [rcx]
call fcn.1400170e0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x1400529de
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400529d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400529d9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007cbf0
mov dword [rsp + 0x30], ebp
lea rdx, str.Misc_KmBox_Net_Connection_Failed
lea rcx, [rsp + 0x30]
call fcn.14004f2f0
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.14007c870
mov rbx, qword [rsp + 0x268]
add rsp, 0x230
pop rdi
pop rsi
pop rbp
ret