Function at 0x1400994b0
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, 0x2c0
movaps xmmword [rsp + 0x2b0], xmm6
mov rax, qword [0x1402cf480]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rsi, rcx
mov qword [rsp + 0xa0], rcx
xor r14d, r14d
cmp word [rcx + 0x68], r14w
je 0x140099bd8
lea rdi, [rcx + 0x48]
cmp qword [rdi + 0x18], 0xf
jbe 0x14009950b
mov rdi, qword [rdi]
mov dword [rsp + 0x68], r14d
call fcn.1400b35b0
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x40], r14d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x290]
mov rdx, rdi
mov r12d, 0x17
mov ecx, r12d
call fcn.140023640
test eax, eax
jg 0x140099553
xorps xmm6, xmm6
mov ebx, r14d
jmp 0x14009955f
mov ebx, dword [rsp + 0x40]
movups xmm6, xmmword [rsp + 0x290]
movups xmmword [rsp + 0xd0], xmm6
mov dword [rsp + 0xe0], ebx
mov ecx, dword [rsp + 0x68]
mov r13d, 2
test ecx, ecx
jne 0x140099589
mov r15d, 1
mov qword [rsp + 0x78], r15
jmp 0x1400995d1
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, rdi
mov ecx, r13d
call fcn.140023640
mov edi, dword [rsp + 0x60]
test eax, eax
cmovle edi, r14d
mov ecx, dword [rsp + 0x68]
mov r15d, r14d
xorps xmm6, xmm6
mov ebx, r14d
test ecx, ecx
jne 0x1400995cc
mov dword [rsp + 0x78], r14d
mov dword [rsp + 0x7c], edi
jmp 0x1400995d4
mov qword [rsp + 0x78], r14
mov edi, r14d
movups xmmword [rsp + 0x80], xmm6
mov dword [rsp + 0x90], ebx
lea r14, [fcn.140015200]
mov rax, r14
test ecx, ecx
mov edx, 0
cmove rax, rdx
test rax, rax
jne 0x140099c0a
movzx ecx, word [rsi + 0x68]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x238], xmm0
mov dword [rsp + 0x248], edx
test r15d, r15d
jne 0x14009964d
mov word [rsp + 0x230], r13w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x232], ax
mov ecx, edi
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x234], eax
jmp 0x140099688
mov word [rsp + 0x230], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x232], ax
mov dword [rsp + 0x234], 0
cmp r15d, 1
jne 0x140099c15
movups xmmword [rsp + 0x238], xmm6
mov dword [rsp + 0x248], ebx
cmp word [rsp + 0x230], 2
cmove r12d, r13d
mov dword [rsp + 0x64], r12d
xor r13d, r13d
mov dword [rsp + 0x50], r13d
call fcn.1400b35b0
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
lea r8, [rsi + 0x78]
lea rdx, [rsp + 0x108]
mov rcx, qword [rsi + 0x70]
call fcn.14007c340
mov rax, r14
cmp dword [rsp + 0x50], r13d
cmove rax, r13
test rax, rax
jne 0x140099c31
mov dword [rsp + 0x44], 1
call fcn.1400b35b0
mov rbx, qword [rsi + 0x78]
cmp rbx, 0xffffffffffffffff
jne 0x140099721
call fcn.1400b35b0
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0xb0], xmm0
jmp 0x140099c42
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x44]
mov edx, 0xffff
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.1400b35b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0xb0], xmm0
test edi, edi
jne 0x1400997de
mov dword [rsp + 0x30], r13d
call fcn.1400b35b0
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0xb0], xmm0
call fcn.1400b35b0
mov ebx, 0x1c
mov eax, reloc.WS2_32.dll_recv
cmp word [rsp + 0x230], 2
cmove ebx, eax
mov rdi, qword [rsi + 0x78]
cmp rdi, 0xffffffffffffffff
jne 0x1400997f2
call fcn.1400b35b0
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0xc0], xmm0
jmp 0x140099c56
mov rax, r14
test ecx, ecx
cmove rax, r13
test rax, rax
jne 0x140099c42
jmp 0x140099794
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, ebx
lea rdx, [rsp + 0x230]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
mov edi, eax
call fcn.1400b35b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0xc0], xmm0
test edi, edi
jne 0x140099889
mov dword [rsp + 0x30], r13d
call fcn.1400b35b0
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0xc0], xmm0
call fcn.1400b35b0
mov rbx, qword [rsi + 0x78]
cmp rbx, 0xffffffffffffffff
jne 0x14009989d
call fcn.1400b35b0
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
jmp 0x140099c6a
mov rax, r14
test ecx, ecx
cmove rax, r13
test rax, rax
jne 0x140099c56
jmp 0x140099858
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, 0x40
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
mov edi, eax
call fcn.1400b35b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test edi, edi
jne 0x140099a4c
mov dword [rsp + 0x30], r13d
call fcn.1400b35b0
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rax, [0x14028b614]
lea rbx, str.._Authentication_needed.
cmp qword [rsi + 0x30], 0
cmove rbx, rax
lea rdx, [rsp + 0xe8]
lea rcx, [rsi + 0x70]
call fcn.1400a2ee0
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
lea rcx, [rsp + 0x250]
call fcn.140004420
nop
mov r9d, 0x1d
lea r8, str.Api_server_listening_on_port
xor edx, edx
mov rcx, rax
call fcn.14003e530
xorps xmm0, xmm0
movups xmmword [rsp + 0x210], xmm0
mov qword [rsp + 0x220], r13
mov qword [rsp + 0x228], r13
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x210], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x220], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, str.e_94m_i
lea rcx, [rsp + 0x118]
call fcn.14008dbb0
nop
lea rdx, [rsp + 0x210]
cmp qword [rsp + 0x228], 0xf
cmova rdx, qword [rsp + 0x210]
mov r8, qword [rsp + 0x220]
lea rcx, [rsp + 0x128]
call fcn.14003f210
mov rdx, rbx
lea rcx, [rsp + 0x128]
call fcn.140035180
nop
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x130]
call fcn.140033df0
lea rcx, [rsp + 0x270]
call fcn.14008df10
mov rdx, qword [rsp + 0x288]
cmp rdx, 0xf
jbe 0x140099a65
inc rdx
mov rcx, qword [rsp + 0x270]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140099a60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140099a60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test eax, eax
cmove r14, r13
test r14, r14
jne 0x140099c6a
jmp 0x1400998f9
call fcn.1401fb494
mov qword [rsp + 0x280], r13
mov qword [rsp + 0x288], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x270], 0
lea rcx, [rsp + 0x118]
call fcn.140004870
nop
mov rdx, qword [rsp + 0x228]
cmp rdx, 0xf
jbe 0x140099ad5
inc rdx
mov rcx, qword [rsp + 0x210]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140099ad0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140099ad0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401fb494
mov qword [rsp + 0x220], r13
mov qword [rsp + 0x228], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x210], 0
mov rdx, qword [rsp + 0x268]
cmp rdx, 0xf
jbe 0x140099b37
inc rdx
mov rcx, qword [rsp + 0x250]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140099b32
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140099b32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401fb494
mov qword [rsp + 0x260], r13
mov qword [rsp + 0x268], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x250], 0
mov byte [rsi + 0x40], 1
lea rax, [fcn.140099c80]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rsi
mov ecx, reloc.WS2_32.dll_recv
call fcn.1401fb140
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rax], xmm0
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r13d
mov r9, rax
lea r8, [0x140046c80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140099bc7
cmp dword [rsi + 0x10], 0
jne 0x140099bc0
movaps xmm1, xmmword [rsp + 0x50]
movups xmmword [rsi + 8], xmm1
jmp 0x140099bd8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x58], r13d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1401fb000
lea r11, [rsp + 0x2c0]
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
lea rcx, [rsp + 0x68]
call fcn.140021ce0
int3
lea rcx, [rsp + 0xd0]
call fcn.14006b510
nop
lea rcx, [rsp + 0xd0]
call fcn.14007acb0
nop
lea rdx, str.open
lea rcx, [rsp + 0x50]
call fcn.140021d20
lea rdx, str.set_option
lea rcx, [rsp + 0xb0]
call fcn.140021d20
lea rdx, str.bind
lea rcx, [rsp + 0xc0]
call fcn.140021d20
lea rdx, str.listen
lea rcx, [rsp + 0x30]
call fcn.140021d20
int3