Function at 0x140138f60
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x68]
sub rsp, 0x168
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rcx, qword [rbp + 0xb0]
xor r13d, r13d
mov r15d, dword [rbp + 0xc8]
mov r14d, r13d
mov rbx, qword [rbp + 0xc0]
mov eax, r15d
mov rsi, qword [rbp + 0xb8]
neg eax
mov qword [rcx], r13
mov rax, qword [0x140241ac8]
sbb r12d, r12d
mov qword [rsp + 0x40], rcx
add r12d, 2
lea ecx, [r13 + 0x38]
mov qword [rsp + 0x38], rbx
call qword [case.0x1400cd6b1.0]
mov rdi, rax
test rax, rax
jne 0x140138ff6
lea eax, [rdi + 0xf]
jmp 0x14013934d
mov qword [rax + 0x10], r13
xor ecx, ecx
mov qword [rax + 0x18], r13
mov qword [rax + 0x20], r13
mov qword [rax + 0x28], r13
mov qword [rax + 0x30], r13
mov qword [rax + 8], 0xffffffffffffffff
mov qword [rax], rbx
call fcn.14012b9c0
mov ecx, r13d
mov qword [rdi + 0x30], rax
test r15d, r15d
setne cl
mov dword [rsp + 0x34], ecx
mov dword [rdi + 0x24], ecx
test rax, rax
jne 0x14013903d
lea ebx, [rax + 0xf]
jmp 0x1401392f6
mov rbx, qword [rdi]
test r15d, r15d
je 0x14013904b
movzx ecx, word [rbx + 0x1e]
jmp 0x14013904f
movzx ecx, word [rbx + 0x1c]
mov eax, dword [rbx + 8]
mov edx, 2
lea r8d, [rdx + 0x15]
cmp eax, edx
je 0x14013909a
cmp eax, r8d
je 0x14013906c
lea ebx, [rdx + 7]
jmp 0x1401392f6
mov r13d, 0x1c
mov dword [rsp + 0x54], r14d
mov word [rsp + 0x50], r8w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
movups xmm0, xmmword [rbx + 0xc]
movups xmmword [rsp + 0x58], xmm0
mov eax, dword [rbx + 0x60]
mov dword [rsp + 0x68], eax
jmp 0x1401390bc
mov r13d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x58], r14
mov word [rsp + 0x50], dx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax + 8]
mov rax, qword [rsi + 0x118]
test rax, rax
je 0x1401390ed
mov rax, qword [rax]
test rax, rax
je 0x1401390ed
mov r9, qword [rsi + 0x120]
xor r8d, r8d
mov edx, r12d
call qword [case.0x1400cd6b1.0]
jmp 0x1401390f9
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1401392f1
mov rcx, rdi
call fcn.140139520
mov ebx, eax
test eax, eax
jne 0x1401392f6
mov rax, qword [rsi + 0x108]
test rax, rax
je 0x140139141
mov r8, qword [rsi + 0x110]
mov edx, r12d
mov rcx, qword [rdi + 8]
call qword [case.0x1400cd6b1.0]
test eax, eax
js 0x1401392f1
test byte [rdi + 0x24], 2
jne 0x1401392f1
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
mov r9, qword [rax + 0x228]
mov rax, qword [r9 + 0x118]
test rax, rax
je 0x140139185
mov rax, qword [rax + 0x10]
test rax, rax
je 0x140139185
mov r9, qword [r9 + 0x120]
lea rdx, [rsp + 0x50]
mov r8d, r13d
call qword [case.0x1400cd6b1.0]
jmp 0x140139193
mov r8d, r13d
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp ebx, 0xffffffff
jne 0x1401391b1
add eax, 0xffffd8cd
cmp eax, 1
jbe 0x1401391b1
mov ebx, ntohs
jmp 0x1401391b3
xor ebx, ebx
test ebx, ebx
jne 0x1401392f6
mov rax, qword [rsi + 0xf8]
test rax, rax
je 0x1401391e3
mov r8, qword [rsi + 0x100]
mov edx, r12d
mov rcx, qword [rdi + 8]
call qword [case.0x1400cd6b1.0]
test eax, eax
js 0x1401392f1
mov eax, dword [rdi + 0x24]
test al, 2
je 0x1401391f0
or eax, 4
mov dword [rdi + 0x24], eax
mov dword [rsp + 0x30], 0x80
cmp dword [rdi + 0x10], r14d
jne 0x14013926e
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x30]
xorps xmm0, xmm0
lea rdx, [rbp - 0x30]
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1401392f1
mov rax, qword [rbp - 0x30]
cmp ax, 2
jne 0x140139254
shr rax, 0x20
mov dword [rdi + 0x14], eax
mov eax, 2
jmp 0x14013926b
cmp ax, 0x17
jne 0x1401392f1
movups xmm0, xmmword [rbp - 0x28]
mov eax, reloc.WS2_32.dll_socket
movups xmmword [rdi + 0x14], xmm0
mov dword [rdi + 0x10], eax
mov rbx, qword [rsp + 0x38]
mov rdx, rdi
mov rcx, qword [rbx + 0x70]
test r15d, r15d
je 0x140139286
call fcn.14012bb90
jmp 0x14013928b
call fcn.14012bb00
mov r14, rax
test rax, rax
jne 0x140139298
lea ebx, [rax + 0xf]
jmp 0x1401392f6
mov rdx, qword [rdi + 8]
mov r8, r14
mov rcx, qword [rsi + 0xe0]
call fcn.14012c960
test eax, eax
jne 0x1401392b4
lea ebx, [rax + 0xf]
jmp 0x1401392f6
mov rax, qword [rsi + 0xe8]
test rax, rax
je 0x1401392dc
mov r9d, dword [rsp + 0x34]
mov r8d, 1
mov rdx, qword [rdi + 8]
mov rcx, qword [rsi + 0xf0]
call qword [case.0x1400cd6b1.0]
test r15d, r15d
je 0x1401392e5
mov qword [rbx + 0x78], rdi
mov rax, qword [rsp + 0x40]
xor ebx, ebx
mov qword [rax], rdi
jmp 0x14013934b
mov ebx, ntohs
mov rcx, r14
call fcn.14012bc60
mov rcx, qword [rdi + 0x30]
call fcn.14012ba00
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x14013933b
mov rax, qword [rsi + 0x118]
test rax, rax
je 0x140139335
mov rax, qword [rax + 8]
test rax, rax
je 0x140139335
mov rdx, qword [rsi + 0x120]
call qword [case.0x1400cd6b1.0]
jmp 0x14013933b
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [0x140241ad8]
mov rcx, rdi
call qword [case.0x1400cd6b1.0]
mov eax, ebx
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140144310
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret