Function at 0x14006ad80
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
lea rbp, [rsp - 0x900]
sub rsp, 0xa00
mov rax, qword [0x1400a9610]
xor rax, rsp
mov qword [rbp + 0x8f0], rax
mov rdi, qword [rcx]
mov r12, rcx
mov ebx, edx
lea rcx, [rbp - 0x1f]
xor edx, edx
mov r8d, 0xff
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], 0xffffffffffffffff
mov byte [rbp - 0x20], 0
call fcn.14002b880
mov rsi, qword [rdi + 0x658]
xor eax, eax
mov qword [rsp + 0x50], rax
mov rdi, qword [rdi + 0x658]
mov word [rsp + 0x48], ax
movzx r14d, ax
lea r15d, [rax + 1]
mov r13d, eax
test rdi, rdi
je 0x1400678e1
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, r15
jbe 0x1400678e1
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 0x16
jae 0x140067798
lea ecx, [rax + 0x16]
jmp 0x1400677a7
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
dec rcx
inc rcx
mov rdx, r15
call qword [fcn.1400aaf00]
mov r13, rax
test rax, rax
jne 0x1400677c4
lea eax, [r13 + 0x1b]
jmp 0x140067dfc
cmp byte [rsi], 0x3a
jne 0x1400677ce
mov rdi, rsi
jmp 0x1400677f8
mov edx, Ordinal_60
mov rcx, rsi
call fcn.140038664
mov rcx, r13
mov rdi, rax
test rax, rax
je 0x140067875
mov r8, rax
mov rdx, rsi
sub r8, rsi
call fcn.140036220
test rdi, rdi
je 0x14006788e
mov edx, Ordinal_60
mov rcx, rdi
call fcn.140038664
mov rdi, rax
test rax, rax
je 0x14006788e
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.140038ea8
mov ecx, eax
call fcn.140054430
mov edx, Ordinal_46
mov rcx, rdi
movzx esi, ax
mov dword [rsp + 0x48], esi
call fcn.140038664
test rax, rax
je 0x14006786f
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.140038ea8
mov ecx, eax
call fcn.140054430
movzx r14d, ax
cmp si, ax
jbe 0x14006788e
xor eax, eax
mov r14d, eax
mov dword [rsp + 0x48], eax
jmp 0x14006788e
movzx r14d, si
jmp 0x14006788e
sub rcx, rsi
nop dword [rax + rax]
movzx eax, byte [rsi]
inc rsi
mov byte [rcx + rsi - 1], al
test al, al
jne 0x140067880
cmp byte [r13], 0
je 0x1400678e1
mov rcx, qword [r12 + 0x58]
mov rcx, qword [rcx + 0x20]
call fcn.140075230
mov r8d, dword [r12 + 0xa0]
lea rcx, [rbp + 0xe0]
mov edx, eax
mov rax, qword [r12 + 0x58]
mov dword [rsp + 0x28], 0x401
mov qword [rsp + 0x20], rcx
mov ecx, dword [rax + 4]
mov r9, r13
call fcn.140075230
test eax, eax
je 0x140067924
dec eax
je 0x140067df7
dec eax
je 0x140067948
mov rcx, qword [r12 + 0x210]
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 0x140067929
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, r12
mov edx, eax
call fcn.1400567e0
lea rdx, [0x14009da68]
mov r8, rax
jmp 0x140067de4
mov rdi, r13
jmp 0x14006794f
movzx ecx, word [rsp + 0x60]
lea r8, [rbp + 0xe0]
lea rdx, [rsp + 0x64]
mov r9d, 0x401
call fcn.14005ae10
xor r15d, r15d
lea rdi, [rbp + 0xe0]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rdi
mov rcx, r12
call fcn.140044f80
cmp eax, 1
jne 0x140067974
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.140043a30
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140067dda
mov rcx, qword [rsp + 0x40]
mov rsi, qword [rdx]
call fcn.1400454f0
test rsi, rsi
je 0x140067dda
mov rcx, r13
call qword [fcn.1400aaee8]
mov qword [rsp + 0x38], 0xffffffffffffffff
xor edi, edi
nop dword [rax]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rsi
mov rcx, r12
call fcn.1400536d0
mov r13d, eax
test eax, eax
je 0x1400679dd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rsi, qword [rsi + 0x28]
mov edi, eax
test rsi, rsi
jne 0x1400679b0
jmp 0x1400679e2
test rsi, rsi
jne 0x140067a05
mov edx, edi
mov rcx, r12
call fcn.1400567e0
mov rcx, qword [rsp + 0x40]
lea rdx, [0x14009da50]
mov r8, rax
call fcn.14004ff40
jmp 0x140067df7
movsxd r8, dword [rsi + 0x10]
mov rdx, qword [rsi + 0x20]
lea rcx, [rsp + 0x60]
call fcn.14002da70
mov eax, dword [rsp + 0x48]
mov edx, dword [rsi + 0x10]
mov dword [rsp + 0x30], edx
movzx edi, ax
cmp ax, r14w
ja 0x140067ae1
nop
cmp word [rsp + 0x60], 2
jne 0x140067a46
movzx ecx, di
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 0x140067b6c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test r15d, r15d
je 0x140067ac8
cmp eax, 0x2741
jne 0x140067ac8
mov edx, eax
mov rcx, r12
call fcn.1400567e0
movzx r8d, di
mov rdi, qword [rsp + 0x40]
lea rdx, [0x14009da20]
mov rcx, rdi
mov r9, rax
call fcn.14004fe90
mov rcx, qword [r12 + 0x210]
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 0x140067b04
movzx edi, word [rsp + 0x48]
xor r15d, r15d
jmp 0x140067ad7
cmp eax, 0x2740
je 0x140067ad4
cmp eax, 0xd
jne 0x140067b38
inc di
cmp di, r14w
jbe 0x140067a30
mov rcx, qword [rsp + 0x40]
lea rdx, [0x14009d9f8]
call fcn.14004ff40
mov rdx, qword [rsp + 0x38]
mov rcx, r12
call fcn.140053660
jmp 0x140067df7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, r12
mov edx, eax
call fcn.1400567e0
mov rcx, rdi
lea rdx, [0x14009da68]
mov r8, rax
call fcn.14004ff40
mov rdx, qword [rsp + 0x38]
mov rcx, r12
call fcn.140053660
jmp 0x140067df7
mov edx, eax
mov rcx, r12
call fcn.1400567e0
mov rcx, qword [rsp + 0x40]
lea rdx, [0x14009d9d8]
mov r9, rax
movzx r8d, di
call fcn.14004ff40
mov rdx, qword [rsp + 0x38]
mov rcx, r12
call fcn.140053660
jmp 0x140067df7
cmp di, r14w
ja 0x140067ae1
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 0x140067bb1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, r12
mov edx, eax
call fcn.1400567e0
mov rcx, qword [rsp + 0x40]
jmp 0x140067b17
mov rcx, qword [rsp + 0x38]
mov edx, 1
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x140067be6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, r12
mov edx, eax
call fcn.1400567e0
mov rcx, qword [rsp + 0x40]
lea rdx, [0x14009da50]
jmp 0x140067b1e
lea rdx, [rbp - 0x20]
mov r8d, 0x100
mov rcx, rsi
call fcn.140044bc0
cmp ebx, 2
je 0x140067c4a
movzx eax, word [rsp + 0x60]
cmp dword [r12 + 0x58c], 0
jne 0x140067c11
test ebx, ebx
je 0x140067c43
cmp ebx, 1
jne 0x140067c1c
cmp ax, 2
jne 0x140067c43
cmp ax, 2
jne 0x140067c43
movzx ecx, word [rsp + 0x62]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r11d, ax
test ebx, ebx
je 0x140067d4d
cmp ebx, 1
je 0x140067c8e
movzx eax, word [rsp + 0x60]
inc ebx
cmp ebx, 2
jne 0x140067c02
lea rdi, [r12 + 0x940]
mov rcx, r12
mov dword [rdi + 0xac], ebx
call fcn.140067250
mov rdx, qword [rsp + 0x38]
mov rcx, r12
mov qword [r12 + 0x218], rdx
mov edx, Ordinal_30
mov dword [r12 + 0x570], 1
call fcn.1400675a0
mov eax, r13d
jmp 0x140067dfc
lea rdi, [rbp + 0x4f0]
lea rdx, [rbp - 0x20]
mov r8d, Ordinal_46
nop
movzx ecx, byte [rdx]
test cl, cl
je 0x140067cbc
cmp cl, 0x2e
movzx eax, cl
cmove eax, r8d
inc rdi
inc rdx
mov byte [rdi - 1], al
jne 0x140067ca0
movzx r9d, r11w
lea r8, [0x14009d9cc]
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.140055350
lea rdi, [r12 + 0x940]
lea r9, [rbp + 0x4f0]
lea r8, [0x14009d8c5]
lea rdx, [0x14009b7c0]
mov rcx, rdi
call fcn.140078230
mov r13d, eax
test eax, eax
je 0x140067c52
mov ecx, eax
call fcn.140055fc0
mov rcx, qword [rsp + 0x40]
lea rdx, [0x14009d9a8]
mov r8, rax
call fcn.14004ff40
mov rdx, qword [rsp + 0x38]
mov rcx, r12
call fcn.140053660
xor edx, edx
mov rcx, r12
call fcn.1400675a0
mov eax, r13d
jmp 0x140067dfc
cmp word [rsp + 0x60], 2
movzx eax, r11w
mov ecx, 0
setne cl
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x20]
lea r9d, [rcx + 1]
lea rdi, [r12 + 0x940]
lea r8, [0x14009d8c0]
lea rdx, [0x14009d998]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140078230
mov r13d, eax
test eax, eax
je 0x140067c52
mov ecx, eax
call fcn.140055fc0
mov rcx, qword [rsp + 0x40]
lea rdx, [0x14009d970]
mov r8, rax
call fcn.14004ff40
mov rdx, qword [rsp + 0x38]
mov rcx, r12
call fcn.140053660
xor edx, edx
mov rcx, r12
mov dword [rdi + 0xac], 1
call fcn.1400675a0
mov eax, r13d
jmp 0x140067dfc
mov r8, rdi
lea rdx, [0x14009d938]
mov rcx, qword [rsp + 0x40]
call fcn.14004ff40
mov rcx, r13
call qword [fcn.1400aaee8]
mov eax, reloc.WLDAP32.dll_Ordinal_30
mov rcx, qword [rbp + 0x8f0]
xor rcx, rsp
call fcn.14002ba00
mov rbx, qword [rsp + 0xa50]
add rsp, 0xa00
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 0x14006adb6
mov edx, reloc.WS2_32.dll_listen
call fcn.1400675a0
mov edx, 1
lea r8d, [rdx + 0xc]
add rsp, 0x20
pop rbx
jmp fcn.14006a360
cmp dword [rdx + 0x568], 0
je 0x14006adcb
xor edx, edx
add rsp, 0x20
pop rbx
jmp 0x1400676e0
cmp dword [rdx + 0x5b4], 0
je 0x14006ae6e
mov r8, qword [rcx + 0x9c0]
test r8, r8
jne 0x14006ae26
mov r8, qword [rdx + 0x628]
test r8, r8
jne 0x14006ae09
cmp dword [rdx + 0x564], 0
lea rax, [0x14009daa8]
lea r8, [0x14009bd7c]
cmovne r8, rax
lea rdx, [0x14009e440]
add rcx, 0x940
call fcn.140078230
test eax, eax
je 0x14006ae5c
add rsp, 0x20
pop rbx
ret
add rcx, 0x940
cmp dword [rdx + 0x594], 0
je 0x14006ae4c
lea rdx, [0x14009e430]
call fcn.140078230
test eax, eax
je 0x14006ae5c
add rsp, 0x20
pop rbx
ret
lea rdx, [0x14009e420]
call fcn.140078230
test eax, eax
jne 0x14006ae73
mov edx, Ordinal_30
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400675a0
call fcn.140067e30
add rsp, 0x20
pop rbx
ret