Function at 0x14001d236
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x14001d477
lea rdx, str.127.0.0.1:0C:Usersdiddy.cargo_registry_srcindex.crates.io_6f17d22bba15001fmio_1.0.2_src_syswindowsmod.rs
lea rsi, [rbp - 0x10]
push 0xb
pop r8
mov rcx, rsi
call fcn.1400345a0
cmp qword [rsi], 0
je 0x14001d42a
lea rax, [rbp - 0x10]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x50], xmm0
xor r12d, r12d
mov rax, qword [rbp - 0x48]
cmp rax, qword [rbp - 0x38]
je 0x14001d411
lea rcx, [rax + 0x20]
mov qword [rbp - 0x48], rcx
movzx esi, word [rax]
cmp si, 2
je 0x14001d411
mov edi, dword [rax + 0x14]
mov r14d, dword [rax + 0x18]
movzx ebx, word [rax + 0x1c]
movzx ecx, word [rax + 0x12]
mov word [rbp - 0x20], cx
movups xmm0, xmmword [rax + 2]
movaps xmmword [rbp - 0x30], xmm0
mov eax, dword [0x140085270]
cmp eax, 3
je 0x14001d2f1
mov qword [rbp + 0x10], r12
call fcn.14006117e
mov qword [rbp + 0x18], r12
push 0x17
pop r13
test sil, 1
jne 0x14001d303
push 2
pop r13
mov dword [rsp + 0x28], 0x81
and dword [rsp + 0x20], 0
mov ecx, r13d
push 2
pop rdx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14001d33d
test sil, 1
je 0x14001d39f
mov ax, 0x17
movups xmm0, xmmword [rbp - 0x2e]
push 0x1c
jmp 0x14001d3af
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x14001d358
mov r12d, eax
cmp eax, 0x2726
jne 0x14001d3ec
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], 0
mov ecx, r13d
push 2
pop rdx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14001d406
mov r15, rax
mov rcx, rax
push 1
pop rdx
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x14001d32b
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x14001d3e0
movzx ebx, word [rbp - 0x2c]
mov edi, dword [rbp - 0x30]
xorps xmm0, xmm0
mov ax, 2
push 0x10
pop r8
rol bx, 8
mov word [rbp - 0x10], ax
mov word [rbp - 0xe], bx
mov dword [rbp - 0xc], edi
movups xmmword [rbp - 8], xmm0
mov dword [rbp + 8], r14d
mov rcx, r15
lea rdx, [rbp - 0x10]
call qword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x14001d448
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r12d, eax
mov rcx, r15
call qword [sym.imp.ws2_32.dll_closesocket]
shl r12, 0x20
or r12, 2
mov qword [rbp + 0x10], r12
mov rcx, qword [rbp + 0x18]
call fcn.14001b0ce
jmp 0x14001d29f
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r12d, eax
jmp 0x14001d3ec
lea rcx, [rbp - 0x50]
call fcn.14001b0b6
test r12, r12
lea rcx, str.could_not_resolve_to_any_addresses
cmovne rcx, r12
jmp 0x14001d42e
mov rcx, qword [rbp - 8]
call fcn.14001df6b
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp - 0x50]
call fcn.14001b0b6
mov rcx, qword [rbp + 0x18]
call fcn.14001b0ce
mov rcx, r15
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp qword [sym.imp.ws2_32.dll_closesocket]
lea rcx, str._rustc_363ae4188316b8b22cf6c1890bc73d84d05f70a4library_std_src_synconce.rs
call fcn.14005f730
int3