Function at 0x1401a2ce0
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
or dword [r8], 2
xor r15d, r15d
mov rbx, rcx
xor r14b, r14b
mov rcx, qword [rcx + 0x188]
mov rsi, r8
mov r13, rdx
mov ebp, r15d
test rcx, rcx
je 0x1401a2d64
mov eax, dword [rbx + 0x6b0]
shr rax, 5
cmp rcx, rax
jge 0x1401a303e
cmp byte [rbx + 0x1c4], bpl
jne 0x1401a303e
cmp byte [rbx + 0x1bf], bpl
jne 0x1401a303e
mov rax, qword [rbx + 0x108]
sub rax, qword [rbx + 0x110]
add rax, rcx
cmp rax, qword [rbx + 0x11a0]
je 0x1401a303e
mov rbp, rcx
lea rdi, [rbx + 0xcb0]
mov rax, qword [rdi]
test rax, rax
jne 0x1401a2d8b
mov ecx, dword [rbx + 0x6b0]
call qword [fcn.14022b0a0]
mov qword [rdi], rax
test rax, rax
je 0x1401a2f57
test rbp, rbp
je 0x1401a2dae
mov rdx, qword [rbx + 0x190]
cmp rdx, rax
je 0x1401a2dae
mov r8, rbp
mov rcx, rax
call fcn.140276ca0
lea rdi, [rbx + 0xcb0]
mov rdx, qword [rdi]
mov qword [rbx + 0x190], rdx
cmp byte [rbx + 0x1bf], r14b
jne 0x1401a332e
cmp dword [rbx + 0x158], 2
mov rcx, qword [rbx + 0x198]
jne 0x1401a2e94
cmp dword [rcx + 0x38], 2
jne 0x1401a2e94
and dword [rbx + 0x144], 0xfffffffd
cmp byte [0x140336ac1], r14b
mov dword [rbx + 0x158], 1
je 0x1401a2e3f
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r8, qword [0x140336ab8]
mov rax, qword [rsp + 0xb0]
cqo
idiv r8
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xb0]
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
jmp 0x1401a2e6a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov ecx, edx
mov qword [rsp + 0x50], rcx
imul ecx, edx, 0x3e8
sub r8d, ecx
imul eax, r8d, 0x3e8
and dword [rsi], 0xfffffffd
xor r8d, r8d
mov dword [rsp + 0x58], eax
mov rcx, rbx
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx + 0x148], xmm0
movsxd rdx, dword [rbx + 0xa14]
call fcn.14018b430
jmp 0x1401a3346
mov rax, qword [r13 + 0x2c8]
test dword [rax + 0x84], 0x40003
je 0x1401a2eaf
cmp dword [rcx + 0x38], 1
sete r14b
lea rax, [rdx + rbp]
mov rcx, rbx
mov qword [rbx + 0x190], rax
lea r8, [rsp + 0xb0]
mov edx, dword [rbx + 0x6b0]
sub rdx, rbp
call fcn.1401a23c0
sub qword [rbx + 0x190], rbp
test eax, eax
jne 0x1401a3348
mov rdi, qword [rsp + 0xb0]
add rdi, rbp
je 0x1401a332e
test rdi, rdi
jle 0x1401a3337
mov qword [rbx + 0x188], rdi
test r14b, r14b
jne 0x1401a3015
lea r14, [rbx + 0xa77]
cmp byte [r14], r15b
je 0x1401a3015
lea rsi, [rbx + 0xd68]
mov r15, r14
mov rax, qword [rsi]
mov r12, rsi
test rax, rax
jne 0x1401a2f6f
mov eax, dword [rbx + 0x6b0]
lea ecx, [rax + rax]
call qword [fcn.14022b0a0]
mov qword [rsi], rax
test rax, rax
jne 0x1401a2f61
lea rdx, str.Failed_to_alloc_scratch_buffer
mov rcx, rbx
call fcn.14019b0a0
mov eax, 0x1b
jmp 0x1401a3348
lea r15, [rbx + 0xa77]
lea r12, [rbx + 0xd68]
mov r8, rsi
test rbp, rbp
je 0x1401a2f8f
mov rdx, qword [rbx + 0x190]
mov r8, rbp
mov rcx, rax
call fcn.140276ca0
mov r8, r12
mov r14, r15
mov rdx, rbp
mov rcx, rbp
cmp rbp, rdi
jge 0x1401a2ff9
nop word [rax + rax]
mov rax, qword [rbx + 0x190]
mov r8, qword [rsi]
movzx r9d, byte [rdx + rax]
cmp r9b, 0xa
jne 0x1401a2fe3
mov byte [r8 + rcx], reloc.WS2_32.dll_listen
inc rcx
mov rax, qword [rsi]
mov byte [rcx + rax], r9b
cmp byte [r14], 0
jne 0x1401a2fe7
mov rax, qword [rbx + 0x11a0]
cmp rax, 0xffffffffffffffff
je 0x1401a2fe7
inc rax
mov qword [rbx + 0x11a0], rax
jmp 0x1401a2fe7
mov byte [r8 + rcx], r9b
inc rdx
inc rcx
cmp rdx, rdi
jl 0x1401a2fa0
lea r8, [rbx + 0xd68]
xor r15d, r15d
cmp rcx, rdi
je 0x1401a3015
mov rax, qword [r8]
mov rdi, rcx
mov qword [rbx + 0x190], rax
mov qword [rbx + 0x188], rcx
mov rax, qword [r13 + 0x2c8]
test dword [rax + 0x84], 0x30000
je 0x1401a303e
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.1401c08b0
test eax, eax
jne 0x1401a3348
mov rcx, qword [r13 + 0x2f0]
lea r10, [rbx + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x1401a3060
mov rax, qword [r10]
mov edx, 1
cmp rcx, qword [rax + 0x190]
je 0x1401a3063
mov edx, r15d
mov r10, qword [r10]
lea rcx, [rsp + 0xb0]
mov r9, qword [rbx + 0x188]
mov r8, qword [rbx + 0x190]
mov qword [rsp + 0x20], rcx
mov rcx, rbx
mov eax, edx
mov dword [rsp + 0xb0], r15d
call qword [r10 + rax*8 + 0x1a8]
mov rsi, rax
mov eax, dword [rsp + 0xb0]
cmp eax, 0x51
jne 0x1401a30b4
mov eax, r15d
mov rsi, r15
mov dword [rsp + 0xb0], eax
jmp 0x1401a30c1
test eax, eax
mov rcx, 0xffffffffffffffff
cmovne rsi, rcx
test eax, eax
jne 0x1401a3348
cmp byte [0x140336ac1], al
je 0x1401a3110
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r8, qword [0x140336ab8]
mov rax, qword [rsp + 0x50]
cqo
idiv r8
mov r9, rax
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
mov rcx, rax
jmp 0x1401a313e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
imul ecx, edx, 0x3e8
mov r9d, edx
mov qword [rsp + 0x60], r9
sub r8d, ecx
imul eax, r8d, 0x3e8
mov ecx, eax
movups xmm0, xmmword [rbx + 0x1a8]
mov dword [rsp + 0x68], eax
movq rax, xmm0
sub r9, rax
movabs rax, 0x20c49ba5e353f7
cmp r9, rax
jge 0x1401a31a5
movabs rax, 0xffdf3b645a1cac09
cmp r9, rax
jle 0x1401a3220
psrldq xmm0, 8
movd eax, xmm0
sub ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul rax, r9, 0x3e8
movsxd rcx, edx
add rcx, rax
cmp rcx, 0x3e8
jle 0x1401a3220
mov rdi, qword [r13 + 0x2f0]
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x40], r15
xor r9d, r9d
mov qword [rsp + 0x38], r15
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov edx, 0x4004747b
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x28], 4
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x1401a3214
lea r9, [rsp + 0xc0]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx + 0x1a8], xmm0
mov rax, qword [rbx + 0x110]
test rax, rax
je 0x1401a325c
mov r8, qword [rbx + 0x190]
cmp rax, rsi
mov rdi, rsi
mov edx, 2
cmovl rdi, rax
mov rcx, rbx
mov r9, rdi
call fcn.14019af50
sub qword [rbx + 0x110], rdi
mov rbp, rsi
sub rbp, rdi
jmp 0x1401a325f
mov rbp, rsi
test rbp, rbp
je 0x1401a3296
mov r8, qword [rbx + 0x190]
mov r9, rbp
sub r8, rbp
mov edx, 4
add r8, rsi
mov rcx, rbx
call fcn.14019af50
add qword [rbx + 0x108], rbp
mov rax, qword [rbx + 0x108]
mov qword [rbx + 0xae8], rax
cmp byte [rbx + 0x1c4], 0
je 0x1401a32a8
cmp byte [rbx + 0x1c6], 0
je 0x1401a32ce
mov rax, qword [rbx + 0x11a0]
cmp qword [rbx + 0x108], rax
jne 0x1401a32ce
lea rdx, str.We_are_completely_uploaded_and_fine
mov byte [rbx + 0x1bf], 1
mov rcx, rbx
call fcn.14019b1d0
mov rax, qword [rbx + 0x188]
cmp rax, rsi
je 0x1401a32ed
sub rax, rsi
add qword [rbx + 0x190], rsi
mov qword [rbx + 0x188], rax
jmp 0x1401a3346
mov rax, qword [rbx + 0xcb0]
test rax, rax
jne 0x1401a3315
mov ecx, dword [rbx + 0x6b0]
call qword [fcn.14022b0a0]
mov qword [rbx + 0xcb0], rax
test rax, rax
je 0x1401a2f57
cmp byte [rbx + 0x1bf], 0
mov qword [rbx + 0x190], rax
mov qword [rbx + 0x188], r15
je 0x1401a3346
jmp 0x1401a3337
test byte [rbx + 0x144], 0x20
jne 0x1401a3346
and dword [rbx + 0x144], 0xfffffffd
mov rcx, rbx
call fcn.140191da0
xor eax, eax
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret