Function at 0x140090c80
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x560
mov qword [rax - 0x458], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402c94a0]
xor rax, rsp
mov qword [rsp + 0x550], rax
mov rsi, rcx
mov qword [rsp + 0x80], rcx
cmp word [rcx + 0x68], 0
je 0x140091385
lea rbx, [rcx + 0x48]
cmp qword [rbx + 0x18], 0x10
jb 0x140090cdc
mov rbx, qword [rbx]
xor r13d, r13d
mov dword [rsp + 0x90], r13d
call fcn.1400a9490
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x40], r13d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x520]
mov rdx, rbx
mov edi, 0x17
mov ecx, edi
call fcn.14001b9b0
test eax, eax
jg 0x140090d42
xor eax, eax
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rax
movups xmm0, xmmword [rsp + 0x100]
jmp 0x140090d56
mov eax, dword [rsp + 0x40]
movups xmm0, xmmword [rsp + 0x520]
movups xmmword [rsp + 0x100], xmm0
mov dword [rsp + 0x110], eax
mov edx, dword [rsp + 0x90]
test edx, edx
jne 0x140090d81
mov r14d, 1
mov qword [rsp + 0x48], r14
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], eax
lea ebx, [rdx + 2]
jmp 0x140090de6
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.14001b9b0
mov ecx, dword [rsp + 0x68]
test eax, eax
cmovle ecx, r13d
mov dword [rsp + 0x118], ecx
mov edx, dword [rsp + 0x90]
xor eax, eax
mov dword [rsp + 0x60], r13d
lea r14d, [rbx - 1]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
test edx, edx
jne 0x140090de1
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x4c], ecx
jmp 0x140090de6
mov qword [rsp + 0x48], r13
lea r15, [fcn.140010b90]
mov rax, r15
test edx, edx
cmove rax, r13
test rax, rax
jne 0x1400913b2
movzx r8d, word [rsi + 0x68]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x500]
call fcn.140061a20
nop
cmp word [rsp + 0x500], 2
cmove edi, ebx
mov dword [rsp + 0x6c], edi
mov dword [rsp + 0xc8], r13d
call fcn.1400a9490
mov qword [rsp + 0xd0], rax
lea r8, [rsi + 0x78]
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
lea rdx, [rsp + 0x168]
mov rcx, qword [rsi + 0x70]
call fcn.140072230
mov rax, r15
cmp dword [rsp + 0xc8], 0
cmove rax, r13
test rax, rax
jne 0x1400913c0
mov dword [rsp + 0x70], r14d
call fcn.1400a9490
mov rbx, qword [rsi + 0x78]
cmp rbx, 0xffffffffffffffff
jne 0x140090e9e
call fcn.1400a9490
mov dword [rsp + 0x30], 0x2719
jmp 0x140090efc
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 edi, eax
call fcn.1400a9490
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 + 0xe0], xmm0
test edi, edi
jne 0x140090f0f
mov dword [rsp + 0x30], r13d
call fcn.1400a9490
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0xe0], xmm0
mov rax, r15
cmp dword [rsp + 0xe0], 0
cmove rax, r13
test rax, rax
jne 0x1400913d4
mov dword [rsp + 0xf0], r13d
call fcn.1400a9490
mov qword [rsp + 0xf8], rax
mov edi, reloc.WS2_32.dll_recv
mov r8d, 0x1c
cmp word [rsp + 0x500], 2
cmove r8d, edi
lea r9, [rsp + 0xf0]
lea rdx, [rsp + 0x500]
mov rcx, qword [rsi + 0x78]
call fcn.14005f2f0
mov rax, r15
cmp dword [rsp + 0xf0], 0
cmove rax, r13
test rax, rax
jne 0x1400913e8
call fcn.1400a9490
mov rbx, qword [rsi + 0x78]
cmp rbx, 0xffffffffffffffff
jne 0x140090fb3
call fcn.1400a9490
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
jmp 0x140091010
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.1400a9490
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 0x14009100b
mov dword [rsp + 0x30], r13d
call fcn.1400a9490
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov edi, reloc.WS2_32.dll_recv
cmp dword [rsp + 0x30], 0
cmove r15, r13
test r15, r15
jne 0x1400913fc
lea rax, [0x140274354]
lea rbx, str.._Authentication_needed.
cmp qword [rsi + 0x30], 0
cmove rbx, rax
lea rdx, [rsp + 0x178]
lea rcx, [rsi + 0x70]
call fcn.14009a110
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
lea rcx, [rsp + 0x4e0]
call fcn.140004470
nop
mov r9d, 0x1d
lea r8, str.Api_server_listening_on_port
mov rcx, rax
call fcn.1400388f0
mov qword [rsp + 0x4b0], r13
mov qword [rsp + 0x4b8], r13
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x4a0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x4b0], 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 + 0x1b8]
call fcn.140083980
nop
lea rdx, [rsp + 0x4a0]
cmp qword [rsp + 0x4b8], 0x10
cmovae rdx, qword [rsp + 0x4a0]
mov r8, qword [rsp + 0x4b0]
lea rcx, [rsp + 0x1c8]
call fcn.1400395d0
mov rdx, rbx
lea rcx, [rsp + 0x1c8]
call fcn.14002e0a0
nop
lea rcx, [rsp + 0x1b8]
call fcn.140026ca0
nop
mov rdx, qword [rsp + 0x4b8]
cmp rdx, 0x10
jb 0x140091159
inc rdx
mov rcx, qword [rsp + 0x4a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140091154
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140091154
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401e507c
mov qword [rsp + 0x4b0], r13
mov qword [rsp + 0x4b8], 0xf
mov byte [rsp + 0x4a0], 0
mov rdx, qword [rsp + 0x4f8]
cmp rdx, 0x10
jb 0x1400911bb
inc rdx
mov rcx, qword [rsp + 0x4e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400911b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400911b6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401e507c
mov qword [rsp + 0x4f0], r13
mov qword [rsp + 0x4f8], 0xf
mov byte [rsp + 0x4e0], 0
mov byte [rsi + 0x40], 1
lea rax, [fcn.1400915a0]
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x128], rsi
mov rcx, rdi
call fcn.1401e4cb4
mov rbx, rax
movups xmm0, xmmword [rsp + 0x120]
movups xmmword [rax], xmm0
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0xa8]
call qword [sym.imp.MSVCP140.dll__Cnd_init]
test eax, eax
je 0x14009122a
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov byte [rsp + 0x138], 1
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x140], rax
mov edx, r14d
lea rcx, [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll__Mtx_init]
test eax, eax
je 0x14009125f
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 0x140091292
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
lea rax, [0x14027de18]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x80], r13
mov qword [rsp + 0xc0], rbx
lea r8, [rsp + 0xa0]
lea rdx, [0x140019450]
lea rcx, [rsp + 0x158]
call qword [sym.imp.MSVCP140.dll__Thrd_start]
cmp eax, 4
cmovne r14d, eax
test r14d, r14d
je 0x1400912e3
mov ecx, r14d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
cmp byte [rsp + 0xb8], 0
jne 0x14009131c
nop dword [rax]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.MSVCP140.dll__Cnd_wait]
test eax, eax
je 0x140091312
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
cmp byte [rsp + 0xb8], 0
je 0x1400912f0
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x140091332
mov rdx, rdi
call fcn.1401e507c
nop
mov rdi, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test eax, eax
je 0x140091357
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, rdi
call qword [sym.imp.MSVCP140.dll__Cnd_destroy]
nop
cmp dword [rsi + 0x10], 0
je 0x140091377
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
movups xmm0, xmmword [rsp + 0x158]
movups xmmword [rsi + 8], xmm0
jmp 0x140091385
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.1401e4940
lea r11, [rsp + 0x560]
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.140019e00
nop
lea rdx, str.open
lea rcx, [rsp + 0xc8]
call fcn.140019e50
lea rdx, str.set_option
lea rcx, [rsp + 0xe0]
call fcn.140019e50
lea rdx, str.bind
lea rcx, [rsp + 0xf0]
call fcn.140019e50
lea rdx, str.listen
lea rcx, [rsp + 0x30]
call fcn.140019e50
int3