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

Disassembly:
push rbx
sub rsp, 0x20
mov r8, qword [rcx]
mov rbx, rcx
mov rax, qword [r8 + 0x1f8]
cmp dword [rax + 0x20], 0
je 0x14010e552
mov edx, reloc.WS2_32.dll_listen
call fcn.14010cc00
mov r8d, edx
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.14010e660
mov eax, dword [r8 + 0xe70]
bt eax, 0xe
jae 0x14010e56b
xor edx, edx
add rsp, 0x20
pop rbx
jmp 0x14010f110
test byte [r8 + 0xe74], 1
je 0x14010e60c
mov rdx, qword [rcx + 0x5e8]
test rdx, rdx
jne 0x14010e5c4
mov r8, qword [r8 + 0xbf8]
test r8, r8
jne 0x14010e5a7
bt eax, 0xd
lea r8, str.LIST
lea rax, str.NLST
cmovb r8, rax
add rcx, 0x560
lea rdx, str.PRET__s
call fcn.140146a30
test eax, eax
je 0x14010e5fa
add rsp, 0x20
pop rbx
ret
add rcx, 0x560
mov r8, rdx
bt eax, 0x19
jae 0x14010e5ea
lea rdx, str.PRET_STOR__s
call fcn.140146a30
test eax, eax
je 0x14010e5fa
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.140146a30
test eax, eax
jne 0x14010e616
mov edx, Ordinal_33
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14010cc00
add rsp, 0x20
pop rbx
jmp fcn.14010f070
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rbp + 0x970], rax
mov rsi, qword [rcx]
mov edi, edx
mov r14, rcx
mov qword [rsp + 0x40], rsi
xor edx, edx
mov qword [rsp + 0x38], 0xffffffffffffffff
lea rcx, [rbp + 0x60]
mov r8d, 0x100
call fcn.140218bd0
mov rbx, qword [rsi + 0xc28]
xor eax, eax
mov qword [rsp + 0x50], rax
mov r13d, eax
mov rcx, qword [rsi + 0xc28]
movzx r12d, ax
mov word [rsp + 0x48], ax
mov r15d, eax
mov byte [rsp + 0x30], 1
test rcx, rcx
je 0x14010f399
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], r13b
jne 0x14010f1a0
cmp rax, 1
jbe 0x14010f399
or rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], r13b
jne 0x14010f1b7
cmp rax, 0x41
jae 0x14010f1cd
mov ecx, 0x41
jmp 0x14010f1da
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], r13b
jne 0x14010f1d1
inc rcx
mov edx, 1
call qword [str._b___]
mov r15, rax
test rax, rax
jne 0x14010f1f9
lea eax, [r15 + 0x1b]
jmp 0x14010f91c
movzx eax, byte [rbx]
cmp al, 0x5b
jne 0x14010f230
mov edx, 0x5d
lea r12, [rbx + 1]
mov rcx, rbx
call fcn.14021a5d8
mov rsi, rax
test rax, rax
je 0x14010f2ae
mov r8, rax
mov rdx, r12
sub r8, r12
mov rcx, r15
call fcn.14021bbc0
jmp 0x14010f2ae
cmp al, 0x3a
jne 0x14010f239
mov rsi, rbx
jmp 0x14010f2ae
mov edx, Ordinal_60
mov rcx, rbx
call fcn.14021a5d8
mov rsi, rax
test rax, rax
je 0x14010f297
lea r8, [rsp + 0x60]
mov rdx, rbx
mov ecx, reloc.WS2_32.dll_socket
call fcn.1400feef0
mov rcx, r15
cmp eax, 1
jne 0x14010f287
sub rcx, rbx
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rbx + rcx], al
inc rbx
test al, al
jne 0x14010f270
xor eax, eax
movzx ebx, ax
jmp 0x14010f312
mov r8, rsi
mov rdx, rbx
sub r8, rbx
call fcn.14021bbc0
jmp 0x14010f2ae
mov rcx, r15
sub rcx, rbx
nop dword [rax]
movzx eax, byte [rbx]
mov byte [rbx + rcx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14010f2a0
xor eax, eax
mov ebx, eax
test rsi, rsi
je 0x14010f312
lea edx, [rax + 0x3a]
mov rcx, rsi
call fcn.14021a5d8
mov rsi, rax
xor eax, eax
test rsi, rsi
je 0x14010f312
lea rcx, [rsi + 1]
xor edx, edx
lea r8d, [rax + 0xa]
call fcn.140221f1c
mov ecx, eax
call fcn.1400f2020
mov edx, Ordinal_46
mov rcx, rsi
movzx ebx, ax
call fcn.14021a5d8
test rax, rax
je 0x14010f30f
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.140221f1c
mov ecx, eax
call fcn.1400f2020
jmp 0x14010f312
movzx eax, bx
xor ecx, ecx
cmp bx, ax
mov esi, ecx
mov r12d, ecx
cmovbe si, bx
cmovbe r12w, ax
mov dword [rsp + 0x48], esi
cmp byte [r15], cl
je 0x14010f390
mov rcx, qword [r14 + 0x70]
mov rcx, qword [rcx + 0x20]
call fcn.14011be70
mov r8d, dword [r14 + 0xb8]
lea rcx, [rbp + 0x160]
mov edx, eax
mov dword [rsp + 0x28], 0x401
mov rax, qword [r14 + 0x70]
mov r9, r15
mov qword [rsp + 0x20], rcx
mov ecx, dword [rax + 4]
call fcn.140005350
test eax, eax
je 0x14010f382
sub eax, 1
je 0x14010f917
cmp eax, 1
jne 0x14010f385
lea r13, [rbp + 0x160]
jmp 0x14010f385
mov r13, r15
test r13, r13
jne 0x14010f422
jmp 0x14010f394
mov dword [rsp + 0x48], esi
mov rsi, qword [rsp + 0x40]
mov rcx, qword [r14 + 0x240]
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x34], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14010f3e5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rbp - 0x20]
mov ecx, eax
call fcn.14011b4c0
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, rsi
jmp 0x14010f909
movzx eax, word [rsp + 0x60]
lea r8, [rbp + 0x160]
mov r9d, 0x401
cmp ax, 0x17
je 0x14010f407
movzx ecx, ax
lea rdx, [rsp + 0x64]
jmp 0x14010f411
lea rdx, [rsp + 0x68]
mov ecx, reloc.WS2_32.dll_socket
call fcn.1400ffa90
lea r13, [rbp + 0x160]
mov byte [rsp + 0x30], 0
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call fcn.1400e5720
cmp eax, 1
jne 0x14010f447
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1400e49b0
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x14010f8fa
mov rcx, qword [rsp + 0x40]
mov rsi, qword [rdx]
call fcn.1400e5960
test rsi, rsi
je 0x14010f8fa
mov rcx, r15
call qword [fcn.140222478]
xor ebx, ebx
mov qword [rsp + 0x38], 0xffffffffffffffff
nop
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.1400f0f80
mov r15d, eax
test eax, eax
je 0x14010f4ad
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rsi, qword [rsi + 0x28]
mov ebx, eax
test rsi, rsi
jne 0x14010f480
jmp 0x14010f4b2
test rsi, rsi
jne 0x14010f4dc
mov r8d, 0x80
lea rdx, [rbp - 0x20]
mov ecx, ebx
call fcn.14011b4c0
mov rcx, qword [rsp + 0x40]
lea rdx, str.socket_failure:__s
mov r8, rax
call fcn.1400ef9b0
jmp 0x14010f917
movsxd r8, dword [rsi + 0x10]
lea rcx, [rsp + 0x60]
mov rdx, qword [rsi + 0x20]
call fcn.140218780
mov r13d, dword [rsp + 0x48]
movzx ebx, r13w
mov eax, dword [rsi + 0x10]
mov dword [rsp + 0x34], eax
cmp r13w, r12w
ja 0x14010f5c1
nop dword [rax + rax]
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, dword [rsp + 0x34]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
mov word [rsp + 0x62], ax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14010f65a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [rsp + 0x30], 0
je 0x14010f5a8
cmp eax, 0x2741
jne 0x14010f5a8
mov r8d, 0x80
lea rdx, [rbp - 0x20]
mov ecx, eax
call fcn.14011b4c0
movzx r8d, bx
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s_n
mov rbx, qword [rsp + 0x40]
mov r9, rax
mov rcx, rbx
call fcn.1400efac0
mov rcx, qword [r14 + 0x240]
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x34], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14010f5e4
movzx ebx, r13w
mov byte [rsp + 0x30], al
jmp 0x14010f5b7
cmp eax, 0x2740
je 0x14010f5b4
cmp eax, 0xd
jne 0x14010f61f
inc bx
cmp bx, r12w
jbe 0x14010f510
mov rcx, qword [rsp + 0x40]
lea rdx, str.bind___failed__we_ran_out_of_ports_
call fcn.1400ef9b0
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call fcn.1400f05b0
jmp 0x14010f917
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rbp - 0x20]
mov ecx, eax
call fcn.14011b4c0
mov rcx, rbx
lea rdx, str.getsockname___failed:__s
mov r8, rax
call fcn.1400ef9b0
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call fcn.1400f05b0
jmp 0x14010f917
mov r8d, 0x80
lea rdx, [rbp - 0x20]
mov ecx, eax
call fcn.14011b4c0
mov rcx, qword [rsp + 0x40]
lea rdx, str.bind_port_hu__failed:__s
mov r9, rax
movzx r8d, bx
call fcn.1400ef9b0
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call fcn.1400f05b0
jmp 0x14010f917
cmp bx, r12w
ja 0x14010f5c1
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x34], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14010f6a6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rbp - 0x20]
mov ecx, eax
call fcn.14011b4c0
mov rcx, qword [rsp + 0x40]
jmp 0x14010f5fe
mov rcx, qword [rsp + 0x38]
mov edx, 1
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14010f6e2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rbp - 0x20]
mov ecx, eax
call fcn.14011b4c0
mov rcx, qword [rsp + 0x40]
lea rdx, str.socket_failure:__s
jmp 0x14010f605
mov r8d, 0x100
lea rdx, [rbp + 0x60]
mov rcx, rsi
call fcn.1400e56e0
mov eax, dword [r14 + 0x3c4]
bt eax, 0x12
jb 0x14010f712
bt eax, 0xa
jae 0x14010f712
bts eax, 0x12
mov dword [r14 + 0x3c4], eax
cmp edi, 2
je 0x14010f771
movzx eax, word [rsp + 0x60]
nop dword [rax]
test dword [r14 + 0x3c4], 0x40000
jne 0x14010f731
test edi, edi
je 0x14010f76a
cmp edi, 1
jne 0x14010f73c
cmp ax, 2
jne 0x14010f76a
movzx ecx, ax
cmp ecx, 2
je 0x14010f749
cmp ecx, 0x17
jne 0x14010f76a
movzx ecx, word [rsp + 0x62]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r8d, ax
test edi, edi
je 0x14010f86e
cmp edi, 1
je 0x14010f7af
movzx eax, word [rsp + 0x60]
inc edi
cmp edi, 2
jne 0x14010f720
lea rbx, [r14 + 0x560]
mov rcx, r14
mov dword [rbx + 0xb0], edi
call fcn.14010cc10
mov rax, qword [rsp + 0x38]
mov edx, Ordinal_30
mov rcx, r14
mov qword [r14 + 0x248], rax
mov byte [r14 + 0x3c3], 1
call fcn.14010cc00
mov eax, r15d
jmp 0x14010f91c
lea r10, [rbp + 0x570]
mov r9d, Ordinal_46
lea rdx, [rbp + 0x60]
movzx ecx, byte [rdx]
test cl, cl
je 0x14010f7dd
cmp cl, 0x2e
movzx eax, cl
cmove eax, r9d
mov byte [r10], al
inc r10
add rdx, 1
jne 0x14010f7c0
movzx r9d, r8w
mov edx, reloc.WS2_32.dll_sendto
movzx eax, r9b
lea r8, str.__d__d
shr r9d, 8
mov rcx, r10
mov dword [rsp + 0x20], eax
mov byte [r10], 0
call fcn.1400fd290
lea rbx, [r14 + 0x560]
mov rcx, rbx
lea r9, [rbp + 0x570]
lea r8, str.PORT
lea rdx, [0x14024da68]
call fcn.140146a30
mov r15d, eax
test eax, eax
je 0x14010f778
mov ecx, eax
call fcn.14011b600
mov rcx, qword [rsp + 0x40]
lea rdx, str.Failure_sending_PORT_command:__s
mov r8, rax
call fcn.1400ef9b0
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call fcn.1400f05b0
xor edx, edx
mov rcx, r14
call fcn.14010cc00
mov eax, r15d
jmp 0x14010f91c
cmp word [rsp + 0x60], 2
lea rbx, [r14 + 0x560]
movzx eax, r8w
lea rdx, str._s__d_s_hu
mov ecx, 0
mov dword [rsp + 0x28], eax
setne cl
lea rax, [rbp + 0x60]
lea r8, str.EPRT
mov qword [rsp + 0x20], rax
lea r9d, [rcx + 1]
mov rcx, rbx
call fcn.140146a30
mov r15d, eax
test eax, eax
je 0x14010f778
mov ecx, eax
call fcn.14011b600
mov rcx, qword [rsp + 0x40]
lea rdx, str.Failure_sending_EPRT_command:__s
mov r8, rax
call fcn.1400ef9b0
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call fcn.1400f05b0
xor edx, edx
mov dword [rbx + 0xb0], 1
mov rcx, r14
call fcn.14010cc00
mov eax, r15d
jmp 0x14010f91c
mov rcx, qword [rsp + 0x40]
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov r8, r13
call fcn.1400ef9b0
mov rcx, r15
call qword [fcn.140222478]
mov eax, reloc.WLDAP32.dll_Ordinal_30
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.140215090
mov rbx, qword [rsp + 0xad0]
add rsp, 0xa80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret