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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x870
lea rdi, [rsp + 0x40]
mov ecx, 0x20c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x880]
mov rax, qword [0x140471b00]
xor rax, rsp
mov qword [rsp + 0x868], rax
mov dword [rsp + 0x40], reloc.WLDAP32.dll_Ordinal_30
mov rax, qword [rsp + 0x880]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
add rax, 0x590
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], 0xffffffffffffffff
movzx eax, byte [0x14047475e]
mov byte [rsp + 0x88], al
lea rax, [rsp + 0x89]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WLDAP32.dll_Ordinal_46
rep stosb byte [rdi], al
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x5c8], rax
mov rax, qword [rsp + 0x5c8]
mov qword [rsp + 0x5d0], rax
mov rax, qword [rsp + 0x5c8]
mov qword [rsp + 0x5d8], rax
mov qword [rsp + 0x5e8], 0
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x880]
mov rax, qword [rcx + rax + 0x700]
mov qword [rsp + 0x5f0], rax
mov qword [rsp + 0x608], 0
xor eax, eax
mov word [rsp + 0x614], ax
xor eax, eax
mov word [rsp + 0x618], ax
mov byte [rsp + 0x620], 1
mov qword [rsp + 0x748], 0
mov qword [rsp + 0x750], 0
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x880]
cmp qword [rcx + rax + 0x700], 0
je 0x1401f68e4
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x880]
mov rcx, qword [rcx + rax + 0x700]
call fcn.1401480de
cmp rax, 1
jbe 0x1401f68e4
mov qword [rsp + 0x7a8], 0
mov rax, qword [rsp + 0x5f0]
movsx eax, byte [rax]
cmp eax, 0x5b
jne 0x1401f65ec
mov rax, qword [rsp + 0x5f0]
inc rax
mov qword [rsp + 0x7b0], rax
mov edx, 0x5d
mov rcx, qword [rsp + 0x7b0]
call fcn.14014556e
mov qword [rsp + 0x7a8], rax
cmp qword [rsp + 0x7a8], 0
je 0x1401f65e7
mov rax, qword [rsp + 0x7b0]
mov rcx, qword [rsp + 0x7a8]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x750], rax
mov rax, qword [rsp + 0x7b0]
mov qword [rsp + 0x748], rax
jmp 0x1401f66c7
mov rax, qword [rsp + 0x5f0]
movsx eax, byte [rax]
cmp eax, 0x3a
jne 0x1401f6611
mov rax, qword [rsp + 0x5f0]
mov qword [rsp + 0x7a8], rax
jmp 0x1401f66c7
mov edx, Ordinal_60
mov rcx, qword [rsp + 0x5f0]
call fcn.14014556e
mov qword [rsp + 0x7a8], rax
mov rax, qword [rsp + 0x5f0]
mov qword [rsp + 0x748], rax
cmp qword [rsp + 0x7a8], 0
je 0x1401f66b2
mov rax, qword [rsp + 0x5f0]
mov rcx, qword [rsp + 0x7a8]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x750], rax
mov rax, qword [rsp + 0x5d8]
add rax, 8
mov r8, rax
mov rdx, qword [rsp + 0x5f0]
mov ecx, reloc.WS2_32.dll_socket
call fcn.140145a1e
cmp eax, 1
jne 0x1401f66b0
xor eax, eax
mov word [rsp + 0x618], ax
movzx eax, word [rsp + 0x618]
mov word [rsp + 0x614], ax
mov qword [rsp + 0x7a8], 0
jmp 0x1401f66c7
mov rcx, qword [rsp + 0x5f0]
call fcn.1401480de
mov qword [rsp + 0x750], rax
cmp qword [rsp + 0x7a8], 0
je 0x1401f6796
mov qword [rsp + 0x7b8], 0
mov edx, Ordinal_60
mov rcx, qword [rsp + 0x7a8]
call fcn.14014556e
mov qword [rsp + 0x7c0], rax
cmp qword [rsp + 0x7c0], 0
je 0x1401f6796
mov rax, qword [rsp + 0x7c0]
inc rax
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call fcn.14014663a
mov ecx, eax
call fcn.14014b14e
mov word [rsp + 0x614], ax
mov edx, reloc.WLDAP32.dll_Ordinal_45
mov rcx, qword [rsp + 0x7c0]
call fcn.14014556e
mov qword [rsp + 0x7b8], rax
cmp qword [rsp + 0x7b8], 0
je 0x1401f6786
mov rax, qword [rsp + 0x7b8]
inc rax
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call fcn.14014663a
mov ecx, eax
call fcn.14014b14e
mov word [rsp + 0x618], ax
jmp 0x1401f6796
movzx eax, word [rsp + 0x614]
mov word [rsp + 0x618], ax
movzx eax, word [rsp + 0x614]
movzx ecx, word [rsp + 0x618]
cmp eax, ecx
jle 0x1401f67c4
xor eax, eax
mov word [rsp + 0x618], ax
movzx eax, word [rsp + 0x618]
mov word [rsp + 0x614], ax
cmp qword [rsp + 0x750], 0
je 0x1401f68d8
xor eax, eax
test eax, eax
jne 0x1401f67d3
cmp qword [rsp + 0x750], 0x32
jb 0x1401f67e9
jmp 0x1401f7240
mov r8, qword [rsp + 0x750]
mov rdx, qword [rsp + 0x748]
lea rcx, [rsp + 0x768]
call fcn.1401484b2
mov rax, qword [rsp + 0x750]
mov qword [rsp + 0x850], rax
cmp qword [rsp + 0x850], 0x32
jae 0x1401f6823
jmp 0x1401f6828
call fcn.140149e25
mov rax, qword [rsp + 0x850]
mov byte [rsp + rax + 0x768], 0
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x38]
add rax, 0x10
mov rcx, rax
call fcn.14014c0e4
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x38]
mov dword [rsp + 0x28], 0x401
lea rdx, [rsp + 0x1b0]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x768]
mov rdx, qword [rsp + 0x48]
mov r8d, dword [rdx + 0x6d8]
mov edx, eax
mov ecx, dword [rcx]
call fcn.14014b018
mov dword [rsp + 0x858], eax
cmp dword [rsp + 0x858], 0
je 0x1401f68af
cmp dword [rsp + 0x858], 1
je 0x1401f68c1
cmp dword [rsp + 0x858], 2
je 0x1401f68c6
jmp 0x1401f68d6
lea rax, [rsp + 0x768]
mov qword [rsp + 0x5e8], rax
jmp 0x1401f68d6
jmp 0x1401f7240
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x5e8], rax
jmp 0x1401f68e4
mov qword [rsp + 0x5e8], 0
cmp qword [rsp + 0x5e8], 0
jne 0x1401f6a17
mov dword [rsp + 0x184], 0x80
mov eax, 8
imul rax, rax, 0
lea r8, [rsp + 0x184]
mov rdx, qword [rsp + 0x5c8]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + rax + 0x188]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1401f6965
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x640]
mov ecx, eax
call fcn.14014a4ce
mov r8, rax
lea rdx, [0x140469578]
mov rcx, qword [rsp + 0x880]
call fcn.14014c6a2
jmp 0x1401f7240
mov rax, qword [rsp + 0x5c8]
movzx eax, word [rax]
mov dword [rsp + 0x85c], eax
cmp dword [rsp + 0x85c], 0x17
je 0x1401f6983
jmp 0x1401f69ba
mov rax, qword [rsp + 0x5d8]
add rax, 8
mov rcx, qword [rsp + 0x5c8]
movzx ecx, word [rcx]
mov r9d, 0x401
lea r8, [rsp + 0x1b0]
mov rdx, rax
call fcn.140147035
mov qword [rsp + 0x7c8], rax
jmp 0x1401f69ef
mov rax, qword [rsp + 0x5d0]
add rax, 4
mov rcx, qword [rsp + 0x5c8]
movzx ecx, word [rcx]
mov r9d, 0x401
lea r8, [rsp + 0x1b0]
mov rdx, rax
call fcn.140147035
mov qword [rsp + 0x7c8], rax
cmp qword [rsp + 0x7c8], 0
jne 0x1401f69ff
jmp 0x1401f7240
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x5e8], rax
mov byte [rsp + 0x620], 0
lea rax, [rsp + 0x608]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x5e8]
mov rcx, qword [rsp + 0x880]
call fcn.140146b8f
mov dword [rsp + 0x5e0], eax
cmp dword [rsp + 0x5e0], 1
jne 0x1401f6a65
lea rdx, [rsp + 0x608]
mov rcx, qword [rsp + 0x880]
call fcn.14014a01e
cmp qword [rsp + 0x608], 0
je 0x1401f6a9a
mov rax, qword [rsp + 0x608]
mov rax, qword [rax]
mov qword [rsp + 0x168], rax
mov rdx, qword [rsp + 0x608]
mov rcx, qword [rsp + 0x880]
call fcn.14014c19d
jmp 0x1401f6aa6
mov qword [rsp + 0x168], 0
cmp qword [rsp + 0x168], 0
jne 0x1401f6ad2
mov r8, qword [rsp + 0x5e8]
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, qword [rsp + 0x880]
call fcn.14014c6a2
jmp 0x1401f7240
mov qword [rsp + 0x5e8], 0
mov dword [rsp + 0x5e4], 0
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x170], rax
jmp 0x1401f6b0f
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x170], rax
cmp qword [rsp + 0x170], 0
je 0x1401f6b62
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 0x6e2]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x880]
call fcn.140148ee4
test eax, eax
je 0x1401f6b5e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x5e4], eax
jmp 0x1401f6afb
jmp 0x1401f6b62
cmp qword [rsp + 0x170], 0
jne 0x1401f6ba3
mov r8d, 0x100
lea rdx, [rsp + 0x640]
mov ecx, dword [rsp + 0x5e4]
call fcn.14014a4ce
mov r8, rax
lea rdx, [0x1404695d0]
mov rcx, qword [rsp + 0x880]
call fcn.14014c6a2
jmp 0x1401f7240
xor eax, eax
test eax, eax
jne 0x1401f6ba3
mov rax, qword [rsp + 0x170]
movsxd rax, dword [rax + 0x10]
mov r8, rax
mov rax, qword [rsp + 0x170]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rsp + 0x5c8]
call fcn.1401484b2
mov rax, qword [rsp + 0x170]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x184], eax
movzx eax, word [rsp + 0x614]
mov word [rsp + 0x61c], ax
movzx eax, word [rsp + 0x61c]
movzx ecx, word [rsp + 0x618]
cmp eax, ecx
jg 0x1401f6de1
mov rax, qword [rsp + 0x5c8]
movzx eax, word [rax]
cmp eax, 2
jne 0x1401f6c37
movzx ecx, word [rsp + 0x61c]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x5d0]
mov word [rcx + 2], ax
jmp 0x1401f6c51
movzx ecx, word [rsp + 0x61c]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x5d8]
mov word [rcx + 2], ax
mov r8d, dword [rsp + 0x184]
mov rdx, qword [rsp + 0x5c8]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1401f6dc7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x5e4], eax
movzx eax, byte [rsp + 0x620]
test eax, eax
je 0x1401f6d6d
cmp dword [rsp + 0x5e4], 0x2741
jne 0x1401f6d6d
mov r8d, 0x100
lea rdx, [rsp + 0x640]
mov ecx, dword [rsp + 0x5e4]
call fcn.14014a4ce
movzx ecx, word [rsp + 0x61c]
mov r9, rax
mov r8d, ecx
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s
mov rcx, qword [rsp + 0x880]
call fcn.14014b315
mov dword [rsp + 0x184], 0x80
mov eax, 8
imul rax, rax, 0
lea r8, [rsp + 0x184]
mov rdx, qword [rsp + 0x5c8]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + rax + 0x188]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1401f6d50
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x640]
mov ecx, eax
call fcn.14014a4ce
mov r8, rax
lea rdx, [0x140469618]
mov rcx, qword [rsp + 0x880]
call fcn.14014c6a2
jmp 0x1401f7240
movzx eax, word [rsp + 0x614]
mov word [rsp + 0x61c], ax
mov byte [rsp + 0x620], 0
jmp 0x1401f6bf3
cmp dword [rsp + 0x5e4], 0x2740
je 0x1401f6dc5
cmp dword [rsp + 0x5e4], 0xd
je 0x1401f6dc5
mov r8d, 0x100
lea rdx, [rsp + 0x640]
mov ecx, dword [rsp + 0x5e4]
call fcn.14014a4ce
movzx ecx, word [rsp + 0x61c]
mov r9, rax
mov r8d, ecx
lea rdx, str.bind_port_hu__failed:__s
mov rcx, qword [rsp + 0x880]
call fcn.14014c6a2
jmp 0x1401f7240
jmp 0x1401f6dc9
jmp 0x1401f6de1
movzx eax, word [rsp + 0x61c]
inc ax
mov word [rsp + 0x61c], ax
jmp 0x1401f6bf3
movzx eax, word [rsp + 0x61c]
movzx ecx, word [rsp + 0x618]
cmp eax, ecx
jle 0x1401f6e0e
lea rdx, str.bind___failed__we_ran_out_of_ports
mov rcx, qword [rsp + 0x880]
call fcn.14014c6a2
jmp 0x1401f7240
mov dword [rsp + 0x184], 0x80
lea r8, [rsp + 0x184]
mov rdx, qword [rsp + 0x5c8]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1401f6e6f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x640]
mov ecx, eax
call fcn.14014a4ce
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, qword [rsp + 0x880]
call fcn.14014c6a2
jmp 0x1401f7240
xor eax, eax
test eax, eax
jne 0x1401f6e6f
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1401f6ec0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x640]
mov ecx, eax
call fcn.14014a4ce
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, qword [rsp + 0x880]
call fcn.14014c6a2
jmp 0x1401f7240
xor eax, eax
test eax, eax
jne 0x1401f6ec0
mov r8d, Ordinal_50
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x170]
call fcn.140149f1f
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 0x2ba]
test eax, eax
jne 0x1401f6f0d
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 0x2b4]
test eax, eax
je 0x1401f6f0d
mov rax, qword [rsp + 0x48]
mov byte [rax + 0x2ba], 1
jmp 0x1401f6f1f
mov eax, dword [rsp + 0x888]
inc eax
mov dword [rsp + 0x888], eax
cmp dword [rsp + 0x888], 2
je 0x1401f71ec
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 0x2ba]
test eax, eax
jne 0x1401f6f49
cmp dword [rsp + 0x888], 0
jne 0x1401f6f49
jmp 0x1401f6f0f
cmp dword [rsp + 0x888], 1
jne 0x1401f6f65
mov rax, qword [rsp + 0x5c8]
movzx eax, word [rax]
cmp eax, 2
je 0x1401f6f65
jmp 0x1401f6f0f
mov rax, qword [rsp + 0x5c8]
movzx eax, word [rax]
mov dword [rsp + 0x860], eax
cmp dword [rsp + 0x860], 2
je 0x1401f6f8d
cmp dword [rsp + 0x860], 0x17
je 0x1401f6fa9
jmp 0x1401f6fc5
mov rax, qword [rsp + 0x5d0]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x61c], ax
jmp 0x1401f6fca
mov rax, qword [rsp + 0x5d8]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x61c], ax
jmp 0x1401f6fca
jmp 0x1401f6f0f
cmp dword [rsp + 0x888], 0
jne 0x1401f708e
mov rax, qword [rsp + 0x5c8]
movzx eax, word [rax]
cmp eax, 2
jne 0x1401f6ff5
mov dword [rsp + 0x864], 1
jmp 0x1401f7000
mov dword [rsp + 0x864], 2
movzx eax, word [rsp + 0x61c]
movsxd rcx, dword [rsp + 0x888]
imul rcx, rcx, 5
lea rdx, str.EPRT
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x50]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x864]
mov dword [rsp + 0x20], eax
mov r9, rcx
lea r8, str._s__d_s_hu
mov rcx, qword [rsp + 0x880]
call fcn.140146c43
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1401f7089
mov ecx, dword [rsp + 0x40]
call fcn.14014698c
mov r8, rax
lea rdx, str.Failure_sending_EPRT_command:__s
mov rcx, qword [rsp + 0x880]
call fcn.14014c6a2
jmp 0x1401f7240
jmp 0x1401f71ec
cmp dword [rsp + 0x888], 1
jne 0x1401f71e7
lea rax, [rsp + 0x88]
mov qword [rsp + 0x838], rax
lea rax, [rsp + 0x7e0]
mov qword [rsp + 0x840], rax
cmp qword [rsp + 0x838], 0
je 0x1401f7130
mov rax, qword [rsp + 0x838]
movsx eax, byte [rax]
test eax, eax
je 0x1401f7130
mov rax, qword [rsp + 0x838]
movsx eax, byte [rax]
cmp eax, 0x2e
jne 0x1401f70f3
mov rax, qword [rsp + 0x840]
mov byte [rax], Ordinal_46
jmp 0x1401f7108
mov rax, qword [rsp + 0x840]
mov rcx, qword [rsp + 0x838]
movzx ecx, byte [rcx]
mov byte [rax], cl
mov rax, qword [rsp + 0x840]
inc rax
mov qword [rsp + 0x840], rax
mov rax, qword [rsp + 0x838]
inc rax
mov qword [rsp + 0x838], rax
jmp 0x1401f70bc
mov rax, qword [rsp + 0x840]
mov byte [rax], 0
movzx eax, word [rsp + 0x61c]
and eax, 0xff
movzx ecx, word [rsp + 0x61c]
sar ecx, 8
mov dword [rsp + 0x20], eax
mov r9d, ecx
lea r8, str.__d__d
mov edx, reloc.WS2_32.dll_sendto
mov rcx, qword [rsp + 0x840]
call fcn.140146dc9
movsxd rax, dword [rsp + 0x888]
imul rax, rax, 5
lea rcx, str.EPRT
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x7e0]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [0x1404696f4]
mov rdx, rcx
mov rcx, qword [rsp + 0x880]
call fcn.140146c43
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1401f71e5
mov ecx, dword [rsp + 0x40]
call fcn.14014698c
mov r8, rax
lea rdx, str.Failure_sending_PORT_command:__s
mov rcx, qword [rsp + 0x880]
call fcn.14014c6a2
jmp 0x1401f7240
jmp 0x1401f71ec
jmp 0x1401f6f0f
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x888]
mov dword [rax + 0x100], ecx
lea r9, [rsp + 0x68]
mov r8d, 1
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x880]
call fcn.140147b75
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1401f7228
jmp 0x1401f7240
mov qword [rsp + 0x68], 0xffffffffffffffff
mov dl, 0x1c
mov rcx, qword [rsp + 0x880]
call fcn.1401f2030
cmp dword [rsp + 0x40], 0
je 0x1401f7256
xor edx, edx
mov rcx, qword [rsp + 0x880]
call fcn.1401f2030
cmp qword [rsp + 0x68], 0xffffffffffffffff
je 0x1401f7275
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x880]
call fcn.14014b135
mov eax, dword [rsp + 0x40]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_htons
call fcn.14014a9ba
mov rax, rdi
mov rcx, qword [rsp + 0x868]
xor rcx, rsp
call fcn.14014847b
add rsp, 0x870
pop rdi
ret