Function at 0x1400ffdb0
Capabilities:
Convert ip address from string
Set socket configuration

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
mov r13, rcx
mov ecx, 1
push r12
push rdi
mov rdi, r9
push rsi
mov esi, edx
mov edx, 0x708
push rbx
mov ebx, r8d
and rsp, 0xfffffffffffffff0
sub rsp, 0xc0
call sub.msvcrt.dll_calloc
mov r12, rax
test rax, rax
je 0x14010021d
test r13, r13
lea rax, str.0.0.0.0
mov r8d, 0x41
cmove r13, rax
lea rax, [r12 + 6]
mov rcx, rax
mov qword [rsp + 0x48], rax
mov rdx, r13
call sub.msvcrt.dll_strncpy
mov word [r12 + 4], si
mov dword [r12], ebx
test ebx, ebx
je 0x140100139
cmp ebx, 1
je 0x14010017d
mov rax, qword [r12 + 0x48]
cmp rax, 0xffffffffffffffff
je 0x14010019a
mov qword [rsp + 0x28], rax
lea rax, str.Listen_socket__llu_created...
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, str.dap_server
call fcn.14005a0c0
mov rcx, qword [r12 + 0x48]
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x20], 4
mov r8d, 4
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x140100156
mov eax, 2
movzx ecx, word [r12 + 4]
mov dword [rsp + 0x58], 1
mov word [r12 + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rdx, qword [rsp + 0x48]
lea r8, [r12 + 0x5c]
mov ecx, 2
mov word [r12 + 0x5a], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
mov rcx, qword [r12 + 0x48]
lea rdx, [r12 + 0x58]
mov r8d, 0x10
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x1401001d6
movzx eax, word [r12 + 4]
mov r9d, 1
xor edx, edx
xor ecx, ecx
lea r8, str.dap_server
lea rbx, [r12 + 0x6f8]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x48]
lea rsi, [r12 + 0x6f0]
mov qword [rsp + 0x28], rax
lea rax, str.Binded__s:_u
mov qword [rsp + 0x20], rax
call fcn.14005a0c0
mov rcx, qword [r12 + 0x48]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
lea r8, [rsp + 0x5c]
mov rcx, qword [r12 + 0x48]
mov edx, 0x8004667e
mov dword [rsp + 0x5c], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov rcx, rbx
call fcn.140030400
xor edx, edx
mov rcx, rsi
call fcn.14002edc0
lea rax, [0x1401b05c0]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], rax
lea rax, [0x1401b02b0]
mov qword [rsp + 0x60], rax
lea rax, [0x1401b0560]
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x98], rax
test rdi, rdi
je 0x14010001b
mov rax, qword [rdi + 0x38]
movdqu xmm0, xmmword [rdi + 0x20]
mov qword [rsp + 0x98], rax
movaps xmmword [rsp + 0x80], xmm0
call fcn.1400d54c0
xor edi, edi
lea r14, [rsp + 0x60]
mov eax, eax
cmp rdi, rax
jae 0x1401000ea
nop word [rax + rax]
movzx ecx, dil
call fcn.1400d5530
mov rdx, qword [r12 + 0x48]
mov r8, r14
mov rcx, r12
mov r13, rax
call fcn.1400d4550
mov rcx, qword [r12 + 0x50]
mov rdx, rax
mov r15, rax
call fcn.1400f9220
mov qword [r12 + 0x50], rax
test r15, r15
je 0x1401000fe
cmp dword [r12], 1
mov eax, 1
mov qword [r15 + 0x2f0], r12
mov rcx, rbx
mov dword [r15 + 0x268], 1
adc eax, 0
mov dword [r15 + 0x34], eax
call fcn.14002ff60
mov rdx, r15
mov rcx, r13
call fcn.14010a170
cmp byte [r12 + 0x700], 0
jne 0x1401000ce
nop dword [rax + rax]
mov rdx, rbx
mov rcx, rsi
call fcn.14002f6e0
cmp byte [r12 + 0x700], 0
je 0x1401000b8
mov rcx, rbx
add rdi, 1
call fcn.140030280
call fcn.1400d54c0
mov eax, eax
cmp rdi, rax
jb 0x140100038
lea rsp, [rbp - 0x38]
mov rax, r12
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movzx eax, word [r12 + 4]
mov r9d, 5
xor edx, edx
xor ecx, ecx
lea r8, str.dap_server
xor r12d, r12d
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, str.Cant_wrap_event_socket_for__s:_u_server
mov qword [rsp + 0x20], rax
call fcn.14005a0c0
jmp 0x1401000ea
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [r12 + 0x48], rax
jmp 0x1400ffe39
lea rax, str.Cant_set_up_REUSEADDR_flag_to_the_socket
mov r9d, 5
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8, str.dap_server
call fcn.14005a0c0
jmp 0x1400ffe9d
xor r8d, r8d
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [r12 + 0x48], rax
jmp 0x1400ffe39
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], eax
lea rax, str.Socket_error:__d
lea r8, str.dap_server
mov qword [rsp + 0x20], rax
call fcn.14005a0c0
mov rcx, r12
xor r12d, r12d
call sub.msvcrt.dll_free
jmp 0x1401000ea
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], eax
lea rax, [0x1402c4eb2]
lea r8, str.dap_server
mov qword [rsp + 0x20], rax
call fcn.14005a0c0
mov rcx, qword [r12 + 0x48]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, r12
xor r12d, r12d
call sub.msvcrt.dll_free
jmp 0x1401000ea
lea rax, [0x1402c4e3a]
mov r9d, 8
lea r8, str.dap_server
mov edx, 0xcb
mov qword [rsp + 0x20], rax
lea rcx, str.dap_server_new
call fcn.14005a0c0
jmp 0x1401000ea