Function at 0x1400aa0a0
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x570
mov qword [rax - 0x440], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140329490]
xor rax, rsp
mov qword [rsp + 0x560], rax
mov rdi, rcx
mov qword [rsp + 0x80], rcx
cmp word [rcx + 0x68], 0
je 0x1400aa759
lea rbx, [rcx + 0x48]
cmp qword [rbx + 0x18], 0x10
jb 0x1400aa0fc
mov rbx, qword [rbx]
xor r15d, r15d
mov dword [rsp + 0x90], r15d
mov byte [rsp + 0x94], r15b
lea r12, [0x1402c28e8]
mov qword [rsp + 0x98], r12
mov dword [rsp + 0x40], r15d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x530]
mov rdx, rbx
mov r14d, 0x17
mov ecx, r14d
call fcn.140024420
test eax, eax
jg 0x1400aa171
xor eax, eax
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], rax
mov ecx, r15d
movups xmm0, xmmword [rsp + 0xf8]
jmp 0x1400aa185
mov ecx, dword [rsp + 0x40]
movups xmm0, xmmword [rsp + 0x530]
movups xmmword [rsp + 0xf8], xmm0
mov dword [rsp + 0x108], ecx
mov eax, dword [rsp + 0x90]
test eax, eax
setne dl
test eax, eax
jne 0x1400aa1b4
mov esi, 1
mov qword [rsp + 0x48], rsi
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], ecx
lea ebx, [rax + 2]
jmp 0x1400aa21d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x68]
mov rdx, rbx
mov ebx, 2
mov ecx, ebx
call fcn.140024420
mov ecx, dword [rsp + 0x68]
test eax, eax
cmovle ecx, r15d
mov dword [rsp + 0x110], ecx
mov eax, dword [rsp + 0x90]
test eax, eax
setne dl
mov dword [rsp + 0x60], r15d
lea esi, [rbx - 1]
test eax, eax
jne 0x1400aa20c
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x4c], ecx
jmp 0x1400aa211
mov qword [rsp + 0x48], r15
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
test dl, dl
jne 0x1400aa786
movzx r8d, word [rdi + 0x68]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x510]
call fcn.1400727d0
nop
cmp word [rsp + 0x510], 2
cmove r14d, ebx
mov dword [rsp + 0x6c], r14d
mov dword [rsp + 0xc8], r15d
mov byte [rsp + 0xcc], 0
mov qword [rsp + 0xd0], r12
lea r8, [rdi + 0x78]
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
lea rdx, [rsp + 0x178]
mov rcx, qword [rdi + 0x70]
call fcn.140080590
cmp dword [rsp + 0xc8], 0
jne 0x1400aa794
mov dword [rsp + 0x70], esi
mov rbx, qword [rdi + 0x78]
cmp rbx, 0xffffffffffffffff
jne 0x1400aa2b9
mov dword [rsp + 0x30], 0x2719
mov byte [rsp + 0x34], 1
jmp 0x1400aa312
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x70]
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], r12
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test ebx, ebx
jne 0x1400aa322
mov dword [rsp + 0x30], r15d
mov byte [rsp + 0x34], bl
mov qword [rsp + 0x38], r12
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
cmp dword [rsp + 0x30], 0
jne 0x1400aa7a8
mov dword [rsp + 0xd8], r15d
mov byte [rsp + 0xdc], 0
mov qword [rsp + 0xe0], r12
mov r8d, 0x1c
mov r13d, reloc.WS2_32.dll_recv
cmp word [rsp + 0x510], 2
cmove r8d, r13d
lea r9, [rsp + 0xd8]
lea rdx, [rsp + 0x510]
mov rcx, qword [rdi + 0x78]
call fcn.140070000
cmp dword [rsp + 0xd8], 0
jne 0x1400aa7b9
mov dword [rsp + 0xe8], r15d
mov byte [rsp + 0xec], 0
mov qword [rsp + 0xf0], r12
lea r8, [rsp + 0xe8]
mov edx, 0x40
mov rcx, qword [rdi + 0x78]
call fcn.140070280
cmp dword [rsp + 0xe8], 0
jne 0x1400aa7cd
lea rax, [0x1402bc69c]
lea rbx, str.._Authentication_needed.
cmp qword [rdi + 0x30], 0
cmove rbx, rax
lea rdx, [rsp + 0x188]
lea rcx, [rdi + 0x70]
call fcn.1400b35a0
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
lea rcx, [rsp + 0x4f0]
call fcn.140004af0
nop
mov r9d, 0x1d
lea r8, str.Api_server_listening_on_port
mov rcx, rax
call fcn.140044910
mov qword [rsp + 0x4c0], r15
mov qword [rsp + 0x4c8], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x4b0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x4c0], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, str.e_94m_i
lea rcx, [rsp + 0x1c8]
call fcn.14009c790
nop
lea rdx, [rsp + 0x4b0]
cmp qword [rsp + 0x4c8], 0x10
cmovae rdx, qword [rsp + 0x4b0]
mov r8, qword [rsp + 0x4c0]
lea rcx, [rsp + 0x1d8]
call fcn.140045690
mov rdx, rbx
lea rcx, [rsp + 0x1d8]
call fcn.140037990
nop
lea rcx, [rsp + 0x1c8]
call fcn.140030280
nop
mov rdx, qword [rsp + 0x4c8]
cmp rdx, 0x10
jb 0x1400aa4f8
inc rdx
mov rcx, qword [rsp + 0x4b0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400aa4f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400aa4f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402216cc
mov qword [rsp + 0x4c0], r15
mov qword [rsp + 0x4c8], 0xf
mov byte [rsp + 0x4b0], 0
mov rdx, qword [rsp + 0x508]
cmp rdx, 0x10
jb 0x1400aa55a
inc rdx
mov rcx, qword [rsp + 0x4f0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400aa555
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400aa555
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402216cc
mov qword [rsp + 0x500], r15
mov qword [rsp + 0x508], 0xf
mov byte [rsp + 0x4f0], 0
mov qword [rsp + 0x170], rdi
lea rax, [fcn.1400aa980]
mov qword [rsp + 0x138], rax
mov qword [rsp + 0x140], rdi
mov rcx, r13
call fcn.140221304
mov rbx, rax
movups xmm0, xmmword [rsp + 0x138]
movups xmmword [rax], xmm0
mov qword [rsp + 0x168], rax
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0xa8]
call qword [sym.imp.MSVCP140.dll__Cnd_init]
test eax, eax
je 0x1400aa5d5
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov byte [rsp + 0x128], 1
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x130], rax
mov edx, esi
lea rcx, [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll__Mtx_init]
test eax, eax
je 0x1400aa609
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov byte [rsp + 0x148], 1
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x150], rcx
mov byte [rsp + 0xb8], 0
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400aa63b
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov byte [rsp + 0x148], 0
mov byte [rsp + 0x128], 0
lea rax, [0x1402c6620]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x160], rbx
mov qword [rsp + 0xc0], rbx
lea r8, [rsp + 0xa0]
lea rdx, [0x140020d60]
lea rcx, [rsp + 0x118]
call qword [sym.imp.MSVCP140.dll__Thrd_start]
cmp eax, 4
cmovne esi, eax
test esi, esi
je 0x1400aa6a1
mov ecx, esi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
cmp byte [rsp + 0xb8], 0
jne 0x1400aa6dc
nop dword [rax + rax]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.MSVCP140.dll__Cnd_wait]
test eax, eax
je 0x1400aa6d2
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
cmp byte [rsp + 0xb8], 0
je 0x1400aa6b0
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x1400aa6f2
mov rdx, r13
call fcn.1402216cc
nop
mov rsi, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test eax, eax
je 0x1400aa717
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_destroy]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Cnd_destroy]
nop
cmp dword [rdi + 0x10], 0
je 0x1400aa737
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
movups xmm0, xmmword [rsp + 0x118]
movups xmmword [rdi + 8], xmm0
mov qword [rsp + 0x118], r15
mov dword [rsp + 0x120], r15d
mov byte [rdi + 0x40], 1
jmp 0x1400aa759
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140220f90
lea r11, [rsp + 0x570]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [rsp + 0x90]
call fcn.140022320
nop
lea rdx, str.open
lea rcx, [rsp + 0xc8]
call fcn.140022370
lea rdx, str.set_option
lea rcx, [rsp + 0x30]
call fcn.140022370
lea rdx, str.bind
lea rcx, [rsp + 0xd8]
call fcn.140022370
lea rdx, str.listen
lea rcx, [rsp + 0xe8]
call fcn.140022370
int3