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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1c8
mov rbp, r8
mov qword [rsp + 0x178], rdx
mov r13, rcx
mov rax, qword [0x1401b5130]
cmp rax, 2
jne 0x1400d61b8
movzx eax, byte [0x1401b5139]
test al, al
je 0x1400d61cc
mov qword [rsp + 0x168], rbp
mov qword [rsp + 0x170], r13
lea rdx, str.127.0.0.1:0testserver:_pre_connect_with_error__n
lea rcx, [rsp + 0x50]
mov r8d, 0xb
call fcn.14008f510
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x150], rax
test rax, rax
je 0x1400d649b
mov rdi, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rbp, qword [rsp + 0x68]
cmp rdi, rbp
je 0x1400d6493
xor ebx, ebx
jmp 0x1400d572d
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, r15
call sub.KERNEL32.dll_HeapFree
dec r12
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, r12
call sub.KERNEL32.dll_HeapFree
nop word cs:[rax + rax]
add rdi, 0x20
cmp rdi, rbp
je 0x1400d6493
mov r12, rbx
movzx ebx, word [rdi]
cmp bx, 2
je 0x1400d6493
mov r14d, dword [rdi + 0x14]
mov esi, dword [rdi + 0x18]
movzx r13d, word [rdi + 0x1c]
movzx eax, word [rdi + 0x12]
mov word [rsp + 0x190], ax
movups xmm0, xmmword [rdi + 2]
movaps xmmword [rsp + 0x180], xmm0
mov rax, qword [0x140259110]
cmp rax, 3
jne 0x1400d5889
lea rcx, [rsp + 0x50]
mov edx, ebx
call fcn.14008ae70
cmp qword [rsp + 0x50], 0
je 0x1400d57a0
mov rbx, qword [rsp + 0x58]
test r12, r12
jne 0x1400d583e
jmp 0x1400d5720
test bx, bx
je 0x1400d57b9
mov r8d, 0x1c
mov ax, 0x17
movups xmm0, xmmword [rsp + 0x182]
jmp 0x1400d57d7
movzx r13d, word [rsp + 0x184]
mov r14d, dword [rsp + 0x180]
mov r8d, 0x10
mov ax, 2
xorps xmm0, xmm0
mov r15, qword [rsp + 0x58]
rol r13w, 8
mov word [rsp + 0x50], ax
mov word [rsp + 0x52], r13w
mov dword [rsp + 0x54], r14d
movups xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x68], esi
mov rcx, r15
lea rdx, [rsp + 0x50]
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
je 0x1400d581e
mov rcx, r15
mov edx, pe_nt_image_headers64
call sub.ws2_32.dll_listen
cmp eax, 0xffffffff
jne 0x1400d5893
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rcx, r15
call sub.ws2_32.dll_closesocket
test r12, r12
je 0x1400d5720
mov eax, r12d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400d5720
test rax, rax
je 0x1400d5720
mov r15, qword [r12 - 1]
mov rsi, qword [r12 + 7]
mov rcx, r15
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x1400d5700
cmp qword [rsi + 0x10], 0x11
jb 0x1400d56ef
mov r15, qword [r15 - 8]
jmp 0x1400d56ef
call fcn.14008aca0
jmp 0x1400d5772
cmp qword [rsp + 0x28], 0
je 0x1400d58b1
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, qword [rsp + 0x150]
call sub.KERNEL32.dll_HeapFree
test r12, r12
je 0x1400d5913
mov eax, r12d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400d5913
test rax, rax
je 0x1400d5913
lea rbx, [r12 - 1]
mov r14, qword [r12 - 1]
mov rsi, qword [r12 + 7]
mov rcx, r14
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x1400d5902
cmp qword [rsi + 0x10], 0x11
jb 0x1400d58f1
mov r14, qword [r14 - 8]
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, r14
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
xorps xmm0, xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x180], pe_nt_image_headers64
lea rdx, [rsp + 0x50]
lea r8, [rsp + 0x180]
mov rcx, r15
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x1400d64b5
mov eax, dword [rsp + 0x180]
movzx ecx, word [rsp + 0x50]
cmp ecx, 2
je 0x1400d599a
cmp ecx, 0x17
jne 0x1400d649b
cmp eax, 0x1b
ja 0x1400d59a3
jmp 0x1400d649b
cmp eax, 0xf
jbe 0x1400d649b
movzx eax, word [rsp + 0x52]
rol ax, 8
mov word [rsp + 0x20], ax
movzx eax, byte [0x140259141]
mov edx, 0x18
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400d649b
mov rdi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov byte [rax + 0x10], 0
lock inc qword [rax]
jle 0x1400d649b
call fcn.14008ee40
mov r13, rax
movzx eax, byte [0x140259141]
mov edx, 0x30
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400d649b
mov r12, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x18], 0
mov rax, qword [0x140259108]
nop word cs:[rax + rax]
mov rcx, rax
inc rcx
je 0x1400d649b
lock cmpxchg qword [0x140259108], rcx
jne 0x1400d5a40
mov qword [r12 + 0x10], rcx
mov byte [r12 + 0x28], 0
lock inc qword [r12]
jle 0x1400d649b
movzx eax, byte [0x140259141]
mov edx, 0x30
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400d649b
mov rbp, rax
mov qword [rax], 1
mov qword [rax + 8], 1
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rsp + 0x50], rax
lock inc qword [rax]
jle 0x1400d649b
movzx eax, byte [0x140259100]
test al, al
je 0x1400d5b0c
mov byte [0x140259100], 1
call fcn.140087820
test rax, rax
je 0x1400d649b
mov rbx, qword [rax]
mov qword [rax], 0
test rbx, rbx
je 0x1400d5b0c
lock inc qword [rbx]
jle 0x1400d649b
mov byte [0x140259100], 1
call fcn.140087820
test rax, rax
je 0x1400d64ea
mov rcx, qword [rax]
mov qword [rax], rbx
test rcx, rcx
jne 0x1400d5b41
jmp 0x1400d5b4c
movzx eax, byte [0x140259100]
test al, al
je 0x1400d619f
mov byte [0x140259100], 1
call fcn.140087820
test rax, rax
je 0x1400d649b
mov rcx, qword [rax]
mov qword [rax], 0
xor ebx, ebx
test rcx, rcx
je 0x1400d5b4c
lock dec qword [rcx]
jne 0x1400d5b4c
call fcn.140029670
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400d5b65
lock inc qword [rcx + 0x18]
jle 0x1400d64dd
movzx eax, byte [0x140259141]
mov edx, 0x30
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400d649b
mov qword [rax], r12
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], r15
mov qword [rax + 0x20], rdi
lea rcx, [0x1400c5460]
mov qword [rax + 0x28], rcx
lea r8, str.pT_f_
mov rcx, r13
mov rdx, rax
call fcn.140087a80
test rax, rax
jne 0x1400d64bc
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdx
mov rcx, rdx
call sub.KERNEL32.dll_CloseHandle
lock dec qword [r12]
jne 0x1400d5be2
mov rcx, qword [rsp + 0x50]
call fcn.1400293e0
mov qword [rsp + 0x28], rdi
mov rax, qword [rsp + 0x58]
lock dec qword [rax]
jne 0x1400d5bfc
lea rcx, [rsp + 0x58]
call fcn.1400291c0
lea rsi, [rsp + 0x20]
lea rbp, [0x140018340]
lea rdi, [rsp + 0x40]
lea r15, [rsp + 0x180]
lea r12, [rsp + 0x50]
lea r13, [rsp + 0x158]
lea r14, [0x1401bbe70]
jmp 0x1400d5c5c
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, rbp
call sub.KERNEL32.dll_HeapFree
dec rbx
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
lea rsi, [rsp + 0x20]
lea rbp, [0x140018340]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rbp
lea rax, [0x140200578]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 1
mov rcx, r15
mov rdx, r12
call fcn.14000ba20
mov rcx, r13
mov rdx, r15
call fcn.1400bc690
cmp qword [rsp + 0x158], 0
je case.default.0x1400d5cd0
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
and al, 0x30
mov ecx, eax
and ecx, 3
movsxd rcx, dword [r14 + rcx*4]
add rcx, r14
jmp rcx
movzx eax, byte [rax + 0x10]
jmp 0x1400d5d74
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rax, fcn.140086de0
mov qword [rsp + 0x48], rax
lea rax, [0x1402005b8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 2
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 1
add byte [rcx + rcx*4 - 0x1f], cl
call fcn.140081090
jmp 0x1400d5d88
cmp al, 2
jne 0x1400d5cef
xor ecx, ecx
mov edx, 0x5f5e100
call fcn.140089e40
mov rbx, qword [rsp + 0x30]
mov eax, ebx
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400d5c5c
test rax, rax
je 0x1400d5c5c
mov rbp, qword [rbx - 1]
mov rsi, qword [rbx + 7]
mov rcx, rbp
call qword [rsi]
invalid
cmp qword [rsi + 8], 0
or byte [rax], al
je 0x1400d5c3c
cmp qword [rsi + 0x10], 0x11
jb 0x1400d5c2b
invalid
invalid
invalid
mov rbp, qword [rbp - 8]
jmp 0x1400d5c2b
mov rcx, qword [rsp + 0x160]
call sub.ws2_32.dll_closesocket
movzx ebp, word [rsp + 0x20]
movzx eax, byte [0x140259141]
mov edx, 0xa
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400d649b
mov rbx, rax
movabs rax, 0x392e322f71657275
mov qword [rbx], rax
mov word [rbx + 8], 0x362e
mov rax, qword [0x1401b5158]
cmp rax, 2
jne 0x1400d6455
mov rsi, qword [0x1401b5148]
mov rdi, qword [0x1401b5150]
lock inc qword [rsi]
jle 0x1400d649b
movzx eax, byte [0x140259141]
mov edx, 0x10
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400d649b
mov r12, rax
mov qword [rax], 1
mov qword [rax + 8], 1
movzx eax, byte [0x140259141]
mov edx, 0x20
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400d649b
mov r15, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov rax, qword [rsp + 0x28]
mov qword [r15 + 0x10], rax
mov word [r15 + 0x18], bp
lock dec qword [r12]
jne 0x1400d5fcc
lea rdx, [0x140200410]
mov rcx, r12
call fcn.1400738e0
mov qword [rsp + 0x50], 0xa
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 0xa
movabs rax, 0x8000000000000001
dec rax
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rsp + 0x180]
movups xmm1, xmmword [rsp + 0x190]
movups xmm2, xmmword [rsp + 0x1a0]
movups xmm3, xmmword [rsp + 0x1b0]
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm1
movups xmmword [rsp + 0x90], xmm2
movups xmmword [rsp + 0xa0], xmm3
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], 0x1e
mov dword [rsp + 0xc0], 0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xc4], rax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0xcc], eax
mov dword [rsp + 0xd0], 0x3b9aca00
mov eax, dword [rsp + 0x160]
mov dword [rsp + 0xdc], eax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0xd4], rax
mov dword [rsp + 0xe0], 0x3b9aca00
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0xec], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xe4], rax
mov dword [rsp + 0xf0], 0x3b9aca00
mov qword [rsp + 0xf8], rsi
mov qword [rsp + 0x100], rdi
mov dword [rsp + 0x108], 5
mov word [rsp + 0x10c], 0x100
mov byte [rsp + 0x10e], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], 8
mov qword [rsp + 0x120], 0
mov qword [rsp + 0x128], r15
lea rax, str._K_f_
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x138], 0x64
mov qword [rsp + 0x140], 1
mov byte [rsp + 0x148], 0
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x23]
mov dword [rsp + 0x14c], ecx
mov dword [rsp + 0x149], eax
lea rcx, [rsp + 0x50]
call fcn.1400d1b90
mov rbx, rax
mov r14, rdx
mov r13, qword [rsp + 0x170]
mov rbp, qword [rsp + 0x168]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r14
lock inc qword [rbx]
jg 0x1400d635f
jmp 0x1400d649b
xor ebx, ebx
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsi + 0x10]
test rcx, rcx
jne 0x1400d5b5a
jmp 0x1400d5b65
call fcn.1400c6a30
movzx eax, byte [0x1401b5139]
test al, al
jne 0x1400d5691
movzx eax, byte [0x140259141]
mov edx, 0xa
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400d649b
mov rbx, rax
movabs rax, 0x392e322f71657275
mov qword [rbx], rax
mov word [rbx + 8], 0x362e
mov rax, qword [0x1401b5158]
cmp rax, 2
jne 0x1400d6474
mov rsi, qword [0x1401b5148]
mov rdi, qword [0x1401b5150]
lock inc qword [rsi]
jle 0x1400d649b
movzx eax, byte [0x140259141]
mov edx, 0x10
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400d649b
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rsp + 0x50], 0xa
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 0xa
movabs rcx, 0x8000000000000001
dec rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0xb8], 0x1e
mov dword [rsp + 0xc0], 0
mov dword [rsp + 0xd0], 0x3b9aca00
mov dword [rsp + 0xe0], 0x3b9aca00
mov dword [rsp + 0xf0], 0x3b9aca00
mov qword [rsp + 0xf8], rsi
mov qword [rsp + 0x100], rdi
mov dword [rsp + 0x108], 5
mov word [rsp + 0x10c], 0x100
mov byte [rsp + 0x10e], 0
mov byte [rsp + 0x148], 0
mov qword [rsp + 0x138], 0x64
mov qword [rsp + 0x140], 1
mov qword [rsp + 0x128], rax
lea rax, [0x140200410]
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], 8
mov qword [rsp + 0x120], 0
lea rcx, [rsp + 0x50]
call fcn.1400d1b90
mov rbx, rax
mov r14, rdx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r14
lock inc qword [rbx]
jle 0x1400d649b
lock inc qword [r14]
jle 0x1400d649b
movzx eax, byte [0x140259141]
mov edx, 3
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400d649b
mov r15, rax
mov byte [rax + 2], 0x54
mov word [rax], 0x4547
test rbp, rbp
je 0x1400d63ba
js 0x1400d649b
movzx eax, byte [0x140259141]
xor ecx, ecx
mov rdx, rbp
call fcn.14008b700
mov r12, rax
test rax, rax
jne 0x1400d63c0
jmp 0x1400d649b
mov r12d, 1
mov rcx, r12
mov rdx, qword [rsp + 0x178]
mov r8, rbp
call sub.msvcrt.dll_memcpy
mov qword [r13 + 0x58], rbx
mov qword [r13 + 0x60], r14
mov qword [r13], 3
mov qword [r13 + 8], r15
mov qword [r13 + 0x10], 3
mov qword [r13 + 0x18], rbp
mov qword [r13 + 0x20], r12
mov qword [r13 + 0x28], rbp
mov qword [r13 + 0x30], 0
mov qword [r13 + 0x38], 8
mov qword [r13 + 0x40], 0
mov dword [r13 + 0x50], 0x3b9aca00
lock dec qword [rbx]
jne 0x1400d642b
lea rcx, [rsp + 0x50]
call fcn.1400c6150
mov rax, qword [rsp + 0x58]
lock dec qword [rax]
jne 0x1400d6440
lea rcx, [rsp + 0x58]
call fcn.1400c5e30
nop
add rsp, 0x1c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400c68f0
mov rsi, qword [0x1401b5148]
mov rdi, qword [0x1401b5150]
lock inc qword [rsi]
jg 0x1400d5f4c
jmp 0x1400d649b
call fcn.1400c68f0
mov rsi, qword [0x1401b5148]
mov rdi, qword [0x1401b5150]
lock inc qword [rsi]
jg 0x1400d6227
jmp 0x1400d649b
cmp qword [rsp + 0x28], 0
jne 0x1400d649d
ud2
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, qword [rsp + 0x150]
call sub.KERNEL32.dll_HeapFree
ud2
call sub.ws2_32.dll_WSAGetLastError
ud2
lock dec qword [rsi]
jne 0x1400d64cc
lea rcx, [rsp + 0x50]
call fcn.1400291c0
lock dec qword [r12]
jne 0x1400d649b
mov rcx, r12
call fcn.1400293e0
ud2
add rcx, 0x10
xor edx, edx
call fcn.140087620
ud2
lock dec qword [rbx]
jne 0x1400d649b
mov rcx, rbx
call fcn.1400873e0
ud2