Function at 0x1400aa830
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 [0x1403284b0]
xor rax, rsp
mov qword [rsp + 0x560], rax
mov rdi, rcx
mov qword [rsp + 0x80], rcx
cmp word [rcx + 0x68], 0
je 0x1400aaee9
lea rbx, [rcx + 0x48]
cmp qword [rbx + 0x18], 0x10
jb 0x1400aa88c
mov rbx, qword [rbx]
xor r15d, r15d
mov dword [rsp + 0x90], r15d
mov byte [rsp + 0x94], r15b
lea r12, [0x1402c41e8]
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.140024280
test eax, eax
jg 0x1400aa901
xor eax, eax
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], rax
mov ecx, r15d
movups xmm0, xmmword [rsp + 0xf8]
jmp 0x1400aa915
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 0x1400aa944
mov esi, 1
mov qword [rsp + 0x48], rsi
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], ecx
lea ebx, [rax + 2]
jmp 0x1400aa9ad
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.140024280
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 0x1400aa99c
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x4c], ecx
jmp 0x1400aa9a1
mov qword [rsp + 0x48], r15
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
test dl, dl
jne 0x1400aaf16
movzx r8d, word [rdi + 0x68]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x510]
call fcn.1400728b0
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.140083bd0
cmp dword [rsp + 0xc8], 0
jne 0x1400aaf24
mov dword [rsp + 0x70], esi
mov rbx, qword [rdi + 0x78]
cmp rbx, 0xffffffffffffffff
jne 0x1400aaa49
mov dword [rsp + 0x30], 0x2719
mov byte [rsp + 0x34], 1
jmp 0x1400aaaa2
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 0x1400aaab2
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 0x1400aaf38
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.1400700e0
cmp dword [rsp + 0xd8], 0
jne 0x1400aaf49
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.140070360
cmp dword [rsp + 0xe8], 0
jne 0x1400aaf5d
lea rax, [0x1402bdd1c]
lea rbx, str.._Authentication_needed.
cmp qword [rdi + 0x30], 0
cmove rbx, rax
lea rdx, [rsp + 0x188]
lea rcx, [rdi + 0x70]
call fcn.1400b3d30
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
lea rcx, [rsp + 0x4f0]
call fcn.140004960
nop
mov r9d, 0x1d
lea r8, str.Api_server_listening_on_port
mov rcx, rax
call fcn.1400447b0
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.14009cf30
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.140045530
mov rdx, rbx
lea rcx, [rsp + 0x1d8]
call fcn.1400377f0
nop
lea rcx, [rsp + 0x1c8]
call fcn.1400300e0
nop
mov rdx, qword [rsp + 0x4c8]
cmp rdx, 0x10
jb 0x1400aac88
inc rdx
mov rcx, qword [rsp + 0x4b0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400aac83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400aac83
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140222cdc
mov qword [rsp + 0x4c0], r15
mov qword [rsp + 0x4c8], 0xf
mov byte [rsp + 0x4b0], 0
mov rdx, qword [rsp + 0x508]
cmp rdx, 0x10
jb 0x1400aacea
inc rdx
mov rcx, qword [rsp + 0x4f0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400aace5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400aace5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140222cdc
mov qword [rsp + 0x500], r15
mov qword [rsp + 0x508], 0xf
mov byte [rsp + 0x4f0], 0
mov qword [rsp + 0x170], rdi
lea rax, [fcn.1400ab110]
mov qword [rsp + 0x138], rax
mov qword [rsp + 0x140], rdi
mov rcx, r13
call fcn.140222914
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 0x1400aad65
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 0x1400aad99
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 0x1400aadcb
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, [0x1402c7f88]
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, [0x140020bd0]
lea rcx, [rsp + 0x118]
call qword [sym.imp.MSVCP140.dll__Thrd_start]
cmp eax, 4
cmovne esi, eax
test esi, esi
je 0x1400aae31
mov ecx, esi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
cmp byte [rsp + 0xb8], 0
jne 0x1400aae6c
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 0x1400aae62
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
cmp byte [rsp + 0xb8], 0
je 0x1400aae40
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x1400aae82
mov rdx, r13
call fcn.140222cdc
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 0x1400aaea7
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 0x1400aaec7
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 0x1400aaee9
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1402225a0
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.140022180
nop
lea rdx, str.open
lea rcx, [rsp + 0xc8]
call fcn.1400221d0
lea rdx, str.set_option
lea rcx, [rsp + 0x30]
call fcn.1400221d0
lea rdx, str.bind
lea rcx, [rsp + 0xd8]
call fcn.1400221d0
lea rdx, str.listen
lea rcx, [rsp + 0xe8]
call fcn.1400221d0
int3