Function at 0x140135f00
Capabilities:
Convert ip address from string
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 rdi
sub rsp, 0x490
mov rax, qword [0x1401e7890]
xor rax, rsp
mov qword [rsp + 0x480], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x4a0]
movzx eax, word [rax + 0x228]
mov word [rsp + 0x34], ax
mov rax, qword [rsp + 0x4a0]
movzx eax, word [rax + 0x22a]
mov dword [rsp + 0x54], eax
mov eax, 8
imul rax, rax, 8
mov rcx, qword [rsp + 0x4a0]
mov rax, qword [rcx + rax + 0x718]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140135fb6
movzx eax, word [rsp + 0x34]
test eax, eax
jne 0x140135fb6
xor eax, eax
jmp 0x140136512
mov r8d, pe_nt_image_headers64
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll_memset
cmp qword [rsp + 0x40], 0
je 0x140136333
mov rcx, qword [rsp + 0x40]
call fcn.140158210
cmp rax, 0xff
jae 0x140136333
movzx eax, byte [0x1401ebd50]
mov byte [rsp + 0x180], al
lea rax, [rsp + 0x181]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov dword [rsp + 0x48], 0
mov byte [rsp + 0x30], 0
mov byte [rsp + 0x38], 0
mov rcx, qword [0x1401e3e98]
call fcn.140158210
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [0x1401e3e98]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140136069
mov rcx, qword [0x1401e3e98]
call fcn.140158210
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x30], 1
jmp 0x1401360af
mov rcx, qword [str.host_]
call fcn.140158210
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [str.host_]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1401360af
mov rcx, qword [str.host_]
call fcn.140158210
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x38], 1
movzx eax, byte [rsp + 0x38]
test eax, eax
jne 0x140136167
mov r9d, 0x100
lea r8, [rsp + 0x180]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x4b8]
call fcn.14014f7b0
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x1401360f6
cmp dword [rsp + 0x4c], 1
je 0x140136124
cmp dword [rsp + 0x4c], 2
je 0x14013612e
jmp 0x140136167
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140136122
mov r8, qword [rsp + 0x40]
lea rdx, str.Couldnt_bind_to_interface__s
mov rcx, qword [rsp + 0x4a0]
call fcn.1400e22e0
mov eax, Ordinal_46
jmp 0x140136512
jmp 0x140136167
mov eax, 1
jmp 0x140136512
mov byte [rsp + 0x30], 1
mov eax, dword [rsp + 0x4b8]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x180]
mov r8, qword [rsp + 0x40]
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i
mov rcx, qword [rsp + 0x4a0]
call fcn.1400e21d0
mov dword [rsp + 0x48], 1
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x14013629b
mov rax, qword [rsp + 0x4a8]
movzx eax, byte [rax + 0x70b]
mov byte [rsp + 0x39], al
cmp dword [rsp + 0x4b8], 2
jne 0x1401361a0
mov rax, qword [rsp + 0x4a8]
mov byte [rax + 0x70b], 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x50
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x4a0]
call fcn.1400f19f0
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 1
jne 0x1401361e2
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x4a0]
call fcn.1400cd050
mov rax, qword [rsp + 0x4a8]
movzx ecx, byte [rsp + 0x39]
mov byte [rax + 0x70b], cl
cmp qword [rsp + 0x58], 0
je 0x140136293
mov r8d, 0x100
lea rdx, [rsp + 0x180]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
call fcn.1400f2130
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov eax, dword [rax + 4]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x180]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x4b8]
mov r8, qword [rsp + 0x40]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i
mov rcx, qword [rsp + 0x4a0]
call fcn.1400e21d0
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x4a0]
call fcn.1400f1ee0
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x4b8], eax
je 0x140136289
mov eax, 1
jmp 0x140136512
mov dword [rsp + 0x48], 1
jmp 0x14013629b
mov dword [rsp + 0x48], 0xffffffff
cmp dword [rsp + 0x48], 0
jle 0x1401362f8
cmp dword [rsp + 0x4b8], 2
jne 0x1401362f8
mov rax, qword [rsp + 0x60]
add rax, 4
mov r8, rax
lea rdx, [rsp + 0x180]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1401362f8
mov eax, 2
mov rcx, qword [rsp + 0x60]
mov word [rcx], ax
movzx ecx, word [rsp + 0x34]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x60]
mov word [rcx + 2], ax
mov dword [rsp + 0x50], reloc.WS2_32.dll_recv
cmp dword [rsp + 0x48], 1
jge 0x140136331
mov rax, qword [rsp + 0x4a0]
mov byte [rax + 0x1353], 0
mov r8, qword [rsp + 0x40]
lea rdx, str.Couldnt_bind_to__s
mov rcx, qword [rsp + 0x4a0]
call fcn.1400e22e0
mov eax, Ordinal_46
jmp 0x140136512
jmp 0x140136366
cmp dword [rsp + 0x4b8], 2
jne 0x140136366
mov eax, 2
mov rcx, qword [rsp + 0x60]
mov word [rcx], ax
movzx ecx, word [rsp + 0x34]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x60]
mov word [rcx + 2], ax
mov dword [rsp + 0x50], reloc.WS2_32.dll_recv
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x4b0]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x14013644d
mov dword [rsp + 0x6c], pe_nt_image_headers64
mov r8d, pe_nt_image_headers64
xor edx, edx
lea rcx, [rsp + 0x100]
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x6c]
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0x4b0]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x14013641b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x4a0]
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0xd64], ecx
mov r8d, 0x100
lea rdx, [rsp + 0x280]
mov ecx, dword [rsp + 0x3c]
call fcn.1400c0c10
mov r9, rax
mov r8d, dword [rsp + 0x3c]
lea rdx, [0x1401e3f48]
mov rcx, qword [rsp + 0x4a0]
call fcn.1400e22e0
mov eax, Ordinal_46
jmp 0x140136512
movzx eax, word [rsp + 0x34]
mov r8d, eax
lea rdx, str.Local_port:__hu
mov rcx, qword [rsp + 0x4a0]
call fcn.1400e21d0
mov rax, qword [rsp + 0x4a8]
mov byte [rax + 0x2de], 1
xor eax, eax
jmp 0x140136512
mov eax, dword [rsp + 0x54]
dec eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jle 0x1401364b7
movzx eax, word [rsp + 0x34]
inc ax
mov word [rsp + 0x34], ax
movzx eax, word [rsp + 0x34]
test eax, eax
jne 0x140136476
jmp 0x1401364be
movzx eax, word [rsp + 0x34]
dec eax
mov r8d, eax
lea rdx, str.Bind_to_local_port__hu_failed__trying_next
mov rcx, qword [rsp + 0x4a0]
call fcn.1400e21d0
mov rax, qword [rsp + 0x70]
movzx eax, word [rax]
cmp eax, 2
jne 0x1401364b5
movzx ecx, word [rsp + 0x34]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0x60]
mov word [rcx + 2], ax
jmp 0x1401364b9
jmp 0x1401364be
jmp 0x140136366
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x4a0]
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0xd64], ecx
mov r8d, 0x100
lea rdx, [rsp + 0x380]
mov ecx, dword [rsp + 0x3c]
call fcn.1400c0c10
mov r9, rax
mov r8d, dword [rsp + 0x3c]
lea rdx, str.bind_failed_with_errno__d:__s
mov rcx, qword [rsp + 0x4a0]
call fcn.1400e22e0
mov eax, Ordinal_46
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140156eb0
add rsp, 0x490
pop rdi
ret