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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xac0
mov rax, qword [0x140158280]
xor rax, rsp
mov qword [rsp + 0xab0], rax
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0xad0]
add rax, 0x8f8
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xad0]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0xffffffffffffffff
movzx eax, byte [0x140168cf7]
mov byte [rsp + 0x1a0], al
lea rax, [rsp + 0x1a1]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
lea rax, [rsp + 0x120]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x80], 0
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx + rax + 0x5c8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0xb0], 0
xor eax, eax
mov word [rsp + 0x3c], ax
xor eax, eax
mov word [rsp + 0x34], ax
mov byte [rsp + 0x38], 1
mov qword [rsp + 0x68], 0
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x50]
cmp qword [rcx + rax + 0x5c8], 0
je 0x1400f7e43
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + rax + 0x5c8]
call fcn.1400767a0
cmp rax, 1
jbe 0x1400f7e43
mov rcx, qword [rsp + 0x78]
call fcn.1400767a0
cmp rax, 0x16
jae 0x1400f7bb5
mov qword [rsp + 0xf0], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400f7bc7
mov rcx, qword [rsp + 0x78]
call fcn.1400767a0
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x90], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xd0], 0
mov rax, qword [rsp + 0x108]
inc rax
mov edx, 1
mov rcx, rax
call qword [fcn.140075610]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1400f7c38
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400f86dd
mov rax, qword [rsp + 0x78]
movsx eax, byte [rax]
cmp eax, 0x3a
jne 0x1400f7c54
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x90], rax
jmp 0x1400f7caf
mov edx, Ordinal_60
mov rcx, qword [rsp + 0x78]
call fcn.140076b98
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x1400f7ca0
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x90]
sub rcx, rax
mov rax, rcx
mov r8, rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
call fcn.1400770a0
jmp 0x1400f7caf
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
call fcn.140076ae0
cmp qword [rsp + 0x90], 0
je 0x1400f7d62
mov edx, Ordinal_60
mov rcx, qword [rsp + 0x90]
call fcn.140076b98
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
je 0x1400f7d62
mov rax, qword [rsp + 0xc0]
inc rax
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call fcn.140076edc
mov ecx, eax
call fcn.1400dacc0
mov word [rsp + 0x3c], ax
mov edx, reloc.WLDAP32.dll_Ordinal_45
mov rcx, qword [rsp + 0xc0]
call fcn.140076b98
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
je 0x1400f7d58
mov rax, qword [rsp + 0xd0]
inc rax
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call fcn.140076edc
mov ecx, eax
call fcn.1400dacc0
mov word [rsp + 0x34], ax
jmp 0x1400f7d62
movzx eax, word [rsp + 0x3c]
mov word [rsp + 0x34], ax
movzx eax, word [rsp + 0x3c]
movzx ecx, word [rsp + 0x34]
cmp eax, ecx
jle 0x1400f7d81
xor eax, eax
mov word [rsp + 0x34], ax
movzx eax, word [rsp + 0x34]
mov word [rsp + 0x3c], ax
mov rax, qword [rsp + 0x68]
movsx eax, byte [rax]
test eax, eax
je 0x1400f7e37
mov rax, qword [rsp + 0xad0]
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x20]
call fcn.1401001b0
mov rcx, qword [rsp + 0xad0]
mov rcx, qword [rcx + 0x70]
mov dword [rsp + 0x28], 0x401
lea rdx, [rsp + 0x2a0]
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0x68]
mov rdx, qword [rsp + 0xad0]
mov r8d, dword [rdx + 0xb8]
mov edx, eax
mov ecx, dword [rcx + 4]
call fcn.1401001c0
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
je 0x1400f7e0c
cmp dword [rsp + 0x88], 1
je 0x1400f7e1b
cmp dword [rsp + 0x88], 2
je 0x1400f7e25
jmp 0x1400f7e35
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x80], rax
jmp 0x1400f7e35
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400f86dd
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x80], rax
jmp 0x1400f7e43
mov qword [rsp + 0x80], 0
cmp qword [rsp + 0x80], 0
jne 0x1400f7f13
mov dword [rsp + 0x48], 0x80
mov eax, 8
imul rax, rax, 0
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xad0]
mov rcx, qword [rcx + rax + 0x238]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400f7ec5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, qword [rsp + 0xad0]
call fcn.140101900
mov r8, rax
lea rdx, [0x14015fb30]
mov rcx, qword [rsp + 0x50]
call fcn.1400c3080
mov rcx, qword [rsp + 0x68]
call qword [str.L_b_a_]
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400f86dd
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
mov dword [rsp + 0x110], eax
mov rax, qword [rsp + 0xe8]
add rax, 4
mov rcx, qword [rsp + 0x60]
movzx ecx, word [rcx]
mov r9d, 0x401
lea r8, [rsp + 0x2a0]
mov rdx, rax
call fcn.140100150
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x80], rax
mov byte [rsp + 0x38], 0
lea r9, [rsp + 0xb0]
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xad0]
call fcn.1400bfc20
mov dword [rsp + 0xc8], eax
cmp dword [rsp + 0xc8], 1
jne 0x1400f7f59
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0xad0]
call fcn.1400c0c90
cmp qword [rsp + 0xb0], 0
je 0x1400f7f8b
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0xd8], rax
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x50]
call fcn.1400c0130
jmp 0x1400f7f97
mov qword [rsp + 0xd8], 0
cmp qword [rsp + 0xd8], 0
jne 0x1400f7fd0
mov r8, qword [rsp + 0x80]
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400c3080
mov rcx, qword [rsp + 0x68]
call qword [str.L_b_a_]
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400f86dd
mov rcx, qword [rsp + 0x68]
call qword [str.L_b_a_]
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x58], 0xffffffffffffffff
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x70], rax
jmp 0x1400f8015
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x1400f8052
lea r9, [rsp + 0x58]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xad0]
call fcn.1400bce60
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1400f804e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400f8007
jmp 0x1400f8052
cmp qword [rsp + 0x70], 0
jne 0x1400f8089
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xad0]
call fcn.140101900
mov r8, rax
lea rdx, [0x14015fb88]
mov rcx, qword [rsp + 0x50]
call fcn.1400c3080
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400f86dd
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x10]
mov r8, rax
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
call fcn.14006eda0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x48], eax
movzx eax, word [rsp + 0x3c]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
movzx ecx, word [rsp + 0x34]
cmp eax, ecx
jg 0x1400f8261
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 2
jne 0x1400f80f4
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0xe8]
mov word [rcx + 2], ax
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1400f824d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x44], eax
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x1400f81f1
cmp dword [rsp + 0x44], 0x2741
jne 0x1400f81f1
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xad0]
call fcn.140101900
movzx ecx, word [rsp + 0x30]
mov r9, rax
mov r8d, ecx
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s_n
mov rcx, qword [rsp + 0x50]
call fcn.1400c2b50
mov dword [rsp + 0x48], 0x80
mov eax, 8
imul rax, rax, 0
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xad0]
mov rcx, qword [rcx + rax + 0x238]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400f81dd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, qword [rsp + 0xad0]
call fcn.140101900
mov r8, rax
lea rdx, [0x14015fbd0]
mov rcx, qword [rsp + 0x50]
call fcn.1400c3080
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xad0]
call fcn.1400be200
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400f86dd
movzx eax, word [rsp + 0x3c]
mov word [rsp + 0x30], ax
mov byte [rsp + 0x38], 0
jmp 0x1400f80be
cmp dword [rsp + 0x44], 0x2740
je 0x1400f824b
cmp dword [rsp + 0x44], 0xd
je 0x1400f824b
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xad0]
call fcn.140101900
movzx ecx, word [rsp + 0x30]
mov r9, rax
mov r8d, ecx
lea rdx, str.bind_port_hu__failed:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400c3080
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xad0]
call fcn.1400be200
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400f86dd
jmp 0x1400f824f
jmp 0x1400f8261
movzx eax, word [rsp + 0x30]
inc ax
mov word [rsp + 0x30], ax
jmp 0x1400f80be
movzx eax, word [rsp + 0x30]
movzx ecx, word [rsp + 0x34]
cmp eax, ecx
jle 0x1400f829c
lea rdx, str.bind___failed__we_ran_out_of_ports_
mov rcx, qword [rsp + 0x50]
call fcn.1400c3080
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xad0]
call fcn.1400be200
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400f86dd
mov dword [rsp + 0x48], 0x80
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400f8302
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, qword [rsp + 0xad0]
call fcn.140101900
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400c3080
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xad0]
call fcn.1400be200
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400f86dd
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1400f835b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, qword [rsp + 0xad0]
call fcn.140101900
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400c3080
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xad0]
call fcn.1400be200
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400f86dd
mov r8d, 0x100
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x70]
call fcn.1400bfb70
jmp 0x1400f8385
mov eax, dword [rsp + 0xad8]
inc eax
mov dword [rsp + 0xad8], eax
cmp dword [rsp + 0xad8], 2
je 0x1400f866e
mov rax, qword [rsp + 0xad0]
movzx eax, byte [rax + 0x565]
test eax, eax
jne 0x1400f83b2
cmp dword [rsp + 0xad8], 0
jne 0x1400f83b2
jmp 0x1400f8375
cmp dword [rsp + 0xad8], 1
jne 0x1400f83cb
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 2
je 0x1400f83cb
jmp 0x1400f8375
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
mov dword [rsp + 0xe0], eax
cmp dword [rsp + 0xe0], 2
je 0x1400f83e6
jmp 0x1400f83ff
mov rax, qword [rsp + 0xe8]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x30], ax
jmp 0x1400f8404
jmp 0x1400f8375
cmp dword [rsp + 0xad8], 0
jne 0x1400f8501
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 2
jne 0x1400f842c
mov dword [rsp + 0xa8], 1
jmp 0x1400f8437
mov dword [rsp + 0xa8], 2
movzx eax, word [rsp + 0x30]
movsxd rcx, dword [rsp + 0xad8]
imul rcx, rcx, 5
lea rdx, str.EPRT
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0xb8]
mov qword [rsp + 0xf8], rdx
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa8]
mov r8, rcx
lea rdx, str._s__d_s_hu
mov rax, qword [rsp + 0xf8]
mov rcx, rax
call fcn.1401110d0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1400f84fc
mov ecx, dword [rsp + 0x40]
call fcn.140101380
mov r8, rax
lea rdx, str.Failure_sending_EPRT_command:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400c3080
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xad0]
call fcn.1400be200
mov rax, qword [rsp + 0xb8]
mov dword [rax + 0xac], 1
xor edx, edx
mov rcx, qword [rsp + 0xad0]
call fcn.1400f8b90
mov eax, dword [rsp + 0x40]
jmp 0x1400f86dd
jmp 0x1400f866e
cmp dword [rsp + 0xad8], 1
jne 0x1400f8669
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x6b0]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0x98], 0
je 0x1400f85a3
mov rax, qword [rsp + 0x98]
movsx eax, byte [rax]
test eax, eax
je 0x1400f85a3
mov rax, qword [rsp + 0x98]
movsx eax, byte [rax]
cmp eax, 0x2e
jne 0x1400f8566
mov rax, qword [rsp + 0xa0]
mov byte [rax], Ordinal_46
jmp 0x1400f857b
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
movzx ecx, byte [rcx]
mov byte [rax], cl
mov rax, qword [rsp + 0xa0]
inc rax
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x98]
inc rax
mov qword [rsp + 0x98], rax
jmp 0x1400f852f
mov rax, qword [rsp + 0xa0]
mov byte [rax], 0
movzx eax, word [rsp + 0x30]
and eax, 0xff
movzx ecx, word [rsp + 0x30]
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 + 0xa0]
call fcn.1400dee70
movsxd rax, dword [rsp + 0xad8]
imul rax, rax, 5
lea rcx, str.EPRT
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xb8]
lea r9, [rsp + 0x6b0]
mov r8, rax
lea rdx, [0x14015e97c]
call fcn.1401110d0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1400f8667
mov ecx, dword [rsp + 0x40]
call fcn.140101380
mov r8, rax
lea rdx, str.Failure_sending_PORT_command:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400c3080
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xad0]
call fcn.1400be200
xor edx, edx
mov rcx, qword [rsp + 0xad0]
call fcn.1400f8b90
mov eax, dword [rsp + 0x40]
jmp 0x1400f86dd
jmp 0x1400f866e
jmp 0x1400f8375
mov rax, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0xad8]
mov dword [rax + 0xac], ecx
mov rcx, qword [rsp + 0xad0]
call fcn.1400f9890
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0xad0]
mov rdx, qword [rsp + 0x58]
mov qword [rcx + rax + 0x238], rdx
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0xad0]
mov byte [rcx + rax + 0x55d], 1
mov edx, Ordinal_30
mov rcx, qword [rsp + 0xad0]
call fcn.1400f8b90
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xab0]
xor rcx, rsp
call fcn.14006ed70
add rsp, 0xac0
pop rdi
ret