Function at 0x140069cf0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4f0
mov rax, qword [0x140149de8]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rax, qword [rsp + 0x500]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x4c], 0
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x500]
movzx eax, word [rax + 0x238]
mov word [rsp + 0x30], ax
mov rax, qword [rsp + 0x500]
mov eax, dword [rax + 0x23c]
mov dword [rsp + 0x54], eax
mov eax, 8
imul rax, rax, 8
mov rcx, qword [rsp + 0x500]
mov rax, qword [rcx + rax + 0x738]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140069dc6
movzx eax, word [rsp + 0x30]
test eax, eax
jne 0x140069dc6
xor eax, eax
jmp 0x14006a4c7
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 0x80
rep stosb byte [rdi], al
cmp qword [rsp + 0x40], 0
je 0x14006a2c3
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x80], 0xffffffffffffffff
inc qword [rsp + 0x80]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x80]
cmp byte [rax + rcx], 0
jne 0x140069dff
mov rax, qword [rsp + 0x80]
cmp rax, 0xff
jae 0x14006a2c3
movzx eax, byte [0x14014ad2c]
mov byte [rsp + 0x1e0], al
lea rax, [rsp + 0x1e1]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov dword [rsp + 0x48], 0
mov byte [rsp + 0x34], 0
mov byte [rsp + 0x35], 0
mov rax, qword [0x140144ae0]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x88], 0xffffffffffffffff
inc qword [rsp + 0x88]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x88]
cmp byte [rax + rcx], 0
jne 0x140069e80
mov rax, qword [rsp + 0x88]
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [0x140144ae0]
call fcn.1400cfca0
test eax, eax
jne 0x140069f19
mov rax, qword [0x140144ae0]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x90], 0xffffffffffffffff
inc qword [rsp + 0x90]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x90]
cmp byte [rax + rcx], 0
jne 0x140069ed9
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x34], 1
jmp 0x140069fc8
mov rax, qword [str.host_]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x98], 0xffffffffffffffff
inc qword [rsp + 0x98]
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x98]
cmp byte [rax + rcx], 0
jne 0x140069f34
mov rax, qword [rsp + 0x98]
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [str.host_]
call fcn.1400cfca0
test eax, eax
jne 0x140069fc8
mov rax, qword [str.host_]
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xa0], 0xffffffffffffffff
inc qword [rsp + 0xa0]
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xa0]
cmp byte [rax + rcx], 0
jne 0x140069f8d
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x35], 1
movzx eax, byte [rsp + 0x35]
test eax, eax
jne 0x14006a074
mov dword [rsp + 0x28], 0x100
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x40]
mov rax, qword [rsp + 0x60]
mov r8d, dword [rax + 0x710]
mov edx, dword [rsp + 0x518]
mov ecx, dword [rsp + 0x510]
call fcn.14009a040
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x14006a029
cmp dword [rsp + 0x50], 1
je 0x14006a057
cmp dword [rsp + 0x50], 2
je 0x14006a061
jmp 0x14006a074
movzx eax, byte [rsp + 0x34]
test eax, eax
je 0x14006a055
mov r8, qword [rsp + 0x40]
lea rdx, str.Couldnt_bind_to_interface__s
mov rcx, qword [rsp + 0x500]
call fcn.1400666a0
mov eax, 0x2d
jmp 0x14006a4c7
jmp 0x14006a074
mov eax, 1
jmp 0x14006a4c7
mov byte [rsp + 0x34], 1
xor eax, eax
test eax, eax
jne 0x14006a066
mov dword [rsp + 0x48], 1
movzx eax, byte [rsp + 0x34]
test eax, eax
jne 0x14006a17f
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x71a]
mov byte [rsp + 0x36], al
cmp dword [rsp + 0x510], 2
jne 0x14006a0a9
mov rax, qword [rsp + 0x60]
mov byte [rax + 0x71a], 1
jmp 0x14006a0bf
cmp dword [rsp + 0x510], 0x17
jne 0x14006a0bf
mov rax, qword [rsp + 0x60]
mov byte [rax + 0x71a], 2
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x500]
call fcn.140075a20
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], 1
jne 0x14006a104
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x500]
call fcn.140053780
mov rax, qword [rsp + 0x60]
movzx ecx, byte [rsp + 0x36]
mov byte [rax + 0x71a], cl
cmp qword [rsp + 0x70], 0
je 0x14006a177
mov r8d, 0x100
lea rdx, [rsp + 0x1e0]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.140076280
xor eax, eax
test eax, eax
jne 0x14006a137
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x500]
call fcn.140076030
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x510], eax
je 0x14006a16d
mov eax, 1
jmp 0x14006a4c7
mov dword [rsp + 0x48], 1
jmp 0x14006a17f
mov dword [rsp + 0x48], 0xffffffff
cmp dword [rsp + 0x48], 0
jle 0x14006a288
cmp dword [rsp + 0x510], 0x17
jne 0x14006a233
mov edx, 0x25
lea rcx, [rsp + 0x1e0]
call fcn.1400b0b00
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x14006a1cc
mov rax, qword [rsp + 0x78]
mov byte [rax], 0
mov rax, qword [rsp + 0x78]
inc rax
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x58]
add rax, 8
mov r8, rax
lea rdx, [rsp + 0x1e0]
mov ecx, reloc.WS2_32.dll_socket
call fcn.14009a710
test eax, eax
jle 0x14006a229
mov eax, reloc.WS2_32.dll_socket
mov rcx, qword [rsp + 0x58]
mov word [rcx], ax
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x58]
mov word [rcx + 2], ax
cmp qword [rsp + 0x78], 0
je 0x14006a229
mov rcx, qword [rsp + 0x78]
call fcn.1400d22fc
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 0x18], eax
mov dword [rsp + 0x4c], 0x1c
jmp 0x14006a288
cmp dword [rsp + 0x510], 2
jne 0x14006a288
mov rax, qword [rsp + 0x68]
add rax, 4
mov r8, rax
lea rdx, [rsp + 0x1e0]
mov ecx, 2
call fcn.14009a710
test eax, eax
jle 0x14006a288
mov eax, 2
mov rcx, qword [rsp + 0x68]
mov word [rcx], ax
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x68]
mov word [rcx + 2], ax
mov dword [rsp + 0x4c], reloc.WS2_32.dll_recv
cmp dword [rsp + 0x48], 1
jge 0x14006a2c1
mov rax, qword [rsp + 0x500]
mov byte [rax + 0x128b], 0
mov r8, qword [rsp + 0x40]
lea rdx, str.Couldnt_bind_to__s
mov rcx, qword [rsp + 0x500]
call fcn.1400666a0
mov eax, 0x2d
jmp 0x14006a4c7
jmp 0x14006a32b
cmp dword [rsp + 0x510], 0x17
jne 0x14006a2f8
mov eax, reloc.WS2_32.dll_socket
mov rcx, qword [rsp + 0x58]
mov word [rcx], ax
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x58]
mov word [rcx + 2], ax
mov dword [rsp + 0x4c], 0x1c
jmp 0x14006a32b
cmp dword [rsp + 0x510], 2
jne 0x14006a32b
mov eax, 2
mov rcx, qword [rsp + 0x68]
mov word [rcx], ax
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x68]
mov word [rcx + 2], ax
mov dword [rsp + 0x4c], reloc.WS2_32.dll_recv
mov r8d, dword [rsp + 0x4c]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x508]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x14006a401
mov dword [rsp + 0xac], 0x80
lea rax, [rsp + 0x160]
mov rdi, rax
xor eax, eax
mov ecx, 0x80
rep stosb byte [rdi], al
lea r8, [rsp + 0xac]
lea rdx, [rsp + 0x160]
mov rcx, qword [rsp + 0x508]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x14006a3e8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x500]
mov ecx, dword [rsp + 0x38]
mov dword [rax + 0xd2c], ecx
mov r8d, 0x100
lea rdx, [rsp + 0x2e0]
mov ecx, dword [rsp + 0x38]
call fcn.140096cf0
mov r9, rax
mov r8d, dword [rsp + 0x38]
lea rdx, [0x140144b28]
mov rcx, qword [rsp + 0x500]
call fcn.1400666a0
mov eax, 0x2d
jmp 0x14006a4c7
xor eax, eax
test eax, eax
jne 0x14006a3e8
mov rax, qword [rsp + 0x60]
mov byte [rax + 0x3b7], 1
xor eax, eax
jmp 0x14006a4c7
mov eax, dword [rsp + 0x54]
dec eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jle 0x14006a46c
movzx eax, word [rsp + 0x30]
inc ax
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
test eax, eax
jne 0x14006a42a
jmp 0x14006a473
xor eax, eax
test eax, eax
jne 0x14006a42a
mov rax, qword [rsp + 0xb0]
movzx eax, word [rax]
cmp eax, 2
jne 0x14006a456
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0x68]
mov word [rcx + 2], ax
jmp 0x14006a46a
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0x58]
mov word [rcx + 2], ax
jmp 0x14006a46e
jmp 0x14006a473
jmp 0x14006a32b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x500]
mov ecx, dword [rsp + 0x38]
mov dword [rax + 0xd2c], ecx
mov r8d, 0x100
lea rdx, [rsp + 0x3e0]
mov ecx, dword [rsp + 0x38]
call fcn.140096cf0
mov r9, rax
mov r8d, dword [rsp + 0x38]
lea rdx, str.bind_failed_with_errno__d:__s
mov rcx, qword [rsp + 0x500]
call fcn.1400666a0
mov eax, 0x2d
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.1400ae1a0
add rsp, 0x4f0
pop rdi
ret