Function at 0x1400a1c30
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 0x1400a225d
lea rsi, [rcx + 0x48]
cmp qword [rsi + 0x18], 0x10
jb 0x1400a1c89
mov rsi, qword [rsi]
xor r14d, r14d
mov dword [rsp + 0x60], r14d
mov byte [rsp + 0x64], r14b
lea rax, [0x1402b2c88]
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 0x1400a1cdb
xorps xmm6, xmm6
mov ebx, r14d
jmp 0x1400a1ce7
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 0x1400a1d1b
mov esi, 1
mov qword [rsp + 0x260], rsi
mov dword [rsp + 0x278], ebx
xor eax, eax
jmp 0x1400a1d6f
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 0x1400a22a9
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 0x1400a1dce
mov word [rsp + 0x220], r13w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x222], ax
test esi, esi
jne 0x1400a22b4
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 0x1400a1e08
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 0x1400a22cf
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, [0x1402b2c88]
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.14007acf0
cmp dword [rsp + 0x70], 0
jne 0x1400a22ea
mov dword [rsp + 0x4c], 1
mov rbx, qword [rdi + 0x78]
cmp rbx, 0xffffffffffffffff
jne 0x1400a1e80
mov dword [rsp + 0x30], 0x2719
mov byte [rsp + 0x34], 1
jmp 0x1400a1edc
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 0x1400a1eef
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 0x1400a22fb
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 0x1400a230f
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 0x1400a2323
lea rdx, str.e_94m_i
lea rcx, [rsp + 0x108]
call fcn.140094f70
nop
lea rdx, [rsp + 0x2b0]
lea rcx, [rdi + 0x70]
call fcn.1400ab6c0
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, [0x1402b369c]
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 0x1400a20c0
inc rdx
mov rcx, qword [rsp + 0x200]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a20bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a20bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402193dc
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 0x1400a2122
inc rdx
mov rcx, qword [rsp + 0x240]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a211d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a211d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402193dc
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.140095420
mov rdx, qword [rsp + 0x298]
cmp rdx, 0x10
jb 0x1400a21a6
inc rdx
mov rcx, qword [rsp + 0x280]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a21a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a21a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402193dc
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.1400a2340]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rdi
mov rcx, rbx
call fcn.140219078
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 0x1400a2296
mov qword [rsp + 0x50], r12
cmp dword [rdi + 0x10], 0
jne 0x1400a228f
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.140218dc0
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 0x1400a225d
lea rcx, [rsp + 0x60]
call fcn.140022670
nop
lea rcx, [rsp + 0xf0]
call fcn.14006c020
lea rcx, [rsp + 0xf0]
call fcn.14007c430
int3
lea rcx, [rsp + 0xf0]
call fcn.14006c020
lea rcx, [rsp + 0xf0]
call fcn.14007c430
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