Function at 0x140074630
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 0x1400748d0
mov rbp, qword [rdi + 0x70]
cmp rbp, 0xffffffffffffffff
je 0x1400748c0
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 0x140074960
lea r8, [rsp + 0x34]
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x1400748a0
xor r8d, r8d
mov edx, 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x140074738
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 0x140074738
cmp r12d, 0x17
je 0x140074858
mov rax, qword [0x1402342a0]
mov ecx, dword [rax]
mov eax, dword [rsi + 0x58]
mov edx, eax
and edx, 0x80000
or edx, ecx
je 0x140074930
test eax, 0x1000000
jne 0x1400748e0
test eax, 0x2000000
jne 0x1400747c0
mov edx, eax
mov qword [rsi + 0x110], rbp
or edx, 0x400000
cmp r12d, 0x17
cmove eax, edx
jmp 0x14007474d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
test r14d, r14d
jne 0x140074840
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 0x1400747a3
test eax, 0x8000000
je 0x1400748b0
mov eax, dword [rbx + 0x128]
add eax, 1
cmp eax, 0x1f
ja 0x140074870
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 0x14007482d
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140074920
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov edx, 6
mov rcx, rbp
mov r8d, 3
call r14
cmp eax, 0xffffffff
jne 0x140074920
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
test eax, eax
je 0x140074920
nop
mov rbp, qword [rdi + 0x70]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140074758
mov rax, qword [0x1402342b0]
mov ecx, dword [rax]
jmp 0x1400746f2
mov dword [rbx + 0x128], 0
mov rdx, qword [rbx + 0x120]
mov rcx, rbx
call fcn.140073440
mov eax, dword [rbx + 0x58]
and eax, 0xf7ffffff
or eax, 0x4000000
mov dword [rbx + 0x58], eax
jmp 0x1400747a3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
jmp 0x140074741
mov rdx, rdi
mov rcx, rbx
call fcn.140073440
jmp 0x1400747a3
mov r14d, 0x2749
jmp 0x1400747ab
mov r14d, 0x2733
jmp 0x1400747ab
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 0x140074970
mov eax, dword [rsi + 0x58]
jmp 0x140074710
mov eax, dword [rsi + 0x58]
jmp 0x14007471b
mov edx, 3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x140074738
mov eax, dword [rsi + 0x58]
or eax, 0x20000
mov dword [rsi + 0x58], eax
jmp 0x140074705
mov r14d, 0xfffff00e
jmp 0x140074844
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
test eax, eax
jne 0x140074840
jmp 0x14007490e