Function at 0x431950
Capabilities:
Set socket configuration

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [rcx + 0x130]
mov edi, 0x2733
mov rbx, rcx
mov r12, rdx
test rsi, rsi
je 0x431ad0
mov rbp, qword [rsi + 0x70]
mov edi, 0x2749
cmp rbp, 0xffffffffffffffff
je 0x431ad0
mov eax, dword [rcx + 0x58]
mov r14, qword [rcx + 8]
mov rdi, qword [rdx + 8]
mov dword [rsp + 0x30], 1
and eax, 0x400000
cmp eax, 1
sbb r13d, r13d
and r13d, 0xffffffeb
add r13d, 0x17
cmp qword [rdx + 0x110], 0xffffffffffffffff
jne 0x431ae1
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x431af1
xor r8d, r8d
mov edx, 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x431a60
xor r9d, r9d
mov rdx, qword [rdi + 0x38]
mov r8, rbp
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x431a60
cmp r13d, 0x17
je 0x431bb0
mov rax, qword [0x00451840]
mov edx, dword [rax]
mov eax, dword [r12 + 0x58]
test eax, 0x80000
jne 0x431a30
test edx, edx
je 0x431b10
test eax, 0x1000000
jne 0x431b70
test eax, 0x2000000
jne 0x431bc0
mov edx, eax
mov qword [r12 + 0x110], rbp
or edx, 0x400000
cmp r13d, 0x17
cmove eax, edx
jmp 0x431a75
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x431c3e
mov eax, dword [r12 + 0x58]
or eax, 0xe080
xor edi, edi
mov dword [r12 + 0x58], eax
mov rax, qword [rsi + 0x1a8]
mov qword [rbx + 0x130], rax
mov qword [rsi + 0x1a8], 0
mov qword [rsi + 0x70], 0xffffffffffffffff
mov eax, dword [rbx + 0x58]
test al, 1
jne 0x431ac8
test eax, 0x8000000
je 0x431b00
mov eax, dword [rbx + 0x128]
add eax, 1
cmp eax, 0x1f
ja 0x431b40
mov dword [rbx + 0x128], eax
add dword [r14 + 0xb0], 1
mov eax, edi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edi, 0xfffff00e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x431a81
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x431a68
mov rdx, rsi
mov rcx, rbx
call fcn.00430230
jmp 0x431ac8
mov edx, 3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x431a60
mov eax, dword [r12 + 0x58]
or eax, 0x20000
mov dword [r12 + 0x58], eax
jmp 0x431a30
mov rdx, qword [rbx + 0x120]
mov dword [rbx + 0x128], 0
mov rcx, rbx
call fcn.00430230
mov eax, dword [rbx + 0x58]
and eax, 0xf7ffffff
or eax, 0x4000000
mov dword [rbx + 0x58], eax
jmp 0x431ac8
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 1
mov edx, 6
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x431c47
mov eax, dword [r12 + 0x58]
jmp 0x431a3b
mov rax, qword [0x00451850]
mov edx, dword [rax]
jmp 0x431a1c
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x3c], 0x3c
lea r9, [rsp + 0x38]
mov dword [rsp + 0x20], 4
mov r8d, 8
mov edx, 0xffff
mov rcx, rbp
mov rdi, qword [sym.imp.WS2_32.dll_setsockopt]
call rdi
cmp eax, 0xffffffff
je 0x431c32
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x431c10
mov eax, dword [r12 + 0x58]
jmp 0x431a46
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov r8d, 3
mov edx, 6
mov rcx, rbp
call rdi
cmp eax, 0xffffffff
jne 0x431c01
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov edi, eax
je 0x431c01
mov rbp, qword [rsi + 0x70]
jmp 0x431ae6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov edi, eax
jne 0x431c3e
jmp 0x431ba2