Function at 0x1400d1380
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, 0x208
movapd xmmword [rsp + 0x1f0], xmm7
movapd xmmword [rsp + 0x1e0], xmm6
mov r12, rdx
mov r15, rcx
mov rax, qword [0x1401b0130]
cmp rax, 2
jne 0x1400d1f7b
movzx eax, byte [0x1401b0139]
test al, al
je 0x1400d1f8f
mov qword [rsp + 0x1b0], r12
mov qword [rsp + 0x1b8], r15
lea rdx, str.127.0.0.1:0testserver:_pre_connect_with_error__n
lea rcx, [rsp + 0x40]
mov r8d, 0xb
call fcn.140092660
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x140], rax
test rax, rax
je 0x1400d226c
mov rbp, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x148], rax
mov rsi, qword [rsp + 0x58]
cmp rbp, rsi
je 0x1400d2261
xor r13d, r13d
lea r12, [rsp + 0x40]
xorpd xmm6, xmm6
jmp 0x1400d146d
mov rcx, qword [0x1402540f8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
dec r14
mov rcx, qword [0x1402540f8]
xor edx, edx
mov r8, r14
call sub.KERNEL32.dll_HeapFree
nop dword [rax + rax]
add rbp, 0x20
cmp rbp, rsi
je 0x1400d2261
movzx edi, word [rbp]
cmp di, 2
je 0x1400d2261
mov r14, r13
mov ebx, dword [rbp + 0x14]
mov r15d, dword [rbp + 0x18]
movzx r13d, word [rbp + 0x1c]
movzx eax, word [rbp + 0x12]
mov word [rsp + 0x170], ax
movups xmm0, xmmword [rbp + 2]
movaps xmmword [rsp + 0x160], xmm0
mov rax, qword [0x1402540e0]
cmp rax, 3
jne 0x1400d15d7
mov rcx, r12
mov edx, edi
call fcn.14008ad50
cmp qword [rsp + 0x40], 0
je 0x1400d14e0
mov r13, qword [rsp + 0x48]
test r14, r14
jne 0x1400d158e
jmp 0x1400d1460
test di, di
je 0x1400d1502
rol r13w, 8
movupd xmm7, xmmword [rsp + 0x162]
mov r8d, 0x1c
mov ax, 0x17
mov edi, r15d
jmp 0x1400d1529
movzx r13d, word [rsp + 0x164]
rol r13w, 8
mov ebx, dword [rsp + 0x160]
movsd xmm7, xmm6
mov r8d, 0x10
mov ax, 2
mov edi, dword [rsp + 0x28]
mov r15, qword [rsp + 0x48]
mov word [rsp + 0x40], ax
mov word [rsp + 0x42], r13w
mov dword [rsp + 0x44], ebx
movupd xmmword [rsp + 0x48], xmm7
mov dword [rsp + 0x58], edi
mov rcx, r15
mov rdx, r12
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
je 0x1400d1569
mov rcx, r15
mov edx, pe_nt_image_headers64
call sub.ws2_32.dll_listen
cmp eax, 0xffffffff
jne 0x1400d15e1
mov dword [rsp + 0x28], edi
call sub.ws2_32.dll_WSAGetLastError
mov r13d, eax
shl r13, 0x20
or r13, 2
mov rcx, r15
call sub.ws2_32.dll_closesocket
test r14, r14
je 0x1400d1460
mov eax, r14d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400d1460
test rax, rax
je 0x1400d1460
mov rdi, qword [r14 - 1]
mov rbx, qword [r14 + 7]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1400d1447
cmp qword [rbx + 0x10], 0x11
jb 0x1400d1436
mov rdi, qword [rdi - 8]
jmp 0x1400d1436
call fcn.14008ac30
jmp 0x1400d14b3
cmp qword [rsp + 0x148], 0
je 0x1400d1602
mov rcx, qword [0x1402540f8]
xor edx, edx
mov r8, qword [rsp + 0x140]
call sub.KERNEL32.dll_HeapFree
test r14, r14
je 0x1400d1661
mov eax, r14d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400d1661
test rax, rax
je 0x1400d1661
lea rdi, [r14 - 1]
mov rbx, qword [r14 - 1]
mov rsi, qword [r14 + 7]
mov rcx, rbx
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x1400d1650
cmp qword [rsi + 0x10], 0x11
jb 0x1400d163f
mov rbx, qword [rbx - 8]
mov rcx, qword [0x1402540f8]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x1402540f8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
xorps xmm0, 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
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x160], pe_nt_image_headers64
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x160]
mov rcx, r15
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x1400d2286
mov eax, dword [rsp + 0x160]
movzx ecx, word [rsp + 0x40]
cmp ecx, 0x17
je 0x1400d16e5
cmp ecx, 2
jne 0x1400d226c
cmp eax, 0xf
ja 0x1400d16ee
jmp 0x1400d226c
cmp eax, 0x1b
jbe 0x1400d226c
movzx eax, word [rsp + 0x42]
rol ax, 8
mov word [rsp + 0x20], ax
movzx eax, byte [0x140254141]
mov edx, 0x18
xor ecx, ecx
call fcn.14008bd10
test rax, rax
je 0x1400d226c
mov rbx, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov byte [rax + 0x10], 0
lock inc qword [rax]
jle 0x1400d226c
call fcn.140091f80
mov r13, rax
movzx eax, byte [0x140254141]
mov edx, 0x30
xor ecx, ecx
call fcn.14008bd10
test rax, rax
je 0x1400d226c
mov r12, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x18], 0
mov rax, qword [0x1402540d8]
nop dword [rax]
mov rcx, rax
inc rcx
je 0x1400d226c
lock cmpxchg qword [0x1402540d8], rcx
jne 0x1400d1780
mov qword [r12 + 0x10], rcx
mov byte [r12 + 0x28], 0
lock inc qword [r12]
jle 0x1400d226c
movzx eax, byte [0x140254141]
mov edx, 0x30
xor ecx, ecx
call fcn.14008bd10
test rax, rax
je 0x1400d226c
mov rbp, rax
mov qword [rax], 1
mov qword [rax + 8], 1
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rsp + 0x40], rax
lock inc qword [rax]
jle 0x1400d226c
movzx eax, byte [0x140254058]
test al, al
je 0x1400d1850
mov byte [0x140254058], 1
xor ecx, ecx
call fcn.1400878f0
test rax, rax
je 0x1400d226c
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x1400d1850
lock inc qword [rdi]
jle 0x1400d226c
mov byte [0x140254058], 1
xor ecx, ecx
call fcn.1400878f0
test rax, rax
je 0x1400d22bb
mov rcx, qword [rax]
mov qword [rax], rdi
test rcx, rcx
jne 0x1400d1887
jmp 0x1400d1892
movzx eax, byte [0x140254058]
test al, al
je 0x1400d1f62
mov byte [0x140254058], 1
xor ecx, ecx
call fcn.1400878f0
test rax, rax
je 0x1400d226c
mov rcx, qword [rax]
mov qword [rax], 0
xor edi, edi
test rcx, rcx
je 0x1400d1892
lock dec qword [rcx]
jne 0x1400d1892
call fcn.140087690
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400d18ab
lock inc qword [rcx + 0x18]
jle 0x1400d22ae
movzx eax, byte [0x140254141]
mov edx, 0x30
xor ecx, ecx
call fcn.14008bd10
test rax, rax
je 0x1400d226c
mov qword [rax], r12
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r15
mov qword [rax + 0x20], rbx
lea rcx, [0x1400c13e0]
mov qword [rax + 0x28], rcx
lea r8, [0x1401fad08]
mov rcx, r13
mov rdx, rax
call fcn.140087b60
test rax, rax
jne 0x1400d228d
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdx
mov rcx, rdx
call sub.KERNEL32.dll_CloseHandle
lock dec qword [r12]
jne 0x1400d1928
mov rcx, qword [rsp + 0x40]
call fcn.1400c1ef0
mov qword [rsp + 0x28], rbx
mov rax, qword [rsp + 0x48]
lock dec qword [rax]
jne 0x1400d1942
lea rcx, [rsp + 0x48]
call fcn.140028eb0
lea r15, [rsp + 0x20]
lea r14, [rsp + 0x30]
lea r12, [rsp + 0x40]
lea r13, [rsp + 0x150]
lea rbp, [rsp + 0x1c0]
lea rsi, [0x1401b6e30]
lea rbx, [rsp + 0x160]
jmp 0x1400d19a4
mov rcx, qword [0x1402540f8]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
dec rdi
mov rcx, qword [0x1402540f8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
lea rbx, [rsp + 0x160]
lea r15, [rsp + 0x20]
mov qword [rsp + 0x30], r15
lea rax, [0x140018bb0]
mov qword [rsp + 0x38], rax
lea rax, [0x1401fadb8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 1
movzx eax, byte [0x140254141]
mov edx, 0x14
xor ecx, ecx
call fcn.14008bd10
test rax, rax
je 0x1400d226c
mov qword [rsp + 0x160], 0x14
mov qword [rsp + 0x168], rax
mov qword [rsp + 0x170], 0
mov rcx, rbx
lea rdx, [0x1401b97c8]
mov r8, r12
call fcn.14000da30
test al, al
jne 0x1400d226c
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x1d0], rax
movups xmm0, xmmword [rsp + 0x160]
movaps xmmword [rsp + 0x1c0], xmm0
mov rcx, r13
mov rdx, rbp
call fcn.1400b82a0
cmp qword [rsp + 0x150], 0
je case.default.0x1400d1a8a
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x30], rax
and al, 0x30
mov ecx, eax
and ecx, 3
movsxd rcx, dword [rsi + rcx*4]
add rcx, rsi
jmp rcx
movzx eax, byte [rax + 0x10]
jmp 0x1400d1b34
mov qword [rsp + 0x160], r14
lea rax, fcn.140086db0
mov qword [rsp + 0x168], rax
lea rax, [0x1401fadf8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], 1
add byte [rax], al
mov rcx, r12
call fcn.140081490
jmp 0x1400d1b48
cmp al, 2
jne 0x1400d1aaf
xor ecx, ecx
mov edx, 0x5f5e100
call fcn.140089c00
mov rdi, qword [rsp + 0x30]
mov eax, edi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400d19a4
test rax, rax
je 0x1400d19a4
mov rbx, qword [rdi - 1]
mov r15, qword [rdi + 7]
mov rcx, rbx
call qword [r15]
invalid
cmp qword [r15 + 8], 0
or byte [rax], al
je 0x1400d1983
cmp qword [r15 + 0x10], 0x11
jb 0x1400d1972
std
invalid
invalid
mov rbx, qword [rbx - 8]
jmp 0x1400d1972
mov rcx, qword [rsp + 0x158]
call sub.ws2_32.dll_closesocket
movzx ebp, word [rsp + 0x20]
movzx eax, byte [0x140254141]
mov edx, 0xa
xor ecx, ecx
call fcn.14008bd10
test rax, rax
je 0x1400d226c
mov rdi, rax
movabs rax, 0x392e322f71657275
mov qword [rdi], rax
mov word [rdi + 8], 0x362e
mov rax, qword [0x1401b0158]
cmp rax, 2
jne 0x1400d2223
mov rsi, qword [0x1401b0148]
mov rbx, qword [0x1401b0150]
lock inc qword [rsi]
jle 0x1400d226c
movzx eax, byte [0x140254141]
mov edx, 0x10
xor ecx, ecx
call fcn.14008bd10
test rax, rax
je 0x1400d226c
mov r15, rax
mov qword [rax], 1
mov qword [rax + 8], 1
movzx eax, byte [0x140254141]
mov edx, 0x20
xor ecx, ecx
call fcn.14008bd10
test rax, rax
je 0x1400d226c
mov r14, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov rax, qword [rsp + 0x28]
mov qword [r14 + 0x10], rax
mov word [r14 + 0x18], bp
lock dec qword [r15]
jne 0x1400d1d8c
lea rdx, [0x1401fac30]
mov rcx, r15
call fcn.140073a00
mov qword [rsp + 0x40], 0xa
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], 0xa
movabs rax, 0x8000000000000001
dec rax
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rsp + 0x160]
movups xmm1, xmmword [rsp + 0x170]
movups xmm2, xmmword [rsp + 0x180]
movups xmm3, xmmword [rsp + 0x190]
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm1
movups xmmword [rsp + 0x80], xmm2
movups xmmword [rsp + 0x90], xmm3
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], 0x1e
mov dword [rsp + 0xb0], 0
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0xb4], rax
mov eax, dword [rsp + 0x1c8]
mov dword [rsp + 0xbc], eax
mov dword [rsp + 0xc0], 0x3b9aca00
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0xcc], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xc4], rax
mov dword [rsp + 0xd0], 0x3b9aca00
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0xdc], eax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0xd4], rax
mov dword [rsp + 0xe0], 0x3b9aca00
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xf0], rbx
mov dword [rsp + 0xf8], 5
mov word [rsp + 0xfc], 0x100
mov byte [rsp + 0xfe], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 8
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], r14
lea rax, str.0_t_f_
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x128], 0x64
mov qword [rsp + 0x130], 1
mov byte [rsp + 0x138], 0
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x23]
mov dword [rsp + 0x13c], ecx
mov dword [rsp + 0x139], eax
lea rcx, [rsp + 0x40]
call fcn.1400cdd00
mov rdi, rax
mov rbx, rdx
mov r15, qword [rsp + 0x1b8]
mov r12, qword [rsp + 0x1b0]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rbx
lock inc qword [rdi]
jg 0x1400d2122
jmp 0x1400d226c
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsi + 0x10]
test rcx, rcx
jne 0x1400d18a0
jmp 0x1400d18ab
call fcn.1400c2980
movzx eax, byte [0x1401b0139]
test al, al
jne 0x1400d13cb
movzx eax, byte [0x140254141]
mov edx, 0xa
xor ecx, ecx
call fcn.14008bd10
test rax, rax
je 0x1400d226c
mov rdi, rax
movabs rax, 0x392e322f71657275
mov qword [rdi], rax
mov word [rdi + 8], 0x362e
mov rax, qword [0x1401b0158]
cmp rax, 2
jne 0x1400d2242
mov rsi, qword [0x1401b0148]
mov rbx, qword [0x1401b0150]
lock inc qword [rsi]
jle 0x1400d226c
movzx eax, byte [0x140254141]
mov edx, 0x10
xor ecx, ecx
call fcn.14008bd10
test rax, rax
je 0x1400d226c
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rsp + 0x40], 0xa
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], 0xa
movabs rcx, 0x8000000000000001
dec rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0xa8], 0x1e
mov dword [rsp + 0xb0], 0
mov dword [rsp + 0xc0], 0x3b9aca00
mov dword [rsp + 0xd0], 0x3b9aca00
mov dword [rsp + 0xe0], 0x3b9aca00
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xf0], rbx
mov dword [rsp + 0xf8], 5
mov word [rsp + 0xfc], 0x100
mov byte [rsp + 0xfe], 0
mov byte [rsp + 0x138], 0
mov qword [rsp + 0x128], 0x64
mov qword [rsp + 0x130], 1
mov qword [rsp + 0x118], rax
lea rax, [0x1401fac30]
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 8
mov qword [rsp + 0x110], 0
lea rcx, [rsp + 0x40]
call fcn.1400cdd00
mov rdi, rax
mov rbx, rdx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rbx
lock inc qword [rdi]
jle 0x1400d226c
lock inc qword [rbx]
jle 0x1400d226c
movzx eax, byte [0x140254141]
mov edx, 3
xor ecx, ecx
call fcn.14008bd10
test rax, rax
je 0x1400d226c
mov r14, rax
mov byte [rax + 2], 0x54
mov word [rax], 0x4547
movzx eax, byte [0x140254141]
mov edx, 0x27
xor ecx, ecx
call fcn.14008bd10
test rax, rax
je 0x1400d226c
mov rcx, qword [r12 + 0x1f]
mov qword [rax + 0x1f], rcx
movups xmm0, xmmword [r12]
movups xmm1, xmmword [r12 + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov qword [r15 + 0x58], rdi
mov qword [r15 + 0x60], rbx
mov qword [r15], 3
mov qword [r15 + 8], r14
mov qword [r15 + 0x10], 3
mov qword [r15 + 0x18], 0x27
mov qword [r15 + 0x20], rax
mov qword [r15 + 0x28], 0x27
mov qword [r15 + 0x30], 0
mov qword [r15 + 0x38], 8
mov qword [r15 + 0x40], 0
mov dword [r15 + 0x50], 0x3b9aca00
lock dec qword [rdi]
jne 0x1400d21ea
lea rcx, [rsp + 0x40]
call fcn.1400c1cd0
mov rax, qword [rsp + 0x48]
lock dec qword [rax]
jne 0x1400d21ff
lea rcx, [rsp + 0x48]
call fcn.1400c2130
movaps xmm6, xmmword [rsp + 0x1e0]
movaps xmm7, xmmword [rsp + 0x1f0]
add rsp, 0x208
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400c2a60
mov rsi, qword [0x1401b0148]
mov rbx, qword [0x1401b0150]
lock inc qword [rsi]
jg 0x1400d1d0d
int 0xfa
invalid
invalid
jmp 0x1400d226c
call fcn.1400c2a60
mov rsi, qword [0x1401b0148]
mov rbx, qword [0x1401b0150]
lock inc qword [rsi]
jg 0x1400d1fea
jmp 0x1400d226c
cmp qword [rsp + 0x148], 0
jne 0x1400d226e
ud2
mov rcx, qword [0x1402540f8]
xor edx, edx
mov r8, qword [rsp + 0x140]
add al, ch
hlt
fld qword [rbx]
add byte [rdi], cl
invalid
call sub.ws2_32.dll_WSAGetLastError
ud2
lock dec qword [rsi]
jne 0x1400d229d
lea rcx, [rsp + 0x40]
call fcn.140028eb0
lock dec qword [r12]
jne 0x1400d226c
mov rcx, r12
call fcn.1400c1ef0
ud2
add rcx, 0x10
xor edx, edx
call fcn.1400876e0
ud2
lock dec qword [rdi]
jne 0x1400d226c
mov rcx, rdi
call fcn.140087690
ud2