Function at 0x14002eeb0
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe0
mov rbx, r9
mov r15, r8
mov r14, rdx
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov edi, 0x17
cmove edi, eax
mov rax, qword [0x140195b18]
cmp rax, 3
jne 0x14002f406
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
mov r8d, 6
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14002f160
mov rdi, rax
mov dword [rsp + 0x58], 1
lea r8, [rsp + 0x58]
mov rcx, rax
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x14002f232
mov ebp, dword [r15 + 0x28]
cmp ebp, 0x3b9aca00
je 0x14002f021
mov r12, qword [r15 + 0x20]
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov rcx, rdi
mov edx, 0xffff
mov r8d, 8
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14002f01b
mov ecx, 0x3e8
mov rax, r12
mul rcx
mov ecx, ebp
imul rcx, rcx, 0x431bde83
shr rcx, 0x32
add rcx, rax
adc rdx, 0
mov eax, 0xffffffff
cmp rcx, rax
cmovae rcx, rax
xor eax, eax
neg rdx
sbb eax, eax
or eax, ecx
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x48], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x58]
mov rcx, rdi
mov edx, 0x98000004
mov r9d, 0xc
call qword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x14002f021
call qword [sym.imp.kernel32.dll_GetLastError]
cmp word [r14], 0
je 0x14002f309
cmp byte [r15 + 0x56], 0
je 0x14002f391
movups xmm0, xmmword [r15 + 0x57]
movups xmmword [rsp + 0x60], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0x58], 0x17
mov dword [rsp + 0xd8], 0x1c
lea rdx, [rsp + 0x58]
mov rcx, rdi
mov r8d, 0x1c
call qword [sym.imp.ws2_32.dll_bind]
test eax, eax
je 0x14002f4bd
call qword [sym.imp.kernel32.dll_GetLastError]
mov r12d, eax
shl r12, 0x20
or r12, 2
test r12, r12
je 0x14002f4c9
mov rcx, qword [0x140195bd0]
test rcx, rcx
jne 0x14002f0ec
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14002f5f4
mov rcx, rax
mov qword [0x140195bd0], rax
mov r8d, 0x14
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14002f5f4
mov rbx, rax
movups xmm0, xmmword [0x140140aa1]
movups xmmword [rax], xmm0
mov dword [rax + 0x10], 0x726f7272
mov rcx, qword [0x140195bd0]
test rcx, rcx
jne 0x14002f13c
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14002f5dc
mov rcx, rax
mov qword [0x140195bd0], rax
mov r8d, 8
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14002f5dc
mov qword [rax], r12
mov ecx, 0x14
jmp 0x14002f2db
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x140195bd0]
test rcx, rcx
jne 0x14002f18d
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14002f5ed
mov rcx, rax
mov qword [0x140195bd0], rax
mov r8d, 0xe
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14002f5ed
mov rbx, rax
movabs rax, 0x726f727265206e65
mov qword [rbx + 6], rax
movabs rax, 0x6e65706f20706374
mov qword [rbx], rax
mov rcx, qword [0x140195bd0]
test rcx, rcx
jne 0x14002f1e7
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14002f5dc
mov rcx, rax
mov qword [0x140195bd0], rax
mov r8d, 8
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14002f5dc
shl rdi, 0x20
or rdi, 2
mov qword [rax], rdi
mov qword [rsi], rax
lea rax, fcn.1400a4b70
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 0xe
mov dword [rsi + 0x88], 0x3b9aca01
jmp 0x14002f5ca
call qword [sym.imp.kernel32.dll_GetLastError]
mov r14d, eax
mov rcx, qword [0x140195bd0]
test rcx, rcx
jne 0x14002f260
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14002f5fb
mov rcx, rax
mov qword [0x140195bd0], rax
mov r8d, 0x19
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14002f5fb
mov rbx, rax
movups xmm0, xmmword [0x140140a91]
movups xmmword [rax + 9], xmm0
movups xmm0, xmmword [str.tcp_set_nonblocking_errortcp_bind_local_error]
movups xmmword [rax], xmm0
mov rcx, qword [0x140195bd0]
test rcx, rcx
jne 0x14002f2b4
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14002f5dc
mov rcx, rax
mov qword [0x140195bd0], rax
mov r8d, 8
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14002f5dc
shl r14, 0x20
or r14, 2
mov qword [rax], r14
mov ecx, 0x19
mov qword [rsi], rax
lea rax, fcn.1400a4b70
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], rcx
mov dword [rsi + 0x88], 0x3b9aca01
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x14002f5ca
cmp byte [r15 + 0x51], 0
je 0x14002f440
mov eax, dword [r15 + 0x52]
xorps xmm0, xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xd0], 0
mov dword [rsp + 0x58], 2
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0xd8], 0x10
lea rdx, [rsp + 0x58]
mov rcx, rdi
mov r8d, 0x10
call qword [sym.imp.ws2_32.dll_bind]
test eax, eax
jne 0x14002f0ad
jmp 0x14002f4bd
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x64], 0
mov dword [rsp + 0x6c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0xd0], 0
mov r8d, 0x1c
mov ax, 0x17
jmp 0x14002f48b
mov byte [rsp + 0x48], 1
lea rax, [rsp + 0x48]
mov qword [rsp + 0x58], rax
lea rax, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_socket2_0.4.9_src_syswindows.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x140195b18]
lea r9, [0x140159ed0]
lea r8, [rsp + 0x58]
xor edx, edx
call fcn.140125060
jmp 0x14002eeef
xorps xmm0, xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xd0], 0
mov r8d, 0x10
mov ax, 2
mov word [rsp + 0x58], ax
mov word [rsp + 0x5a], 0
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0xd8], r8d
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_bind]
test eax, eax
jne 0x14002f0ad
xor r12d, r12d
test r12, r12
jne 0x14002f0c7
cmp byte [r15 + 0x68], 0
je 0x14002f503
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov rcx, rdi
mov edx, 0xffff
mov r8d, 4
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x14002f503
call qword [sym.imp.kernel32.dll_GetLastError]
cmp qword [r15 + 0x30], 0
je 0x14002f54d
mov rax, qword [r15 + 0x38]
mov rcx, rax
shr rcx, 0x20
xor edx, edx
neg rcx
sbb edx, edx
or edx, eax
mov dword [rsp + 0x58], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x1001
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x14002f54d
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebp, dword [rsp + 0x140]
cmp qword [r15 + 0x40], 0
je 0x14002f59e
mov rax, qword [r15 + 0x48]
mov rcx, rax
shr rcx, 0x20
xor edx, edx
neg rcx
sbb edx, edx
or edx, eax
mov dword [rsp + 0x58], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x1002
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x14002f59e
call qword [sym.imp.kernel32.dll_GetLastError]
mov qword [rsi + 0x70], rdi
movups xmm0, xmmword [r14]
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
mov byte [rsi + 0x78], 0
mov qword [rsi + 0x80], rbx
mov dword [rsi + 0x88], ebp
mov byte [rsi + 0x90], 0
add rsp, 0xe0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, 8
mov edx, 8
call fcn.14011dd70
ud2
mov ecx, 0xe
jmp 0x14002f600
mov ecx, 0x14
jmp 0x14002f600
mov ecx, 0x19
mov edx, 1
call fcn.14011dd70
ud2