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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f8]
sub rsp, 0x2f8
mov rax, qword [0x140150068]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rax, qword [rcx + 0x18]
xor r15d, r15d
mov rbx, qword [rcx + 0x688]
mov r13d, r8d
movzx r12d, word [rcx + 0x228]
mov rdi, rcx
mov qword [rsp + 0x48], rax
mov r14d, r15d
mov eax, dword [rcx + 0x22c]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x34], r9d
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x40], r15
test rbx, rbx
jne 0x140082481
test r12w, r12w
je 0x140082833
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x80
call fcn.14009f240
test rbx, rbx
je 0x1400826ef
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rbx + rax], r15b
jne 0x1400824a3
cmp rax, 0xff
jae 0x1400826ef
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0x100
call fcn.14009f240
mov rcx, qword [0x140150040]
mov r8, rsi
inc r8
cmp byte [rcx + r8], r15b
jne 0x1400824d3
mov rdx, rbx
call fcn.1400ca6f0
mov r15d, reloc.WS2_32.dll_socket
test eax, eax
jne 0x140082506
mov rax, qword [0x140150040]
inc rsi
cmp byte [rax + rsi], r14b
jne 0x1400824f5
add rbx, rsi
mov sil, 1
jmp 0x14008255d
mov rcx, qword [str.host_]
mov r8, rsi
inc r8
cmp byte [rcx + r8], r14b
jne 0x140082510
mov rdx, rbx
call fcn.1400ca6f0
test eax, eax
jne 0x14008255a
mov rax, qword [str.host_]
inc rsi
cmp byte [rax + rsi], r14b
jne 0x14008252c
add rbx, rsi
mov rax, qword [rsp + 0x48]
mov sil, byte [rax + 0x602]
cmp r13d, 2
jne 0x1400825db
mov byte [rax + 0x602], 1
jmp 0x1400825e7
mov sil, r14b
mov edx, dword [rsp + 0x34]
lea rax, [rbp - 0x20]
mov dword [rsp + 0x28], 0x100
mov r9, rbx
mov qword [rsp + 0x20], rax
mov ecx, r13d
mov rax, qword [rsp + 0x48]
mov r8d, dword [rax + 0x5f8]
call fcn.140094c84
mov ecx, eax
test eax, eax
je 0x1400825b6
sub ecx, 1
je 0x14008265b
cmp ecx, 1
je 0x140082665
test sil, sil
je 0x140082538
mov byte [rdi + 0x117b], r14b
lea rdx, str.Couldnt_bind_to__s
jmp 0x1400825c6
test sil, sil
je 0x140082538
lea rdx, str.Couldnt_bind_to_interface__s
mov r8, rbx
mov rcx, rdi
call fcn.140080af0
mov eax, 0x2d
jmp 0x140082835
cmp r13d, r15d
jne 0x1400825e7
mov byte [rax + 0x602], 2
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rdi
call fcn.1400869d0
cmp eax, 1
jne 0x140082614
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14007a604
mov rax, qword [rsp + 0x48]
mov byte [rax + 0x602], sil
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400825a6
mov rcx, qword [rcx]
lea rdx, [rbp - 0x20]
mov r8d, 0x100
call fcn.140086994
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140086c6c
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx]
cmp r13d, dword [rdx + 4]
je 0x140082665
mov eax, 1
jmp 0x140082835
cmp r13d, r15d
jne 0x1400826cd
mov edx, 0x25
lea rcx, [rbp - 0x20]
call fcn.14009f3d0
mov rbx, rax
test rax, rax
je 0x140082686
mov byte [rax], r14b
inc rbx
lea r8, [rsp + 0x68]
mov ecx, r15d
lea rdx, [rbp - 0x20]
call fcn.14009506c
test eax, eax
jle 0x1400826c1
movzx ecx, r12w
mov word [rsp + 0x60], r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
test rbx, rbx
je 0x1400826c1
mov rcx, rbx
call fcn.1400cd9b4
mov dword [rsp + 0x78], eax
mov r14d, 0x1c
lea r15d, [r14 - 0x1a]
jmp 0x14008273a
mov r15d, 2
cmp r13d, r15d
jne 0x14008273a
lea r8, [rsp + 0x64]
mov ecx, r15d
lea rdx, [rbp - 0x20]
call fcn.14009506c
test eax, eax
jle 0x14008273a
jmp 0x14008271f
mov r15d, reloc.WS2_32.dll_socket
cmp r13d, r15d
jne 0x140082714
movzx ecx, r12w
mov word [rsp + 0x60], r15w
call qword [sym.imp.WS2_32.dll_htons]
lea r14d, [r15 + 5]
lea r15d, [r14 - 0x1a]
jmp 0x140082735
mov r15d, 2
cmp r13d, r15d
jne 0x14008273a
movzx ecx, r12w
mov word [rsp + 0x60], r15w
call qword [sym.imp.WS2_32.dll_htons]
mov r14d, reloc.WS2_32.dll_recv
mov word [rsp + 0x62], ax
mov rbx, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov r8d, r14d
call qword [sym.imp.WS2_32.dll_bind]
mov esi, 1
jmp 0x140082793
mov eax, dword [rsp + 0x38]
sub eax, esi
mov dword [rsp + 0x38], eax
test eax, eax
jle 0x1400827ff
add r12w, si
je 0x1400827ff
movzx ecx, r12w
call qword [sym.imp.WS2_32.dll_ntohs]
mov r8d, r14d
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov word [rsp + 0x62], ax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x140082757
mov r8d, 0x80
lea rcx, [rbp - 0x20]
xor edx, edx
mov dword [rsp + 0x34], r8d
call fcn.14009f240
lea r8, [rsp + 0x34]
mov rcx, rbx
lea rdx, [rbp - 0x20]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x140082827
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0xe0]
mov ecx, eax
mov dword [rdi + 0xc1c], eax
mov ebx, eax
call fcn.140093854
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rdi
call fcn.140080af0
jmp 0x1400825d1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x20]
mov ecx, eax
mov dword [rdi + 0xc1c], eax
mov ebx, eax
call fcn.140093854
lea rdx, str.bind_failed_with_errno__d:__s
jmp 0x1400827ec
mov rax, qword [rsp + 0x48]
mov byte [rax + 0x29e], sil
xor eax, eax
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.14009caf0
add rsp, 0x2f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret