Function at 0x140116f25
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, 0xf8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x70], 0xfffffffffffffffe
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x140117377
lea rsi, str.127.0.0.1:34254
lea rcx, [rbp + 0x50]
mov qword [rcx], rsi
mov qword [rcx + 8], 0xf
call fcn.140062570
mov rdi, rax
test dil, 1
je 0x140116ff1
mov rbx, qword [rbp + 0x58]
test rbx, rbx
je 0x140116fc2
mov rax, qword [rbp + 0x50]
lea rcx, [rbx - 1]
mov dl, byte [rax]
inc rax
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rcx
cmp dl, 0x3a
jne 0x140116fc2
lea rdx, [rbp - 0x10]
mov dword [rdx + 0x10], 0xa
and qword [rdx], 0
mov byte [rdx + 0x14], 1
lea rcx, [rbp + 0x50]
call fcn.140062fb0
cmp ax, 1
jne 0x140116fc4
jmp 0x140116fcd
xor eax, eax
mov qword [rbp + 0x58], rbx
test ax, ax
je 0x140116ff1
movabs rax, 0xffffffff00
and rdi, rax
shr rdi, 8
movzx eax, dx
shl rax, 0x30
shl rdi, 0x10
or rdi, rax
push 1
pop rax
jmp 0x140116ff5
xor edi, edi
xor eax, eax
or rax, rdi
test ax, ax
je 0x14011722f
movzx eax, ax
cmp eax, 1
jne 0x14011723b
cmp qword [rbp + 0x58], 0
jne 0x14011723b
mov eax, dword [rbp - 8]
mov dword [rbp - 0x28], eax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x30], rax
mov al, byte [0x14036f2c8]
push 0x20
pop rcx
push 4
pop rdx
call fcn.14005d760
test rax, rax
je 0x14011738f
and word [rax], 0
mov rcx, rdi
shr rcx, 0x10
shr rdi, 0x30
mov word [rax + 6], di
mov dword [rax + 2], ecx
mov rcx, qword [rbp - 0x30]
mov qword [rax + 8], rcx
mov ecx, dword [rbp - 0x28]
mov dword [rax + 0x10], ecx
and dword [rax + 0x14], 0
mov rcx, rax
add rcx, 0x20
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 1
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rcx
mov rax, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
mov qword [rbp], rdx
mov rdx, qword [rbp + 0x38]
mov qword [rbp + 8], rdx
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rcx
mov rax, qword [rbp]
mov rcx, qword [rbp + 8]
mov qword [rbp - 0x38], rcx
xor r12d, r12d
cmp rax, qword [rbp - 0x38]
je 0x1401172f4
lea r14, [rax + 0x20]
mov qword [rbp], r14
movzx ebx, word [rax]
cmp bx, 2
je 0x1401172f4
mov edi, dword [rax + 0x14]
mov r15d, dword [rax + 0x18]
movzx esi, word [rax + 0x1c]
movzx eax, word [r14 - 0xe]
mov word [rbp + 0x30], ax
movups xmm0, xmmword [r14 - 0x1e]
movaps xmmword [rbp + 0x20], xmm0
mov rax, qword [0x14036f228]
cmp rax, 3
je 0x140117104
mov qword [rbp - 0x20], r12
call fcn.1402855b0
mov dword [rbp + 0x4c], r15d
mov qword [rbp - 0x18], r12
push 2
pop r13
test bx, bx
je 0x140117119
push 0x17
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 0x140117152
test bx, bx
je 0x1401171b4
mov ax, 0x17
movups xmm0, xmmword [rbp + 0x22]
push 0x1c
jmp 0x1401171c4
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x14011716d
mov r12d, eax
cmp eax, 0x2726
jne 0x140117207
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 0x140117224
mov r15, rax
mov rcx, rax
push 1
pop rdx
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x140117141
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1401171fb
movzx esi, word [rbp + 0x24]
mov edi, dword [rbp + 0x20]
mov ax, 2
xorps xmm0, xmm0
push 0x10
pop r8
rol si, 8
mov word [rbp + 0x50], ax
mov word [rbp + 0x52], si
mov dword [rbp + 0x54], edi
movups xmmword [rbp + 0x58], xmm0
mov eax, dword [rbp + 0x4c]
mov dword [rbp + 0x68], eax
mov rcx, r15
lea rdx, [rbp + 0x50]
call qword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140117316
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 - 0x20], r12
mov rcx, qword [rbp - 0x18]
call fcn.14009d7ec
mov rax, r14
jmp 0x1401170b2
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r12d, eax
jmp 0x140117207
mov qword [rbp + 0x50], rsi
mov qword [rbp + 0x58], 0xf
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], 0xf
and qword [rbp], 0
mov qword [rbp + 0x10], 1
movabs rax, 0x3a0000003a
mov qword [rbp + 0x18], rax
push 0xf
pop rdi
mov cl, 0x3a
mov rdx, rsi
mov r8, rdi
call fcn.140065c60
cmp rax, 1
jne 0x140117293
mov rdi, rdx
cmp rdx, 0xf
jae 0x140117289
mov al, byte [rdi + rsi]
cmp al, byte [rbp + 0x18]
je 0x1401172b4
mov qword [rbp + 8], rdi
cmp rdi, 0xf
jbe 0x140117265
lea rcx, str.HR__
call fcn.1400990ec
nop
add rsp, 0xf8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rdi + rsi]
inc rcx
push 0xe
pop rdx
sub rdx, rdi
call fcn.140067730
test al, 1
jne 0x14011730d
shr eax, 0x10
lea rdx, [rbp - 0x10]
mov qword [rdx], rsi
mov qword [rdx + 8], rdi
mov word [rdx + 0x10], ax
lea rsi, [rbp + 0x50]
mov rcx, rsi
call fcn.140126860
cmp qword [rsi], 0
je 0x140117345
mov rcx, qword [rbp + 0x58]
jmp 0x14011729a
lea rcx, [rbp - 0x10]
call fcn.140116efc
test r12, r12
lea rcx, str.0e__
cmovne rcx, r12
jmp 0x14011729a
lea rcx, str.xR__
jmp 0x14011729a
lea rcx, [rbp - 0x10]
call fcn.140116efc
mov rcx, qword [rbp - 0x18]
call fcn.14009d7ec
mov rcx, r15
add rsp, 0xf8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp qword [sym.imp.ws2_32.dll_closesocket]
mov rax, qword [rbp + 0x58]
movups xmm0, xmmword [rbp + 0x60]
lea rdx, [rbp - 0x50]
movups xmmword [rdx + 8], xmm0
mov qword [rdx], rax
lea rsi, [rbp + 0x20]
mov rcx, rsi
call fcn.140126a50
cmp qword [rsi], 0
jne 0x140117083
mov rcx, qword [rbp + 0x28]
jmp 0x14011729a
lea rcx, str.called__Option::unwrap____on_a__None__valueC:Users_admin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinapi_util_0.1.5_srcwin.rs
lea r8, str._rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_std_src_synconce.rs
push 0x2b
pop rdx
call fcn.140281860
ud2
push 4
pop rcx
push 0x20
pop rdx
call fcn.140281350
ud2