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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x970]
sub rsp, 0xa70
mov rax, qword [0x1401beaa0]
xor rax, rsp
mov qword [rbp + 0x960], rax
mov rbx, qword [rcx]
mov edi, edx
movzx eax, byte [0x1401c0ab0]
mov r14, rcx
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x40], rbx
xor edx, edx
mov qword [rsp + 0x38], rsi
lea rcx, [rbp + 0x51]
mov byte [rbp + 0x50], al
mov r8d, 0xff
call fcn.1400b53d0
mov rcx, qword [rsp + 0x40]
xor eax, eax
mov rbx, qword [rbx + 0xc28]
mov r12d, eax
mov qword [rsp + 0x48], rax
movzx r13d, ax
mov word [rsp + 0x32], ax
mov r15d, eax
mov rcx, qword [rcx + 0xc28]
mov byte [rsp + 0x30], 1
test rcx, rcx
je 0x14006a16c
mov rax, rsi
nop
inc rax
cmp byte [rcx + rax], r12b
jne 0x140069fd0
cmp rax, 1
jbe 0x14006a16c
mov rax, rsi
inc rax
cmp byte [rbx + rax], r12b
jne 0x140069fe6
cmp rax, 0x16
jae 0x14006a000
mov esi, reloc.WLDAP32.dll_Ordinal_22
jmp 0x14006a009
inc rsi
cmp byte [rbx + rsi], r12b
jne 0x14006a000
lea rcx, [rsi + 1]
mov edx, 1
call qword [fcn.1400dd278]
mov r15, rax
test rax, rax
jne 0x14006a029
lea eax, [r15 + 0x1b]
jmp 0x14006a6b7
cmp byte [rbx], 0x3a
jne 0x14006a033
mov rsi, rbx
jmp 0x14006a059
mov edx, Ordinal_60
mov rcx, rbx
call fcn.1400b5b00
mov rsi, rax
mov rcx, r15
test rax, rax
je 0x14006a0c4
mov r8, rax
mov rdx, rbx
sub r8, rbx
call fcn.1400f9420
test rsi, rsi
je 0x14006a0de
mov edx, Ordinal_60
mov rcx, rsi
call fcn.1400b5b00
mov rbx, rax
test rax, rax
je 0x14006a0de
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.1400f61b4
mov ecx, eax
call fcn.140048b70
mov edx, reloc.WLDAP32.dll_Ordinal_45
mov rcx, rbx
movzx esi, ax
call fcn.1400b5b00
test rax, rax
je 0x14006a0be
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.1400f61b4
mov ecx, eax
call fcn.140048b70
movzx r13d, ax
jmp 0x14006a0e2
movzx r13d, si
jmp 0x14006a0e2
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14006a0d0
movzx esi, r12w
xor ebx, ebx
cmp si, r13w
cmovbe bx, r13w
xor eax, eax
cmp si, r13w
cmovbe ax, si
mov word [rsp + 0x32], ax
cmp byte [r15], r12b
je 0x14006a163
mov rcx, qword [r14 + 0x70]
mov rcx, qword [rcx + 0x20]
call fcn.14007b780
mov r8d, dword [r14 + 0xb8]
lea rcx, [rbp + 0x150]
mov edx, eax
mov dword [rsp + 0x28], 0x401
mov rax, qword [r14 + 0x70]
mov r9, r15
mov qword [rsp + 0x20], rcx
mov ecx, dword [rax + 4]
call fcn.14007b790
test eax, eax
je 0x14006a155
sub eax, 1
je 0x14006a6b2
cmp eax, 1
jne 0x14006a158
lea r12, [rbp + 0x150]
jmp 0x14006a158
mov r12, r15
movzx r13d, bx
test r12, r12
jne 0x14006a1dd
jmp 0x14006a16c
mov word [rsp + 0x32], ax
movzx r13d, bx
mov rcx, qword [r14 + 0x240]
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x34], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14006a1b5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rbp - 0x30]
mov ecx, eax
call fcn.14007aa40
mov r8, rax
lea rdx, [0x1401b7dc0]
jmp 0x14006a69f
movzx ecx, word [rsp + 0x50]
lea r8, [rbp + 0x150]
mov r9d, 0x401
lea rdx, [rsp + 0x54]
call fcn.140059670
lea r12, [rbp + 0x150]
mov byte [rsp + 0x30], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, r12
mov rcx, r14
call fcn.1400371c0
cmp eax, 1
jne 0x14006a202
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.1400367f0
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14006a695
mov rcx, qword [rsp + 0x40]
mov rsi, qword [rdx]
call fcn.1400373d0
test rsi, rsi
je 0x14006a695
mov rcx, r15
call qword [fcn.1400c28b0]
xor ebx, ebx
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.140047b70
mov r15d, eax
test eax, eax
je 0x14006a25e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rsi, qword [rsi + 0x28]
mov ebx, eax
test rsi, rsi
jne 0x14006a231
jmp 0x14006a263
test rsi, rsi
jne 0x14006a28d
mov r8d, 0x80
lea rdx, [rbp - 0x30]
mov ecx, ebx
call fcn.14007aa40
mov rcx, qword [rsp + 0x40]
lea rdx, [0x1401b7e20]
mov r8, rax
call fcn.1400460b0
jmp 0x14006a6b2
movsxd r8, dword [rsi + 0x10]
lea rcx, [rsp + 0x50]
mov rdx, qword [rsi + 0x20]
call fcn.1400b3fa0
movzx r12d, word [rsp + 0x32]
mov eax, dword [rsi + 0x10]
movzx ebx, r12w
mov dword [rsp + 0x34], eax
cmp r12w, r13w
ja 0x14006a379
nop word [rax + rax]
cmp word [rsp + 0x50], 2
jne 0x14006a2d6
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
mov r8d, dword [rsp + 0x34]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14006a412
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [rsp + 0x30], 0
je 0x14006a360
cmp eax, 0x2741
jne 0x14006a360
mov r8d, 0x80
lea rdx, [rbp - 0x30]
mov ecx, eax
call fcn.14007aa40
movzx r8d, bx
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s_n
mov rbx, qword [rsp + 0x40]
mov r9, rax
mov rcx, rbx
call fcn.140045f40
mov rcx, qword [r14 + 0x240]
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x34], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14006a39c
movzx ebx, r12w
mov byte [rsp + 0x30], al
jmp 0x14006a36f
cmp eax, 0x2740
je 0x14006a36c
cmp eax, 0xd
jne 0x14006a3d7
inc bx
cmp bx, r13w
jbe 0x14006a2c0
mov rcx, qword [rsp + 0x40]
lea rdx, str.bind___failed__we_ran_out_of_ports_
call fcn.1400460b0
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call fcn.140047ae0
jmp 0x14006a6b2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rbp - 0x30]
mov ecx, eax
call fcn.14007aa40
lea rdx, [0x1401b7e68]
mov rcx, rbx
mov r8, rax
call fcn.1400460b0
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call fcn.140047ae0
jmp 0x14006a6b2
mov r8d, 0x80
lea rdx, [rbp - 0x30]
mov ecx, eax
call fcn.14007aa40
mov rcx, qword [rsp + 0x40]
lea rdx, str.bind_port_hu__failed:__s
mov r9, rax
movzx r8d, bx
call fcn.1400460b0
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call fcn.140047ae0
jmp 0x14006a6b2
cmp bx, r13w
ja 0x14006a379
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x34], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14006a465
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rbp - 0x30]
mov ecx, eax
call fcn.14007aa40
mov rcx, qword [rsp + 0x40]
lea rdx, str.getsockname___failed:__s
jmp 0x14006a3bd
mov rcx, qword [rsp + 0x38]
mov edx, 1
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14006a4a1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rbp - 0x30]
mov ecx, eax
call fcn.14007aa40
mov rcx, qword [rsp + 0x40]
lea rdx, str.socket_failure:__s
jmp 0x14006a3bd
mov r8d, 0x100
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.1400375d0
cmp edi, 2
je 0x14006a4ff
movzx eax, word [rsp + 0x50]
nop dword [rax]
test dword [r14 + 0x3c4], 0x40000
jne 0x14006a4d1
test edi, edi
je 0x14006a4f8
cmp ax, 2
jne 0x14006a4f8
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r8d, ax
test edi, edi
je 0x14006a60d
cmp edi, 1
je 0x14006a548
movzx eax, word [rsp + 0x50]
inc edi
cmp edi, 2
jne 0x14006a4c0
lea rbx, [r14 + 0x798]
mov dword [rbx + 0xb0], edi
mov rdx, qword [r14 + 0x248]
cmp rdx, 0xffffffffffffffff
je 0x14006a521
mov rcx, r14
call fcn.140047ae0
mov rax, qword [rsp + 0x38]
mov qword [r14 + 0x248], rax
mov eax, r15d
mov byte [r14 + 0x3c3], 1
mov dword [r14 + 0x854], 0x1c
jmp 0x14006a6b7
lea r10, [rbp + 0x560]
mov r9d, Ordinal_46
lea rdx, [rbp + 0x50]
nop dword [rax]
movzx ecx, byte [rdx]
test cl, cl
je 0x14006a57c
cmp cl, 0x2e
mov eax, ecx
cmove eax, r9d
mov byte [r10], al
inc r10
add rdx, 1
jne 0x14006a560
mov r9d, r8d
movzx eax, r8b
shr r9d, 8
lea r8, str.__d__d
mov edx, reloc.WS2_32.dll_sendto
mov byte [r10], 0
mov rcx, r10
mov dword [rsp + 0x20], eax
call fcn.1400564c0
lea rbx, [r14 + 0x798]
mov rcx, rbx
lea r9, [rbp + 0x560]
lea r8, str.PORT
lea rdx, [0x1401b7e84]
call fcn.140083e40
mov r15d, eax
test eax, eax
je 0x14006a506
mov ecx, eax
call fcn.14007a4c0
mov rcx, qword [rsp + 0x40]
lea rdx, str.Failure_sending_PORT_command:__s
mov r8, rax
call fcn.1400460b0
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call fcn.140047ae0
mov eax, r15d
mov dword [r14 + 0x854], 0
jmp 0x14006a6b7
xor r9d, r9d
mov dword [rsp + 0x28], r8d
cmp word [rsp + 0x50], 2
lea rax, [rbp + 0x50]
lea rbx, [r14 + 0x798]
mov qword [rsp + 0x20], rax
setne r9b
lea r8, str.EPRT
inc r9d
lea rdx, str._s__d_s_hu
mov rcx, rbx
call fcn.140083e40
mov r15d, eax
test eax, eax
je 0x14006a506
mov ecx, eax
call fcn.14007a4c0
mov rcx, qword [rsp + 0x40]
lea rdx, str.Failure_sending_EPRT_command:__s
mov r8, rax
call fcn.1400460b0
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call fcn.140047ae0
mov dword [rbx + 0xb0], 1
mov eax, r15d
mov dword [r14 + 0x854], 0
jmp 0x14006a6b7
mov r8, r12
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, qword [rsp + 0x40]
call fcn.1400460b0
mov rcx, r15
call qword [fcn.1400c28b0]
mov eax, reloc.WLDAP32.dll_Ordinal_30
mov rcx, qword [rbp + 0x960]
xor rcx, rsp
call fcn.1400b2870
mov rbx, qword [rsp + 0xac0]
add rsp, 0xa70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret