Function at 0x1400746d0
Capabilities:
Set socket configuration

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, qword [rcx + 0x130]
mov rbx, rcx
mov rsi, rdx
test rdi, rdi
je 0x140074970
mov rbp, qword [rdi + 0x70]
cmp rbp, 0xffffffffffffffff
je 0x140074960
mov eax, dword [rcx + 0x58]
mov r13, qword [rcx + 8]
mov dword [rsp + 0x34], 1
mov r14, qword [rdx + 8]
and eax, 0x400000
cmp eax, 1
sbb r12d, r12d
and r12d, 0xffffffeb
add r12d, 0x17
cmp qword [rdx + 0x110], 0xffffffffffffffff
jne 0x140074a00
lea r8, [rsp + 0x34]
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x140074940
xor r8d, r8d
mov edx, 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400747d8
xor r9d, r9d
mov rdx, qword [r14 + 0x38]
mov r8, rbp
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x1400747d8
cmp r12d, 0x17
je 0x1400748f8
mov rax, qword [0x1402342a0]
mov ecx, dword [rax]
mov eax, dword [rsi + 0x58]
mov edx, eax
and edx, 0x80000
or edx, ecx
je 0x1400749d0
test eax, 0x1000000
jne 0x140074980
test eax, 0x2000000
jne 0x140074860
mov edx, eax
mov qword [rsi + 0x110], rbp
or edx, 0x400000
cmp r12d, 0x17
cmove eax, edx
jmp 0x1400747ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
test r14d, r14d
jne 0x1400748e0
mov eax, dword [rsi + 0x58]
or eax, 0xe080
xor r14d, r14d
mov dword [rsi + 0x58], eax
mov rax, qword [rdi + 0x1a8]
mov qword [rbx + 0x130], rax
mov eax, dword [rbx + 0x58]
mov qword [rdi + 0x1a8], 0
mov qword [rdi + 0x70], 0xffffffffffffffff
test al, 1
jne 0x140074843
test eax, 0x8000000
je 0x140074950
mov eax, dword [rbx + 0x128]
add eax, 1
cmp eax, 0x1f
ja 0x140074910
mov dword [rbx + 0x128], eax
add dword [r13 + 0xa8], 1
mov eax, r14d
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x38], 1
lea r9, [rsp + 0x38]
mov rcx, rbp
mov r14, qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x3c], 0x3c
mov r8d, 8
mov edx, 0xffff
mov dword [rsp + 0x20], 4
call r14
cmp eax, 0xffffffff
je 0x1400748cd
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x1400749c0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov edx, 6
mov rcx, rbp
mov r8d, 3
call r14
cmp eax, 0xffffffff
jne 0x1400749c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
test eax, eax
je 0x1400749c0
nop
mov rbp, qword [rdi + 0x70]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400747f8
mov rax, qword [0x1402342b0]
mov ecx, dword [rax]
jmp 0x140074792
mov dword [rbx + 0x128], 0
mov rdx, qword [rbx + 0x120]
mov rcx, rbx
call fcn.1400734e0
mov eax, dword [rbx + 0x58]
and eax, 0xf7ffffff
or eax, 0x4000000
mov dword [rbx + 0x58], eax
jmp 0x140074843
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
jmp 0x1400747e1
mov rdx, rdi
mov rcx, rbx
call fcn.1400734e0
jmp 0x140074843
mov r14d, 0x2749
jmp 0x14007484b
mov r14d, 0x2733
jmp 0x14007484b
mov dword [rsp + 0x3c], 1
lea r9, [rsp + 0x3c]
mov r8d, 1
mov rcx, rbp
mov dword [rsp + 0x20], 4
mov edx, 6
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140074a10
mov eax, dword [rsi + 0x58]
jmp 0x1400747b0
mov eax, dword [rsi + 0x58]
jmp 0x1400747bb
mov edx, 3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x1400747d8
mov eax, dword [rsi + 0x58]
or eax, 0x20000
mov dword [rsi + 0x58], eax
jmp 0x1400747a5
mov r14d, 0xfffff00e
jmp 0x1400748e4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
test eax, eax
jne 0x1400748e0
jmp 0x1400749ae