Function at 0x140039b50
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 [0x1401e4b18]
cmp rax, 3
jne 0x14003a03d
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 0x140039e00
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 0x140039ed2
mov ebp, dword [r15 + 0x28]
cmp ebp, 0x3b9aca00
je 0x140039cc1
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 0x140039cbb
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 + 0x54], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rax, [rsp + 0x54]
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 0x140039cc1
call qword [sym.imp.kernel32.dll_GetLastError]
cmp word [r14], 0
je 0x140039fa9
cmp byte [r15 + 0x56], 0
je 0x14003a031
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 0x14003a0f4
call qword [sym.imp.kernel32.dll_GetLastError]
mov r12d, eax
shl r12, 0x20
or r12, 2
test r12, r12
je 0x14003a100
mov rcx, qword [0x1401e4bf8]
test rcx, rcx
jne 0x140039d8c
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14003a22b
mov rcx, rax
mov qword [0x1401e4bf8], rax
mov r8d, 0x14
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14003a22b
mov rbx, rax
movups xmm0, xmmword [0x1401891a9]
movups xmmword [rax], xmm0
mov dword [rax + 0x10], 0x726f7272
mov rcx, qword [0x1401e4bf8]
test rcx, rcx
jne 0x140039ddc
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14003a213
mov rcx, rax
mov qword [0x1401e4bf8], rax
mov r8d, 8
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14003a213
mov qword [rax], r12
mov ecx, 0x14
jmp 0x140039f7b
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1401e4bf8]
test rcx, rcx
jne 0x140039e2d
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14003a224
mov rcx, rax
mov qword [0x1401e4bf8], rax
mov r8d, 0xe
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14003a224
mov rbx, rax
movabs rax, 0x726f727265206e65
mov qword [rbx + 6], rax
movabs rax, 0x6e65706f20706374
mov qword [rbx], rax
mov rcx, qword [0x1401e4bf8]
test rcx, rcx
jne 0x140039e87
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14003a213
mov rcx, rax
mov qword [0x1401e4bf8], rax
mov r8d, 8
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14003a213
shl rdi, 0x20
or rdi, 2
mov qword [rax], rdi
mov qword [rsi], rax
lea rax, fcn.1400ade50
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 0xe
mov dword [rsi + 0x88], 0x3b9aca01
jmp 0x14003a201
call qword [sym.imp.kernel32.dll_GetLastError]
mov r14d, eax
mov rcx, qword [0x1401e4bf8]
test rcx, rcx
jne 0x140039f00
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14003a232
mov rcx, rax
mov qword [0x1401e4bf8], rax
mov r8d, 0x19
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14003a232
mov rbx, rax
movups xmm0, xmmword [0x140189199]
movups xmmword [rax + 9], xmm0
movups xmm0, xmmword [str.tcp_set_nonblocking_errortcp_bind_local_error]
movups xmmword [rax], xmm0
mov rcx, qword [0x1401e4bf8]
test rcx, rcx
jne 0x140039f54
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14003a213
mov rcx, rax
mov qword [0x1401e4bf8], rax
mov r8d, 8
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14003a213
shl r14, 0x20
or r14, 2
mov qword [rax], r14
mov ecx, 0x19
mov qword [rsi], rax
lea rax, fcn.1400ade50
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 0x14003a201
cmp byte [r15 + 0x51], 0
je 0x14003a077
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 0x140039d4d
jmp 0x14003a0f4
mov ax, 0x17
mov r8d, 0x1c
jmp 0x14003a081
mov byte [rsp + 0x54], 1
lea rax, [rsp + 0x54]
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, [0x1401e4b18]
lea r9, [0x1401a5108]
lea r8, [rsp + 0x58]
xor edx, edx
call fcn.14014bef0
jmp 0x140039b8f
mov ax, 2
mov r8d, 0x10
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 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 0x140039d4d
xor r12d, r12d
test r12, r12
jne 0x140039d67
cmp byte [r15 + 0x68], 0
je 0x14003a13a
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 0x14003a13a
call qword [sym.imp.kernel32.dll_GetLastError]
cmp qword [r15 + 0x30], 0
je 0x14003a184
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 0x14003a184
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebp, dword [rsp + 0x140]
cmp qword [r15 + 0x40], 0
je 0x14003a1d5
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 0x14003a1d5
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.140144b00
ud2
mov ecx, 0xe
jmp 0x14003a237
mov ecx, 0x14
jmp 0x14003a237
mov ecx, 0x19
mov edx, 1
call fcn.140144b00
ud2