Function at 0x1800af150
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
sub rsp, 0x9f0
mov rax, qword [0x180109f10]
xor rax, rsp
mov qword [rsp + 0x9e0], rax
mov rdi, qword [rcx]
mov rsi, rcx
mov ebx, edx
lea rcx, [rsp + 0xd1]
xor edx, edx
mov r8d, 0xff
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], 0xffffffffffffffff
mov byte [rsp + 0xd0], 0
call fcn.18005dcd0
mov rbp, qword [rdi + 0x550]
xor eax, eax
mov qword [rsp + 0x48], rax
mov rdi, qword [rdi + 0x550]
mov r15w, ax
mov r13w, ax
lea r14d, [rax + 1]
mov r12, rax
test rdi, rdi
je 0x1800ab912
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, r14
jbe 0x1800ab912
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov rdx, r14
repne scasb al, byte [rdi]
mov eax, reloc.WLDAP32.dll_Ordinal_22
not rcx
dec rcx
cmp rcx, rax
cmovb rcx, rax
inc rcx
call qword [fcn.1800889e4]
mov r12, rax
test rax, rax
jne 0x1800ab7f6
lea eax, [r14 + 0x1a]
jmp 0x1800abe40
cmp byte [rbp], 0x3a
jne 0x1800ab801
mov rdi, rbp
jmp 0x1800ab82b
mov edx, Ordinal_60
mov rcx, rbp
call fcn.18008a7d0
mov rcx, r12
mov rdi, rax
test rax, rax
je 0x1800ab8a5
mov r8, rax
mov rdx, rbp
sub r8, rbp
call fcn.1800c26b0
test rdi, rdi
je 0x1800ab8bf
mov edx, Ordinal_60
mov rcx, rdi
call fcn.18008a7d0
mov rdi, rax
test rax, rax
je 0x1800ab8bf
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.18006ed80
mov ecx, eax
call fcn.1800b47c0
mov edx, Ordinal_46
mov rcx, rdi
mov r15w, ax
call fcn.18008a7d0
test rax, rax
je 0x1800ab89f
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.18006ed80
mov ecx, eax
call fcn.1800b47c0
mov r13w, ax
cmp r15w, ax
jbe 0x1800ab8bf
xor eax, eax
mov r13d, eax
mov r15d, eax
jmp 0x1800ab8bf
mov r13w, r15w
jmp 0x1800ab8bf
sub rcx, rbp
nop dword [rax + rax]
movzx eax, byte [rbp]
inc rbp
mov byte [rcx + rbp - 1], al
test al, al
jne 0x1800ab8b0
cmp byte [r12], 0
je 0x1800ab912
mov rcx, qword [rsi + 0x58]
mov rcx, qword [rcx + 0x20]
call fcn.1800bbac0
mov r8d, dword [rsi + 0xa0]
lea rcx, [rsp + 0x1d0]
mov edx, eax
mov rax, qword [rsi + 0x58]
mov dword [rsp + 0x28], 0x401
mov qword [rsp + 0x20], rcx
mov ecx, dword [rax + 4]
mov r9, r12
call fcn.1800bbae0
test eax, eax
je 0x1800ab954
sub eax, r14d
je 0x1800abe3b
cmp eax, r14d
je 0x1800ab979
mov rcx, qword [rsi + 0x1a8]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1800ab959
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
call fcn.18008bd00
lea rdx, str.getsockname___failed:__s
mov r8, rax
jmp 0x1800abe28
mov rdi, r12
jmp 0x1800ab981
movzx ecx, word [rsp + 0x50]
lea r8, [rsp + 0x1d0]
lea rdx, [rsp + 0x54]
mov r9d, 0x401
call fcn.18009e860
xor r14d, r14d
lea rdi, [rsp + 0x1d0]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.18008ea00
cmp eax, 1
jne 0x1800ab9a6
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.18008e290
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1800abe1e
mov rcx, qword [rsp + 0x40]
mov rbp, qword [rdx]
call fcn.18008ef70
test rbp, rbp
je 0x1800abe1e
mov rcx, r12
call qword [fcn.180058548]
mov qword [rsp + 0x38], 0xffffffffffffffff
xor edi, edi
nop
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call fcn.18009b770
mov r12d, eax
test eax, eax
je 0x1800aba0d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rbp, qword [rbp + 0x28]
mov edi, eax
test rbp, rbp
jne 0x1800ab9e0
jmp 0x1800aba12
test rbp, rbp
jne 0x1800aba35
mov edx, edi
mov rcx, rsi
call fcn.18008bd00
mov rcx, qword [rsp + 0x40]
lea rdx, str.socket_failure:__s
mov r8, rax
call fcn.180098510
jmp 0x1800abe3b
movsxd r8, dword [rbp + 0x10]
mov rdx, qword [rbp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.180061140
mov edx, dword [rbp + 0x10]
movzx edi, r15w
mov dword [rsp + 0x30], edx
cmp r15w, r13w
ja 0x1800abb0f
nop dword [rax]
cmp word [rsp + 0x50], 2
jne 0x1800aba76
movzx ecx, di
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1800abb9a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test r14d, r14d
je 0x1800abaf6
cmp eax, 0x2741
jne 0x1800abaf6
mov edx, eax
mov rcx, rsi
call fcn.18008bd00
movzx r8d, di
mov rdi, qword [rsp + 0x40]
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s_n
mov rcx, rdi
mov r9, rax
call fcn.180098460
mov rcx, qword [rsi + 0x1a8]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1800abb32
mov di, r15w
xor r14d, r14d
jmp 0x1800abb05
cmp eax, 0x2740
je 0x1800abb02
cmp eax, 0xd
jne 0x1800abb66
inc di
cmp di, r13w
jbe 0x1800aba60
mov rcx, qword [rsp + 0x40]
lea rdx, str.bind___failed__we_ran_out_of_ports_
call fcn.180098510
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.18009b700
jmp 0x1800abe3b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
call fcn.18008bd00
mov rcx, rdi
lea rdx, str.getsockname___failed:__s
mov r8, rax
call fcn.180098510
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.18009b700
jmp 0x1800abe3b
mov edx, eax
mov rcx, rsi
call fcn.18008bd00
mov rcx, qword [rsp + 0x40]
lea rdx, str.bind_port_hu__failed:__s
mov r9, rax
movzx r8d, di
call fcn.180098510
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.18009b700
jmp 0x1800abe3b
cmp di, r13w
ja 0x1800abb0f
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1800abbdf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
call fcn.18008bd00
mov rcx, qword [rsp + 0x40]
jmp 0x1800abb45
mov rcx, qword [rsp + 0x38]
mov edx, 1
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1800abc14
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
call fcn.18008bd00
mov rcx, qword [rsp + 0x40]
lea rdx, str.socket_failure:__s
jmp 0x1800abb4c
lea rdx, [rsp + 0xd0]
mov r8d, 0x100
mov rcx, rbp
call fcn.18008e650
cmp ebx, 2
je 0x1800abc7a
movzx eax, word [rsp + 0x50]
cmp dword [rsi + 0x2bc], 0
jne 0x1800abc41
test ebx, ebx
je 0x1800abc73
cmp ebx, 1
jne 0x1800abc4c
cmp ax, 2
jne 0x1800abc73
cmp ax, 2
jne 0x1800abc73
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r11d, ax
test ebx, ebx
je 0x1800abd8e
cmp ebx, 1
je 0x1800abcc7
mov ax, word [rsp + 0x50]
inc ebx
cmp ebx, 2
jne 0x1800abc34
lea rdi, [rsi + 0x520]
mov dword [rdi + 0xac], ebx
mov rdx, qword [rsi + 0x1b0]
cmp rdx, 0xffffffffffffffff
je 0x1800abc9c
mov rcx, rsi
call fcn.18009b700
mov rax, qword [rsp + 0x38]
mov edx, Ordinal_32
mov rcx, rsi
mov qword [rsi + 0x1b0], rax
mov dword [rsi + 0x2a0], 1
call fcn.1800ab5d0
mov eax, r12d
jmp 0x1800abe40
lea rdi, [rsp + 0x5e0]
lea rdx, [rsp + 0xd0]
mov r8d, Ordinal_46
nop dword [rax]
movzx ecx, byte [rdx]
test cl, cl
je 0x1800abcfd
cmp cl, 0x2e
movzx eax, cl
cmove eax, r8d
inc rdi
add rdx, 1
mov byte [rdi - 1], al
jne 0x1800abce0
movzx r9d, r11w
lea r8, str.__d__d
mov edx, reloc.WS2_32.dll_sendto
movzx eax, r9b
mov rcx, rdi
shr r9d, 8
mov dword [rsp + 0x20], eax
mov byte [rdi], 0
call fcn.18009ca10
lea rdi, [rsi + 0x520]
lea r9, [rsp + 0x5e0]
lea r8, str.PORT
lea rdx, [0x1800df800]
mov rcx, rdi
call fcn.1800bbd20
mov r12d, eax
test eax, eax
je 0x1800abc81
mov ecx, eax
call fcn.18008b3e0
mov rcx, qword [rsp + 0x40]
lea rdx, str.Failure_sending_PORT_command:__s
mov r8, rax
call fcn.180098510
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.18009b700
xor edx, edx
mov rcx, rsi
call fcn.1800ab5d0
mov eax, r12d
jmp 0x1800abe40
cmp word [rsp + 0x50], 2
movzx eax, r11w
mov ecx, 0
setne cl
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0xd0]
lea r9d, [rcx + 1]
lea rdi, [rsi + 0x520]
lea r8, str.EPRT
lea rdx, str._s__d_s_hu
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1800bbd20
mov r12d, eax
test eax, eax
je 0x1800abc81
mov ecx, eax
call fcn.18008b3e0
mov rcx, qword [rsp + 0x40]
lea rdx, str.Failure_sending_EPRT_command:__s
mov r8, rax
call fcn.180098510
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.18009b700
xor edx, edx
mov rcx, rsi
mov dword [rdi + 0xac], 1
call fcn.1800ab5d0
mov eax, r12d
jmp 0x1800abe40
mov r8, rdi
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, qword [rsp + 0x40]
call fcn.180098510
mov rcx, r12
call qword [fcn.180058548]
mov eax, reloc.WLDAP32.dll_Ordinal_30
mov rcx, qword [rsp + 0x9e0]
xor rcx, rsp
call fcn.1800576a0
mov rbx, qword [rsp + 0xa40]
add rsp, 0x9f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
push rbx
sub rsp, 0x20
mov rdx, qword [rcx]
mov rbx, rcx
mov rax, qword [rdx + 0x1a8]
cmp dword [rax + 0x18], 0
je 0x1800af186
mov edx, reloc.WS2_32.dll_listen
call fcn.1800ab5d0
mov edx, 1
lea r8d, [rdx + 0xc]
add rsp, 0x20
pop rbx
jmp fcn.1800ae760
cmp dword [rdx + 0x470], 0
je 0x1800af19b
xor edx, edx
add rsp, 0x20
pop rbx
jmp 0x1800ab720
cmp dword [rdx + 0x4bc], 0
je 0x1800af23e
mov r8, qword [rcx + 0x5a0]
test r8, r8
jne 0x1800af1f6
mov r8, qword [rdx + 0x528]
test r8, r8
jne 0x1800af1d9
cmp dword [rdx + 0x46c], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rdx, str.PRET__s
add rcx, 0x520
call fcn.1800bbd20
test eax, eax
je 0x1800af22c
add rsp, 0x20
pop rbx
ret
add rcx, 0x520
cmp dword [rdx + 0x49c], 0
je 0x1800af21c
lea rdx, str.PRET_STOR__s
call fcn.1800bbd20
test eax, eax
je 0x1800af22c
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.1800bbd20
test eax, eax
jne 0x1800af243
mov edx, Ordinal_32
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1800ab5d0
call fcn.1800abe70
add rsp, 0x20
pop rbx
ret