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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xd0
movzx eax, word [rcx + 0x42c]
lea rdi, str.Unable_to_connect
xor r15d, r15d
mov word [rbp + 0x5f], ax
mov qword [rbp + 0x6f], r15
mov r12d, r9d
mov rsi, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
je 0x1403be35c
add rcx, 0x208
call fcn.1403ada50
mov rdx, rsi
mov rcx, rbx
call fcn.1403beab0
mov rdx, rsi
mov rcx, rbx
call fcn.1403c6f40
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
xorps xmm0, xmm0
mov qword [rsp + 0x118], r13
xor eax, eax
lea rcx, [rbx + 0x2b0]
movups xmmword [rbp - 0x51], xmm0
mov qword [rbp + 0xf], rax
movups xmmword [rbp - 0x41], xmm0
mov dword [rbp + 0x17], eax
movups xmmword [rbp - 0x31], xmm0
mov word [rbp + 0x1b], ax
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
call fcn.1403b47a0
test eax, eax
je 0x1403be3e7
test r12d, r12d
je 0x1403be404
cmp dword [rbx + 0x320], r15d
jne 0x1403be404
cmp qword [rbx + 0x3f8], 0xffffffffffffffff
jne 0x1403be404
cmp dword [rbx + 0x308], r15d
jne 0x1403be404
mov rcx, qword [rbx]
lea r8, [rbx + 0x208]
lea r9, [0x1403bea60]
mov word [rbx + 0x400], 0x200
xor edx, edx
mov qword [rsp + 0x20], 0xf4240
call fcn.1403ada70
mov rax, rbx
mov r13, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
movzx eax, word [rbx + 0x400]
mov edx, 0x202
mov ecx, 1
mov r13, 0xffffffffffffffff
cmp eax, edx
jne 0x1403be4de
mov rcx, qword [rbx + 0x3f8]
cmp rcx, r13
je 0x1403be4d9
cmp dword [rbx + 0x320], r15d
jne 0x1403be44a
cmp qword [rbx + 0x218], r15
je 0x1403be904
lea rdx, [rbx + 0x338]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1403be9b2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2748
je 0x1403be9b2
cmp eax, 0x2735
jne 0x1403be492
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x10]
call fcn.1403b61f0
xor eax, eax
jmp 0x1403be3ea
test eax, eax
je 0x1403be9ab
cmp eax, 0x2726
je 0x1403be9ab
cmp eax, 0x2733
je 0x1403be9ab
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.conn_fail:__d
mov edx, gethostbyname
mov r9d, eax
lea rcx, [rsp + 0x30]
call fcn.1403ac8d0
lea rdi, [rsp + 0x30]
jmp 0x1403be904
mov ecx, 1
test r14, r14
je 0x1403be51e
cmp byte [r14], 0x2b
jne 0x1403be51e
xorps xmm0, xmm0
mov word [rbp - 0x51], cx
lea r15, [rbx + 0x338]
mov r8d, WSAGetLastError
lea rcx, [rbp - 0x4f]
lea rdx, [r14 + 1]
movups xmmword [r15], xmm0
call fcn.140564ae0
cmp byte [rbp - 0x4f], 0x40
mov byte [rbp + 0x1c], 0
jne 0x1403be575
mov byte [rbp - 0x4f], 0
jmp 0x1403be575
cmp dword [rbx + 0x320], 0
je 0x1403be95a
mov rdi, qword [rbx + 0x318]
mov rcx, rdi
call fcn.1403b4940
movups xmm0, xmmword [rdi + 0x28]
lea r15, [rbx + 0x338]
xor edx, edx
lea r8, str.lws_free
mov qword [rbp + 0x6f], r15
mov rcx, rdi
movups xmmword [r15], xmm0
call fcn.1403aacd0
movzx ecx, word [rbp + 0x5f]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 0x33a], ax
mov r12d, reloc.WS2_32.dll_recv
cmp qword [rbx + 0x3f8], r13
jne 0x1403be789
mov rax, qword [rbx]
lea rsi, [rbx + 0x3f8]
mov rcx, qword [rax + 0x548]
mov rax, qword [rcx + 0x38]
test rax, rax
je 0x1403be5b0
mov rcx, rbx
call rax
test eax, eax
jne 0x1403be972
lea rsi, [rbx + 0x3f8]
xor r8d, r8d
test byte [rbx + 0x420], 8
je 0x1403be5cd
mov r15d, 1
mov r14d, r15d
mov edx, r15d
mov ecx, r15d
jmp 0x1403be5d9
movzx r14d, word [r15]
mov edx, 1
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x3f8], rax
cmp rax, r13
jne 0x1403be614
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.conn_fail:_skt_creation:_errno__d
mov edx, gethostbyname
mov r9d, eax
lea rcx, [rsp + 0x30]
call fcn.1403ac8d0
lea rdi, [rsp + 0x30]
jmp 0x1403be920
mov r8d, dword [rbx + 0x420]
lea rdi, [rbx + 8]
mov rcx, qword [rdi]
mov rdx, rax
shr r8d, 3
and r8d, 1
call fcn.1403a72a0
test eax, eax
je 0x1403be65f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.conn_fail:_skt_options:_errno__d
mov edx, gethostbyname
mov r9d, eax
lea rcx, [rsp + 0x30]
call fcn.1403ac8d0
lea rdi, [rsp + 0x30]
jmp 0x1403be90c
mov r8d, dword [rbx + 0x410]
movzx edx, byte [rbx + 0x43e]
mov rcx, qword [rsi]
call fcn.1403a62e0
mov rax, qword [rbx]
mov word [rbx + 0x400], 0x202
mov rcx, qword [rax + 0x548]
mov rax, qword [rcx + 0x48]
test rax, rax
je 0x1403be6be
mov rcx, rbx
call rax
test eax, eax
je 0x1403be6ba
lea r8, str.conn_fail:_sock_accept
mov edx, gethostbyname
lea rcx, [rsp + 0x30]
call fcn.1403ac8d0
lea rdi, [rsp + 0x30]
jmp 0x1403be90c
lea rdi, [rbx + 8]
mov rcx, qword [rbx]
mov rdx, rbx
call fcn.1403b6450
test eax, eax
je 0x1403be6d6
lea r8, str.conn_fail:_insert_fd
jmp 0x1403be6a1
xor edx, edx
mov r8d, 0x300
mov rcx, rbx
call fcn.1403b61f0
test eax, eax
je 0x1403be70a
lea r8, str.conn_fail:_change_pollfd
mov edx, gethostbyname
lea rcx, [rsp + 0x30]
call fcn.1403ac8d0
lea rdi, [rsp + 0x30]
jmp 0x1403be904
cmp qword [rbx + 0x10], 0
jne 0x1403be725
mov rax, qword [rdi]
lea rsi, [rbx + 8]
mov rcx, qword [rax + 0x248]
mov qword [rbx + 0x10], rcx
jmp 0x1403be728
mov rsi, rdi
mov r8, qword [rdi]
mov edx, 2
mov rcx, rbx
mov r8d, dword [r8 + 0x2e4]
call fcn.1403b4bc0
mov edx, 6
mov rcx, rbx
lea r8d, [rdx + 0x58]
call fcn.1403a6f00
test rax, rax
je 0x1403be789
cmp byte [rax], 0
je 0x1403be789
mov r8, qword [rbx + 0x3f8]
xor r9d, r9d
mov rcx, qword [rsi]
mov rdx, rbx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call fcn.1403bf160
test eax, eax
jns 0x1403be789
lea r8, str.conn_fail:_socket_bind
jmp 0x1403be6f1
test byte [rbx + 0x420], 8
je 0x1403be7c3
cmp byte [rbp - 0x4f], 0
lea rsi, [rbp - 0x51]
mov rdi, r13
je 0x1403be7b1
lea rax, [rbp - 0x4f]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1403be7a3
add edi, 2
jmp 0x1403be7ec
lea rax, [rbp - 0x4e]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1403be7b5
add edi, 3
jmp 0x1403be7ec
mov rsi, qword [rbp + 0x6f]
lea rdi, str.Unable_to_connect
test rsi, rsi
je 0x1403be904
mov r8d, r12d
lea rcx, [rbx + 0x338]
mov rdx, rsi
call fcn.1405750e0
mov edi, r12d
mov rcx, qword [rbx + 0x10]
xor r14d, r14d
and dword [rbx + 0x41c], 0xffffefff
mov rdx, rbx
mov rax, qword [rbx + 0x3f8]
mov r9, qword [rbx + 0x3d8]
mov rcx, qword [rcx + 8]
lea r8d, [r14 + 0x69]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call fcn.1403a6630
test eax, eax
jne 0x1403be95a
mov rcx, qword [rbx + 0x3f8]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_connect]
mov edi, eax
call fcn.1403ae4c0
mov qword [rbx + 0x3d0], rax
mov dword [rbx + 0x3bc], r14d
cmp edi, r13d
jne 0x1403be9b5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
test eax, eax
je 0x1403be89e
add eax, 0xffffd8da
cmp eax, 0x22
ja 0x1403be884
movabs rcx, 0x40000e001
bt rcx, rax
jb 0x1403be89e
call fcn.1403ae4c0
sub eax, dword [rbx + 0x3d0]
lea rdi, str.Unable_to_connect
mov dword [rbx + 0x3bc], eax
jmp 0x1403be904
mov rcx, rbx
lea rdi, str.Unable_to_connect
call fcn.1403a7450
test eax, eax
jne 0x1403be904
cmp esi, 0x2748
je 0x1403be9b5
mov rcx, qword [rbx]
lea r8, [rbx + 0x208]
lea r9, [0x1403bea30]
mov eax, dword [rcx + 0x7e8]
imul rdx, rax, 0xf4240
mov qword [rsp + 0x20], rdx
xor edx, edx
call fcn.1403ada70
xor edx, edx
lea rdi, str.Unable_to_connect
mov rcx, rbx
lea r8d, [rdx + 0x10]
call fcn.1403b61f0
test eax, eax
je 0x1403be3e7
mov rcx, rbx
call fcn.1403b6280
mov rcx, qword [rbx + 0x3f8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x3f8], r13
lea rcx, [rbx + 0x208]
call fcn.1403ada50
cmp qword [rbx + 0x318], 0
jne 0x1403be51e
mov rcx, rbx
call fcn.1403af330
inc r13
cmp byte [rdi + r13], 0
jne 0x1403be942
mov r8, r13
mov rdx, rdi
mov rcx, rbx
call fcn.1403af5a0
lea r8, str.client_connect3
xor edx, edx
mov rcx, rbx
call fcn.1403ae7c0
xor eax, eax
jmp 0x1403be3ea
test dword [rbx + 0x400], 0x10000000
je 0x1403be99a
cmp qword [rbx + 0x10], 0
je 0x1403be99a
mov r8d, 0x27
lea rdx, str.waiting_for_event_loop_watcher_to_close
mov rcx, rbx
call fcn.1403af5a0
cmp dword [rbx + 0x408], r13d
jne 0x1403be95a
mov rcx, rbx
call fcn.1403af1d0
xor eax, eax
jmp 0x1403be3ea
xor r14d, r14d
call fcn.1403ae4c0
sub eax, dword [rbx + 0x3d0]
lea rdx, [rbx + 0x328]
movsxd rcx, dword [rbx + 0x3f8]
lea r8, [rbp + 0x5f]
mov dword [rbx + 0x3bc], eax
mov dword [rbp + 0x5f], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
lea rcx, [rbx + 0x208]
call fcn.1403ada50
mov rcx, rbx
call fcn.1403af330
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1403bea1b
mov r8, qword [rbx + 0x3d8]
xor r9d, r9d
mov rcx, rbx
mov qword [rsp + 0x20], r14
lea edx, [r9 + 0x1d]
call qword [rax + reloc.WS2_32.dll_htonl]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1403bdfd0
jmp 0x1403be3ea