Function at 0x100029f0
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
sub rsp, 0xb8
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rsi
mov qword [r11 - 0x10], rdi
mov qword [r11 - 0x18], r12
mov qword [r11 - 0x20], r13
mov qword [r11 - 0x28], r14
mov qword [r11 - 0x30], r15
mov rax, qword [0x1001b2a8]
mov qword [rsp + 0x70], rax
mov r9, rdx
mov r15, rcx
mov qword [rsp + 0x40], rcx
test r8d, r8d
jne 0x10002aad
mov word [rsp + 0x38], 1
mov word [rsp + 0x3a], r8w
mov dword [rsp + 0x20], 4
lea r9, [r11 - 0x80]
mov edx, 0xffff
mov r8d, 0x80
mov rcx, qword [rcx + 0x130]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [r15 + 0x130]
call qword [sym.imp.KERNEL32.dll_CancelIo]
xor r13d, r13d
xchg dword [r15 + 0x145], r13d
mov rcx, qword [r15 + 0x130]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [r15 + 0x138]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov qword [r15 + 0x130], 0xffffffffffffffff
jmp 0x10002cfd
cmp r8d, 5
jne 0x10002b0c
mov edx, dword [rdx]
cmp edx, dword [rcx + 0x140]
jne 0x10002ad1
mov dl, byte [r9 + 4]
cmp dl, byte [rcx + 0x144]
jne 0x10002ad1
xor r13d, r13d
mov eax, r13d
jmp 0x10002ad9
sbb eax, eax
sbb eax, 0xffffffff
xor r13d, r13d
test eax, eax
jne 0x10002b0f
add rcx, 0xe0
call fcn.10001a80
mov edi, eax
xor edx, edx
lea rcx, [r15 + 0xe0]
call fcn.10001c60
mov r8d, edi
mov rdx, rax
mov rcx, r15
call fcn.100027c0
jmp 0x10002cfd
xor r13d, r13d
mov rdx, r9
add rcx, 8
call fcn.10001cd0
nop
nop
lea rcx, [r15 + 8]
call fcn.10001a80
cmp eax, 0xd
jbe 0x10002cfd
xor edx, edx
lea rcx, [r15 + 8]
call fcn.10001c60
lea rdx, [rsp + 0x68]
mov ecx, dword [rax]
mov dword [rdx], ecx
movzx eax, byte [rax + 4]
mov byte [rdx + 4], al
lea rcx, [rsp + 0x68]
mov edx, dword [r15 + 0x140]
cmp edx, dword [rcx]
jne 0x10002b6e
mov dl, byte [r15 + 0x144]
cmp dl, byte [rcx + 4]
jne 0x10002b6e
mov eax, r13d
jmp 0x10002b73
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10002b94
lea rax, str.bad_buffer
mov qword [rsp + 0x50], rax
lea rdx, [0x100178f8]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x30], r13d
mov edx, 5
lea rcx, [r15 + 8]
call fcn.10001c60
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
test eax, eax
je 0x10002cfd
lea rcx, [r15 + 8]
call fcn.10001a80
cmp eax, dword [rsp + 0x30]
jb 0x10002cfd
mov dword [rsp + 0x34], r13d
mov r8d, 5
lea rdx, [rsp + 0x68]
lea rcx, [r15 + 8]
call fcn.10001e00
mov r8d, 4
lea rdx, [rsp + 0x30]
lea rcx, [r15 + 8]
call fcn.10001e00
mov r8d, 4
lea rdx, [rsp + 0x34]
lea rcx, [r15 + 8]
call fcn.10001e00
mov edi, dword [rsp + 0x30]
add edi, 0xfffffff3
movsxd rcx, edi
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r12, rax
movsxd rcx, dword [rsp + 0x34]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rsi, rax
test r12, r12
je 0x10002cdf
test rax, rax
je 0x10002cdf
mov r8d, edi
mov rdx, r12
lea rcx, [r15 + 8]
call fcn.10001e00
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x3c], eax
mov r9d, edi
mov r8, r12
lea rdx, [rsp + 0x3c]
mov rcx, rsi
call fcn.1000b660
test eax, eax
jne 0x10002cc2
lea rcx, [r15 + 0x50]
call fcn.10001b80
mov r8d, dword [rsp + 0x3c]
mov rdx, rsi
lea rcx, [r15 + 0x50]
call fcn.10001cd0
lea rcx, [r15 + 0x50]
call fcn.10001a80
mov r14d, eax
xor edx, edx
lea rcx, [r15 + 0x50]
call fcn.10001c60
mov rcx, qword [r15 + 0x148]
mov r9, qword [rcx]
mov r8d, r14d
mov rdx, rax
call qword [r9 + htons]
mov rcx, r12
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x10002b20
lea rax, str.bad_buffer
mov qword [rsp + 0x48], rax
lea rdx, [0x100178f8]
lea rcx, [rsp + 0x48]
call sub.msvcrt.dll__CxxThrowException
lea rax, str.bad_Allocate
mov qword [rsp + 0x58], rax
lea rdx, [0x100178f8]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll__CxxThrowException
nop
mov rcx, qword [rsp + 0x70]
call fcn.100120f0
mov rbx, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xa0]
mov r13, qword [rsp + 0x98]
mov r14, qword [rsp + 0x90]
mov r15, qword [rsp + 0x88]
add rsp, 0xb8
ret