Function at 0x1400fa3a0
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 0x1400fa80d
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 0x1400fa729
cmp ebx, 1
je 0x1400fa76d
mov rax, qword [r12 + 0x48]
cmp rax, 0xffffffffffffffff
je 0x1400fa78a
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.14005a150
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 0x1400fa746
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 0x1400fa7c6
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.14005a150
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.1400304a0
xor edx, edx
mov rcx, rsi
call fcn.14002ee60
lea rax, [0x1401aa8a0]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], rax
lea rax, [0x1401aa590]
mov qword [rsp + 0x60], rax
lea rax, [0x1401aa840]
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 0x1400fa60b
mov rax, qword [rdi + 0x38]
movdqu xmm0, xmmword [rdi + 0x20]
mov qword [rsp + 0x98], rax
movaps xmmword [rsp + 0x80], xmm0
call fcn.1400d1530
xor edi, edi
lea r14, [rsp + 0x60]
mov eax, eax
cmp rdi, rax
jae 0x1400fa6da
nop word [rax + rax]
movzx ecx, dil
call fcn.1400d15a0
mov rdx, qword [r12 + 0x48]
mov r8, r14
mov rcx, r12
mov r13, rax
call fcn.1400d05c0
mov rcx, qword [r12 + 0x50]
mov rdx, rax
mov r15, rax
call fcn.1400f3670
mov qword [r12 + 0x50], rax
test r15, r15
je 0x1400fa6ee
cmp dword [r12], 1
mov eax, 1
mov qword [r15 + 0x2e8], r12
mov rcx, rbx
mov dword [r15 + 0x260], 1
adc eax, 0
mov dword [r15 + 0x34], eax
call fcn.140030000
mov rdx, r15
mov rcx, r13
call fcn.140104740
cmp byte [r12 + 0x700], 0
jne 0x1400fa6be
nop dword [rax + rax]
mov rdx, rbx
mov rcx, rsi
call fcn.14002f780
cmp byte [r12 + 0x700], 0
je 0x1400fa6a8
mov rcx, rbx
add rdi, 1
call fcn.140030320
call fcn.1400d1530
mov eax, eax
cmp rdi, rax
jb 0x1400fa628
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.14005a150
jmp 0x1400fa6da
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [r12 + 0x48], rax
jmp 0x1400fa429
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.14005a150
jmp 0x1400fa48d
xor r8d, r8d
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [r12 + 0x48], rax
jmp 0x1400fa429
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.14005a150
mov rcx, r12
xor r12d, r12d
call sub.msvcrt.dll_free
jmp 0x1400fa6da
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], eax
lea rax, [0x1402bf612]
lea r8, str.dap_server
mov qword [rsp + 0x20], rax
call fcn.14005a150
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 0x1400fa6da
lea rax, [0x1402bf59a]
mov r9d, 8
lea r8, str.dap_server
mov edx, 0xcb
mov qword [rsp + 0x20], rax
lea rcx, str.dap_server_new
call fcn.14005a150
jmp 0x1400fa6da