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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x208]
cmp dword [rax + 0x18], 0
je 0x14003cae9
mov edx, reloc.WS2_32.dll_listen
mov rcx, rbx
call fcn.14003c370
mov edx, 1
lea r8d, [rdx + 0xc]
add rsp, 0x20
pop rbx
jmp fcn.14003cc30
cmp dword [rcx + 0x5d0], 0
je 0x14003cb01
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x14003eb30
cmp dword [rcx + 0x61c], 0
je 0x14003cba4
mov r8, qword [rbx + 0xa18]
test r8, r8
jne 0x14003cb5c
mov r8, qword [rcx + 0x690]
test r8, r8
jne 0x14003cb3f
cmp dword [rcx + 0x5cc], 0
lea rax, [0x1400a4b48]
lea r8, [0x1400a4b50]
cmovne r8, rax
lea rcx, [rbx + 0x990]
lea rdx, str.PRET__s
call fcn.1400500a0
test eax, eax
je 0x14003cb92
add rsp, 0x20
pop rbx
ret
cmp dword [rcx + 0x5fc], 0
lea rcx, [rbx + 0x990]
je 0x14003cb82
lea rdx, str.PRET_STOR__s
call fcn.1400500a0
test eax, eax
je 0x14003cb92
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.1400500a0
test eax, eax
jne 0x14003cbb1
mov edx, Ordinal_30
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14003c370
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14003f2a0
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 - 0x900]
sub rsp, 0xa00
mov rax, qword [0x1400a91a0]
xor rax, rsp
mov qword [rbp + 0x8f0], rax
mov r13, qword [rcx]
movzx eax, byte [0x1400aaf3e]
mov rsi, rcx
mov edi, edx
lea rcx, [rbp - 0x1f]
mov r8d, 0xff
xor edx, edx
mov qword [rsp + 0x48], r13
mov byte [rbp - 0x20], al
mov qword [rsp + 0x38], 0xffffffffffffffff
call fcn.14005a570
mov rbx, qword [r13 + 0x6c0]
xor r12d, r12d
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x58], r12
mov rcx, qword [r13 + 0x6c0]
movzx r14d, r12w
mov dword [rsp + 0x44], r14d
mov word [rsp + 0x40], r12w
mov r15d, r12d
test rcx, rcx
je 0x14003ed4d
or rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], r12b
jne 0x14003ebd0
cmp rax, 1
jbe 0x14003ed4d
or rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], r12b
jne 0x14003ebe7
cmp rax, 0x16
jae 0x14003ebfd
mov ecx, reloc.WLDAP32.dll_Ordinal_22
jmp 0x14003ec0a
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], r12b
jne 0x14003ec01
inc rcx
mov edx, 1
call qword [case.0x1400182f6.1]
mov r15, rax
test rax, rax
jne 0x14003ec29
lea eax, [r15 + 0x1b]
jmp 0x14003f26b
cmp byte [rbx], 0x3a
jne 0x14003ec33
mov r14, rbx
jmp 0x14003ec5d
mov edx, Ordinal_60
mov rcx, rbx
call fcn.14005aacc
mov rcx, r15
mov r14, rax
test rax, rax
je 0x14003ece4
mov r8, rax
mov rdx, rbx
sub r8, rbx
call fcn.14005b380
test r14, r14
je 0x14003ecff
mov edx, Ordinal_60
mov rcx, r14
call fcn.14005aacc
mov rbx, rax
test rax, rax
je 0x14003ecff
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.14005c458
mov ecx, eax
call fcn.14002f800
mov edx, reloc.WLDAP32.dll_Ordinal_45
mov rcx, rbx
movzx r14d, ax
mov dword [rsp + 0x44], r14d
call fcn.14005aacc
test rax, rax
je 0x14003ecdc
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.14005c458
mov ecx, eax
call fcn.14002f800
mov dword [rsp + 0x40], eax
cmp r14w, ax
jbe 0x14003ecff
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x44], r12d
jmp 0x14003ecff
mov word [rsp + 0x40], r14w
jmp 0x14003ecff
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rcx + rbx - 1], al
test al, al
jne 0x14003ecf0
cmp byte [r15], r12b
je 0x14003ed4d
mov rcx, qword [rsi + 0x70]
mov rcx, qword [rcx + 0x20]
call fcn.14004adf0
mov r8d, dword [rsi + 0xb8]
lea rcx, [rbp + 0xe0]
mov edx, eax
mov rax, qword [rsi + 0x70]
mov dword [rsp + 0x28], 0x401
mov qword [rsp + 0x20], rcx
mov ecx, dword [rax + 4]
mov r9, r15
call fcn.14004ae10
test eax, eax
je 0x14003ed8f
dec eax
je 0x14003f266
dec eax
je 0x14003edb5
mov rcx, qword [rsi + 0x238]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14003ed94
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
call fcn.140033440
lea rdx, [0x1400a4960]
mov r8, rax
jmp 0x14003f255
mov rbx, r15
jmp 0x14003edbc
movzx ecx, word [rsp + 0x60]
lea r8, [rbp + 0xe0]
lea rdx, [rsp + 0x64]
mov r9d, 0x401
call fcn.140034330
mov dword [rsp + 0x50], r12d
lea rbx, [rbp + 0xe0]
lea r9, [rsp + 0x58]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.140019570
cmp eax, 1
jne 0x14003ede1
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.140018e10
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14003f24b
mov r14, qword [rdx]
mov rcx, r13
call fcn.140019710
test r14, r14
je 0x14003f24b
mov rcx, r15
call qword [fcn.1400570ac]
mov qword [rsp + 0x38], 0xffffffffffffffff
mov ebx, r12d
nop dword [rax + rax]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call fcn.140025660
mov r12d, eax
test eax, eax
je 0x14003ee4d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14, qword [r14 + 0x28]
mov ebx, eax
test r14, r14
jne 0x14003ee20
jmp 0x14003ee52
test r14, r14
jne 0x14003ee73
mov edx, ebx
mov rcx, rsi
call fcn.140033440
lea rdx, [0x1400a49b8]
mov rcx, r13
mov r8, rax
call fcn.140023ea0
jmp 0x14003f266
movsxd r8, dword [r14 + 0x10]
mov rdx, qword [r14 + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140056780
mov eax, dword [r14 + 0x10]
movzx r13d, word [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x44]
movzx r15d, ax
movzx ebx, ax
cmp r15d, r13d
jg 0x14003ef5c
cmp word [rsp + 0x60], 2
jne 0x14003eebd
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14003ef5c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [rsp + 0x50], 0
je 0x14003ef40
cmp eax, 0x2741
jne 0x14003ef40
mov edx, eax
mov rcx, rsi
call fcn.140033440
mov rbx, qword [rsp + 0x48]
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s_n
mov rcx, rbx
mov r9, rax
mov r8d, r15d
call fcn.140023df0
mov rcx, qword [rsi + 0x238]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14003ef8a
movzx ebx, word [rsp + 0x44]
mov dword [rsp + 0x50], eax
jmp 0x14003ef4f
cmp eax, 0x2740
je 0x14003ef4c
cmp eax, 0xd
jne 0x14003efbe
inc bx
movzx r15d, bx
cmp r15d, r13d
jle 0x14003eea7
cmp bx, word [rsp + 0x40]
jbe 0x14003eff2
mov rcx, qword [rsp + 0x48]
lea rdx, str.bind___failed__we_ran_out_of_ports_
call fcn.140023ea0
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.1400255e0
jmp 0x14003f266
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
call fcn.140033440
lea rdx, [0x1400a4a00]
mov rcx, rbx
mov r8, rax
call fcn.140023ea0
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.1400255e0
jmp 0x14003f266
mov edx, eax
mov rcx, rsi
call fcn.140033440
mov rcx, qword [rsp + 0x48]
lea rdx, str.bind_port_hu__failed:__s
mov r9, rax
movzx r8d, bx
call fcn.140023ea0
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.1400255e0
jmp 0x14003f266
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14003f034
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
call fcn.140033440
mov rcx, qword [rsp + 0x48]
lea rdx, str.getsockname___failed:__s
jmp 0x14003efa4
mov rcx, qword [rsp + 0x38]
mov edx, 1
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14003f069
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
call fcn.140033440
mov rcx, qword [rsp + 0x48]
lea rdx, str.socket_failure:__s
jmp 0x14003efa4
lea rdx, [rbp - 0x20]
mov r8d, 0x100
mov rcx, r14
call fcn.140019870
cmp edi, 2
je 0x14003f0c0
movzx eax, word [rsp + 0x60]
cmp dword [rsi + 0x5d4], 0
jne 0x14003f092
test edi, edi
je 0x14003f0b9
cmp ax, 2
jne 0x14003f0b9
movzx ecx, word [rsp + 0x62]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r8d, ax
test edi, edi
je 0x14003f1bf
cmp edi, 1
je 0x14003f100
movzx eax, word [rsp + 0x60]
inc edi
cmp edi, 2
jne 0x14003f085
lea rbx, [rsi + 0x990]
mov rcx, rsi
mov dword [rbx + 0xb4], edi
call fcn.14003e290
mov rax, qword [rsp + 0x38]
mov edx, Ordinal_30
mov rcx, rsi
mov dword [rsi + 0x5b8], 1
mov qword [rsi + 0x240], rax
call fcn.14003c370
mov eax, r12d
jmp 0x14003f26b
lea r10, [rbp + 0x4f0]
lea rdx, [rbp - 0x20]
mov r9d, Ordinal_45
movzx ecx, byte [rdx]
test cl, cl
je 0x14003f12e
cmp cl, 0x2e
movzx eax, cl
cmove eax, r9d
inc r10
mov byte [r10 - 1], al
inc rdx
jne 0x14003f111
movzx r9d, r8w
lea r8, str.__d__d
mov edx, reloc.WS2_32.dll_sendto
movzx eax, r9b
mov rcx, r10
shr r9d, 8
mov dword [rsp + 0x20], eax
mov byte [r10], 0
call fcn.1400311d0
lea rbx, [rsi + 0x990]
lea r9, [rbp + 0x4f0]
lea r8, str.PORT
lea rdx, [0x1400a4734]
mov rcx, rbx
call fcn.1400500a0
mov r12d, eax
test eax, eax
je 0x14003f0c7
mov ecx, eax
call fcn.140032ed0
mov rcx, qword [rsp + 0x48]
lea rdx, str.Failure_sending_PORT_command:__s
mov r8, rax
call fcn.140023ea0
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.1400255e0
xor edx, edx
mov rcx, rsi
call fcn.14003c370
mov eax, r12d
jmp 0x14003f26b
cmp word [rsp + 0x60], 2
movzx eax, r8w
mov ecx, 0
setne cl
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x20]
lea r9d, [rcx + 1]
lea rbx, [rsi + 0x990]
lea r8, str.EPRT
lea rdx, str._s__d_s_hu
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400500a0
mov r12d, eax
test eax, eax
je 0x14003f0c7
mov ecx, eax
call fcn.140032ed0
mov rcx, qword [rsp + 0x48]
lea rdx, str.Failure_sending_EPRT_command:__s
mov r8, rax
call fcn.140023ea0
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.1400255e0
xor edx, edx
mov rcx, rsi
mov dword [rbx + 0xb4], 1
call fcn.14003c370
mov eax, r12d
jmp 0x14003f26b
mov r8, rbx
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, r13
call fcn.140023ea0
mov rcx, r15
call qword [fcn.1400570ac]
mov eax, reloc.WLDAP32.dll_Ordinal_30
mov rcx, qword [rbp + 0x8f0]
xor rcx, rsp
call fcn.140056190
mov rbx, qword [rsp + 0xa50]
add rsp, 0xa00
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret