Function at 0x140029860
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 [0x1400af118]
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 0x1400298d0
test di, di
jne 0x1400298d0
xor eax, eax
jmp 0x140029c61
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 0x140029be9
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp byte [rsi + rax], r13b
jne 0x140029911
cmp rax, 0xff
jae 0x140029be9
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x100
call fcn.140045d40
mov rcx, qword [0x1400af080]
xor r12b, r12b
mov r8, rbx
inc r8
cmp byte [rcx + r8], r12b
jne 0x140029944
mov rdx, rsi
call fcn.14004d5c0
test eax, eax
jne 0x140029a47
mov rax, qword [0x1400af080]
inc rbx
cmp byte [rax + rbx], r12b
jne 0x140029964
add rsi, rbx
mov r12b, 1
mov ecx, dword [rsp + 0x30]
lea r8, [rbp - 0x30]
mov r9d, 0x100
mov rdx, rsi
call fcn.14001af60
test eax, eax
je 0x140029a82
sub eax, 1
je 0x140029a3d
cmp eax, 1
je 0x140029aa7
test r12b, r12b
jne 0x140029bc9
mov rax, qword [rsp + 0x40]
mov r12d, dword [rsp + 0x30]
movzx ebx, byte [rax + 0x5fe]
cmp r12d, 2
jne 0x1400299ca
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.14002df90
cmp eax, 1
jne 0x1400299f7
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.140021320
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x5fe], bl
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140029bc9
mov rcx, qword [rcx]
lea rdx, [rbp - 0x30]
mov r8d, 0x100
call fcn.14002df60
mov rdx, qword [rsp + 0x38]
mov rcx, r15
call fcn.14002e230
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
cmp r12d, dword [rcx + 4]
je 0x140029aac
mov eax, 1
jmp 0x140029c59
mov rcx, qword [str.host_]
mov r8, rbx
inc r8
cmp byte [rcx + r8], r12b
jne 0x140029a51
mov rdx, rsi
call fcn.14004d5c0
test eax, eax
jne 0x140029973
mov rax, qword [str.host_]
inc rbx
cmp byte [rax + rbx], r12b
jne 0x140029a71
add rsi, rbx
jmp 0x1400299ac
test r12b, r12b
je 0x1400299ac
mov r8, rsi
lea rdx, str.Couldnt_bind_to_interface__s
mov rcx, r15
call fcn.140027f90
mov eax, 0x2d
jmp 0x140029c59
mov r12d, dword [rsp + 0x30]
cmp r12d, 2
jne 0x140029ae2
mov ebx, r12d
lea r8, [rsp + 0x54]
mov ecx, ebx
lea rdx, [rbp - 0x30]
call fcn.14003cb10
test eax, eax
jle 0x140029ae2
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 0x140029b42
dec r14d
test r14d, r14d
jle 0x140029c12
add di, 1
je 0x140029c12
cmp word [rsp + 0x50], 2
jne 0x140029b2d
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 0x140029b01
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 0x140029c4e
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.14003b8a0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, r15
call fcn.140027f90
mov eax, 0x2d
jmp 0x140029c59
mov r8, rsi
mov byte [r15 + 0x1173], r13b
lea rdx, str.Couldnt_bind_to__s
mov rcx, r15
call fcn.140027f90
mov eax, 0x2d
jmp 0x140029c59
cmp r8d, 2
jne 0x140029ae7
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 0x140029ae7
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.14003b8a0
mov r9, rax
lea rdx, str.bind_failed_with_errno__d:__s
mov r8d, ebx
mov rcx, r15
call fcn.140027f90
mov eax, 0x2d
jmp 0x140029c59
mov byte [r12 + 0x29e], 1
xor eax, eax
mov rbx, qword [rsp + 0x338]
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140044950
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret