Function at 0x140037354
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 [0x1400a4118]
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 0x1400373d0
test r12w, r12w
je 0x1400376dd
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x80
call fcn.1400517f0
test rbx, rbx
je 0x1400375ca
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rbx + rax], r14b
jne 0x1400373f2
cmp rax, 0xff
jae 0x1400375ca
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x100
call fcn.1400517f0
mov rcx, qword [0x1400a4080]
mov r8, rsi
inc r8
cmp byte [rcx + r8], r14b
jne 0x140037422
mov rdx, rbx
call fcn.140059070
mov r14d, 2
test eax, eax
jne 0x140037523
mov rax, qword [0x1400a4080]
inc rsi
cmp byte [rax + rsi], r15b
jne 0x140037448
add rbx, rsi
mov r15b, 1
mov r9d, 0x100
lea r8, [rbp - 0x30]
mov rdx, rbx
mov ecx, r13d
call fcn.14002a584
mov ecx, eax
test eax, eax
je 0x14003755e
sub ecx, 1
je 0x140037519
cmp ecx, 1
je 0x140037583
test r15b, r15b
jne 0x1400375ba
mov r15, qword [rsp + 0x40]
mov sil, byte [r15 + 0x5fe]
cmp r13d, r14d
jne 0x1400374aa
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.14003b434
cmp eax, 1
jne 0x1400374d7
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14002fa44
mov byte [r15 + 0x5fe], sil
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400375ba
mov rcx, qword [rcx]
lea rdx, [rbp - 0x30]
mov r8d, 0x100
call fcn.14003b408
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call fcn.14003b69c
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
cmp r13d, dword [rdx + 4]
je 0x140037583
mov eax, 1
jmp 0x1400376df
mov rcx, qword [str.host_]
mov r8, rsi
inc r8
cmp byte [rcx + r8], r15b
jne 0x14003752d
mov rdx, rbx
call fcn.140059070
test eax, eax
jne 0x140037457
mov rax, qword [str.host_]
inc rsi
cmp byte [rax + rsi], r15b
jne 0x14003754d
add rbx, rsi
jmp 0x140037491
test r15b, r15b
je 0x140037491
lea rdx, str.Couldnt_bind_to_interface__s
mov r8, rbx
mov rcx, rdi
call fcn.140035bf4
mov eax, 0x2d
jmp 0x1400376df
cmp r13d, r14d
jne 0x1400375d7
lea r8, [rsp + 0x54]
mov ecx, r14d
lea rdx, [rbp - 0x30]
call fcn.140048df0
test eax, eax
jle 0x1400375d7
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 0x1400375dc
mov byte [rdi + 0x1173], 0
lea rdx, str.Couldnt_bind_to__s
jmp 0x14003756e
mov r14d, 2
cmp r13d, r14d
jne 0x1400375dc
jmp 0x14003759d
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 0x14003763d
mov eax, dword [rsp + 0x30]
sub eax, esi
mov dword [rsp + 0x30], eax
test eax, eax
jle 0x1400376a9
add r12w, si
je 0x1400376a9
cmp word [rsp + 0x50], r14w
jne 0x14003762c
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 0x1400375f9
mov r8d, 0x80
lea rcx, [rbp - 0x30]
xor edx, edx
mov dword [rsp + 0x30], r8d
call fcn.1400517f0
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x1400376d1
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.140047cb4
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rdi
call fcn.140035bf4
jmp 0x140037579
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.140047cb4
lea rdx, str.bind_failed_with_errno__d:__s
jmp 0x140037696
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x29e], sil
xor eax, eax
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140050400
mov rbx, qword [rsp + 0x338]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret