Function at 0x14000579c
Capabilities:
Convert ip address from string
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17c0]
mov eax, 0x18c0
call fcn.140018760
sub rsp, rax
or dword [rbp + 0x1808], 0xffffffff
lea r8, [rbp + 0x1808]
mov rsi, rcx
mov rdx, rcx
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r13d, 1
cmp eax, r13d
je 0x140005d82
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
lea rbx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
lea edx, [r13 + 7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r8, [rdi + 1]
mov rdx, rsi
mov r14, rax
mov qword [rsp + 0x60], rax
lea rcx, [rax + 1]
call fcn.1400090b0
xor r12d, r12d
mov ecx, r13d
mov edx, r12d
cmp r13, rbx
jae 0x14000585e
cmp byte [rcx + r14], r12b
je 0x140005848
cmp byte [rcx + r14], 0x2e
jne 0x140005856
mov al, cl
sub al, dl
sub al, r13b
mov byte [rdx + r14], al
mov rdx, rcx
add rcx, r13
cmp rcx, rbx
jb 0x14000583b
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [rax + r13]
lea r15d, [rsi + 0x10]
mov dword [rsp + 0x30], r15d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r15d
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, esi
mov rdx, r14
mov rbx, rax
mov qword [rsp + 0x58], rax
lea rcx, [rax + 0xc]
call fcn.1400090b0
movzx ecx, word [0x140026b88]
lea edi, [rsi + 0xc]
lea edx, [rcx + r13]
mov word [0x140026b88], dx
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, r13d
mov word [rbx + 2], r13w
mov word [rbx], ax
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, r13d
mov dword [rbx + 6], r12d
mov word [rbx + 4], ax
mov word [rbx + 0xa], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, r13d
mov word [rdi + rbx], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r13d, r12d
mov dword [rbp - 0x70], r12d
mov word [rdi + rbx + 2], ax
mov rdi, r12
movzx esi, word [rbp + 0x1808]
mov dword [rbp + 0x1810], esi
mov dword [rbp + 0x5a0], r12d
mov qword [rsp + 0x38], r12
cmp dword [rbp + 0x1808], 0xffffffff
jne 0x140005d64
mov eax, 2
mov edx, eax
mov ecx, eax
lea r8d, [rax + 0xf]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x50], rax
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140005d51
mov edx, r12d
test r13d, r13d
je 0x140005968
mov eax, 1
mov ecx, edx
cmp qword [rbp + rcx*8 - 0x68], r14
je 0x140005968
add edx, eax
cmp edx, r13d
jb 0x140005958
cmp edx, r13d
jne 0x140005985
cmp r13d, 0x40
jae 0x140005985
mov eax, edx
mov qword [rbp + rax*8 - 0x68], r14
mov r13d, dword [rbp - 0x70]
inc r13d
mov dword [rbp - 0x70], r13d
mov eax, 2
mov word [rsp + 0x68], ax
lea ecx, [rax + 0x33]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x6a], ax
xor r9d, r9d
lea rax, [0x1400220f8]
mov r8d, r15d
mov eax, dword [rdi + rax]
mov rdx, rbx
mov dword [rsp + 0x6c], eax
mov rcx, r14
mov eax, recvfrom
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jle 0x140005d3a
mov edx, 4
lea rcx, [rbp + 0x5a0]
lea rax, [rbp - 0x70]
lea r8d, [rdx + 0x7c]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax + 0x70]
add rax, r8
movups xmmword [rcx + 0x60], xmm0
add rcx, r8
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x1400059f0
mov rax, qword [rax]
lea rdx, [rbp + 0x5a0]
mov qword [rcx], rax
xor r9d, r9d
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], r12d
lea ecx, [r14 + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x4c], 0x7a120
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x140005d3a
lea rdx, [rbp + 0x5a0]
mov rcx, r14
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140005d3a
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x7b0]
lea rax, [rsp + 0x78]
mov r8d, 0x100f
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
js 0x140005aca
cdqe
mov byte [rbp + rax + 0x7b0], r12b
lea rcx, [rbp + 0x7bc]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [rbp + 0x7b3]
mov r9d, 1
lea edi, [r9 + rax]
cmp edi, 0x80
jbe 0x140005afb
and cl, 0xf2
or cl, 2
mov byte [rbp + 0x7b3], cl
test cl, 0xf
jne 0x140005d35
movzx ecx, word [rbp + 0x7b6]
call qword [sym.imp.WS2_32.dll_ntohs]
mov cl, byte [rbp + 0x7b3]
mov r9d, 1
movzx esi, ax
mov dword [rbp + 0x1810], esi
cmp ax, 0x32
jbe 0x140005b42
and cl, 0xf2
mov dword [rbp + 0x1810], r12d
or cl, 2
mov esi, r12d
mov byte [rbp + 0x7b3], cl
test cl, 0xf
jne 0x140005d35
mov eax, edi
lea r15, [rbp + 0x7c0]
add r15, rax
mov dword [rbp + 0x1818], r12d
test si, si
je 0x140005d30
cmp dword [rbp + 0x1808], 0xffffffff
jne 0x140005d26
mov byte [rbp + 0x1a0], r12b
mov rdx, r15
mov edi, r12d
mov r8b, r12b
mov esi, r9d
cmp byte [r15], r12b
je 0x140005bde
cmp edi, 0x3ff
jae 0x140005bde
mov cl, byte [rdx]
cmp cl, 0xc0
jb 0x140005bbf
movzx eax, byte [rdx + 1]
mov r8b, r9b
movzx ecx, cl
sub rcx, 0xc0
shl rcx, 8
add rcx, rax
mov eax, ecx
lea rdx, [rbp + rax + 0x7af]
jmp 0x140005bcb
mov eax, edi
add edi, r9d
mov byte [rbp + rax + 0x1a0], cl
add rdx, r9
lea eax, [rsi + 1]
test r8b, r8b
cmovne eax, esi
mov esi, eax
cmp byte [rdx], r12b
jne 0x140005b8c
mov eax, edi
lea rcx, [rbp + 0x1a0]
test r8b, r8b
mov byte [rbp + rax + 0x1a0], r12b
lea eax, [rsi + 1]
cmove eax, esi
xor ebx, ebx
mov dword [rsp + 0x44], eax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r14d, [rbx + 1]
test eax, eax
jle 0x140005c5e
lea rdi, [rbp + 0x1a0]
add rdi, rbx
movsx eax, byte [rdi]
test eax, eax
jle 0x140005c31
lea rsi, [rbp + 0x1a1]
mov ecx, eax
add rsi, rbx
add rbx, rax
add r12d, eax
rep movsb byte [rdi], byte [rsi]
mov byte [rbp + rbx + 0x1a0], 0x2e
lea rcx, [rbp + 0x1a0]
add rbx, r14
add r12d, r14d
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp r12d, eax
jl 0x140005c0c
test rbx, rbx
je 0x140005c5e
mov byte [rbp + rbx + 0x19f], 0
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rdi + 1]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rax
lea r8, [rdi + 1]
lea rdx, [rbp + 0x1a0]
mov r12, rax
call fcn.1400090b0
mov ecx, dword [rsp + 0x44]
add r15, rcx
mov rsi, r15
add r15, 0xa
movzx ecx, word [rsi]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, word [rsi + 2]
movzx edi, ax
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, word [rsi + 8]
movzx ebx, ax
call qword [sym.imp.WS2_32.dll_ntohs]
cmp di, r14w
jne 0x140005ce2
cmp bx, r14w
jne 0x140005ce2
mov ecx, dword [r15]
mov dword [rbp + 0x1808], ecx
movzx eax, ax
add r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rbp + 0x1818]
mov r9d, 1
mov esi, dword [rbp + 0x1810]
add eax, r9d
movzx ecx, si
mov dword [rbp + 0x1818], eax
lea r12d, [r9 - 1]
cmp eax, ecx
jl 0x140005b67
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov r15d, dword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov edx, 2
mov rcx, r14
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
add rdi, 4
mov qword [rsp + 0x38], rdi
cmp rdi, 0x14
jb 0x140005919
mov r14, qword [rsp + 0x60]
test r14, r14
je 0x140005d82
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rbp + 0x1808]
mov rbx, qword [rsp + 0x1900]
add rsp, 0x18c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret