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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1400ac108]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rax, qword [rcx + 0x18]
xor r14d, r14d
mov rbx, qword [rcx + 0x688]
mov r13d, r8d
movzx r12d, word [rcx + 0x228]
mov rdi, rcx
mov qword [rsp + 0x40], rax
mov r15d, r14d
mov eax, dword [rcx + 0x22c]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x34], r14d
mov qword [rsp + 0x38], r14
test rbx, rbx
jne 0x1400362f0
test r12w, r12w
je 0x1400365fd
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x80
call fcn.140050110
test rbx, rbx
je 0x1400364ea
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rbx + rax], r14b
jne 0x140036312
cmp rax, 0xff
jae 0x1400364ea
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x100
call fcn.140050110
mov rcx, qword [0x1400ac078]
mov r8, rsi
inc r8
cmp byte [rcx + r8], r14b
jne 0x140036342
mov rdx, rbx
call fcn.140058100
mov r14d, 2
test eax, eax
jne 0x140036443
mov rax, qword [0x1400ac078]
inc rsi
cmp byte [rax + rsi], r15b
jne 0x140036368
add rbx, rsi
mov r15b, 1
mov r9d, 0x100
lea r8, [rbp - 0x30]
mov rdx, rbx
mov ecx, r13d
call fcn.140029470
mov ecx, eax
test eax, eax
je 0x14003647e
sub ecx, 1
je 0x140036439
cmp ecx, 1
je 0x1400364a3
test r15b, r15b
jne 0x1400364da
mov r15, qword [rsp + 0x40]
mov sil, byte [r15 + 0x5fe]
cmp r13d, r14d
jne 0x1400363ca
mov byte [r15 + 0x5fe], 1
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rdi
call fcn.14003a354
cmp eax, 1
jne 0x1400363f7
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14002e964
mov byte [r15 + 0x5fe], sil
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400364da
mov rcx, qword [rcx]
lea rdx, [rbp - 0x30]
mov r8d, 0x100
call fcn.14003a328
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call fcn.14003a5bc
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
cmp r13d, dword [rdx + 4]
je 0x1400364a3
mov eax, 1
jmp 0x1400365ff
mov rcx, qword [str.host_]
mov r8, rsi
inc r8
cmp byte [rcx + r8], r15b
jne 0x14003644d
mov rdx, rbx
call fcn.140058100
test eax, eax
jne 0x140036377
mov rax, qword [str.host_]
inc rsi
cmp byte [rax + rsi], r15b
jne 0x14003646d
add rbx, rsi
jmp 0x1400363b1
test r15b, r15b
je 0x1400363b1
lea rdx, str.Couldnt_bind_to_interface__s
mov r8, rbx
mov rcx, rdi
call fcn.140034b14
mov eax, 0x2d
jmp 0x1400365ff
cmp r13d, r14d
jne 0x1400364f7
lea r8, [rsp + 0x54]
mov ecx, r14d
lea rdx, [rbp - 0x30]
call fcn.140047d10
test eax, eax
jle 0x1400364f7
movzx ecx, r12w
mov word [rsp + 0x50], r14w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
mov r15d, reloc.WS2_32.dll_recv
jmp 0x1400364fc
mov byte [rdi + 0x1173], 0
lea rdx, str.Couldnt_bind_to__s
jmp 0x14003648e
mov r14d, 2
cmp r13d, r14d
jne 0x1400364fc
jmp 0x1400364bd
mov r15d, dword [rsp + 0x34]
mov rbx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, r15d
call qword [sym.imp.WS2_32.dll_bind]
mov esi, 1
jmp 0x14003655d
mov eax, dword [rsp + 0x30]
sub eax, esi
mov dword [rsp + 0x30], eax
test eax, eax
jle 0x1400365c9
add r12w, si
je 0x1400365c9
cmp word [rsp + 0x50], r14w
jne 0x14003654c
movzx ecx, r12w
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x52], ax
mov r8d, r15d
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x140036519
mov r8d, 0x80
lea rcx, [rbp - 0x30]
xor edx, edx
mov dword [rsp + 0x30], r8d
call fcn.140050110
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x1400365f1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0xd0]
mov ecx, eax
mov dword [rdi + 0xc14], eax
mov ebx, eax
call fcn.140046bd4
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rdi
call fcn.140034b14
jmp 0x140036499
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x30]
mov ecx, eax
mov dword [rdi + 0xc14], eax
mov ebx, eax
call fcn.140046bd4
lea rdx, str.bind_failed_with_errno__d:__s
jmp 0x1400365b6
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x29e], sil
xor eax, eax
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14004f320
mov rbx, qword [rsp + 0x338]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret