Function at 0x1400d3fe0
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4f0
mov r15, r8
mov rdi, rdx
mov r14, rcx
movzx eax, byte [rdx + 0x211]
test eax, eax
je 0x1400d4022
cmp eax, 3
jne 0x1400d46f5
mov rsi, qword [rdi + 0x200]
mov rax, qword [rdi + 0x208]
jmp 0x1400d422c
mov rax, qword [rdi + 0x70]
mov qword [rdi + 0x140], rax
movups xmm0, xmmword [rdi + 0x60]
movups xmmword [rdi + 0x130], xmm0
movups xmm0, xmmword [rdi + 0x50]
movups xmmword [rdi + 0x120], xmm0
movups xmm0, xmmword [rdi + 0x40]
movups xmmword [rdi + 0x110], xmm0
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmm2, xmmword [rdi + 0x20]
movups xmm3, xmmword [rdi + 0x30]
movups xmmword [rdi + 0x100], xmm3
movups xmmword [rdi + 0xf0], xmm2
movups xmmword [rdi + 0xe0], xmm1
movups xmmword [rdi + 0xd0], xmm0
movups xmm0, xmmword [rdi + 0x78]
movups xmmword [rdi + 0x148], xmm0
movups xmm0, xmmword [rdi + 0x88]
movups xmmword [rdi + 0x158], xmm0
movups xmm0, xmmword [rdi + 0x98]
movups xmmword [rdi + 0x168], xmm0
movups xmm0, xmmword [rdi + 0xa8]
movups xmmword [rdi + 0x178], xmm0
movups xmm0, xmmword [rdi + 0xb8]
movups xmmword [rdi + 0x188], xmm0
mov rax, qword [rdi + 0xc8]
mov qword [rdi + 0x198], rax
mov al, byte [rdi + 0x210]
mov byte [rdi + 0x212], al
mov rax, qword [rdi + 0xd0]
mov qword [rdi + 0x1a0], rax
movups xmm0, xmmword [rdi + 0xd8]
movups xmmword [rdi + 0x1a8], xmm0
movups xmm0, xmmword [rdi + 0xe8]
movups xmmword [rdi + 0x1b8], xmm0
lock add qword [rax], 1
jle 0x1400d470f
lea rdx, [rdi + 0xd0]
lea rbx, [rdi + 0x148]
lea rcx, [rdi + 0x1c8]
mov qword [rcx], rax
cmp byte [rdx + 0x71], 0
je 0x1400d42b5
lea rax, [rdi + 0x1a8]
cmp dword [rax], 1
jne 0x1400d4150
mov rcx, qword [rdi + 0x1b0]
call sub.CRYPT32.dll_CertDuplicateCertificateContext
mov r12, rax
mov r13d, 1
jmp 0x1400d4153
xor r13d, r13d
mov rcx, qword [rdi + 0x1b8]
call sub.CRYPT32.dll_CertDuplicateStore
cmp byte [rdi + 0x1c2], 0
movzx edx, word [rdi + 0x1c0]
setne byte [rdi + 0x1f2]
cmp byte [rdi + 0x1c3], 0
setne byte [rdi + 0x1f3]
cmp byte [rdi + 0x1c4], 0
lea rcx, [rdi + 0x1d0]
setne byte [rdi + 0x1f4]
cmp byte [rdi + 0x1c5], 0
mov rsi, qword [rdi + 0x1c8]
mov byte [rdi + 0x1f8], 0
mov qword [rdi + 0x1d0], rsi
mov qword [rdi + 0x1d8], r13
mov qword [rdi + 0x1e0], r12
mov qword [rdi + 0x1e8], rax
mov word [rdi + 0x1f0], dx
setne byte [rdi + 0x1f5]
mov rax, qword [rbx + 0x50]
mov qword [rsp + 0x80], rax
movups xmm0, xmmword [rbx + 0x40]
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movups xmm2, xmmword [rbx + 0x20]
movups xmm3, xmmword [rbx + 0x30]
movaps xmmword [rsp + 0x60], xmm3
movaps xmmword [rsp + 0x50], xmm2
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
call fcn.1400d38c0
mov rsi, rax
mov rax, rdx
mov qword [rdi + 0x200], rsi
mov qword [rdi + 0x208], rdx
lea rcx, [rsp + 0x30]
mov rdx, rsi
mov r8, r15
call qword [rax + 0x18]
mov rbx, qword [rsp + 0x30]
cmp rbx, 2
jne 0x1400d4258
mov byte [rdi + 0x211], 3
mov qword [r14], 2
jmp 0x1400d45cf
mov r12, qword [rsp + 0x38]
mov r15, qword [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x2a0]
mov r8d, 0x120
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rdi + 0x200]
mov rax, qword [rdi + 0x208]
call qword [rax]
mov rax, qword [rdi + 0x208]
cmp qword [rax + 8], 0
je 0x1400d4300
mov rsi, qword [rdi + 0x200]
cmp qword [rax + 0x10], 0x11
jae 0x1400d42ed
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rsi
jmp 0x1400d42fb
movzx eax, byte [rbx]
test rax, rax
je 0x1400d412d
cmp eax, 1
je 0x1400d4666
test rax, rax
jne 0x1400d412d
lea rcx, [0x1402772a0]
lea r8, [0x1402493a8]
mov edx, 0x28
call fcn.14001f9d0
ud2
call sub.KERNEL32.dll_GetProcessHeap
mov r8, qword [rsi - 8]
mov rcx, rax
xor edx, edx
call fcn.14021dfcd
lea rcx, [rsp + 0x3d0]
lea rdx, [rsp + 0x2a0]
mov r8d, 0x120
call sub.VCRUNTIME140.dll_memcpy
cmp ebx, 1
jne 0x1400d43dc
mov rax, qword [rdi + 0x1d0]
lock sub qword [rax], 1
jne 0x1400d433e
mov rcx, qword [rdi + 0x1d0]
call fcn.1400829a0
cmp qword [rdi + 0x1d8], 0
je 0x1400d4354
mov rcx, qword [rdi + 0x1e0]
call sub.CRYPT32.dll_CertFreeCertificateContext
mov rcx, qword [rdi + 0x1e8]
xor edx, edx
call sub.CRYPT32.dll_CertCloseStore
cmp qword [rdi + 0x1a8], 0
je 0x1400d4378
mov rcx, qword [rdi + 0x1b0]
call sub.CRYPT32.dll_CertFreeCertificateContext
mov rcx, qword [rdi + 0x1b8]
xor edx, edx
call sub.CRYPT32.dll_CertCloseStore
mov rax, qword [rdi + 0x1a0]
lock sub qword [rax], 1
je 0x1400d45e2
mov rax, qword [rdi + 0xf8]
lock sub qword [rax], 1
je 0x1400d4600
mov ebx, 1
cmp byte [rdi + 0x138], 2
je 0x1400d43d7
mov rax, qword [rdi + 0x130]
lea rcx, [rdi + 0x128]
mov rdx, qword [rdi + 0x118]
mov r8, qword [rdi + 0x120]
call qword [rax + ioctlsocket]
jmp 0x1400d4599
mov qword [rsp + 0x170], r12
mov qword [rsp + 0x178], r15
lea rcx, [rsp + 0x180]
lea rdx, [rsp + 0x3d0]
mov r8d, 0x120
call sub.VCRUNTIME140.dll_memcpy
cmp r12, 1
jne 0x1400d4457
cmp byte [rdi + 0x141], 0
jne 0x1400d4457
cmp dword [rsp + 0x1c8], 1
jne 0x1400d4724
mov rcx, qword [rsp + 0x1d8]
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x30]
mov edx, 6
mov r8d, 1
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400d4681
lea rcx, [rsp + 0x2a0]
lea rdx, [rsp + 0x170]
mov r8d, 0x130
call sub.VCRUNTIME140.dll_memcpy
cmp byte [rdi + 0x140], 0
je 0x1400d448f
mov rax, qword [0x1402ced38]
cmp rax, 4
jbe 0x1400d448f
mov rax, qword [0x1402ced40]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x2a0]
mov r8d, 0x130
call sub.VCRUNTIME140.dll_memcpy
call sub.KERNEL32.dll_GetProcessHeap
mov r8d, 0x130
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400d4713
mov r12, rax
lea rdx, [rsp + 0x30]
mov r8d, 0x130
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov sil, byte [rdi + 0x212]
mov rax, qword [rdi + 0x1d0]
lock sub qword [rax], 1
jne 0x1400d44fc
mov rcx, qword [rdi + 0x1d0]
call fcn.1400829a0
cmp qword [rdi + 0x1d8], 0
je 0x1400d4512
mov rcx, qword [rdi + 0x1e0]
call sub.CRYPT32.dll_CertFreeCertificateContext
mov rcx, qword [rdi + 0x1e8]
xor edx, edx
call sub.CRYPT32.dll_CertCloseStore
cmp qword [rdi + 0x1a8], 0
je 0x1400d4536
mov rcx, qword [rdi + 0x1b0]
call sub.CRYPT32.dll_CertFreeCertificateContext
mov rcx, qword [rdi + 0x1b8]
xor edx, edx
call sub.CRYPT32.dll_CertCloseStore
mov rax, qword [rdi + 0x1a0]
lock sub qword [rax], 1
je 0x1400d4623
mov rax, qword [rdi + 0xf8]
lock sub qword [rax], 1
je 0x1400d4641
lea r15, [0x14026e2e8]
cmp byte [rdi + 0x138], 2
je 0x1400d4597
mov rax, qword [rdi + 0x130]
lea rcx, [rdi + 0x128]
mov rdx, qword [rdi + 0x118]
mov r8, qword [rdi + 0x120]
call qword [rax + ioctlsocket]
xor ebx, ebx
mov eax, dword [rsp + 0x29]
mov ecx, dword [rsp + 0x2c]
mov dword [rsp + 0x33], ecx
mov dword [rsp + 0x30], eax
mov byte [rdi + 0x211], 1
mov qword [r14], rbx
mov qword [r14 + 8], r12
mov qword [r14 + 0x10], r15
mov byte [r14 + 0x18], sil
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x33]
mov dword [r14 + 0x19], eax
mov dword [r14 + 0x1c], ecx
add rsp, 0x4f0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rdi + 0x1a0]
call fcn.1400829a0
mov rax, qword [rdi + 0xf8]
lock sub qword [rax], 1
jne 0x1400d43aa
lea rcx, [rdi + 0xf8]
call fcn.1400829e0
mov ebx, 1
cmp byte [rdi + 0x138], 2
jne 0x1400d43b8
jmp 0x1400d43d7
mov rcx, qword [rdi + 0x1a0]
call fcn.1400829a0
mov rax, qword [rdi + 0xf8]
lock sub qword [rax], 1
jne 0x1400d4568
lea rcx, [rdi + 0xf8]
call fcn.1400829e0
lea r15, [0x14026e2e8]
cmp byte [rdi + 0x138], 2
jne 0x1400d4578
jmp 0x1400d4597
cmp byte [rbx + 1], 1
jne 0x1400d412d
call fcn.1400cd750
mov byte [rax + 0x82], 1
jmp 0x1400d412d
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
call sub.KERNEL32.dll_GetProcessHeap
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400d473e
mov r12, rax
lea rcx, [rsp + 0x178]
shl rsi, 0x20
mov qword [rax], rsi
mov qword [rax + 8], 0
cmp qword [rsp + 0x170], 0
je 0x1400d46d2
call fcn.14008b270
jmp 0x1400d46d7
call fcn.14008b0d0
lea r15, fcn.1400cda00
mov rax, qword [rdi + 0x1d0]
lock sub qword [rax], 1
je 0x1400d4332
jmp 0x1400d433e
lea rcx, str._async_fn__resumed_after_completion
lea r8, str.C:Usersdarkarp.cargo_registry_srcgithub.com_1ecc6299db9ec823_reqwest_0.11.2_srcconnect.rs
mov edx, 0x23
call fcn.14001f9d0
ud2
ud2
mov ecx, 0x130
mov edx, 8
call fcn.1400182a0
ud2
lea rcx, [0x1402aeff1]
lea r8, str.C:Usersdarkarp.cargo_registry_srcgithub.com_1ecc6299db9ec823_tokio_1.4.0_srciopoll_evented.rs
mov edx, 0x2b
call fcn.14001f9d0
ud2
mov ecx, reloc.WS2_32.dll_recv
mov edx, 8
call fcn.1400182a0
ud2