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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
mov rsi, r9
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
cmp qword [r8 + 0x20], r14
jne 0x140059692
cmp qword [r8 + 0x28], r14
jne 0x140059692
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, eax
mov eax, 0x10624dd3
mul r9d
shr edx, 6
mov dword [rsp + 0x50], edx
imul eax, edx, 0x3e8
mov rdx, qword [rbx + 0x7d0]
sub r9d, eax
imul eax, r9d, 0x3e8
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0x50]
call fcn.1400534d0
movsd qword [rbx + 0x7b8], xmm0
or dword [rsi], 2
cmp qword [rbx + 0x1e8], r14
jne 0x140059838
mov rax, qword [rdi + 0x128]
mov qword [rbx + 0x1f0], rax
cmp dword [rdi + 0x13c], r14d
jne 0x140059905
cmp dword [rdi + 0xa4], 2
mov rcx, qword [rbx + 0x208]
jne 0x140059732
cmp dword [rcx + 0x78], 2
jne 0x140059732
and dword [rdi + 0x138], 0xfffffffd
mov dword [rdi + 0xa4], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [rsi], 0xfffffffd
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov dword [rsp + 0x50], edx
imul ecx, edx, 0x3e8
sub r8d, ecx
mov rcx, rbx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x50]
mov qword [rdi + 0x9c], rax
mov edx, dword [rbx + 0x700]
call fcn.140048fa0
jmp 0x140059967
mov rax, qword [rbp + 0x320]
test dword [rax + 0x74], 0x40003
je 0x14005974a
cmp dword [rcx + 0x78], 1
sete r14b
lea r8, [rsp + 0x50]
mov rcx, rbp
call fcn.140058ac0
test eax, eax
jne 0x140059969
movsxd rsi, dword [rsp + 0x50]
test rsi, rsi
je 0x140059905
jle 0x14005990e
mov qword [rbx + 0x1e8], rsi
test r14d, r14d
jne 0x140059838
cmp dword [rbx + 0x398], r14d
je 0x140059838
cmp qword [rbx + 0x88c8], 0
jne 0x1400597c9
mov ecx, 0x8000
call qword [0x140177978]
mov qword [rbx + 0x88c8], rax
test rax, rax
jne 0x1400597c9
lea rdx, str.Failed_to_alloc_scratch_buffer_
mov rcx, rbx
call fcn.140052c80
lea eax, [r14 + 0x1b]
jmp 0x140059969
xor ecx, ecx
xor edx, edx
test rsi, rsi
jle 0x14005981e
mov rax, qword [rbx + 0x1f0]
movzx r8d, byte [rdx + rax]
mov rax, qword [rbx + 0x88c8]
cmp r8b, 0xa
jne 0x14005980f
mov byte [rcx + rax], recv
mov rax, qword [rbx + 0x88c8]
inc rcx
mov byte [rcx + rax], r8b
cmp dword [rbx + 0x398], 0
jne 0x140059813
inc qword [rbx + 0x8b10]
jmp 0x140059813
mov byte [rcx + rax], r8b
inc rdx
inc rcx
cmp rdx, rsi
jl 0x1400597d2
cmp rcx, rsi
je 0x140059838
mov rax, qword [rbx + 0x88c8]
mov qword [rbx + 0x1e8], rcx
mov qword [rbx + 0x1f0], rax
mov rax, qword [rbp + 0x1b0]
mov r9, qword [rbx + 0x1e8]
mov r8, qword [rbx + 0x1f0]
xor edx, edx
cmp qword [rbp + 0x340], rax
lea rcx, [rsp + 0x50]
sete dl
mov qword [rsp + 0x20], rcx
mov rcx, rbp
movsxd rax, edx
mov dword [rsp + 0x50], 0
call qword [rbp + rax*8 + 0x1e0]
mov rsi, rax
test rax, rax
jns 0x140059897
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14005992c
cmp eax, 0x51
jne 0x140059969
xor esi, esi
cmp dword [rbx + 0x4f4], 0
je 0x1400598bc
mov r8, qword [rbx + 0x1f0]
mov r9, rsi
mov edx, 4
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call fcn.140053330
add qword [rdi + 0x28], rsi
mov rax, qword [rdi + 0x28]
cmp rax, qword [rbx + 0x8b10]
jne 0x1400598e6
lea rdx, str.We_are_completely_uploaded_and_fine_n
mov rcx, rbx
mov dword [rdi + 0x13c], 1
call fcn.140052ba0
mov rax, qword [rbx + 0x1e8]
cmp rax, rsi
je 0x140059933
sub rax, rsi
add qword [rbx + 0x1f0], rsi
mov qword [rbx + 0x1e8], rax
jmp 0x14005995c
test byte [rdi + 0x138], 0x20
jne 0x140059967
and dword [rdi + 0x138], 0xfffffffd
cmp dword [rbp + 0x2e4], 0
je 0x140059967
mov rcx, rbp
call fcn.140058cc0
test eax, eax
je 0x140059967
jmp 0x140059969
mov eax, 0x37
jmp 0x140059969
mov rax, qword [rdi + 0x128]
mov qword [rbx + 0x1e8], 0
mov qword [rbx + 0x1f0], rax
cmp dword [rdi + 0x13c], 0
je 0x14005995c
and dword [rdi + 0x138], 0xfffffffd
mov rax, qword [rdi + 0x28]
mov qword [rbx + 0x760], rax
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret