Function at 0x14023b650
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 [0x1403ad830]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r14, qword [rcx + 0x7b8]
xor r13d, r13d
mov rax, qword [rcx + 0x18]
mov r12d, r8d
movzx edi, word [rcx + 0x240]
mov rsi, rcx
mov r15d, dword [rcx + 0x244]
mov dword [rsp + 0x30], r8d
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
test r14, r14
jne 0x14023b6c3
test di, di
jne 0x14023b6c3
xor eax, eax
jmp 0x14023ba6e
xor edx, edx
mov qword [rsp + 0x338], rbx
mov r8d, 0x80
lea rcx, [rsp + 0x50]
call fcn.140285450
test r14, r14
je 0x14023b912
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp byte [r14 + rax], r13b
jne 0x14023b6f0
cmp rax, 0xff
jae 0x14023b912
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x100
call fcn.140285450
mov rcx, qword [0x1403ad728]
xor r12b, r12b
mov r8, rbx
inc r8
cmp byte [rcx + r8], r13b
jne 0x14023b723
mov rdx, r14
call fcn.14029dfa0
test eax, eax
jne 0x14023b855
mov rax, qword [0x1403ad728]
inc rbx
cmp byte [rax + rbx], r13b
jne 0x14023b743
add r14, rbx
mov r12b, 1
mov ebx, dword [rsp + 0x30]
lea r8, [rbp - 0x30]
mov ecx, ebx
mov r9d, 0x100
mov rdx, r14
call fcn.140016110
test eax, eax
je 0x14023b8ca
sub eax, 1
je 0x14023b84b
cmp eax, 1
je 0x14023b891
test r12b, r12b
jne 0x14023b8ef
cmp dword [rsp + 0x30], 2
mov r12, qword [rsp + 0x40]
movzx ebx, byte [r12 + 0x18c]
jne 0x14023b7ab
mov byte [r12 + 0x18c], 1
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, rsi
call fcn.14024c2e0
cmp eax, 1
jne 0x14023b7d8
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.140232260
mov byte [r12 + 0x18c], bl
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14023b8ef
mov rcx, qword [rcx]
lea rdx, [rbp - 0x30]
mov r8d, 0x100
call fcn.14024c2b0
mov rax, qword [rsp + 0x38]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i
mov ebx, dword [rsp + 0x30]
mov r8, r14
mov r9d, ebx
mov rcx, qword [rax]
mov eax, dword [rcx + 4]
mov rcx, rsi
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call fcn.14022a240
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.14024c6a0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
cmp ebx, dword [rcx + 4]
je 0x14023b8ab
mov eax, 1
jmp 0x14023ba66
mov rcx, qword [str.host_]
mov r8, rbx
nop
inc r8
cmp byte [rcx + r8], r13b
jne 0x14023b860
mov rdx, r14
call fcn.14029dfa0
test eax, eax
jne 0x14023b752
mov rax, qword [str.host_]
inc rbx
cmp byte [rax + rbx], r13b
jne 0x14023b880
add r14, rbx
jmp 0x14023b78d
lea r9, [rbp - 0x30]
mov dword [rsp + 0x20], ebx
mov r8, r14
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i
mov rcx, rsi
call fcn.14022a240
cmp ebx, 2
jne 0x14023b934
lea r8, [rsp + 0x54]
mov ecx, ebx
lea rdx, [rbp - 0x30]
call fcn.14025c690
test eax, eax
jle 0x14023b934
jmp 0x14023b91b
test r12b, r12b
je 0x14023b78d
mov r8, r14
lea rdx, str.Couldnt_bind_to_interface__s
mov rcx, rsi
call fcn.14022a0d0
mov eax, 0x2d
jmp 0x14023ba66
mov r8, r14
mov byte [rsi + 0x134b], r13b
lea rdx, str.Couldnt_bind_to__s
mov rcx, rsi
call fcn.14022a0d0
mov eax, 0x2d
jmp 0x14023ba66
cmp r12d, 2
jne 0x14023b934
mov ebx, r12d
movzx ecx, di
mov word [rsp + 0x50], bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
mov r13d, reloc.ODBC32.dll_SQLFreeStmt
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 0x14023b99d
nop
dec r15d
test r15d, r15d
jle 0x14023ba0a
movzx r8d, di
lea rdx, str.Bind_to_local_port__hu_failed__trying_next
mov rcx, rsi
call fcn.14022a240
inc di
cmp word [rsp + 0x50], 2
jne 0x14023b988
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 0x14023b950
xor edx, edx
mov dword [rsp + 0x30], 0x80
mov r8d, 0x80
lea rcx, [rbp - 0x30]
call fcn.140285450
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x14023ba45
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0xd0]
mov ecx, eax
mov dword [rsi + 0xdcc], eax
mov ebx, eax
call fcn.1401af4d0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14022a0d0
mov eax, 0x2d
jmp 0x14023ba66
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x30]
mov ecx, eax
mov dword [rsi + 0xdcc], eax
mov ebx, eax
call fcn.1401af4d0
mov r9, rax
lea rdx, str.bind_failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14022a0d0
mov eax, 0x2d
jmp 0x14023ba66
movzx r8d, di
lea rdx, str.Local_port:__hu
mov rcx, rsi
call fcn.14022a240
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x3e7], 1
xor eax, eax
mov rbx, qword [rsp + 0x338]
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140283120
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret