Function at 0x1400819f0
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 - 0x980]
mov eax, 0xa80
call fcn.1401ef830
sub rsp, rax
mov rax, qword [0x140310170]
xor rax, rsp
mov qword [rbp + 0x970], rax
mov rsi, qword [rcx]
mov r14d, edx
mov rbx, rcx
mov qword [rsp + 0x38], rsi
xor edx, edx
lea rcx, [rbp + 0x60]
mov r8d, 0x100
call fcn.14020fde0
mov rdi, qword [rsi + 0x608]
xor eax, eax
mov qword [rsp + 0x48], rax
movzx r12d, ax
mov dword [rsp + 0x40], r12d
movzx r13d, ax
mov byte [rsp + 0x30], 1
mov r15d, eax
test rdi, rdi
je 0x140081bb2
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], r15b
jne 0x140081a75
cmp rax, 1
jbe 0x140081bb2
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdi + rax], r15b
jne 0x140081a90
cmp rax, 0x16
jae 0x140081aa6
mov ecx, reloc.WS2_32.dll_shutdown
jmp 0x140081ab9
or rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp byte [rdi + rcx], r15b
jne 0x140081ab0
inc rcx
mov edx, 1
call qword [fcn.14021a30c]
mov r15, rax
test rax, rax
jne 0x140081ad8
lea eax, [r15 + 0x1b]
jmp 0x1400821e2
cmp byte [rdi], 0x3a
jne 0x140081ae2
mov rsi, rdi
jmp 0x140081b08
mov edx, Ordinal_60
mov rcx, rdi
call fcn.14021125c
mov rsi, rax
mov rcx, r15
test rax, rax
je 0x140081b60
mov r8, rax
mov rdx, rdi
sub r8, rdi
call fcn.140227c90
test rsi, rsi
je 0x140081b7e
mov edx, Ordinal_60
mov rcx, rsi
call fcn.14021125c
mov rdi, rax
test rax, rax
je 0x140081b7e
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.1402194ac
mov edx, Ordinal_46
mov rcx, rdi
mov r12d, eax
call fcn.14021125c
test rax, rax
je 0x140081b5a
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.1402194ac
mov r13d, eax
jmp 0x140081b7e
movzx r13d, r12w
jmp 0x140081b7e
sub rcx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi]
mov byte [rcx + rdi], al
lea rdi, [rdi + 1]
test al, al
jne 0x140081b70
xor ecx, ecx
cmp r12w, r13w
mov eax, ecx
cmovbe ax, r13w
cmovbe cx, r12w
cmp byte [r15], 0
movzx r13d, ax
mov word [rsp + 0x40], cx
je 0x140081bad
mov rdi, r15
mov r12d, 0x80
jmp 0x140081c32
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rbx + 0x230]
lea r8, [rsp + 0x34]
mov r12d, 0x80
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x34], r12d
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140081bfa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1400755c0
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, rsi
jmp 0x1400821cf
cmp word [rsp + 0x50], 2
je 0x140081c0f
mov ecx, 0x273f
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140081c26
mov r8d, 0x401
lea rdx, [rbp + 0x560]
lea rcx, [rsp + 0x54]
call fcn.1400757c0
lea rdi, [rbp + 0x560]
mov byte [rsp + 0x30], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.14005c820
cmp eax, 1
jne 0x140081c57
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140068050
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1400821c0
mov rcx, qword [rsp + 0x38]
mov rsi, qword [rdx]
call fcn.14005c9b0
test rsi, rsi
je 0x1400821c0
mov rcx, r15
call qword [fcn.1402196e8]
xor r15d, r15d
nop word [rax + rax]
mov eax, dword [rsi + 4]
mov rdi, qword [rbx]
mov dword [rbp - 0x30], eax
mov eax, dword [rbx + 0xa4]
cmp eax, 2
mov dword [rbp - 0x2c], eax
mov eax, reloc.WS2_32.dll_recvfrom
je 0x140081caf
mov eax, dword [rsi + 0xc]
mov rdx, qword [rsi + 0x20]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x28], eax
mov eax, dword [rsi + 0x10]
cmp eax, r12d
cmova eax, r12d
mov r8d, eax
mov dword [rbp - 0x24], eax
call fcn.14020f990
mov rax, qword [rdi + 0x2d8]
test rax, rax
je 0x140081cec
mov rcx, qword [rdi + 0x2e0]
lea r8, [rbp - 0x30]
xor edx, edx
call rax
jmp 0x140081cfc
mov r8d, dword [rbp - 0x28]
mov edx, dword [rbp - 0x2c]
mov ecx, dword [rbp - 0x30]
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
mov r12d, 7
mov rdi, rax
cmovne r12d, r15d
jne 0x140081d4b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rsi, qword [rsi + 0x28]
mov r12d, 0x80
test rsi, rsi
jne 0x140081c90
mov edx, eax
mov rcx, rbx
call fcn.1400755c0
mov rcx, qword [rsp + 0x38]
lea rdx, str.socket_failure:__s
mov r8, rax
call fcn.140059810
jmp 0x1400821dd
movsxd r8, dword [rsi + 0x10]
lea rcx, [rsp + 0x50]
mov rdx, qword [rsi + 0x20]
call fcn.14020f990
mov eax, dword [rsi + 0x10]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x40]
movzx r15d, ax
cmp ax, r13w
ja 0x140081e2a
cmp word [rsp + 0x50], 2
jne 0x140081d8d
movzx ecx, r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
mov r8d, dword [rsp + 0x34]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x140081ea4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [rsp + 0x30], 0
je 0x140081e10
cmp eax, 0x2741
jne 0x140081e10
mov edx, eax
mov rcx, rbx
call fcn.1400755c0
movzx r8d, r15w
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s_n
mov r15, qword [rsp + 0x38]
mov r9, rax
mov rcx, r15
call fcn.140059720
mov rcx, qword [rbx + 0x230]
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 0x140081e40
movzx r15d, word [rsp + 0x40]
mov byte [rsp + 0x30], al
jmp 0x140081e20
cmp eax, 0x2740
je 0x140081e1c
cmp eax, 0xd
jne 0x140081e72
inc r15w
cmp r15w, r13w
jbe 0x140081d76
mov rcx, qword [rsp + 0x38]
lea rdx, str.bind___failed__we_ran_out_of_ports_
call fcn.140059810
jmp 0x140081eed
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1400755c0
lea rdx, str.getsockname___failed:__s
mov rcx, r15
mov r8, rax
call fcn.140059810
mov rdx, rdi
mov rcx, rbx
call fcn.14005bb40
jmp 0x1400821dd
mov edx, eax
mov rcx, rbx
call fcn.1400755c0
mov rcx, qword [rsp + 0x38]
lea rdx, str.bind_port_hu__failed:__s
mov r9, rax
movzx r8d, r15w
call fcn.140059810
mov rdx, rdi
mov rcx, rbx
call fcn.14005bb40
jmp 0x1400821dd
cmp r15w, r13w
ja 0x140081e2a
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], 0x80
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140081f40
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1400755c0
mov rcx, qword [rsp + 0x38]
lea rdx, str.getsockname___failed:__s
mov r8, rax
call fcn.140059810
cmp qword [rbx + 0x38], 0
je 0x140081f0d
cmp rdi, qword [rbx + 0x238]
jne 0x140081f26
cmp byte [rbx + 0x251], 0
je 0x140081f26
mov byte [rbx + 0x251], 0
mov rdx, rdi
mov rcx, rbx
call fcn.140058ce0
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400821dd
mov rdx, rdi
mov rcx, rbx
call fcn.140058ce0
mov rcx, qword [rbx + 0x40]
mov rdx, rdi
call qword [rbx + gethostname]
jmp 0x1400821dd
mov edx, 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x140081f73
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1400755c0
mov rcx, qword [rsp + 0x38]
lea rdx, str.socket_failure:__s
jmp 0x140081e5a
cmp dword [rsi + 4], 2
jne 0x140081f90
mov rcx, qword [rsi + 0x20]
lea rdx, [rbp + 0x60]
add rcx, 4
mov r8d, 0x100
call fcn.1400757c0
cmp r14d, 2
je 0x140081fe4
movzx eax, word [rsp + 0x50]
nop dword [rax + rax]
cmp byte [rbx + 0x3dd], 0
jne 0x140081fae
test r14d, r14d
je 0x140081fdb
cmp ax, 2
jne 0x140081fdb
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r8d, ax
test r14d, r14d
je 0x14008211e
cmp r14d, 1
je 0x140082063
movzx eax, word [rsp + 0x50]
inc r14d
cmp r14d, 2
jne 0x140081fa0
lea rsi, [rbx + 0x630]
xor r15d, r15d
mov dword [rsi + 0x9c], r14d
mov rsi, qword [rbx + 0x238]
cmp rsi, 0xffffffffffffffff
je 0x14008203c
cmp qword [rbx + 0x38], 0
je 0x14008201d
cmp byte [rbx + 0x251], 0
je 0x1400821a6
mov byte [rbx + 0x251], 0
mov rdx, rsi
mov rcx, rbx
call fcn.140058ce0
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x238], 0xffffffffffffffff
mov dword [rbx + 0x724], r15d
mov eax, r12d
mov qword [rbx + 0x238], rdi
mov byte [rbx + 0x3d6], 1
mov dword [rbx + 0x6d8], 0x1c
jmp 0x1400821e2
lea r10, [rbp + 0x160]
mov r9d, Ordinal_46
lea rdx, [rbp + 0x60]
movzx ecx, byte [rdx]
test cl, cl
je 0x140082091
cmp cl, 0x2e
movzx eax, cl
cmove eax, r9d
mov byte [r10], al
inc r10
add rdx, 1
jne 0x140082074
movzx r9d, r8w
mov edx, reloc.WS2_32.dll_sendto
movzx eax, r9b
lea r8, str.__d__d
shr r9d, 8
mov rcx, r10
mov dword [rsp + 0x20], eax
mov byte [r10], 0
call fcn.14006ab70
lea rsi, [rbx + 0x630]
mov rcx, rsi
lea r9, [rbp + 0x160]
lea r8, str.PORT
lea rdx, [0x1402d3258]
call fcn.140098110
mov r12d, eax
test eax, eax
je 0x140081feb
mov ecx, eax
call fcn.140074d90
mov rcx, qword [rsp + 0x38]
lea rdx, str.Failure_sending_PORT_command:__s
mov r8, rax
call fcn.140059810
mov rdx, rdi
mov rcx, rbx
call fcn.14005bb40
xor eax, eax
mov dword [rbx + 0x6d8], eax
mov eax, r12d
jmp 0x1400821e2
movzx eax, r8w
lea rsi, [rbx + 0x630]
mov dword [rsp + 0x28], eax
lea r8, str.EPRT
xor r15d, r15d
lea rax, [rbp + 0x60]
cmp word [rsp + 0x50], 2
lea rdx, str._s__d_s_hu
mov r9d, r15d
mov qword [rsp + 0x20], rax
setne r9b
mov rcx, rsi
inc r9d
call fcn.140098110
mov r12d, eax
test eax, eax
je 0x140081fee
mov ecx, eax
call fcn.140074d90
mov rcx, qword [rsp + 0x38]
lea rdx, str.Failure_sending_EPRT_command:__s
mov r8, rax
call fcn.140059810
mov rdx, rdi
mov rcx, rbx
call fcn.14005bb40
mov dword [rsi + 0x9c], 1
mov eax, r12d
mov dword [rbx + 0x6d8], r15d
jmp 0x1400821e2
mov rdx, rsi
mov rcx, rbx
call fcn.140058ce0
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call qword [rbx + gethostname]
jmp 0x140082031
mov rcx, qword [rsp + 0x38]
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov r8, rdi
call fcn.140059810
mov rcx, r15
call qword [fcn.1402196e8]
mov eax, reloc.WLDAP32.dll_Ordinal_30
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.1401ef4e0
mov rbx, qword [rsp + 0xad0]
add rsp, 0xa80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
push rbx
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.1401ef830
sub rsp, rax
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x1f8]
cmp dword [rax + 0x18], 0
je 0x1400822f1
mov r8d, reloc.WS2_32.dll_listen
mov dword [rbx + 0x6d8], 0xd
mov dl, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400829b0
cmp byte [rcx + 0x566], 0
je 0x140082309
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x1400819f0
cmp byte [rcx + 0x57e], 0
je 0x1400823aa
mov r8, qword [rbx + 0x6b0]
test r8, r8
jne 0x140082364
mov r8, qword [rcx + 0x5d8]
test r8, r8
jne 0x140082347
cmp byte [rcx + 0x565], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0x630]
lea rdx, str.PRET__s
call fcn.140098110
test eax, eax
je 0x14008239a
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0x571], 0
lea rcx, [rbx + 0x630]
je 0x14008238a
lea rdx, str.PRET_STOR__s
call fcn.140098110
test eax, eax
je 0x14008239a
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.140098110
test eax, eax
jne 0x1400823b7
mov dword [rbx + 0x6d8], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140082210
add rsp, 0x20
pop rbx
ret