Function at 0x1400d5660
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 0x1400d61c8
movzx eax, byte [0x1401b5139]
test al, al
je 0x1400d61dc
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 0x1400d64ab
mov rdi, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rbp, qword [rsp + 0x68]
cmp rdi, rbp
je 0x1400d64a3
xor ebx, ebx
jmp 0x1400d573d
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 0x1400d64a3
mov r12, rbx
movzx ebx, word [rdi]
cmp bx, 2
je 0x1400d64a3
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 0x1400d5899
lea rcx, [rsp + 0x50]
mov edx, ebx
call fcn.14008ae70
cmp qword [rsp + 0x50], 0
je 0x1400d57b0
mov rbx, qword [rsp + 0x58]
test r12, r12
jne 0x1400d584e
jmp 0x1400d5730
test bx, bx
je 0x1400d57c9
mov r8d, 0x1c
mov ax, 0x17
movups xmm0, xmmword [rsp + 0x182]
jmp 0x1400d57e7
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 0x1400d582e
mov rcx, r15
mov edx, pe_nt_image_headers64
call sub.ws2_32.dll_listen
cmp eax, 0xffffffff
jne 0x1400d58a3
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 0x1400d5730
mov eax, r12d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400d5730
test rax, rax
je 0x1400d5730
mov r15, qword [r12 - 1]
mov rsi, qword [r12 + 7]
mov rcx, r15
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x1400d5710
cmp qword [rsi + 0x10], 0x11
jb 0x1400d56ff
mov r15, qword [r15 - 8]
jmp 0x1400d56ff
call fcn.14008aca0
jmp 0x1400d5782
cmp qword [rsp + 0x28], 0
je 0x1400d58c1
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, qword [rsp + 0x150]
call sub.KERNEL32.dll_HeapFree
test r12, r12
je 0x1400d5923
mov eax, r12d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400d5923
test rax, rax
je 0x1400d5923
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 0x1400d5912
cmp qword [rsi + 0x10], 0x11
jb 0x1400d5901
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 0x1400d64c5
mov eax, dword [rsp + 0x180]
movzx ecx, word [rsp + 0x50]
cmp ecx, 2
je 0x1400d59aa
cmp ecx, 0x17
jne 0x1400d64ab
cmp eax, 0x1b
ja 0x1400d59b3
jmp 0x1400d64ab
cmp eax, 0xf
jbe 0x1400d64ab
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 0x1400d64ab
mov rdi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov byte [rax + 0x10], 0
lock inc qword [rax]
jle 0x1400d64ab
call fcn.14008ee40
mov r13, rax
movzx eax, byte [0x140259141]
mov edx, 0x30
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400d64ab
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 0x1400d64ab
lock cmpxchg qword [0x140259108], rcx
jne 0x1400d5a50
mov qword [r12 + 0x10], rcx
mov byte [r12 + 0x28], 0
lock inc qword [r12]
jle 0x1400d64ab
movzx eax, byte [0x140259141]
mov edx, 0x30
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400d64ab
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 0x1400d64ab
movzx eax, byte [0x140259100]
test al, al
je 0x1400d5b1c
mov byte [0x140259100], 1
call fcn.140087820
test rax, rax
je 0x1400d64ab
mov rbx, qword [rax]
mov qword [rax], 0
test rbx, rbx
je 0x1400d5b1c
lock inc qword [rbx]
jle 0x1400d64ab
mov byte [0x140259100], 1
call fcn.140087820
test rax, rax
je 0x1400d64fa
mov rcx, qword [rax]
mov qword [rax], rbx
test rcx, rcx
jne 0x1400d5b51
jmp 0x1400d5b5c
movzx eax, byte [0x140259100]
test al, al
je 0x1400d61af
mov byte [0x140259100], 1
call fcn.140087820
test rax, rax
je 0x1400d64ab
mov rcx, qword [rax]
mov qword [rax], 0
xor ebx, ebx
test rcx, rcx
je 0x1400d5b5c
lock dec qword [rcx]
jne 0x1400d5b5c
call fcn.140029670
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400d5b75
lock inc qword [rcx + 0x18]
jle 0x1400d64ed
movzx eax, byte [0x140259141]
mov edx, 0x30
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400d64ab
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, [0x1400c5470]
mov qword [rax + 0x28], rcx
lea r8, [0x1402004a0]
mov rcx, r13
mov rdx, rax
call fcn.140087a80
test rax, rax
jne 0x1400d64cc
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 0x1400d5bf2
mov rcx, qword [rsp + 0x50]
call fcn.1400293e0
mov qword [rsp + 0x28], rdi
mov rax, qword [rsp + 0x58]
lock dec qword [rax]
jne 0x1400d5c0c
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 0x1400d5c6c
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, [0x140200570]
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.1400bc6a0
cmp qword [rsp + 0x158], 0
je case.default.0x1400d5ce0
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 0x1400d5d84
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rax, fcn.140086de0
mov qword [rsp + 0x48], rax
lea rax, [0x1402005b0]
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 0x1400d5d98
cmp al, 2
jne 0x1400d5cff
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 0x1400d5c6c
test rax, rax
je 0x1400d5c6c
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 0x1400d5c4c
cmp qword [rsi + 0x10], 0x11
jb 0x1400d5c3b
invalid
invalid
invalid
mov rbp, qword [rbp - 8]
jmp 0x1400d5c3b
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 0x1400d64ab
mov rbx, rax
movabs rax, 0x392e322f71657275
mov qword [rbx], rax
mov word [rbx + 8], 0x362e
mov rax, qword [0x1401b5158]
cmp rax, 2
jne 0x1400d6465
mov rsi, qword [0x1401b5148]
mov rdi, qword [0x1401b5150]
lock inc qword [rsi]
jle 0x1400d64ab
movzx eax, byte [0x140259141]
mov edx, 0x10
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400d64ab
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 0x1400d64ab
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 0x1400d5fdc
lea rdx, [0x140200408]
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.pK_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.1400d1ba0
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 0x1400d636f
jmp 0x1400d64ab
xor ebx, ebx
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsi + 0x10]
test rcx, rcx
jne 0x1400d5b6a
jmp 0x1400d5b75
call fcn.1400c6a40
movzx eax, byte [0x1401b5139]
test al, al
jne 0x1400d56a1
movzx eax, byte [0x140259141]
mov edx, 0xa
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400d64ab
mov rbx, rax
movabs rax, 0x392e322f71657275
mov qword [rbx], rax
mov word [rbx + 8], 0x362e
mov rax, qword [0x1401b5158]
cmp rax, 2
jne 0x1400d6484
mov rsi, qword [0x1401b5148]
mov rdi, qword [0x1401b5150]
lock inc qword [rsi]
jle 0x1400d64ab
movzx eax, byte [0x140259141]
mov edx, 0x10
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400d64ab
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, [0x140200408]
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.1400d1ba0
mov rbx, rax
mov r14, rdx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r14
lock inc qword [rbx]
jle 0x1400d64ab
lock inc qword [r14]
jle 0x1400d64ab
movzx eax, byte [0x140259141]
mov edx, 3
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400d64ab
mov r15, rax
mov byte [rax + 2], 0x54
mov word [rax], 0x4547
test rbp, rbp
je 0x1400d63ca
js 0x1400d64ab
movzx eax, byte [0x140259141]
xor ecx, ecx
mov rdx, rbp
call fcn.14008b700
mov r12, rax
test rax, rax
jne 0x1400d63d0
jmp 0x1400d64ab
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 0x1400d643b
lea rcx, [rsp + 0x50]
call fcn.1400c6160
mov rax, qword [rsp + 0x58]
lock dec qword [rax]
jne 0x1400d6450
lea rcx, [rsp + 0x58]
call fcn.1400c5e40
nop
add rsp, 0x1c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400c6900
mov rsi, qword [0x1401b5148]
mov rdi, qword [0x1401b5150]
lock inc qword [rsi]
jg 0x1400d5f5c
jmp 0x1400d64ab
call fcn.1400c6900
mov rsi, qword [0x1401b5148]
mov rdi, qword [0x1401b5150]
lock inc qword [rsi]
jg 0x1400d6237
jmp 0x1400d64ab
cmp qword [rsp + 0x28], 0
jne 0x1400d64ad
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 0x1400d64dc
lea rcx, [rsp + 0x50]
call fcn.1400291c0
lock dec qword [r12]
jne 0x1400d64ab
mov rcx, r12
call fcn.1400293e0
ud2
add rcx, 0x10
xor edx, edx
call fcn.140087620
ud2
lock dec qword [rbx]
jne 0x1400d64ab
mov rcx, rbx
call fcn.1400873e0
ud2