Function at 0x140197080
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x9c8
movapd xmmword [rsp + 0x9b0], xmm7
movapd xmmword [rsp + 0x9a0], xmm6
mov r12, rdx
mov r14, rcx
mov qword [rsp + 0xc8], r8
mov qword [rsp + 0xd0], r9
mov r13, qword [rdx + 0x98]
mov esi, dword [r13 + 0x80]
cmp esi, 0x3b9aca00
jne 0x14019710a
mov rax, qword [r12 + 0x88]
mov qword [rsp + 0xc0], rax
mov eax, dword [r12 + 0x90]
mov dword [rsp + 0x50], eax
movabs r15, 0x8000000000000000
cmp qword [r13 + 0x28], r15
mov qword [rsp + 0xb0], r13
je 0x140197183
jmp 0x140197246
mov rdi, qword [r13 + 0x78]
call fcn.140151190
mov dword [rsp + 0x50], 0x3b9aca00
add rax, rdi
mov qword [rsp + 0xc0], rax
jae 0x140197145
movabs r15, 0x8000000000000000
cmp qword [r13 + 0x28], r15
mov qword [rsp + 0xb0], r13
je 0x140197183
jmp 0x140197246
add edx, esi
cmp edx, 0x3b9aca00
jb 0x140197226
inc qword [rsp + 0xc0]
je 0x140197167
add edx, 0xc4653600
mov dword [rsp + 0x50], edx
movabs r15, 0x8000000000000000
cmp qword [r13 + 0x28], r15
mov qword [rsp + 0xb0], r13
jne 0x140197246
mov qword [rsp + 0xe0], r15
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x3a0], rax
lea rax, [0x14005a740]
mov qword [rsp + 0x3a8], rax
lea rax, [rsp + 0xa30]
mov qword [rsp + 0x3b0], rax
lea rax, [0x140047dc0]
mov qword [rsp + 0x3b8], rax
lea rax, [0x141a961d8]
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x178], 2
mov qword [rsp + 0x190], 0
lea rax, [rsp + 0x3a0]
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x188], 2
lea rcx, [rsp + 0x138]
lea rdx, [rsp + 0x170]
call fcn.140036e80
jmp 0x140197491
mov dword [rsp + 0x50], edx
movabs r15, 0x8000000000000000
cmp qword [r13 + 0x28], r15
mov qword [rsp + 0xb0], r13
je 0x140197183
mov rbx, qword [r13 + 0x30]
mov rsi, qword [r13 + 0x38]
test rsi, rsi
je 0x14019727b
js 0x1401989b7
movzx eax, byte [0x141ada129]
xor ecx, ecx
mov rdx, rsi
call fcn.14014fee0
test rax, rax
je 0x1401989b7
mov rdi, rax
mov rbp, rsi
jmp 0x140197282
mov edi, 1
xor ebp, ebp
mov rcx, rdi
mov rdx, rbx
mov r8, rsi
call sub.msvcrt.dll_memcpy
mov edx, dword [r13 + 0x70]
cmp qword [r13 + 0x40], r15
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x78], rbp
mov dword [rsp + 0x54], edx
jne 0x1401972c1
mov rbp, r15
mov r14, rbp
cmp qword [r13 + 0x58], rbp
jne 0x140197321
jmp 0x14019737d
mov r12, qword [r13 + 0x48]
mov rbx, qword [r13 + 0x50]
test rbx, rbx
je 0x1401972f6
js 0x1401989b7
movzx eax, byte [0x141ada129]
xor ecx, ecx
mov rdx, rbx
call fcn.14014fee0
test rax, rax
je 0x1401989b7
mov r15, rax
mov r14, rbx
jmp 0x1401972ff
mov r15d, 1
xor r14d, r14d
mov rcx, r15
mov rdx, r12
mov r8, rbx
call sub.msvcrt.dll_memcpy
movabs rbp, 0x8000000000000000
mov edx, dword [rsp + 0x54]
cmp qword [r13 + 0x58], rbp
je 0x1401972bc
mov rdx, qword [r13 + 0x60]
mov r12, qword [r13 + 0x68]
test r12, r12
je 0x140197366
mov qword [rsp + 0xa0], rdx
js 0x1401989b7
movzx eax, byte [0x141ada129]
xor ecx, ecx
mov rdx, r12
call fcn.14014fee0
test rax, rax
je 0x1401989b7
mov r13, rax
mov rbp, r12
mov rdx, qword [rsp + 0xa0]
jmp 0x14019736e
mov r13d, 1
xor ebp, ebp
mov rcx, r13
mov r8, r12
call sub.msvcrt.dll_memcpy
mov edx, dword [rsp + 0x54]
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x74]
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0xe0], rcx
mov qword [rsp + 0xe8], rdi
mov qword [rsp + 0xf0], rsi
mov qword [rsp + 0x100], r15
mov qword [rsp + 0x108], rbx
mov qword [rsp + 0x118], r13
mov qword [rsp + 0x120], r12
mov qword [rsp + 0xf8], r14
mov qword [rsp + 0x110], rbp
lea rcx, [rsp + 0x128]
mov dword [rsp + 0x128], edx
mov byte [rsp + 0x12c], al
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x3a0], rax
lea rax, [0x140001790]
mov qword [rsp + 0x3a8], rax
mov qword [rsp + 0x3b0], rcx
lea rax, [0x140047ff0]
mov qword [rsp + 0x3b8], rax
lea rax, [0x141a961d8]
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x178], 2
mov qword [rsp + 0x190], 0
lea rax, [rsp + 0x3a0]
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x188], 2
lea rcx, [rsp + 0x138]
lea rdx, [rsp + 0x170]
call fcn.140036e80
movabs r15, 0x8000000000000000
mov r14, qword [rsp + 0x48]
mov r12, qword [rsp + 0x98]
mov rax, qword [r12 + 0xa0]
mov rdi, qword [rax + 0x28]
mov rsi, qword [rax + 0x30]
lock inc qword [rdi]
jle 0x1401989b7
mov rax, qword [rsi + 0x10]
dec rax
and rax, 0xfffffffffffffff0
lea rdx, [rdi + rax]
add rdx, 0x10
mov r8, qword [rsp + 0x140]
mov r9, qword [rsp + 0x148]
lea rbx, [rsp + 0x80]
mov rcx, rbx
call qword [rsi + 0x18]
mov rax, qword [rsp + 0x80]
mov r13, qword [rsp + 0x88]
mov qword [rsp + 0xa8], rax
cmp rax, r15
jne 0x14019760f
lea rax, [rsp + 0x138]
mov qword [rsp + 0x68], rax
lea rax, [0x140001790]
mov qword [rsp + 0x70], rax
lea rax, [0x141a81af0]
mov qword [rsp + 0x3a0], rax
mov qword [rsp + 0x3a8], 2
mov qword [rsp + 0x3c0], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x3b0], rax
mov qword [rsp + 0x3b8], 1
lea rcx, [rsp + 0x178]
lea rdx, [rsp + 0x3a0]
call fcn.140036e80
mov qword [rsp + 0x190], r15
mov qword [rsp + 0x1e8], 0
mov byte [rsp + 0x1f8], 2
mov qword [rsp + 0x170], r15
lea rcx, [rsp + 0x3a0]
lea rdx, [rsp + 0x170]
mov r8, r13
call fcn.1401a5580
movapd xmm6, xmmword [rsp + 0x3b0]
lea rdx, [rsp + 0x3c0]
lea rbx, [rsp + 0x8b0]
mov r8d, 0xf0
mov rcx, rbx
call sub.msvcrt.dll_memcpy
movaps xmm0, xmmword [rsp + 0x3a0]
test byte [rax + riz*4], ah
add eax, dword [rax]
add byte [rcx + 0xf], al
adc dword [rsi], eax
mov rax, qword [rsp + 0x90]