Function at 0x1400bbba0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140136348]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r13d, dword [rbp + 0x120]
mov r12d, r9d
mov rsi, 0xffffffffffffffff
mov dword [rsp + 0x28], 0x81
mov r14, r8
mov r15d, edx
mov r8d, edx
mov ebx, ecx
xor eax, eax
mov edx, ecx
lea ecx, [rsi + 3]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov rdi, rsi
and r12d, 0x40
and r13d, 0x40
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rsp + 0x40], rax
cmp rax, rsi
je 0x1400bbe70
xor r8d, r8d
lea edx, [rsi + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400bbe68
mov eax, 2
mov ecx, 0x7f000001
mov word [rbp - 0x80], ax
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rsp + 0x40]
lea r8d, [rsi + 0x11]
mov dword [rbp - 0x7c], eax
lea rdx, [rbp - 0x80]
xor eax, eax
mov word [rbp - 0x7e], ax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x1400bbe70
mov rcx, qword [rsp + 0x40]
lea edx, [rsi + 2]
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x1400bbe70
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x4c]
lea rdx, [rbp - 0x80]
mov dword [rsp + 0x4c], select
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400bbe70
test r12d, r12d
lea ecx, [rsi + 3]
mov r8d, r15d
mov edx, ebx
setne al
xor r12d, r12d
sub eax, 0xffffff80
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, rdi
je 0x1400bbe70
xor r8d, r8d
lea edx, [rdi + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400bbe68
lea r8d, [rdi + 0x11]
mov rcx, rsi
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1400bbe70
mov eax, r12d
lea ecx, [rdi + 3]
test r13d, r13d
mov r8d, r15d
mov edx, ebx
setne al
xor r9d, r9d
sub eax, 0xffffff80
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400bbe70
xor r8d, r8d
lea edx, [r12 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400bbe68
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.1400ca520
test eax, eax
jne 0x1400bbd75
mov ebx, 0x273f
jmp 0x1400bbe78
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r8, [rbp - 0x70]
xorps xmm0, xmm0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov rdx, rdi
mov dword [rsp + 0x20], 0x80
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [rsp + 0x58]
test eax, eax
jne 0x1400bbe2d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x3e5
jne 0x1400bbe78
lea rax, [rsp + 0x50]
xor r9d, r9d
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x1400bbe2d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x3e4
jne 0x1400bbe78
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
lea rax, [rsp + 0x50]
xor r9d, r9d
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x1400bbdf4
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x700b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400bbe70
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov qword [r14], rsi
mov qword [r14 + 8], rdi
jmp 0x1400bbeae
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400bbe76
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x1400bbe89
call qword [sym.imp.WS2_32.dll_closesocket]
cmp rsi, 0xffffffffffffffff
je 0x1400bbe98
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
cmp rdi, 0xffffffffffffffff
je 0x1400bbea7
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, ebx
call fcn.1400b5700
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400cb6d0
mov rbx, qword [rsp + 0x218]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret