Function at 0x1400ef260
Capabilities:
Convert ip address from string
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x288
mov rdi, rdx
mov r13, rcx
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r12, qword [rcx + 0x10]
lea rbx, [rsp + 0x100]
mov rcx, rbx
call fcn.14011bd90
movups xmm0, xmmword [rbx]
movups xmmword [r12 + 0x148], xmm0
lea rbx, [r12 + 8]
cmp qword [rdi + 0x280], 0
je 0x1400ef3f6
mov rcx, rdi
mov dl, 1
call fcn.14010f9b0
mov rax, qword [rdi + 0x280]
mov rcx, qword [rdi + 0x288]
xor edx, edx
mov r8, rbx
call qword [case.0x14012d181.0]
mov qword [r12 + 0x98], rax
mov rcx, rdi
xor edx, edx
call fcn.14010f9b0
mov rax, qword [r12 + 0x98]
mov ebp, 7
cmp rax, 0xffffffffffffffff
je 0x1400ef3a4
mov rax, qword [rdi + 0x20]
mov eax, dword [rax + 0x610]
test eax, eax
je 0x1400ef322
cmp dword [rbx], 0x17
jne 0x1400ef322
mov dword [r12 + 0x30], eax
mov rsi, qword [r13 + 0x10]
lea r9, [rsi + 0x110]
lea r8, [rsi + 0xe0]
mov edx, dword [rsi + 0x14]
lea rcx, [rsi + 0x18]
call fcn.1400f1be0
test al, al
jne 0x1400ef492
lea rbx, [rsp + 0x100]
mov r8d, 0x100
mov rcx, rbx
mov dl, 0xaa
call fcn.1402e0d10
call fcn.1402f47d8
mov eax, dword [rax]
mov dword [rsi + 0x178], eax
call fcn.1402f47d8
mov ecx, dword [rax]
mov r8d, 0x100
mov rdx, rbx
call fcn.14011ad80
mov rbx, rax
call fcn.1402f47d8
mov r8d, dword [rax]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov rcx, rdi
mov r9, rbx
call fcn.1400f8040
mov ebp, 2
mov rbx, qword [r12 + 0x98]
cmp rbx, 0xffffffffffffffff
je 0x1400ef42d
mov rsi, qword [r13 + 0x18]
test rsi, rsi
je 0x1400ef418
mov r14, qword [rsi + 0x38]
mov rcx, rdi
mov rdx, rbx
call fcn.14010f540
test r14, r14
je 0x1400ef418
mov rcx, rdi
mov dl, 1
call fcn.14010f9b0
mov rax, qword [rsi + 0x38]
mov rcx, qword [rsi + 0x40]
mov rdx, rbx
call qword [case.0x14012d181.0]
mov rcx, rdi
xor edx, edx
call fcn.14010f9b0
jmp 0x1400ef421
mov r8d, dword [r12 + 0x10]
mov ecx, dword [r12 + 8]
mov edx, dword [r12 + 0xc]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [r12 + 0x98], rax
jmp 0x1400ef2fb
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [r12 + 0x98], 0xffffffffffffffff
test rdi, rdi
je 0x1400ef46c
test r13, r13
je 0x1400ef46c
cmp byte [rdi + 0xa2f], 0
je 0x1400ef46c
mov rax, qword [r13]
cmp dword [rax + 0xc], 0
jle 0x1400ef46c
mov rax, qword [r12 + 0x98]
mov qword [rsp + 0x20], rax
lea r8, str.cf_socket_open_______d__fd_qd
mov rcx, rdi
mov rdx, r13
mov r9d, ebp
call fcn.1400f8200
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1402ddd70
mov eax, ebp
add rsp, 0x288
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp dword [rbx], 0x17
je 0x1400ef4a0
lea rdx, str.__Trying__s:_d...
jmp 0x1400ef4d7
mov rcx, qword [r12 + 0x98]
lea r9, [rsp + 0x100]
mov dword [r9], 0
mov dword [rsp + 0x20], 4
mov edx, 0x29
mov r8d, 0x1b
call qword [sym.imp.WS2_32.dll_setsockopt]
lea rdx, str.__Trying___s_:_d...
test rdi, rdi
je 0x1400ef4fd
cmp byte [rdi + 0xa2f], 0
je 0x1400ef4fd
mov r9d, dword [r12 + 0x110]
lea r8, [r12 + 0xe0]
mov rcx, rdi
call fcn.1400f8140
mov eax, dword [rbx]
cmp eax, 0x17
je 0x1400ef509
cmp eax, 2
jne 0x1400ef515
cmp dword [r12 + 0xc], 1
je 0x1400ef65f
mov rcx, qword [r12 + 0x98]
call fcn.1400ed970
cmp qword [rdi + 0x270], 0
je 0x1400ef578
mov rcx, rdi
mov dl, 1
call fcn.14010f9b0
mov rdx, qword [r12 + 0x98]
mov rax, qword [rdi + 0x270]
mov rcx, qword [rdi + 0x278]
xor esi, esi
xor r8d, r8d
call qword [case.0x14012d181.0]
mov r14d, eax
mov rcx, rdi
xor edx, edx
call fcn.14010f9b0
cmp r14d, 2
je 0x1400ef57b
mov ebp, 0x2a
test r14d, r14d
jne 0x1400ef3a4
mov sil, 1
mov eax, dword [rbx]
cmp eax, 0x17
je 0x1400ef587
cmp eax, 2
jne 0x1400ef5e4
lea rcx, [r12 + 0x18]
call fcn.140106ae0
mov r15d, eax
mov r14d, dword [r12 + 8]
mov rax, qword [r12 + 0x98]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x58], r13
mov rax, qword [r13 + 0x18]
mov qword [rsp + 0x78], 0
movzx ebp, word [rdi + 0x228]
movzx ebx, word [rdi + 0x22a]
mov r13, qword [rdi + 0x728]
test r13, r13
jne 0x1400ef81c
test bp, bp
jne 0x1400ef81c
mov r13, qword [rsp + 0x58]
mov rcx, qword [r12 + 0x98]
mov edx, 1
call fcn.1401102f0
xor ebp, ebp
test sil, sil
jne 0x1400ef42d
mov rcx, r13
mov rdx, rdi
call fcn.1400ef120
lea rbx, [rsp + 0x100]
mov rcx, rbx
call fcn.14011bd90
movups xmm0, xmmword [rbx]
movups xmmword [r12 + 0x158], xmm0
mov byte [r13 + 0x24], 1
jmp 0x1400ef42d
test rdi, rdi
je 0x1400ef522
cmp byte [rdi + 0xa2f], 0
je 0x1400ef522
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, rdi
mov r8, r14
call fcn.1400f8140
jmp 0x1400ef522
cmp byte [rdi + 0xa34], 0
je 0x1400ef6f6
mov r14, qword [r12 + 0x98]
lea r15, [rsp + 0x200]
mov dword [r15], 1
lea rcx, [rsp + 0x100]
mov r8d, 0x100
mov dl, 0xaa
call fcn.1402e0d10
mov dword [rsp + 0x20], 4
mov rcx, r14
mov edx, 6
mov r8d, 1
mov r9, r15
call qword [sym.imp.WS2_32.dll_setsockopt]
test rdi, rdi
je 0x1400ef6f6
test eax, eax
jns 0x1400ef6f6
cmp byte [rdi + 0xa2f], 0
je 0x1400ef6f6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x100]
mov r8d, 0x100
mov ecx, eax
call fcn.14011ad80
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rdi
mov r8, rax
call fcn.1400f8140
mov rcx, qword [r12 + 0x98]
call fcn.1400ed970
movzx eax, byte [rdi + 0xa3b]
test eax, eax
je 0x1400ef522
mov r14, qword [r12 + 0x98]
lea r9, [rsp + 0x200]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov rcx, r14
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x1400ef632
mov eax, 0xaaaaaaaa
lea r15, [rsp + 0x100]
mov dword [r15 + 8], eax
movabs rcx, 0xaaaaaaaa00000001
mov qword [r15], rcx
lea rsi, [rsp + 0x80]
mov dword [rsi], eax
mov ecx, dword [rdi + 0x9bc]
call fcn.1401316d0
imul eax, eax, 0x3e8
mov dword [rsp + 0x200], eax
mov dword [r15 + 4], eax
mov ecx, dword [rdi + 0x9c0]
call fcn.1401316d0
imul eax, eax, 0x3e8
mov dword [rsp + 0x200], eax
mov dword [r15 + 8], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, r14
mov edx, 0x98000004
mov r8, r15
mov r9d, SafeArrayDestroy
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test rdi, rdi
je 0x1400ef522
test eax, eax
je 0x1400ef522
cmp byte [rdi + 0xa2f], 0
je 0x1400ef522
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov rcx, rdi
mov r8d, r14d
mov r9d, eax
call fcn.1400f8140
jmp 0x1400ef522
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x270], xmm0
movaps xmmword [rsp + 0x260], xmm0
movaps xmmword [rsp + 0x250], xmm0
movaps xmmword [rsp + 0x240], xmm0
movaps xmmword [rsp + 0x230], xmm0
movaps xmmword [rsp + 0x220], xmm0
movaps xmmword [rsp + 0x210], xmm0
movaps xmmword [rsp + 0x200], xmm0
test r13, r13
mov dword [rsp + 0x64], esi
je 0x1400ef881
mov rcx, r13
call fcn.140303550
cmp rax, 0xfe
jbe 0x1400efaaf
cmp r14d, 2
je 0x1400ef8d1
xor r15d, r15d
cmp r14d, 0x17
jne 0x1400ef8f1
mov word [rsp + 0x200], reloc.WS2_32.dll_socket
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x202], ax
mov r15d, 0x1c
jmp 0x1400ef8f1
lea r8, [rsp + 0x204]
lea rdx, [rsp + 0x100]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1400ef8f1
mov word [rsp + 0x200], 2
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x202], ax
mov r15d, reloc.WS2_32.dll_recv
movzx ebp, bp
inc ebp
lea r14, [rsp + 0x200]
mov r13, qword [sym.imp.WS2_32.dll_bind]
mov rsi, qword [sym.imp.WS2_32.dll_ntohs]
jmp 0x1400ef934
movzx r8d, bp
dec r8d
mov rcx, rdi
lea rdx, str.Bind_to_local_port__d_failed__trying_next
call fcn.1400f8140
mov ecx, ebp
call rsi
mov word [rsp + 0x202], ax
inc ebp
dec ebx
mov rcx, qword [rsp + 0x68]
mov rdx, r14
mov r8d, r15d
call r13
test eax, eax
jns 0x1400ef9ba
cmp ebx, 2
jl 0x1400ef960
test bp, bp
je 0x1400ef960
test rdi, rdi
je 0x1400ef924
cmp byte [rdi + 0xa2f], 0
jne 0x1400ef90e
jmp 0x1400ef924
lea rbx, [rsp + 0x100]
mov r8d, 0x100
mov rcx, rbx
mov dl, 0xaa
call fcn.1402e0d10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
mov dword [rdi + 0xcf4], eax
mov r8d, 0x100
mov ecx, eax
mov rdx, rbx
call fcn.14011ad80
lea rdx, str.bind_failed_with_errno__d:__s
mov rcx, rdi
mov r8d, ebp
mov r9, rax
call fcn.1400f8040
mov ebp, 0x2d
mov r13, qword [rsp + 0x58]
jmp 0x1400ef3a4
lea r8, [rsp + 0x74]
mov dword [r8], 0x80
xorps xmm0, xmm0
lea rdx, [rsp + 0x80]
movaps xmmword [rdx], xmm0
movaps xmmword [rdx + 0x10], xmm0
movaps xmmword [rdx + 0x20], xmm0
movaps xmmword [rdx + 0x30], xmm0
movaps xmmword [rdx + 0x40], xmm0
movaps xmmword [rdx + 0x50], xmm0
movaps xmmword [rdx + 0x60], xmm0
movaps xmmword [rdx + 0x70], xmm0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
mov r13, qword [rsp + 0x58]
js 0x1400efb4d
test rdi, rdi
je 0x1400efa2a
cmp byte [rdi + 0xa2f], 0
je 0x1400efa2a
dec ebp
lea rdx, str.Local_port:__hu
mov rcx, rdi
mov r8d, ebp
call fcn.1400f8140
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x2da], 1
mov esi, dword [rsp + 0x64]
jmp 0x1400ef5e4
add r13, 3
mov r9, r13
mov r13, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov r8d, dword [rcx + 0x610]
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0x100
mov ecx, r14d
mov edx, r15d
mov r15, r9
call fcn.140024d00
cmp eax, 2
je 0x1400efbc0
cmp eax, 1
je 0x1400efcba
test eax, eax
jne 0x1400efb3c
cmp dword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x50]
mov r9, r15
jne 0x1400efb1a
lea rdx, str.Couldnt_bind_to_interface__s
jmp 0x1400efbb3
lea rcx, [rsp + 0x100]
mov r8d, 0x100
xor edx, edx
call fcn.1402e0d10
lea rcx, [0x14049ef7c]
mov r8d, 3
mov rdx, r13
call fcn.140303610
mov dword [rsp + 0x60], eax
test eax, eax
je 0x1400efa3f
lea rcx, str.host_
mov r8d, 5
mov rdx, r13
call fcn.140303610
xor ecx, ecx
test eax, eax
sete cl
lea r9, [rcx + rcx*4]
add r9, r13
test eax, eax
mov r13, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
jne 0x1400efa50
mov sil, byte [rcx + 0x61c]
cmp r14d, 2
je 0x1400efbfa
cmp r14d, 0x17
jne 0x1400efc02
mov al, 2
jmp 0x1400efbfc
cmp dword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x50]
mov r9, r15
jne 0x1400efb1a
jmp 0x1400efba5
lea rbx, [rsp + 0x100]
mov r8d, 0x100
mov rcx, rbx
mov dl, 0xaa
call fcn.1402e0d10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
mov dword [rdi + 0xcf4], eax
mov r8d, 0x100
mov ecx, eax
mov rdx, rbx
call fcn.14011ad80
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, rdi
mov r8d, ebp
mov r9, rax
call fcn.1400f8040
mov ebp, 0x2d
jmp 0x1400ef3a4
mov r9, r15
mov byte [rdi + 0x12b7], 0
lea rdx, str.Couldnt_bind_to__s
mov rcx, rdi
mov r8, r9
call fcn.1400f8040
jmp 0x1400efb98
test rdi, rdi
je 0x1400efcc9
cmp byte [rdi + 0xa2f], 0
je 0x1400efcc9
mov dword [rsp + 0x20], r14d
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i
lea r9, [rsp + 0x100]
mov rcx, rdi
mov r8, r15
call fcn.1400f8140
jmp 0x1400efcc9
mov al, 1
mov byte [rcx + 0x61c], al
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov r15, r9
mov rdx, r9
mov r8d, 0x50
xor r9d, r9d
call fcn.1400fcff0
cmp eax, 1
jne 0x1400efc35
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.1400e9ac0
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x61c], sil
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1400efba2
mov rcx, qword [rax]
lea rsi, [rsp + 0x100]
mov r8d, 0x100
mov rdx, rsi
call fcn.1400fc820
test rdi, rdi
je 0x1400efc9f
cmp byte [rdi + 0xa2f], 0
je 0x1400efc9f
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov eax, dword [rax + 4]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea rdx, str.Name__s_family__i_resolved_to__s_family__i
mov rcx, rdi
mov r8, r15
mov r9d, r14d
call fcn.1400f8140
mov rdx, qword [rsp + 0x78]
mov rcx, rdi
call fcn.1400fd5f0
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
cmp dword [rax + 4], r14d
je 0x1400efcc9
mov ebp, 7
jmp 0x1400ef3a4
xor r14d, r14d
jmp 0x1400efd00
xor r15d, r15d
cmp r14d, 2
je 0x1400ef8b2
cmp r14d, 0x17
jne 0x1400ef8f1
lea rcx, [rsp + 0x100]
mov edx, 0x25
call fcn.1402e1098
test rax, rax
je 0x1400efcc4
mov r14, rax
inc r14
mov byte [rax], 0
lea r8, [rsp + 0x208]
lea rdx, [rsp + 0x100]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r15d, 0x1c
test eax, eax
jle 0x1400ef8f1
mov word [rsp + 0x200], reloc.WS2_32.dll_socket
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x202], ax
test r14, r14
je 0x1400ef8f1
mov rcx, r14
xor edx, edx
mov r8d, 0xa
call fcn.1402fb404
mov dword [rsp + 0x218], eax
jmp 0x1400ef8f1