Function at 0x1400a1c20
Capabilities:
Create thread
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2f0
movaps xmmword [rsp + 0x2e0], xmm6
mov rax, qword [0x140304470]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
movzx r12d, word [rcx + 0x68]
test r12w, r12w
je 0x1400a224d
lea rsi, [rcx + 0x48]
cmp qword [rsi + 0x18], 0x10
jb 0x1400a1c79
mov rsi, qword [rsi]
xor r14d, r14d
mov dword [rsp + 0x60], r14d
mov byte [rsp + 0x64], r14b
lea rax, [0x1402b2d00]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x40], r14d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x2a0]
mov rdx, rsi
mov r15d, 0x17
mov ecx, r15d
call fcn.1400241c0
test eax, eax
jg 0x1400a1ccb
xorps xmm6, xmm6
mov ebx, r14d
jmp 0x1400a1cd7
mov ebx, dword [rsp + 0x40]
movups xmm6, xmmword [rsp + 0x2a0]
movups xmmword [rsp + 0xb0], xmm6
mov dword [rsp + 0xc0], ebx
mov r13d, 2
cmp dword [rsp + 0x60], r14d
jne 0x1400a1d0b
mov esi, 1
mov qword [rsp + 0x260], rsi
mov dword [rsp + 0x278], ebx
xor eax, eax
jmp 0x1400a1d5f
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x44]
mov rdx, rsi
mov ecx, r13d
call fcn.1400241c0
mov r14d, dword [rsp + 0x44]
test eax, eax
mov eax, 0
cmovle r14d, eax
cmp dword [rsp + 0x60], eax
jne 0x1400a2299
mov esi, eax
mov dword [rsp + 0x260], eax
mov dword [rsp + 0x264], r14d
xorps xmm6, xmm6
mov ebx, eax
mov dword [rsp + 0x278], eax
movups xmmword [rsp + 0x268], xmm6
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x228], xmm0
mov dword [rsp + 0x238], eax
movzx ecx, r12w
test esi, esi
jne 0x1400a1dbe
mov word [rsp + 0x220], r13w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x222], ax
test esi, esi
jne 0x1400a22a4
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x224], eax
xor r12d, r12d
jmp 0x1400a1df8
mov word [rsp + 0x220], r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x222], ax
xor r12d, r12d
mov dword [rsp + 0x224], r12d
cmp esi, 1
jne 0x1400a22bf
movups xmmword [rsp + 0x228], xmm6
mov dword [rsp + 0x238], ebx
cmp word [rsp + 0x220], 2
cmove r15d, r13d
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x70], r12d
mov byte [rsp + 0x74], 0
lea r15, [0x1402b2d00]
mov qword [rsp + 0x78], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, [rdi + 0x78]
lea rdx, [rsp + 0xe0]
mov rcx, qword [rdi + 0x70]
call fcn.14007acd0
cmp dword [rsp + 0x70], 0
jne 0x1400a22da
mov dword [rsp + 0x4c], 1
mov rbx, qword [rdi + 0x78]
cmp rbx, 0xffffffffffffffff
jne 0x1400a1e70
mov dword [rsp + 0x30], 0x2719
mov byte [rsp + 0x34], 1
jmp 0x1400a1ecc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x4c]
mov edx, 0xffff
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
test eax, eax
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], r15
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0xa0], xmm0
test ebx, ebx
jne 0x1400a1edf
mov dword [rsp + 0x30], r12d
mov byte [rsp + 0x34], bl
mov qword [rsp + 0x38], r15
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0xa0], xmm0
cmp dword [rsp + 0xa0], 0
jne 0x1400a22eb
mov dword [rsp + 0x80], r12d
mov byte [rsp + 0x84], 0
mov qword [rsp + 0x88], r15
mov ebx, reloc.WS2_32.dll_recv
mov r8d, 0x1c
cmp word [rsp + 0x220], 2
cmove r8d, ebx
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x220]
mov rcx, qword [rdi + 0x78]
call fcn.140069740
cmp dword [rsp + 0x80], 0
jne 0x1400a22ff
mov dword [rsp + 0x90], r12d
mov byte [rsp + 0x94], 0
mov qword [rsp + 0x98], r15
lea r8, [rsp + 0x90]
mov edx, 0x40
mov rcx, qword [rdi + 0x78]
call fcn.1400699c0
cmp dword [rsp + 0x90], 0
jne 0x1400a2313
lea rdx, str.e_94m_i
lea rcx, [rsp + 0x108]
call fcn.140094f60
nop
lea rdx, [rsp + 0x2b0]
lea rcx, [rdi + 0x70]
call fcn.1400ab6b0
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
lea rcx, [rsp + 0x240]
call fcn.140003d50
nop
mov r9d, 0x1d
lea r8, str.Api_server_listening_on_port
xor edx, edx
mov rcx, rax
call fcn.140042920
mov qword [rsp + 0x200], r12
mov qword [rsp + 0x210], r12
mov qword [rsp + 0x218], r12
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x200], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x210], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, [rsp + 0x200]
cmp qword [rsp + 0x218], 0x10
cmovae rdx, qword [rsp + 0x200]
mov r8, qword [rsp + 0x210]
lea rcx, [rsp + 0x118]
call fcn.140043600
lea rax, [0x1402b371c]
lea rdx, str.._Authentication_needed.
cmp qword [rdi + 0x30], 0
cmove rdx, rax
lea rcx, [rsp + 0x118]
call fcn.140035d70
nop
mov rdx, qword [rsp + 0x218]
cmp rdx, 0x10
jb 0x1400a20b0
inc rdx
mov rcx, qword [rsp + 0x200]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a20ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a20ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14021962c
mov qword [rsp + 0x210], r12
mov qword [rsp + 0x218], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x200], 0
mov rdx, qword [rsp + 0x258]
cmp rdx, 0x10
jb 0x1400a2112
inc rdx
mov rcx, qword [rsp + 0x240]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a210d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a210d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14021962c
mov qword [rsp + 0x250], r12
mov qword [rsp + 0x258], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x240], 0
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x120]
call fcn.140034220
lea rcx, [rsp + 0x280]
call fcn.140095410
mov rdx, qword [rsp + 0x298]
cmp rdx, 0x10
jb 0x1400a2196
inc rdx
mov rcx, qword [rsp + 0x280]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a2191
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a2191
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14021962c
mov qword [rsp + 0x290], r12
mov qword [rsp + 0x298], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x280], 0
lea rcx, [rsp + 0x108]
call fcn.1400041d0
nop
lea rax, [fcn.1400a2330]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rdi
mov rcx, rbx
call fcn.1402192c8
movups xmm0, xmmword [rsp + 0xc8]
movups xmmword [rax], xmm0
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x140048720]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400a2286
mov qword [rsp + 0x50], r12
cmp dword [rdi + 0x10], 0
jne 0x1400a227f
xorps xmm0, xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0xe0], xmm1
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rdi + 8], xmm1
mov byte [rdi + 0x40], 1
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140219010
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], r12d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
jmp 0x1400a224d
lea rcx, [rsp + 0x60]
call fcn.140022670
nop
lea rcx, [rsp + 0xf0]
call fcn.14006c020
lea rcx, [rsp + 0xf0]
call fcn.14007c410
int3
lea rcx, [rsp + 0xf0]
call fcn.14006c020
lea rcx, [rsp + 0xf0]
call fcn.14007c410
nop
lea rdx, str.open
lea rcx, [rsp + 0x70]
call fcn.1400226b0
lea rdx, str.set_option
lea rcx, [rsp + 0xa0]
call fcn.1400226b0
lea rdx, str.bind
lea rcx, [rsp + 0x80]
call fcn.1400226b0
lea rdx, str.listen
lea rcx, [rsp + 0x90]
call fcn.1400226b0
int3