Function at 0x14009e530
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 [0x1402ba410]
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 0x14009eb5d
lea rsi, [rcx + 0x48]
cmp qword [rsi + 0x18], 0x10
jb 0x14009e589
mov rsi, qword [rsi]
xor r14d, r14d
mov dword [rsp + 0x60], r14d
mov byte [rsp + 0x64], r14b
lea rax, [0x140275440]
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.140023960
test eax, eax
jg 0x14009e5db
xorps xmm6, xmm6
mov ebx, r14d
jmp 0x14009e5e7
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 0x14009e61b
mov esi, 1
mov qword [rsp + 0x260], rsi
mov dword [rsp + 0x278], ebx
xor eax, eax
jmp 0x14009e66f
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x44]
mov rdx, rsi
mov ecx, r13d
call fcn.140023960
mov r14d, dword [rsp + 0x44]
test eax, eax
mov eax, 0
cmovle r14d, eax
cmp dword [rsp + 0x60], eax
jne 0x14009eba9
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 0x14009e6ce
mov word [rsp + 0x220], r13w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x222], ax
test esi, esi
jne 0x14009ebb4
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 0x14009e708
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 0x14009ebcf
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, [0x140275440]
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.1400778b0
cmp dword [rsp + 0x70], 0
jne 0x14009ebea
mov dword [rsp + 0x4c], 1
mov rbx, qword [rdi + 0x78]
cmp rbx, 0xffffffffffffffff
jne 0x14009e780
mov dword [rsp + 0x30], 0x2719
mov byte [rsp + 0x34], 1
jmp 0x14009e7dc
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 0x14009e7ef
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 0x14009ebfb
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.140066320
cmp dword [rsp + 0x80], 0
jne 0x14009ec0f
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.1400665a0
cmp dword [rsp + 0x90], 0
jne 0x14009ec23
lea rdx, str.e_94m_i
lea rcx, [rsp + 0x108]
call fcn.140091b70
nop
lea rdx, [rsp + 0x2b0]
lea rcx, [rdi + 0x70]
call fcn.1400a7ed0
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
lea rcx, [rsp + 0x240]
call fcn.140003be0
nop
mov r9d, 0x1d
lea r8, str.Api_server_listening_on_port
xor edx, edx
mov rcx, rax
call fcn.140040dd0
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.140041af0
lea rax, [0x140275e5c]
lea rdx, str.._Authentication_needed.
cmp qword [rdi + 0x30], 0
cmove rdx, rax
lea rcx, [rsp + 0x118]
call fcn.1400345b0
nop
mov rdx, qword [rsp + 0x218]
cmp rdx, 0x10
jb 0x14009e9c0
inc rdx
mov rcx, qword [rsp + 0x200]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009e9bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009e9bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401ec5cc
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 0x14009ea22
inc rdx
mov rcx, qword [rsp + 0x240]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009ea1d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009ea1d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401ec5cc
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.140032c20
lea rcx, [rsp + 0x280]
call fcn.140092020
mov rdx, qword [rsp + 0x298]
cmp rdx, 0x10
jb 0x14009eaa6
inc rdx
mov rcx, qword [rsp + 0x280]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009eaa1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009eaa1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401ec5cc
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.140003ff0
nop
lea rax, [fcn.14009ec40]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rdi
mov rcx, rbx
call fcn.1401ec268
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, [0x140046a00]
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 0x14009eb96
mov qword [rsp + 0x50], r12
cmp dword [rdi + 0x10], 0
jne 0x14009eb8f
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.1401ebfb0
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 0x14009eb5d
lea rcx, [rsp + 0x60]
call fcn.140021e10
nop
lea rcx, [rsp + 0xf0]
call fcn.140068c00
lea rcx, [rsp + 0xf0]
call fcn.140078ff0
int3
lea rcx, [rsp + 0xf0]
call fcn.140068c00
lea rcx, [rsp + 0xf0]
call fcn.140078ff0
nop
lea rdx, str.open
lea rcx, [rsp + 0x70]
call fcn.140021e50
lea rdx, str.set_option
lea rcx, [rsp + 0xa0]
call fcn.140021e50
lea rdx, str.bind
lea rcx, [rsp + 0x80]
call fcn.140021e50
lea rdx, str.listen
lea rcx, [rsp + 0x90]
call fcn.140021e50
int3