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

Disassembly:
mov r11, rsp
push rbp
push rbx
push r15
lea rbp, [r11 - 0xb8]
sub rsp, 0x1a0
mov rax, qword [0x1400f3e08]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov qword [r11 + 0x18], rsi
xor eax, eax
mov qword [r11 - 0x20], rdi
lea rsi, [rdx + 0x30]
xor ebx, ebx
mov qword [r11 - 0x30], r13
test byte [rdx + 0xda], 0x40
xorps xmm0, xmm0
mov r15, 0xffffffffffffffff
mov qword [r11 - 0x38], r14
mov rdi, rdx
mov qword [rsp + 0x60], rax
lea r13d, [rbx + 1]
mov dword [rsp + 0x68], eax
mov r14, rcx
mov qword [rsp + 0x30], r15
movups xmmword [rsp + 0x50], xmm0
je 0x140065970
lea r8d, [rbx + 6]
mov edx, r13d
lea ecx, [rbx + 0x17]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, r15
jne 0x140065893
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x1400f8b3e], 4
mov r14d, eax
je 0x140065877
lea rax, [rsp + 0x30]
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x40], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x30], rax
lea rax, str.socket
mov qword [rbp - 0x20], rax
lea rdx, [0x1400cfe40]
lea rax, [rbp - 0x50]
mov dword [rsp + 0x40], r14d
mov r9d, 4
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rdi
mov qword [rbp - 0x38], 8
mov qword [rbp - 0x28], 4
call fcn.140001460
test r14d, r14d
jg 0x140065884
mov ebx, r14d
jmp 0x1400660c6
movzx ebx, r14w
or ebx, 0x80070000
jmp 0x1400660c6
mov edx, 0x29
mov dword [rsp + 0x48], ebx
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov rcx, rax
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, r15d
jne 0x1400658f3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x1400f8b3e], 4
mov r14d, eax
je 0x140065877
lea rax, [rsp + 0x30]
mov qword [rbp - 0x18], reloc.WS2_32.dll_recv
mov qword [rbp - 0x40], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x30], rax
lea rax, str.Set_IPV6_V6ONLY
jmp 0x14006583e
cmp byte [rdi + 0x39], bl
je 0x14006595f
mov rcx, qword [rsi]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov dword [rsp + 0x48], r13d
mov r8d, 4
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, r15d
jne 0x14006595f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x1400f8b3e], 4
mov r14d, eax
je 0x140065877
lea rax, [rsp + 0x30]
mov qword [rbp - 0x18], SafeArrayGetElement
mov qword [rbp - 0x40], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x30], rax
lea rax, str.Set_SO_REUSEADDR
jmp 0x14006583e
lea rcx, [rdi + 0x80]
lea rdx, [rsp + 0x50]
call fcn.14005ecc0
mov rcx, r14
mov qword [rsp + 0x190], r12
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
test byte [rdi + 0xda], 0x40
je 0x140065eff
cmp word [rsp + 0x50], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x40], 0x40
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
jne 0x1400659ce
movzx edx, word [rsp + 0x52]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x54]
call qword [sym.imp.ntdll.dll_RtlIpv4AddressToStringExA]
jmp 0x1400659f0
movzx r8d, word [rsp + 0x52]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_RtlIpv6AddressToStringExA]
test byte [0x1400f8b3e], 0x80
je 0x140065a5a
lea rax, [rsp + 0x70]
mov r8, r15
mov qword [rsp + 0x28], rax
lea r9, str._data___p__Binding_TCP_socket_to__s
mov edx, 0x80
mov qword [rsp + 0x20], rdi
lea rcx, [rbp - 0x10]
call fcn.1400015d0
lea rcx, [rbp - 0x10]
mov rax, r15
inc rax
cmp byte [rcx + rax], bl
jne 0x140065a27
inc eax
mov dword [rbp - 0x34], ebx
mov dword [rbp - 0x38], eax
lea rcx, [rbp - 0x10]
lea rax, [rbp - 0x50]
mov qword [rbp - 0x40], rcx
mov r9d, 2
mov qword [rsp + 0x20], rax
lea rdx, [0x1400d0798]
call fcn.140001460
mov rcx, qword [rsi]
lea rdx, [rsp + 0x50]
mov r8d, 0x1c
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, r15d
jne 0x140065acc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x1400f8b3e], 4
mov r15d, eax
je 0x140065eb9
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
mov qword [rbp - 0x40], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x30], rax
lea rax, str.bind
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x50]
mov qword [rbp - 0x38], 8
mov qword [rbp - 0x28], 4
mov qword [rbp - 0x18], 5
jmp 0x140065e9d
test byte [rdi + 0xd6], r13b
je 0x140065e27
xor eax, eax
lea rcx, [rdi + 0x9c]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x68], eax
movups xmmword [rsp + 0x50], xmm0
call fcn.14005ecc0
mov rcx, qword [rsi]
lea r8, [rsp + 0x4c]
xor eax, eax
mov dword [rsp + 0x4c], 0x1c
xorps xmm2, xmm2
mov qword [rbp - 0x40], rax
lea rdx, [rbp - 0x50]
mov dword [rbp - 0x38], eax
movups xmmword [rbp - 0x50], xmm2
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, r15d
jne 0x140065b51
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x1400f8b3e], 4
mov r15d, eax
je 0x140065eb9
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x30]
jmp 0x140065e69
movzx r12d, word [rbp - 0x4e]
mov edx, 2
lea ecx, [rdx + 0x15]
lea r8d, [rdx + 0xf]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x30], rax
cmp rax, r15
jne 0x140065c07
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x1400f8b3e], 4
mov r15d, eax
je 0x140065be2
lea rax, [rsp + 0x38]
mov qword [rbp + 0x28], reloc.WS2_32.dll_recv
mov qword [rbp], rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x10], rax
lea rax, str.temp_udp_socket
mov qword [rbp + 0x20], rax
lea rdx, [0x1400cfe40]
lea rax, [rbp - 0x10]
mov dword [rsp + 0x40], r15d
mov r9d, 4
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], rdi
mov qword [rbp + 8], 8
mov qword [rbp + 0x18], 4
call fcn.140001460
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test r15d, r15d
jg 0x140065bf8
mov ebx, r15d
jmp 0x1400660b9
movzx ebx, r15w
or ebx, 0x80070000
jmp 0x1400660b9
mov edx, 0x29
mov dword [rsp + 0x48], ebx
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov rcx, rax
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, r15d
jne 0x140065c67
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x1400f8b3e], 4
mov r15d, eax
je 0x140065be2
lea rax, [rsp + 0x38]
mov qword [rbp + 0x28], 0x22
mov qword [rbp], rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x10], rax
lea rax, str.Set_IPV6_V6ONLY__temp_udp_socket_
jmp 0x140065ba9
xor eax, eax
lea rdx, [rbp - 0x50]
xorps xmm0, xmm0
mov qword [rbp - 0x40], rax
lea rcx, [rdi + 0x80]
mov dword [rbp - 0x38], eax
movups xmmword [rbp - 0x50], xmm0
call fcn.14005ecc0
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp - 0x50]
mov r8d, 0x1c
mov word [rbp - 0x4e], bx
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, r15d
jne 0x140065ce1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x1400f8b3e], 4
mov r15d, eax
je 0x140065be2
lea rax, [rsp + 0x38]
mov qword [rbp + 0x28], reloc.OLEAUT32.dll_SafeArrayUnaccessData
mov qword [rbp], rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x10], rax
lea rax, str.bind__temp_udp_socket_
jmp 0x140065ba9
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 0x1c
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, r15d
jne 0x140065d38
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x1400f8b3e], 4
mov r15d, eax
je 0x140065be2
lea rax, [rsp + 0x38]
mov qword [rbp + 0x28], 0x21
mov qword [rbp], rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x10], rax
lea rax, str.connect_failed__temp_udp_socket_
jmp 0x140065ba9
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x4c]
lea rdx, [rdi + 0x80]
mov dword [rsp + 0x4c], 0x1c
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, r15d
jne 0x140065d98
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x1400f8b3e], 4
mov r15d, eax
je 0x140065be2
lea rax, [rsp + 0x38]
mov qword [rbp + 0x28], 0x1e
mov qword [rbp], rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x10], rax
lea rax, str.getsockname__temp_udp_socket_
jmp 0x140065ba9
lea rdx, [rdi + 0x80]
lea rcx, [rdi + 0x80]
call fcn.14005ed90
mov word [rdi + 0x82], r12w
test r12w, r12w
jne 0x140065eff
test byte [0x1400f8b38], 4
je 0x140065e20
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x441
mov qword [rbp], rax
lea rdx, [0x1400d0898]
lea rax, str.C:Users_adminDownloadsquicreach_mainquicreachmsquic_srcplatformdatapath_raw_socket.c
mov qword [rbp + 8], 4
mov qword [rbp + 0x10], rax
mov r9d, 4
lea rax, str.Socket__LocalAddress.Ipv4.sin_port___0
mov qword [rbp + 0x18], 0x5c
mov qword [rbp + 0x20], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x28], 0x28
call fcn.140001460
int 0x2c
jmp 0x140065eff
mov rcx, qword [rsi]
lea r8, [rsp + 0x4c]
lea rdx, [rdi + 0x80]
mov dword [rsp + 0x4c], 0x1c
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, r15d
jne 0x140065eec
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x1400f8b3e], 4
mov r15d, eax
je 0x140065eb9
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x38]
mov qword [rbp], rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x10], rax
lea rax, str.getsockname
mov qword [rbp + 0x20], rax
lea rax, [rbp - 0x10]
mov qword [rbp + 8], 8
mov qword [rbp + 0x18], 4
mov qword [rbp + 0x28], recv
mov r9d, 4
mov dword [rsp + 0x40], r15d
lea rdx, [0x1400cfe40]
mov qword [rsp + 0x20], rax
call fcn.140001460
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test r15d, r15d
jg 0x140065ed6
mov ebx, r15d
mov r15, 0xffffffffffffffff
jmp 0x1400660be
movzx ebx, r15w
mov r15, 0xffffffffffffffff
or ebx, 0x80070000
jmp 0x1400660be
lea rdx, [rdi + 0x80]
lea rcx, [rdi + 0x80]
call fcn.14005ed90
movzx r8d, word [rdi + 0x82]
lea rdx, [rbp - 0x50]
test r8, r8
lea rcx, [r14 + 8]
cmove r8, r13
call fcn.14005c970
mov r10, qword [rbp - 0x48]
mov r9, qword [rbp - 0x50]
mov rdx, qword [r10]
cmp r9, rdx
je 0x140066033
cmp qword [rdx + 0x10], r8
jne 0x140066033
mov r11, qword [rbp - 0x40]
nop dword [rax]
cmp byte [rdx + 0x38], bl
jne 0x140066029
cmp word [rdx + 0x80], 2
jne 0x140065f61
mov eax, dword [rdx + 0x84]
cmp eax, dword [rdi + 0x84]
jmp 0x140065f82
mov rax, qword [rdx + 0x88]
sub rax, qword [rdi + 0x88]
jne 0x140065f7f
mov rax, qword [rdx + 0x90]
sub rax, qword [rdi + 0x90]
test rax, rax
sete al
test al, al
je 0x140065fe5
movzx ecx, word [rdx + 0x9c]
cmp cx, word [rdi + 0x9c]
jne 0x140065fe5
movzx eax, word [rdi + 0x9e]
cmp word [rdx + 0x9e], ax
jne 0x140065fe5
cmp cx, 2
jne 0x140065fbd
mov eax, dword [rdx + 0xa0]
cmp eax, dword [rdi + 0xa0]
jmp 0x140065fde
mov rax, qword [rdx + 0xa4]
sub rax, qword [rdi + 0xa4]
jne 0x140065fdb
mov rax, qword [rdx + 0xac]
sub rax, qword [rdi + 0xac]
test rax, rax
sete al
test al, al
jne 0x140066029
mov r8, qword [r10]
mov rdx, qword [r8]
cmp rdx, r9
je 0x140066033
cmp dword [r14 + 0x20], ebx
je 0x140066017
mov rcx, rdx
nop dword [rax]
mov rdx, rcx
cmp qword [rcx + 0x10], rbx
jne 0x140066017
mov rax, qword [rcx]
mov r8, rcx
mov rcx, rax
cmp rax, r9
jne 0x140066000
cmp qword [rdx + 0x10], r11
jne 0x140066033
mov r10, r8
mov qword [rbp - 0x48], r8
jmp 0x140065f40
mov ebx, 0x80072740
jmp 0x1400660b0
movzx r8d, word [rdi + 0x82]
test r8, r8
cmove r8, r13
mov qword [rdi + 0x10], r8
inc dword [r14 + 0x18]
test r9, r9
jne 0x140066064
lea rdx, [rbp - 0x50]
lea rcx, [r14 + 8]
call fcn.14005c970
mov r10, qword [rbp - 0x48]
mov r9, qword [rbp - 0x50]
cmp qword [r9], r9
jne 0x14006606d
inc dword [r14 + 0x1c]
mov rax, qword [r10]
mov qword [rdi], rax
mov qword [rdi + 8], r10
mov qword [rax + 8], rdi
mov qword [r10], rdi
mov eax, dword [r14 + 0x1c]
shl eax, 2
cmp dword [r14 + 0x18], eax
jbe 0x1400660b0
nop dword [rax + rax]
lea rcx, [r14 + 8]
call fcn.14005ce40
test al, al
je 0x1400660b0
add r13d, 0xffffffff
je 0x1400660b0
mov eax, dword [r14 + 0x1c]
shl eax, 2
cmp dword [r14 + 0x18], eax
ja 0x140066090
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x190]
mov r14, qword [rsp + 0x180]
mov r13, qword [rsp + 0x188]
mov rdi, qword [rsp + 0x198]
test ebx, ebx
jns 0x1400660f1
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
je 0x1400660f1
call qword [sym.imp.WS2_32.dll_closesocket]
mov rsi, qword [rsp + 0x1d0]
cmp r15, 0xffffffffffffffff
je 0x140066108
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebx
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14007f5b0
add rsp, 0x1a0
pop r15
pop rbx
pop rbp
ret