Function at 0x1401849a0
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4b8
mov rsi, rdx
mov rdi, rcx
movzx eax, byte [rdx + 0x251]
test eax, eax
je 0x1401849e0
cmp eax, 3
jne 0x14018522c
mov rdx, qword [rsi + 0x240]
mov r9, qword [rsi + 0x248]
jmp 0x140184d18
movups xmm0, xmmword [rsi + 0x70]
movups xmmword [rsi + 0x148], xmm0
movups xmm0, xmmword [rsi + 0x60]
movups xmmword [rsi + 0x138], xmm0
movups xmm0, xmmword [rsi + 0x50]
movups xmmword [rsi + 0x128], xmm0
movups xmm0, xmmword [rsi + 0x40]
movups xmmword [rsi + 0x118], xmm0
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmm2, xmmword [rsi + 0x20]
movups xmm3, xmmword [rsi + 0x30]
movups xmmword [rsi + 0x108], xmm3
movups xmmword [rsi + 0xf8], xmm2
movups xmmword [rsi + 0xe8], xmm1
movups xmmword [rsi + 0xd8], xmm0
movups xmm0, xmmword [rsi + 0x80]
movups xmmword [rsi + 0x158], xmm0
movups xmm0, xmmword [rsi + 0x90]
movups xmmword [rsi + 0x168], xmm0
movups xmm0, xmmword [rsi + 0xa0]
movups xmmword [rsi + 0x178], xmm0
movups xmm0, xmmword [rsi + 0xb0]
movups xmmword [rsi + 0x188], xmm0
movups xmm0, xmmword [rsi + 0xc0]
movups xmmword [rsi + 0x198], xmm0
mov rax, qword [rsi + 0xd0]
mov qword [rsi + 0x1a8], rax
movzx eax, byte [rsi + 0x250]
mov byte [rsi + 0x252], al
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmm2, xmmword [rsi + 0x20]
movups xmmword [rsi + 0x1b0], xmm2
mov rax, qword [rsi + 0x30]
mov qword [rsi + 0x1c0], rax
movups xmmword [rsi + 0x1c8], xmm0
movups xmmword [rsi + 0x1d8], xmm1
mov rax, qword [rsi + 0x1b0]
lock inc qword [rax]
jle 0x14018522a
mov rcx, qword [rsi + 0x1b8]
mov rdx, qword [rsi + 0x1c0]
lock inc qword [rcx]
jle 0x14018522a
lea rbx, [rsi + 0x158]
lea r13, [rsi + 0x1e8]
mov qword [rsi + 0x1e8], rax
mov qword [rsi + 0x1f0], rcx
mov qword [rsi + 0x1f8], rdx
cmp byte [rsi + 0x151], 0
mov r12, r8
jne 0x140184bdc
cmp byte [rbx], 0
je 0x140184bdc
lea rdx, [0x1402d6f00]
mov rcx, rbx
call fcn.14007c910
test al, al
je 0x140184bdc
mov rcx, qword [r13]
xor edx, edx
mov eax, 1
lock cmpxchg qword [rcx], rdx
mov r14, qword [r13]
jne 0x140184b83
mov rax, qword [r14 + 8]
cmp rax, 1
jne 0x140184bff
mov qword [r14], 1
mov byte [r14 + 0xa7], 1
lea rax, [rsi + 0x1c8]
cmp dword [rax], 1
je 0x140184be8
jmp 0x140184c5c
movzx eax, byte [0x14031a2c8]
mov edx, 0xb0
xor ecx, ecx
call fcn.1401dbaa0
test rax, rax
je 0x140185253
mov r15, rax
lea rcx, [r14 + 0x10]
mov qword [rax], 1
mov qword [rax + 8], 1
mov rdx, rax
add rdx, 0x10
call fcn.14019cc10
lock dec qword [r14]
jne 0x140184bd0
mov rcx, qword [r13]
call fcn.140154140
mov qword [r13], r15
mov byte [r15 + 0xa7], 1
lea rax, [rsi + 0x1c8]
cmp dword [rax], 1
jne 0x140184c5c
mov rcx, qword [rsi + 0x1d0]
call sub.crypt32.dll_CertDuplicateCertificateContext
mov r14, rax
mov r15d, 1
jmp 0x140184c5f
lea r15, [r14 + 0x10]
lea rcx, [rsp + 0x30]
call fcn.1401552e0
mov rcx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
lea rax, [rcx + 0xf]
neg rcx
and rcx, rax
add rcx, rbp
mov r8d, 0xa0
mov rdx, r15
call sub.msvcrt.dll_memcpy
test byte [rsp + 0x48], 1
je 0x140185247
mov qword [r13], rbp
mov rcx, r14
call fcn.140155480
mov byte [rbp + 0xa7], 1
lea rax, [rsi + 0x1c8]
cmp dword [rax], 1
je 0x140184be8
xor r15d, r15d
mov rcx, qword [rsi + 0x1d8]
call sub.crypt32.dll_CertDuplicateStore
movzx edx, word [rsi + 0x1e4]
lea rcx, [rsi + 0x200]
mov qword [rsi + 0x200], r15
mov qword [rsi + 0x208], r14
mov qword [rsi + 0x210], rax
mov eax, dword [rsi + 0x1e0]
mov dword [rsi + 0x218], eax
mov word [rsi + 0x21c], dx
mov byte [rsi + 0x238], 0
movups xmm0, xmmword [r13]
movups xmmword [rsi + 0x220], xmm0
mov rax, qword [r13 + 0x10]
mov qword [rsi + 0x230], rax
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.140176c90
mov r9, rdx
mov rdx, rax
mov qword [rsi + 0x240], rax
mov qword [rsi + 0x248], r9
mov r8, r12
lea rcx, [rsp + 0x30]
call qword [r9 + 0x18]
mov r12, qword [rsp + 0x30]
cmp r12, 4
jne 0x140184d37
mov byte [rdi + 0x11], 3
mov al, 3
jmp 0x140184e7b
mov rbx, qword [rsp + 0x38]
mov r15, qword [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3a8]
mov r8d, 0x110
call sub.msvcrt.dll_memcpy
mov r14, qword [rsi + 0x240]
mov r13, qword [rsi + 0x248]
mov rax, qword [r13]
test rax, rax
je 0x140184d75
mov rcx, r14
call rax
cmp qword [r13 + 8], 0
je 0x140184d98
cmp qword [r13 + 0x10], 0x11
jb 0x140184d87
mov r14, qword [r14 - 8]
mov rcx, qword [0x14031a288]
xor edx, edx
mov r8, r14
call fcn.1401fb9c4
cmp r12d, 3
jne 0x140184e95
mov rax, qword [rsi + 0x220]
lock dec qword [rax]
je 0x1401851e7
mov rax, qword [rsi + 0x228]
lock dec qword [rax]
je 0x140185204
cmp qword [rsi + 0x200], 0
je 0x140184dda
mov rcx, qword [rsi + 0x208]
call sub.crypt32.dll_CertFreeCertificateContext
mov rcx, qword [rsi + 0x210]
xor edx, edx
call sub.crypt32.dll_CertCloseStore
cmp qword [rsi + 0x1c8], 0
je 0x140184dfe
mov rcx, qword [rsi + 0x1d0]
call sub.crypt32.dll_CertFreeCertificateContext
mov rcx, qword [rsi + 0x1d8]
xor edx, edx
call sub.crypt32.dll_CertCloseStore
mov rax, qword [rsi + 0x1b0]
lock dec qword [rax]
je 0x140184fcf
mov rax, qword [rsi + 0x1b8]
lock dec qword [rax]
je 0x140184fec
mov rax, qword [rsi + 0x148]
lock dec qword [rax]
je 0x140185010
mov bpl, 2
cmp byte [rsi + 0x140], 2
je 0x140184e6a
lea rcx, [rsi + 0x138]
mov rax, qword [rsi + 0x120]
mov rdx, qword [rsi + 0x128]
mov r8, qword [rsi + 0x130]
call qword [rax + 0x20]
mov qword [rdi], rbx
mov qword [rdi + 8], r15
mov byte [rdi + 0x10], r14b
mov byte [rdi + 0x11], bpl
mov al, 1
mov byte [rsi + 0x251], al
add rsp, 0x4b8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x170]
lea rdx, [rsp + 0x3a8]
mov r8d, 0x110
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x158], r12
mov qword [rsp + 0x160], rbx
mov qword [rsp + 0x168], r15
cmp r12, 2
jne 0x140185031
movzx eax, byte [0x14031a2c8]
mov edx, 0x128
xor ecx, ecx
call fcn.1401dbaa0
test rax, rax
je 0x140185238
mov rbx, rax
lea rdx, [rsp + 0x158]
mov r8d, 0x128
mov rcx, rax
call sub.msvcrt.dll_memmove
movzx r14d, byte [rsi + 0x252]
lea r15, [0x1402d67a8]
xor ebp, ebp
mov rax, qword [rsi + 0x220]
lock dec qword [rax]
jne 0x140184f31
mov rcx, qword [rsi + 0x220]
call fcn.140154140
mov rax, qword [rsi + 0x228]
lock dec qword [rax]
je 0x14018510b
cmp qword [rsi + 0x200], 0
je 0x140184f58
mov rcx, qword [rsi + 0x208]
call sub.crypt32.dll_CertFreeCertificateContext
mov rcx, qword [rsi + 0x210]
xor edx, edx
call sub.crypt32.dll_CertCloseStore
cmp qword [rsi + 0x1c8], 0
je 0x140184f7c
mov rcx, qword [rsi + 0x1d0]
call sub.crypt32.dll_CertFreeCertificateContext
mov rcx, qword [rsi + 0x1d8]
xor edx, edx
call sub.crypt32.dll_CertCloseStore
mov rax, qword [rsi + 0x1b0]
lock dec qword [rax]
je 0x140185131
mov rax, qword [rsi + 0x1b8]
lock dec qword [rax]
je 0x14018514e
mov rax, qword [rsi + 0x148]
lock dec qword [rax]
je 0x140185172
cmp byte [rsi + 0x140], 2
jne 0x140184e4b
jmp 0x140184e6a
mov rcx, qword [rsi + 0x1b0]
call fcn.140154140
mov rax, qword [rsi + 0x1b8]
lock dec qword [rax]
jne 0x140184e2e
mov rcx, qword [rsi + 0x1b8]
mov rdx, qword [rsi + 0x1c0]
call fcn.140033c20
mov rax, qword [rsi + 0x148]
lock dec qword [rax]
jne 0x140184e3f
mov rcx, qword [rsi + 0x148]
call fcn.140154250
mov bpl, 2
cmp byte [rsi + 0x140], 2
jne 0x140184e4b
jmp 0x140184e6a
lea rcx, [rsp + 0x280]
lea rdx, [rsp + 0x158]
mov r8d, 0x128
call sub.msvcrt.dll_memcpy
cmp byte [rsi + 0x151], 0
jne 0x140185095
mov rcx, qword [rsp + 0x2a8]
cmp rcx, 0xffffffffffffffff
je 0x140185247
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140185190
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x280]
mov r8d, 0x128
call sub.msvcrt.dll_memcpy
movzx eax, byte [0x14031a2c8]
mov edx, 0x128
xor ecx, ecx
call fcn.1401dbaa0
test rax, rax
je 0x140185238
mov rbx, rax
lea rdx, [rsp + 0x30]
mov r8d, 0x128
mov rcx, rax
call sub.msvcrt.dll_memcpy
movzx ebp, byte [rsi + 0x152]
movzx r14d, byte [rsi + 0x252]
lea r15, [0x1402d68c8]
mov rax, qword [rsi + 0x220]
lock dec qword [rax]
je 0x140184f25
jmp 0x140184f31
mov rcx, qword [rsi + 0x228]
mov rdx, qword [rsi + 0x230]
call fcn.140033c20
cmp qword [rsi + 0x200], 0
jne 0x140184f4c
jmp 0x140184f58
mov rcx, qword [rsi + 0x1b0]
call fcn.140154140
mov rax, qword [rsi + 0x1b8]
lock dec qword [rax]
jne 0x140184fac
mov rcx, qword [rsi + 0x1b8]
mov rdx, qword [rsi + 0x1c0]
call fcn.140033c20
mov rax, qword [rsi + 0x148]
lock dec qword [rax]
jne 0x140184fbd
mov rcx, qword [rsi + 0x148]
call fcn.140154250
cmp byte [rsi + 0x140], 2
jne 0x140184e4b
jmp 0x140184e6a
call sub.ws2_32.dll_WSAGetLastError
mov r14d, eax
movzx eax, byte [0x14031a2c8]
mov edx, 8
xor ecx, ecx
call fcn.1401dbaa0
test rax, rax
je 0x140185262
mov rbx, rax
shl r14, 0x20
or r14, 2
mov qword [rax], r14
lea rcx, [rsp + 0x280]
call fcn.140183580
lea r15, [0x1402d7868]
mov rax, qword [rsi + 0x220]
lock dec qword [rax]
jne 0x140184db3
mov rcx, qword [rsi + 0x220]
call fcn.140154140
mov rax, qword [rsi + 0x228]
lock dec qword [rax]
jne 0x140184dc4
mov rcx, qword [rsi + 0x228]
mov rdx, qword [rsi + 0x230]
call fcn.140033c20
cmp qword [rsi + 0x200], 0
jne 0x140184dce
jmp 0x140184dda
ud2
lea rcx, str._redacted_
call fcn.14005f600
mov ecx, 8
mov edx, 0x128
call fcn.140033f80
lea rcx, str._redacted_
call fcn.14005c6c0
mov ecx, 8
mov edx, 0xb0
call fcn.140033f80
mov ecx, 8
mov edx, 8
call fcn.140033f80
int3