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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1400a9108]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rsi, qword [rcx + 0x688]
xor r13d, r13d
mov r12, qword [rcx + 0x18]
mov r15, rcx
movzx edi, word [rcx + 0x228]
mov r14d, dword [rcx + 0x22c]
mov dword [rsp + 0x30], r8d
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
test rsi, rsi
jne 0x140027cf0
test di, di
jne 0x140027cf0
xor eax, eax
jmp 0x140028081
mov qword [rsp + 0x338], rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
test rsi, rsi
je 0x140028009
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp byte [rsi + rax], r13b
jne 0x140027d31
cmp rax, 0xff
jae 0x140028009
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x100
call fcn.140043b60
mov rcx, qword [0x1400a9078]
xor r12b, r12b
mov r8, rbx
inc r8
cmp byte [rcx + r8], r12b
jne 0x140027d64
mov rdx, rsi
call fcn.14004bb50
test eax, eax
jne 0x140027e67
mov rax, qword [0x1400a9078]
inc rbx
cmp byte [rax + rbx], r12b
jne 0x140027d84
add rsi, rbx
mov r12b, 1
mov ecx, dword [rsp + 0x30]
lea r8, [rbp - 0x30]
mov r9d, 0x100
mov rdx, rsi
call fcn.1400193c0
test eax, eax
je 0x140027ea2
sub eax, 1
je 0x140027e5d
cmp eax, 1
je 0x140027ec7
test r12b, r12b
jne 0x140027fe9
mov rax, qword [rsp + 0x40]
mov r12d, dword [rsp + 0x30]
movzx ebx, byte [rax + 0x5fe]
cmp r12d, 2
jne 0x140027dea
mov byte [rax + 0x5fe], 1
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, r15
call fcn.14002c3b0
cmp eax, 1
jne 0x140027e17
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.14001f740
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x5fe], bl
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140027fe9
mov rcx, qword [rcx]
lea rdx, [rbp - 0x30]
mov r8d, 0x100
call fcn.14002c380
mov rdx, qword [rsp + 0x38]
mov rcx, r15
call fcn.14002c650
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
cmp r12d, dword [rcx + 4]
je 0x140027ecc
mov eax, 1
jmp 0x140028079
mov rcx, qword [str.host_]
mov r8, rbx
inc r8
cmp byte [rcx + r8], r12b
jne 0x140027e71
mov rdx, rsi
call fcn.14004bb50
test eax, eax
jne 0x140027d93
mov rax, qword [str.host_]
inc rbx
cmp byte [rax + rbx], r12b
jne 0x140027e91
add rsi, rbx
jmp 0x140027dcc
test r12b, r12b
je 0x140027dcc
mov r8, rsi
lea rdx, str.Couldnt_bind_to_interface__s
mov rcx, r15
call fcn.1400263b0
mov eax, 0x2d
jmp 0x140028079
mov r12d, dword [rsp + 0x30]
cmp r12d, 2
jne 0x140027f02
mov ebx, r12d
lea r8, [rsp + 0x54]
mov ecx, ebx
lea rdx, [rbp - 0x30]
call fcn.14003af30
test eax, eax
jle 0x140027f02
movzx ecx, di
mov word [rsp + 0x50], bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
mov r13d, reloc.WS2_32.dll_recv
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, r13d
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x140027f62
dec r14d
test r14d, r14d
jle 0x140028032
add di, 1
je 0x140028032
cmp word [rsp + 0x50], 2
jne 0x140027f4d
movzx ecx, di
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x52], ax
mov r8d, r13d
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x140027f21
xorps xmm0, xmm0
mov dword [rsp + 0x30], 0x80
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [rbp - 0x30]
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x14002806e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0xd0]
mov ecx, eax
mov dword [r15 + 0xc14], eax
mov ebx, eax
call fcn.140039cc0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, r15
call fcn.1400263b0
mov eax, 0x2d
jmp 0x140028079
mov r8, rsi
mov byte [r15 + 0x1173], r13b
lea rdx, str.Couldnt_bind_to__s
mov rcx, r15
call fcn.1400263b0
mov eax, 0x2d
jmp 0x140028079
cmp r8d, 2
jne 0x140027f07
mov ebx, r8d
movzx ecx, di
mov word [rsp + 0x50], bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
lea r13d, [rbx + 0xe]
jmp 0x140027f07
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x30]
mov ecx, eax
mov dword [r15 + 0xc14], eax
mov ebx, eax
call fcn.140039cc0
mov r9, rax
lea rdx, str.bind_failed_with_errno__d:__s
mov r8d, ebx
mov rcx, r15
call fcn.1400263b0
mov eax, 0x2d
jmp 0x140028079
mov byte [r12 + 0x29e], 1
xor eax, eax
mov rbx, qword [rsp + 0x338]
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140042d70
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret