Function at 0x140127a80
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x30
mov ebp, dword [rcx + 0x5a8]
mov rdi, qword [rcx]
xor r14d, r14d
mov rsi, rcx
mov dword [rcx + 0x5a8], r14d
mov ecx, dword [rdi + 0x100]
mov eax, ecx
mov r12, rdx
or rdx, 0xffffffffffffffff
and al, 0x15
mov dword [rsp + 0x60], r14d
cmp al, 1
jne 0x140127ac9
mov rax, qword [rsi + 0x2c0]
jmp 0x140127acc
mov rax, rdx
and cl, 0x2a
cmp cl, 2
jne 0x140127adb
mov rdx, qword [rsi + 0x2c8]
test ebp, ebp
jne 0x140127aec
xor r8d, r8d
mov rcx, rax
call fcn.140135d10
mov ebp, eax
cmp ebp, 4
jne 0x140127b14
lea rdx, str.select_poll_returned_error
mov rcx, rdi
call fcn.140125b60
lea eax, [rbp + 0x33]
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
test byte [rdi + 0x100], 1
je 0x140127b57
test bpl, 1
jne 0x140127b2c
cmp dword [rsi + 0x288], r14d
je 0x140127b57
lea r9, [rsp + 0x60]
lea r8, [rdi + 0x28]
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], r12
call fcn.140126f50
test eax, eax
jne 0x140127e81
cmp dword [r12], r14d
jne 0x140127e81
test byte [rdi + 0x100], 2
je 0x140127b82
test bpl, 2
je 0x140127b82
lea r9, [rsp + 0x60]
lea r8, [rdi + 0x28]
mov rdx, rsi
mov rcx, rdi
call fcn.1401276e0
test eax, eax
jne 0x140127e81
mov qword [rsp + 0x68], r15
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r15, [rdi + 0x68]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
mov r9d, edx
shr r9d, 6
mov ecx, r9d
mov dword [rsp + 0x70], r9d
imul ecx, ecx, 0x3e8
sub r8d, ecx
imul r8d, r8d, 0x3e8
mov dword [rsp + 0x74], r8d
mov r8, qword [rsp + 0x70]
mov qword [r15], r8
cmp dword [rsp + 0x60], r14d
je 0x140127bf1
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x140127bdf
mov rax, qword [rdi + 0x48]
mov qword [rcx], rax
mov rcx, qword [rdi + 0x40]
test rcx, rcx
je 0x140127c53
mov rax, qword [rdi + 0x50]
mov qword [rcx], rax
jmp 0x140127c53
cmp dword [rdi + 0xcc], 1
jne 0x140127c53
mov rcx, qword [rdi + 0xc4]
shr r8, 0x20
sub r9d, ecx
mov rax, rcx
shr rax, 0x20
sub r8d, eax
mov eax, 0x10624dd3
imul r9d, r9d, 0x3e8
imul r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
add edx, r9d
cmp edx, 0x3e8
jle 0x140127c53
or dword [rdi + 0x100], 2
lea rdx, str.Done_waiting_for_100_continue_n
mov rcx, rdi
mov dword [rdi + 0xcc], r14d
call fcn.140125a80
mov rcx, rsi
call fcn.14012f3a0
test eax, eax
jne 0x140127e60
mov rdx, qword [r15]
mov rcx, rdi
call fcn.14013ead0
test eax, eax
jne 0x140127e7c
cmp dword [rdi + 0x100], r14d
je 0x140127dec
mov edx, dword [rdi + 0x270]
mov ecx, r14d
mov eax, 1
test edx, edx
mov r8, r15
cmovg ecx, eax
dec ecx
je 0x140127cbe
dec ecx
je 0x140127cb6
dec ecx
jne 0x140127e67
mov esi, dword [rdi + 0x274]
cmp edx, esi
cmovl esi, edx
jmp 0x140127cc0
mov esi, dword [rdi + 0x274]
jmp 0x140127cc0
mov esi, edx
test r15, r15
jne 0x140127cfc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r8, [rsp + 0x60]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [rsp + 0x60], edx
imul edx, edx, 0x3e8
sub ecx, edx
imul ecx, ecx, 0x3e8
mov dword [rsp + 0x64], ecx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov r10, qword [rdi + 0x6b8]
mov rcx, qword [r8]
mov rdx, rcx
mov rax, r10
shr rax, 0x20
shr rdx, 0x20
sub edx, eax
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r10d
sub eax, ecx
imul eax, eax, 0x3e8
sub eax, edx
add esi, eax
test esi, esi
jg 0x140127e67
mov r9, qword [rdi + 0x28]
mov rcx, qword [r15]
cmp r9, 0xffffffffffffffff
je 0x140127d9f
mov r8, rcx
sub ecx, r10d
mov rdx, r10
shr r8, 0x20
shr rdx, 0x20
mov eax, 0x10624dd3
imul ecx, ecx, 0x3e8
sub r8d, edx
mov qword [rsp + 0x20], r9
mov r9, qword [rdi + 0x48]
imul r8d
sar edx, 6
mov r8d, edx
shr r8d, 0x1f
add r8d, edx
lea rdx, str.Operation_timed_out_after__ld_milliseconds_with__lld_out_of__lld_bytes_received
add r8d, ecx
mov rcx, rdi
call fcn.140125b60
mov eax, 0x1c
jmp 0x140127e7c
mov r9, qword [rdi + 0x48]
mov rdx, rcx
sub ecx, r10d
shr rdx, 0x20
mov rax, r10
imul ecx, ecx, 0x3e8
shr rax, 0x20
sub edx, eax
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov r8d, edx
shr r8d, 0x1f
add r8d, edx
lea rdx, str.Operation_timed_out_after__ld_milliseconds_with__lld_bytes_received
add r8d, ecx
mov rcx, rdi
call fcn.140125b60
mov eax, 0x1c
jmp 0x140127e7c
mov eax, dword [rdi + 0x40c]
test eax, eax
jne 0x140127e54
mov r8, qword [rdi + 0x28]
cmp r8, 0xffffffffffffffff
je 0x140127e2b
mov rcx, qword [rdi + 0x48]
cmp rcx, r8
je 0x140127e2b
cmp qword [rdi + 0x118], r14
jne 0x140127e2b
sub r8, rcx
lea rdx, str.transfer_closed_with__lld_bytes_remaining_to_read
mov rcx, rdi
call fcn.140125b60
mov eax, reloc.WS2_32.dll_select
jmp 0x140127e7c
test eax, eax
jne 0x140127e54
cmp dword [rdi + 0x130], r14d
je 0x140127e54
cmp dword [rsi + 0x20], 8
je 0x140127e54
lea rdx, str.transfer_closed_with_outstanding_read_data_remaining
mov rcx, rdi
call fcn.140125b60
mov eax, reloc.WS2_32.dll_select
jmp 0x140127e7c
mov rcx, rsi
call fcn.14012f3a0
test eax, eax
je 0x140127e67
mov eax, 0x2a
jmp 0x140127e7c
mov eax, dword [rdi + 0x100]
and eax, 0x33
test al, al
sete r14b
xor eax, eax
mov dword [r12], r14d
mov r15, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret