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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb30
mov rax, qword [0x1401af0e8]
xor rax, rsp
mov qword [rsp + 0xb20], rax
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0xb40]
add rax, 0x798
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xb40]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0xffffffffffffffff
mov al, byte [0x1401c0131]
mov byte [rsp + 0x210], al
lea rax, [rsp + 0x211]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
lea rax, [rsp + 0x110]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x78], 0
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx + rax + 0xbc8]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0xb0], 0
xor eax, eax
mov word [rsp + 0x3c], ax
xor eax, eax
mov word [rsp + 0x38], ax
mov byte [rsp + 0x34], 1
mov qword [rsp + 0x68], 0
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x50]
cmp qword [rcx + rax + 0xbc8], 0
je 0x14012af51
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + rax + 0xbc8]
call fcn.14008d570
cmp rax, 1
jbe 0x14012af51
mov rcx, qword [rsp + 0x80]
call fcn.14008d570
cmp rax, 0x16
jae 0x14012acb7
mov qword [rsp + 0xe8], reloc.WLDAP32.dll_Ordinal_22
jmp 0x14012accc
mov rcx, qword [rsp + 0x80]
call fcn.14008d570
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x90], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xd0], 0
mov rax, qword [rsp + 0xf8]
inc rax
mov edx, 1
mov rcx, rax
call qword [fcn.14008ac94]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14012ad40
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14012b80a
mov rax, qword [rsp + 0x80]
movsx eax, byte [rax]
cmp eax, 0x3a
jne 0x14012ad62
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
jmp 0x14012adc6
mov edx, Ordinal_60
mov rcx, qword [rsp + 0x80]
call fcn.14006e220
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x14012adb4
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x90]
sub rcx, rax
mov rax, rcx
mov r8, rax
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call fcn.1400a3f40
jmp 0x14012adc6
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call fcn.14008d6d0
cmp qword [rsp + 0x90], 0
je 0x14012ae79
mov edx, Ordinal_60
mov rcx, qword [rsp + 0x90]
call fcn.14006e220
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x14012ae79
mov rax, qword [rsp + 0xb8]
inc rax
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call fcn.1400928d4
mov ecx, eax
call fcn.1400ddfbc
mov word [rsp + 0x3c], ax
mov edx, reloc.WLDAP32.dll_Ordinal_45
mov rcx, qword [rsp + 0xb8]
call fcn.14006e220
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
je 0x14012ae6f
mov rax, qword [rsp + 0xd0]
inc rax
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call fcn.1400928d4
mov ecx, eax
call fcn.1400ddfbc
mov word [rsp + 0x38], ax
jmp 0x14012ae79
movzx eax, word [rsp + 0x3c]
mov word [rsp + 0x38], ax
movzx eax, word [rsp + 0x3c]
movzx ecx, word [rsp + 0x38]
cmp eax, ecx
jle 0x14012ae98
xor eax, eax
mov word [rsp + 0x38], ax
movzx eax, word [rsp + 0x38]
mov word [rsp + 0x3c], ax
mov rax, qword [rsp + 0x68]
movsx eax, byte [rax]
test eax, eax
je 0x14012af48
mov rax, qword [rsp + 0xb40]
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x20]
call fcn.14010cd40
mov rcx, qword [rsp + 0xb40]
mov rcx, qword [rcx + 0x70]
mov dword [rsp + 0x28], 0x401
lea rdx, [rsp + 0x310]
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0x68]
mov rdx, qword [rsp + 0xb40]
mov r8d, dword [rdx + 0xb8]
mov edx, eax
mov ecx, dword [rcx + 4]
call fcn.14010cd24
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
je 0x14012af23
cmp dword [rsp + 0x88], 1
je 0x14012af2f
cmp dword [rsp + 0x88], 2
je 0x14012af39
jmp 0x14012af46
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x78], rax
jmp 0x14012af46
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14012b80a
lea rax, [rsp + 0x310]
mov qword [rsp + 0x78], rax
jmp 0x14012af51
mov qword [rsp + 0x78], 0
cmp qword [rsp + 0x78], 0
jne 0x14012b021
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 + 0xb40]
mov rcx, qword [rcx + rax + 0x240]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14012afd6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rsp + 0x190]
mov ecx, eax
call fcn.14010c9c8
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400ddbc8
mov rcx, qword [rsp + 0x68]
call qword [fcn.140088928]
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14012b80a
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
mov dword [rsp + 0xf0], eax
mov rax, qword [rsp + 0xe0]
add rax, 4
mov rcx, qword [rsp + 0x60]
movzx ecx, word [rcx]
mov r9d, 0x401
lea r8, [rsp + 0x310]
mov rdx, rax
call fcn.14010ce94
lea rax, [rsp + 0x310]
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x34], 0
lea r9, [rsp + 0xb0]
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xb40]
call fcn.1400e2878
mov dword [rsp + 0xc8], eax
cmp dword [rsp + 0xc8], 1
jne 0x14012b064
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0xb40]
call fcn.1400f3fd8
cmp qword [rsp + 0xb0], 0
je 0x14012b096
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.1400e2c4c
jmp 0x14012b0a2
mov qword [rsp + 0xd8], 0
cmp qword [rsp + 0xd8], 0
jne 0x14012b0d8
mov r8, qword [rsp + 0x78]
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400ddbc8
mov rcx, qword [rsp + 0x68]
call qword [fcn.140088928]
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14012b80a
mov rcx, qword [rsp + 0x68]
call qword [fcn.140088928]
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x58], 0xffffffffffffffff
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x70], rax
jmp 0x14012b11a
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x14012b157
lea r9, [rsp + 0x58]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xb40]
call fcn.1400de32c
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14012b153
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x44], eax
jmp 0x14012b10c
jmp 0x14012b157
cmp qword [rsp + 0x70], 0
jne 0x14012b194
mov r8d, 0x80
lea rdx, [rsp + 0x190]
mov ecx, dword [rsp + 0x44]
call fcn.14010c9c8
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400ddbc8
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14012b80a
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.14006dad0
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 + 0x38]
cmp eax, ecx
jg 0x14012b37e
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 2
jne 0x14012b1ff
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0xe0]
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 0x14012b36a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x44], eax
movzx eax, byte [rsp + 0x34]
test eax, eax
je 0x14012b308
cmp dword [rsp + 0x44], 0x2741
jne 0x14012b308
mov r8d, 0x80
lea rdx, [rsp + 0x190]
mov ecx, dword [rsp + 0x44]
call fcn.14010c9c8
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.1400dd610
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 + 0xb40]
mov rcx, qword [rcx + rax + 0x240]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14012b2f4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rsp + 0x190]
mov ecx, eax
call fcn.14010c9c8
mov r8, rax
lea rdx, [0x1401b8d08]
mov rcx, qword [rsp + 0x50]
call fcn.1400ddbc8
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb40]
call fcn.1400de508
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14012b80a
movzx eax, word [rsp + 0x3c]
mov word [rsp + 0x30], ax
mov byte [rsp + 0x34], 0
jmp 0x14012b1c9
cmp dword [rsp + 0x44], 0x2740
je 0x14012b368
cmp dword [rsp + 0x44], 0xd
je 0x14012b368
mov r8d, 0x80
lea rdx, [rsp + 0x190]
mov ecx, dword [rsp + 0x44]
call fcn.14010c9c8
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.1400ddbc8
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb40]
call fcn.1400de508
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14012b80a
jmp 0x14012b36c
jmp 0x14012b37e
movzx eax, word [rsp + 0x30]
inc ax
mov word [rsp + 0x30], ax
jmp 0x14012b1c9
movzx eax, word [rsp + 0x30]
movzx ecx, word [rsp + 0x38]
cmp eax, ecx
jle 0x14012b3b9
lea rdx, str.bind___failed__we_ran_out_of_ports_
mov rcx, qword [rsp + 0x50]
call fcn.1400ddbc8
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb40]
call fcn.1400de508
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14012b80a
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 0x14012b425
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rsp + 0x190]
mov ecx, eax
call fcn.14010c9c8
mov r8, rax
lea rdx, [0x1401b8ca0]
mov rcx, qword [rsp + 0x50]
call fcn.1400ddbc8
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb40]
call fcn.1400de508
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14012b80a
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14012b484
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rsp + 0x190]
mov ecx, eax
call fcn.14010c9c8
mov r8, rax
lea rdx, [0x1401b8c88]
mov rcx, qword [rsp + 0x50]
call fcn.1400ddbc8
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb40]
call fcn.1400de508
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14012b80a
mov r8d, 0x100
lea rdx, [rsp + 0x210]
mov rcx, qword [rsp + 0x70]
call fcn.1400e2808
jmp 0x14012b4ae
mov eax, dword [rsp + 0xb48]
inc eax
mov dword [rsp + 0xb48], eax
cmp dword [rsp + 0xb48], 2
je 0x14012b79b
mov rax, qword [rsp + 0xb40]
mov eax, dword [rax + 0x3c4]
shr eax, 0x12
and eax, 1
test eax, eax
jne 0x14012b4e0
cmp dword [rsp + 0xb48], 0
jne 0x14012b4e0
jmp 0x14012b49e
cmp dword [rsp + 0xb48], 1
jne 0x14012b4f9
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 2
je 0x14012b4f9
jmp 0x14012b49e
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
mov dword [rsp + 0xcc], eax
cmp dword [rsp + 0xcc], 2
je 0x14012b514
jmp 0x14012b52d
mov rax, qword [rsp + 0xe0]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x30], ax
jmp 0x14012b532
jmp 0x14012b49e
cmp dword [rsp + 0xb48], 0
jne 0x14012b62f
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 2
jne 0x14012b55a
mov dword [rsp + 0xa8], 1
jmp 0x14012b565
mov dword [rsp + 0xa8], 2
movzx eax, word [rsp + 0x30]
movsxd rcx, dword [rsp + 0xb48]
imul rcx, rcx, 5
lea rdx, str.EPRT
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0xc0]
mov qword [rsp + 0x108], rdx
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x210]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa8]
mov r8, rcx
lea rdx, str._s__d_s_hu
mov rax, qword [rsp + 0x108]
mov rcx, rax
call fcn.140143058
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14012b62a
mov ecx, dword [rsp + 0x40]
call fcn.14010c444
mov r8, rax
lea rdx, str.Failure_sending_EPRT_command:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400ddbc8
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb40]
call fcn.1400de508
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0xb0], 1
xor edx, edx
mov rcx, qword [rsp + 0xb40]
call fcn.14012bcbc
mov eax, dword [rsp + 0x40]
jmp 0x14012b80a
jmp 0x14012b79b
cmp dword [rsp + 0xb48], 1
jne 0x14012b796
lea rax, [rsp + 0x210]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x720]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0x98], 0
je 0x14012b6d0
mov rax, qword [rsp + 0x98]
movsx eax, byte [rax]
test eax, eax
je 0x14012b6d0
mov rax, qword [rsp + 0x98]
movsx eax, byte [rax]
cmp eax, 0x2e
jne 0x14012b694
mov rax, qword [rsp + 0xa0]
mov byte [rax], Ordinal_46
jmp 0x14012b6a8
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
mov cl, 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 0x14012b65d
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.1400f7eec
movsxd rax, dword [rsp + 0xb48]
imul rax, rax, 5
lea rcx, str.EPRT
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xc0]
lea r9, [rsp + 0x720]
mov r8, rax
lea rdx, [0x1401b8c44]
call fcn.140143058
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14012b794
mov ecx, dword [rsp + 0x40]
call fcn.14010c444
mov r8, rax
lea rdx, str.Failure_sending_PORT_command:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400ddbc8
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb40]
call fcn.1400de508
xor edx, edx
mov rcx, qword [rsp + 0xb40]
call fcn.14012bcbc
mov eax, dword [rsp + 0x40]
jmp 0x14012b80a
jmp 0x14012b79b
jmp 0x14012b49e
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0xb48]
mov dword [rax + 0xb0], ecx
mov rcx, qword [rsp + 0xb40]
call fcn.14012c928
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0xb40]
mov rdx, qword [rsp + 0x58]
mov qword [rcx + rax + 0x240], rdx
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0xb40]
mov byte [rcx + rax + 0x3c2], 1
mov edx, Ordinal_30
mov rcx, qword [rsp + 0xb40]
call fcn.14012bcbc
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xb20]
xor rcx, rsp
call fcn.14006ba30
add rsp, 0xb30
pop rdi
ret