Function at 0x18007e670
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 [0x1800c34c8]
xor rax, rsp
mov qword [rsp + 0x9e0], rax
mov r15, qword [rcx]
mov rbx, rcx
mov esi, edx
lea rcx, [rsp + 0xd1]
xor edx, edx
mov r8d, 0xff
mov qword [rsp + 0x38], 0xffffffffffffffff
mov byte [rsp + 0xd0], 0
call fcn.18003bb80
mov rbp, qword [r15 + 0x558]
xor eax, eax
mov qword [rsp + 0x48], rax
mov rdi, qword [r15 + 0x558]
mov word [rsp + 0x40], ax
mov r13w, ax
lea r14d, [rax + 1]
mov r12, rax
test rdi, rdi
je 0x18007ad62
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, r14
jbe 0x18007ad62
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 [case.0x18006467c.1]
mov r12, rax
test rax, rax
jne 0x18007ac42
lea eax, [r14 + 0x1a]
jmp 0x18007b28a
cmp byte [rbp], 0x3a
jne 0x18007ac4d
mov rdi, rbp
jmp 0x18007ac77
mov edx, Ordinal_60
mov rcx, rbp
call fcn.180056588
mov rcx, r12
mov rdi, rax
test rax, rax
je 0x18007acf3
mov r8, rax
mov rdx, rbp
sub r8, rbp
call fcn.180092d00
test rdi, rdi
je 0x18007ad0f
mov edx, Ordinal_60
mov rcx, rdi
call fcn.180056588
mov rdi, rax
test rax, rax
je 0x18007ad0f
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.180052140
mov ecx, eax
call fcn.180067590
mov edx, Ordinal_46
mov rcx, rdi
mov bp, ax
mov dword [rsp + 0x40], ebp
call fcn.180056588
test rax, rax
je 0x18007aced
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.180052140
mov ecx, eax
call fcn.180067590
mov r13w, ax
cmp bp, ax
jbe 0x18007ad0f
xor r13d, r13d
mov dword [rsp + 0x40], r13d
jmp 0x18007ad0f
mov r13w, bp
jmp 0x18007ad0f
sub rcx, rbp
nop word [rax + rax]
movzx eax, byte [rbp]
inc rbp
mov byte [rcx + rbp - 1], al
test al, al
jne 0x18007ad00
cmp byte [r12], 0
je 0x18007ad62
mov rcx, qword [rbx + 0x58]
mov rcx, qword [rcx + 0x20]
call fcn.18008a2d0
mov r8d, dword [rbx + 0xa0]
lea rcx, [rsp + 0x1d0]
mov edx, eax
mov rax, qword [rbx + 0x58]
mov dword [rsp + 0x28], 0x401
mov qword [rsp + 0x20], rcx
mov ecx, dword [rax + 4]
mov r9, r12
call fcn.18008a2d0
test eax, eax
je 0x18007ada4
sub eax, r14d
je 0x18007b285
cmp eax, r14d
je 0x18007adc9
mov rcx, qword [rbx + 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 0x18007ada9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
mov edx, eax
call fcn.180069aa0
lea rdx, str.getsockname___failed:__s
mov r8, rax
jmp 0x18007b274
mov rdi, r12
jmp 0x18007add1
movzx ecx, word [rsp + 0x50]
lea r8, [rsp + 0x1d0]
lea rdx, [rsp + 0x54]
mov r9d, 0x401
call fcn.18006df30
xor r14d, r14d
lea rdi, [rsp + 0x1d0]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.180059ab0
cmp eax, 1
jne 0x18007adf6
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1800587a0
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x18007b26a
mov rbp, qword [rdx]
mov rcx, r15
call fcn.18005a080
test rbp, rbp
je 0x18007b26a
mov rcx, r12
call qword [fcn.18003caf4]
mov qword [rsp + 0x38], 0xffffffffffffffff
xor edi, edi
nop dword [rax]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call fcn.180066aa0
mov r12d, eax
test eax, eax
je 0x18007ae5d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rbp, qword [rbp + 0x28]
mov edi, eax
test rbp, rbp
jne 0x18007ae30
jmp 0x18007ae62
test rbp, rbp
jne 0x18007ae83
mov edx, edi
mov rcx, rbx
call fcn.180069aa0
lea rdx, str.socket_failure:__s
mov rcx, r15
mov r8, rax
call fcn.180063d30
jmp 0x18007b285
movsxd r8, dword [rbp + 0x10]
mov rdx, qword [rbp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.18003e480
mov eax, dword [rsp + 0x40]
mov edx, dword [rbp + 0x10]
mov dword [rsp + 0x30], edx
movzx edi, ax
cmp ax, r13w
ja 0x18007af5b
nop dword [rax]
cmp word [rsp + 0x50], 2
jne 0x18007aec6
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 0x18007afe2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test r14d, r14d
je 0x18007af42
cmp eax, 0x2741
jne 0x18007af42
mov edx, eax
mov rcx, rbx
call fcn.180069aa0
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s_n
movzx r8d, di
mov r9, rax
mov rcx, r15
call fcn.180063c80
mov rcx, qword [rbx + 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 0x18007af7c
mov di, word [rsp + 0x40]
xor r14d, r14d
jmp 0x18007af51
cmp eax, 0x2740
je 0x18007af4e
cmp eax, 0xd
jne 0x18007afb0
inc di
cmp di, r13w
jbe 0x18007aeb0
lea rdx, str.bind___failed__we_ran_out_of_ports_
mov rcx, r15
call fcn.180063d30
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.180066a30
jmp 0x18007b285
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
mov edx, eax
call fcn.180069aa0
lea rdx, str.getsockname___failed:__s
mov rcx, r15
mov r8, rax
call fcn.180063d30
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.180066a30
jmp 0x18007b285
mov edx, eax
mov rcx, rbx
call fcn.180069aa0
lea rdx, str.bind_port_hu__failed:__s
movzx r8d, di
mov r9, rax
mov rcx, r15
call fcn.180063d30
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.180066a30
jmp 0x18007b285
cmp di, r13w
ja 0x18007af5b
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
jne 0x18007af7c
mov rcx, qword [rsp + 0x38]
lea edx, [rax + 1]
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x18007b057
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
mov edx, eax
call fcn.180069aa0
lea rdx, str.socket_failure:__s
mov rcx, r15
mov r8, rax
call fcn.180063d30
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.180066a30
jmp 0x18007b285
lea rdx, [rsp + 0xd0]
mov r8d, 0x100
mov rcx, rbp
call fcn.180059700
cmp esi, 2
je 0x18007b0bd
movzx eax, word [rsp + 0x50]
cmp dword [rbx + 0x3b0], 0
jne 0x18007b084
test esi, esi
je 0x18007b0b6
cmp esi, 1
jne 0x18007b08f
cmp ax, 2
jne 0x18007b0b6
cmp ax, 2
jne 0x18007b0b6
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r11d, ax
test esi, esi
je 0x18007b1de
cmp esi, 1
je 0x18007b11c
mov ax, word [rsp + 0x50]
inc esi
cmp esi, 2
jne 0x18007b077
lea rdi, [rbx + 0x710]
mov dword [rdi + 0xac], esi
mov rdx, qword [rbx + 0x1b0]
cmp rdx, 0xffffffffffffffff
je 0x18007b0ea
mov rcx, rbx
call fcn.180066a30
mov qword [rbx + 0x1b0], 0xffffffffffffffff
mov rax, qword [rsp + 0x38]
mov dword [rbx + 0x824], 0
mov dword [rbx + 0x394], 1
mov qword [rbx + 0x1b0], rax
mov dword [rbx + 0x7c8], 0x1c
mov eax, r12d
jmp 0x18007b28a
lea rdi, [rsp + 0x5e0]
lea rdx, [rsp + 0xd0]
mov r8d, Ordinal_46
movzx ecx, byte [rdx]
test cl, cl
je 0x18007b14f
cmp cl, 0x2e
movzx eax, cl
cmove eax, r8d
inc rdi
add rdx, 1
mov byte [rdi - 1], al
jne 0x18007b132
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.180068690
lea rdi, [rbx + 0x710]
lea r9, [rsp + 0x5e0]
lea r8, str.PORT
lea rdx, [0x1800ab850]
mov rcx, rdi
call fcn.18008a530
mov r12d, eax
test eax, eax
je 0x18007b0c4
mov ecx, eax
call fcn.180069290
lea rdx, str.Failure_sending_PORT_command:__s
mov rcx, r15
mov r8, rax
call fcn.180063d30
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.180066a30
mov dword [rbx + 0x7c8], 0
mov eax, r12d
jmp 0x18007b28a
xor r9d, r9d
cmp word [rsp + 0x50], 2
movzx eax, r11w
mov dword [rsp + 0x28], eax
setne r9b
lea rax, [rsp + 0xd0]
lea rdi, [rbx + 0x710]
lea r8, str.EPRT
lea rdx, str._s__d_s_hu
inc r9d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.18008a530
mov r12d, eax
test eax, eax
je 0x18007b0c4
mov ecx, eax
call fcn.180069290
lea rdx, str.Failure_sending_EPRT_command:__s
mov rcx, r15
mov r8, rax
call fcn.180063d30
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.180066a30
mov dword [rdi + 0xac], 1
mov dword [rbx + 0x7c8], 0
mov eax, r12d
jmp 0x18007b28a
mov r8, rdi
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, r15
call fcn.180063d30
mov rcx, r12
call qword [fcn.18003caf4]
mov eax, reloc.WLDAP32.dll_Ordinal_30
mov rcx, qword [rsp + 0x9e0]
xor rcx, rsp
call fcn.18003c690
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 0x18007e6a6
mov edx, 1
mov dword [rcx + 0x7c8], 0xd
lea r8d, [rdx + 0xc]
add rsp, 0x20
pop rbx
jmp fcn.18007da60
cmp dword [rdx + 0x470], 0
je 0x18007e6bb
xor edx, edx
add rsp, 0x20
pop rbx
jmp 0x18007ab70
cmp dword [rdx + 0x4bc], 0
je 0x18007e75c
mov r8, qword [rcx + 0x790]
test r8, r8
jne 0x18007e716
mov r8, qword [rdx + 0x528]
test r8, r8
jne 0x18007e6f9
cmp dword [rdx + 0x46c], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rdx, str.PRET__s
add rcx, 0x710
call fcn.18008a530
test eax, eax
je 0x18007e74c
add rsp, 0x20
pop rbx
ret
add rcx, 0x710
cmp dword [rdx + 0x49c], 0
je 0x18007e73c
lea rdx, str.PRET_STOR__s
call fcn.18008a530
test eax, eax
je 0x18007e74c
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.18008a530
test eax, eax
jne 0x18007e761
mov dword [rbx + 0x7c8], 0x1d
add rsp, 0x20
pop rbx
ret
call fcn.18007b2c0
add rsp, 0x20
pop rbx
ret