Function at 0x140064f70
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1401ff510]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x50], 0xffffffffffffffff
mov rbp, r9
mov r14, r8
mov dword [rsp + 0x30], 1
mov rdi, rcx
jne 0x14006516a
xor eax, eax
xor edx, edx
mov qword [rcx + 0x60], rax
mov qword [rcx + 0x68], rax
mov qword [rcx + 0x70], rax
mov dword [rcx + 0x78], eax
lea r8d, [rax + 0x38]
add rcx, 0x7c
call fcn.14015dbb0
cmp word [r14], 0x17
lea rcx, [rdi + 0x60]
mov esi, reloc.WS2_32.dll_recv
mov r8, r14
mov r9d, esi
lea r13d, [rsi + 0xc]
cmove r9d, r13d
mov edx, r13d
call section..text
mov rax, qword [rsp + 0xb0]
xor r15d, r15d
movsxd rdx, dword [rdi + 0x25c]
mov rcx, qword [rdi + 0x250]
mov qword [rdi + 0x228], rax
mov qword [rdi + 0x58], r15
mov dword [rdi + 0x23c], r15d
mov qword [rdi + 0x208], rbp
call fcn.14016a0e4
test rax, rax
je 0x1400651ae
mov qword [rdi + 0x250], rax
lea rbx, [rdi + 0xb4]
mov eax, dword [rdi + 0x25c]
mov dword [rdi + 0x258], eax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
movzx eax, word [rbx]
test ax, ax
jne 0x140065070
movzx eax, word [r14]
mov edx, 1
mov word [rsp + 0x38], ax
lea rcx, [rsp + 0x38]
lea r8d, [rdx + 5]
call fcn.14006b3f8
mov qword [rdi + 0x50], rax
test rax, rax
je 0x1400651f4
lea r9, [rsp + 0x30]
mov qword [rdi + 0x240], r15
mov edx, 0xffff
mov dword [rdi + 0x28c], r15d
mov r8d, 8
mov dword [rdi + 0x248], r15d
mov rcx, rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14006523b
mov rcx, qword [rdi + 0x50]
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rdi + 0x50]
cmp word [rbx], r15w
je 0x140065131
cmp word [rbx], 0x17
mov rdx, rbx
cmove esi, r13d
mov r8d, esi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14006513b
or dword [rdi + 0x240], 0xffffffff
lea r9, [fcn.140064de8]
mov rcx, qword [rdi + 0x220]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], r15
call fcn.14006c654
jmp 0x140065144
cmp word [r14], 0x17
mov rdx, r14
jmp 0x1400650f8
mov rcx, qword [rdi + 0x18]
call fcn.140069148
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14015c600
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
mov eax, dword [rcx + 0x50]
lea rdx, str...microstackILibAsyncSocket.c
mov ebx, 0x344
mov dword [rsp + 0x20], eax
mov r8d, ebx
mov r9d, 0xfd
xor ecx, ecx
call fcn.14006e59c
mov r8d, ebx
lea rdx, str...microstackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT2__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, 0xfd
call fcn.14015ecf8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xfe
lea rdx, str...microstackILibAsyncSocket.c
mov ebx, 0x353
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8d, ebx
xor ecx, ecx
call fcn.14006e59c
mov r8d, ebx
lea rdx, str...microstackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, edi
call fcn.14015ecf8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x36a
lea rdx, str...microstackILibAsyncSocket.c
mov r8d, ebx
mov dword [rsp + 0x20], eax
mov r9d, 0xfd
xor ecx, ecx
call fcn.14006e59c
mov r8d, ebx
lea rdx, str...microstackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, 0xfd
call fcn.14015ecf8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x375
mov dword [rsp + 0x20], r15d
mov r9d, eax
lea rdx, str...microstackILibAsyncSocket.c
xor ecx, ecx
call fcn.14006e59c
mov ecx, 0xfd
call fcn.14015ecf8
int3