Function at 0x140250c40
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x188
mov rbx, qword [rcx + 0x10]
lea r15, [rsp + 0x60]
mov r14, rcx
mov r12, rdx
mov rcx, r15
call fcn.14023bdd0
movups xmm0, xmmword [rsp + 0x60]
lea rdx, [rbx + 8]
mov rcx, r12
lea r8, [rbx + 0x98]
movups xmmword [rbx + 0x148], xmm0
call fcn.1402817f0
mov r13d, eax
test eax, eax
jne 0x140251056
mov r13, qword [r14 + 0x10]
mov edx, dword [r13 + 0x14]
lea rcx, [r13 + 0x18]
lea r9, [r13 + 0x13c]
lea r8, [r13 + 0xe0]
call fcn.140224ae0
mov esi, eax
test al, al
je 0x140250cc3
cmp dword [rbx + 8], 0x17
jne 0x140250d7c
jmp 0x140250d15
mov rsi, qword [sym.imp.msvcrt.dll__errno]
call rsi
mov eax, dword [rax]
mov dword [r13 + 0x178], eax
mov r13d, 2
call rsi
lea rdx, [rsp + 0x80]
mov r8d, 0x100
mov ecx, dword [rax]
call fcn.140243a20
mov qword [rsp + 0x58], rax
call rsi
mov r9, qword [rsp + 0x58]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov rcx, r12
mov r8d, dword [rax]
call fcn.140232170
jmp 0x140251056
lea r9, [rsp + 0x74]
mov rcx, qword [rbx + 0x98]
mov edx, 0x29
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x20], 4
mov r8d, 0x1b
call qword [sym.imp.WS2_32.dll_setsockopt]
test r12, r12
je 0x140250dbc
test byte [r12 + 0x986], 0x20
je 0x140250dbc
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x140250d65
cmp dword [rax + 8], 0
jle 0x140250dbc
mov r9d, dword [rbx + 0x13c]
lea r8, [rbx + 0xe0]
lea rdx, str.__Trying___s_:_d...
jmp 0x140250db4
test r12, r12
je 0x140250dbc
test byte [r12 + 0x986], 0x20
je 0x140250dbc
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x140250d9f
cmp dword [rax + 8], 0
jle 0x140250dbc
mov r9d, dword [rbx + 0x13c]
lea r8, [rbx + 0xe0]
lea rdx, str.__Trying__s:_d...
mov rcx, r12
call fcn.140239c50
mov eax, dword [rbx + 8]
cmp eax, 2
je 0x140250dcc
xor r13d, r13d
cmp eax, 0x17
jne 0x140250df5
mov r13d, dword [rbx + 0xc]
cmp r13d, 1
jne 0x140250df2
test byte [r12 + 0x987], 2
je 0x140250df5
mov rdx, qword [rbx + 0x98]
mov rcx, r12
call fcn.140283cf0
jmp 0x140250df5
xor r13d, r13d
mov rcx, qword [rbx + 0x98]
call fcn.1402417c0
test r13d, r13d
je 0x140250f58
test byte [r12 + 0x988], 1
je 0x140250f58
lea r9, [rsp + 0x78]
mov r13, qword [rbx + 0x98]
mov edx, 0xffff
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x20], 4
mov r8d, 8
mov rcx, r13
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140250e8b
test byte [r12 + 0x986], 0x20
je 0x140250f58
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x140250e73
cmp dword [rax + 8], 0
jle 0x140250f58
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, r13
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__zd:_errno__d
mov r9d, eax
jmp 0x140250f50
mov ecx, dword [r12 + 0x910]
mov dword [rsp + 0x80], 1
call fcn.140258e70
mov ecx, dword [r12 + 0x914]
imul eax, eax, 0x3e8
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x84], eax
call fcn.140258e70
mov dword [rsp + 0x28], 0
mov r9d, 0xc
mov rcx, r13
imul eax, eax, 0x3e8
mov edx, 0x98000004
mov qword [rsp + 0x40], 0
lea r8, [rsp + 0x80]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x88], eax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x30], rax
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140250f58
test byte [r12 + 0x986], 0x20
je 0x140250f58
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x140250f3d
cmp dword [rax + 8], 0
jle 0x140250f58
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, r13
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__zd:_errno__d
mov r9d, eax
mov rcx, r12
call fcn.140239c50
cmp qword [r12 + 0x278], 0
jne 0x140250f67
xor esi, esi
jmp 0x140250fb1
mov edx, 1
mov rcx, r12
call fcn.140241430
mov rdx, qword [rbx + 0x98]
mov rcx, qword [r12 + 0x280]
xor r8d, r8d
call qword [r12 + 0x278]
xor edx, edx
mov rcx, r12
mov r13d, eax
call fcn.140241430
cmp r13d, 2
je 0x140250fb1
test r13d, r13d
je 0x140250f63
mov r13d, 0x2a
jmp 0x140251056
mov eax, dword [rbx + 8]
cmp eax, 2
je 0x140250fbe
cmp eax, 0x17
jne 0x140250ff6
lea rcx, [rbx + 0x18]
call fcn.14023a470
mov r9d, dword [rbx + 8]
mov rdx, qword [r14 + 0x18]
mov rcx, r12
mov r8, qword [rbx + 0x98]
mov dword [rsp + 0x20], eax
call fcn.140249800
mov r13d, eax
test eax, eax
je 0x140250ff6
cmp eax, 1
jne 0x140251056
mov r13d, 7
jmp 0x140251056
mov rcx, qword [rbx + 0x98]
mov edx, 1
call fcn.140258e00
cmp dword [rbx + 0xc], 2
setne al
lea edx, [rax*4]
mov al, byte [rbx + 0x17c]
and eax, 0xfffffffb
or eax, edx
mov byte [rbx + 0x17c], al
test sil, sil
je 0x1402510cf
mov rcx, qword [r14 + 0x10]
mov rdx, r12
call fcn.140280650
mov rcx, r15
call fcn.14023bdd0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbx + 0x158], xmm1
or byte [r14 + 0x24], 1
jmp 0x1402510cf
mov r9, qword [rbx + 0x98]
cmp r9, 0xffffffffffffffff
je 0x140251080
mov rdx, qword [r14 + 0x18]
mov r8d, 1
mov rcx, r12
call fcn.1402816e0
mov qword [rbx + 0x98], 0xffffffffffffffff
test r12, r12
je 0x1402510d4
test byte [r12 + 0x986], 0x20
je 0x1402510d4
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x1402510a3
cmp dword [rax + 8], 0
jle 0x1402510d4
mov rax, qword [r14]
cmp dword [rax + 0xc], 0
jle 0x1402510d4
mov rax, qword [rbx + 0x98]
mov r9d, r13d
mov rdx, r14
mov rcx, r12
lea r8, str.cf_socket_open_______d__fd_zd
mov qword [rsp + 0x20], rax
call fcn.1402441e0
jmp 0x1402510d4
xor r13d, r13d
jmp 0x140251085
mov eax, r13d
add rsp, 0x188
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
ret