Function at 0x1400d9690
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x88], 3
jae 0x1400d96ba
xor eax, eax
jmp 0x1400d99ca
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x28], eax
mov r8, qword [rsp + 0x88]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call fcn.1400a87c0
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x88]
sub rax, 3
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jge 0x1400d9704
xor eax, eax
jmp 0x1400d99ca
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x30], rax
jge 0x1400d99b3
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x220], 0
je 0x1400d99b3
cmp dword [0x1403b3558], 0
jle 0x1400d9752
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [rsp + 0x28]
mov eax, dword [0x1403b3558]
imul eax, eax, 0x3e8
cmp ecx, eax
jle 0x1400d9752
xor eax, eax
jmp 0x1400d99ca
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.1400d9220
test eax, eax
jne 0x1400d9767
jmp 0x1400d9704
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
sub rax, rcx
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x88]
lea rax, [rcx + rax - 3]
sub rax, qword [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov r9d, 2
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WSOCK32.dll_recv]
cdqe
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jg 0x1400d97d3
xor eax, eax
jmp 0x1400d99ca
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
add rax, rcx
mov byte [rax], 0
lea rdx, [0x1402196c4]
mov rcx, qword [rsp + 0x38]
call fcn.14001eb10
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400d9817
lea rdx, [0x14021971c]
mov rcx, qword [rsp + 0x38]
call fcn.14001eb10
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400d9943
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x50]
sub rax, rcx
add rax, 1
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x30], rax
jge 0x1400d98a7
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
sub rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, qword [rsp + 0x38]
lea rdx, [rax + rcx + 1]
sub rdx, qword [rsp + 0x20]
xor r9d, r9d
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WSOCK32.dll_recv]
cdqe
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jg 0x1400d98a5
xor eax, eax
jmp 0x1400d99ca
jmp 0x1400d9842
mov rax, qword [rsp + 0x50]
mov byte [rax], 0
mov rcx, qword [rsp + 0x80]
call fcn.1400a98c0
cdqe
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jle 0x1400d9925
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x80]
add rax, rcx
movsx eax, byte [rax - 1]
cmp eax, 0xd
jne 0x1400d98f8
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x80]
add rax, rcx
mov byte [rax - 1], 0
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x80]
add rax, rcx
movsx eax, byte [rax - 1]
cmp eax, 0xa
jne 0x1400d9925
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x80]
add rax, rcx
mov byte [rax - 1], 0
lea rdx, [0x140219774]
mov rcx, qword [rsp + 0x80]
call fcn.1400ab8d0
mov eax, 1
jmp 0x1400d99ca
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x48], rax
jge 0x1400d99ae
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
sub rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rdx, rax
sub rdx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WSOCK32.dll_recv]
cdqe
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jg 0x1400d99ac
xor eax, eax
jmp 0x1400d99ca
jmp 0x1400d9956
jmp 0x1400d9704
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x220], 0
jne 0x1400d99c5
xor eax, eax
jmp 0x1400d99ca
mov eax, 1
add rsp, 0x68
ret