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

Disassembly:
push rbx
push rbp
push r12
push r15
sub rsp, 0x28
mov rbx, rcx
add rcx, 8
call fcn.18001f4c0
movsxd r8, dword [rbx + 0x52c]
mov rcx, qword [rbx + 0x508]
mov rbp, rax
mov edx, 0x146db
test rax, rax
je 0x18001f8ae
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
xor r9d, r9d
mov qword [rsp + 0x68], r13
mov dword [rbx + 0x514], 1
mov dword [rbx + 0x594], 1
mov qword [rsp + 0x20], r14
call qword [sym.imp.USER32.dll_PostMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor r12d, r12d
mov dword [rsp + 0x50], eax
mov r14d, r12d
lea r13d, [r12 + 1]
cmp dword [rbx + 0x590], r12d
jne 0x18001f860
nop dword [rax]
test rbp, rbp
jne 0x18001f68d
lea rcx, [rbx + 8]
call fcn.18001f4c0
mov rbp, rax
test rax, rax
je 0x18001f675
mov dword [rbx + 0x514], 1
mov dword [rbx + 0x594], 1
mov r13d, 1
jmp 0x18001f853
mov dword [rbx + 0x514], r12d
mov dword [rbx + 0x594], r12d
mov ecx, 0x3e8
jmp 0x18001f84d
cmp dword [rbp + 0x110], 0xffffffff
jne 0x18001f6c1
mov rcx, rbp
call fcn.18002c240
mov rcx, qword [rbp + 0x42d0]
test rcx, rcx
je 0x18001f6b0
call qword [sym.imp.libssl_3.dll_SSL_CTX_free]
mov rcx, rbp
call qword [sym.imp.MSVCR100.dll_free]
mov rbp, r12
jmp 0x18001f853
test r13d, r13d
je 0x18001f756
mov rax, qword [rbx + 0x588]
test rax, rax
jne 0x18001f6de
lea ecx, [rax + 0x64]
jmp 0x18001f84d
mov esi, r12d
mov rdi, r12
cmp qword [rax + 0x10], rsi
jle 0x18001f756
nop word [rax + rax]
mov rax, qword [rbx + 0x588]
test rdi, rdi
js 0x18001f8a7
cmp rdi, qword [rax + 0x10]
jge 0x18001f8a7
mov rax, qword [rax + 8]
mov rcx, rbp
mov rdx, qword [rax + rdi*8]
mov r8d, dword [rdx + 0x13]
mov rdx, qword [rdx + 0xb]
call fcn.18002ca70
test eax, eax
jne 0x18001f73e
mov r8, qword [rbx + 0x598]
lea rdx, str._s:_rtmp_write_failed.
lea ecx, [rax + 2]
call fcn.180035240
jmp 0x18001f741
mov r13d, r12d
mov rcx, qword [rbx + 0x588]
inc esi
inc rdi
movsxd rax, esi
cmp rax, qword [rcx + 0x10]
jl 0x18001f6f0
lea rcx, [rbx + 0x548]
mov rdi, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rbx + 0x574]
test eax, eax
jle 0x18001f79d
movsxd r9, dword [rbx + 0x570]
mov rax, qword [rbx + 0x578]
mov r8d, dword [rbx + 0x580]
mov rdi, qword [rax + r9*8]
lea eax, [r9 + 1]
cdq
idiv r8d
mov dword [rbx + 0x570], edx
dec dword [rbx + 0x574]
lea rcx, [rbx + 0x548]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rdi, rdi
je 0x18001f848
mov r8d, dword [rdi + 0x13]
mov rdx, qword [rdi + 0xb]
mov rcx, rbp
call fcn.18002ca70
test eax, eax
jne 0x18001f7e5
mov r8, qword [rbx + 0x598]
lea rdx, str._s:_rtmp_write_failed.
lea ecx, [rax + 2]
call fcn.180035240
inc dword [rbx + 0x51c]
jmp 0x18001f833
movsxd rcx, dword [rdi + 0x13]
inc dword [rbx + 0x520]
add qword [rbx + 0x524], rcx
add r14d, dword [rdi + 0x13]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11d, eax
sub r11d, dword [rsp + 0x50]
cmp r11d, 0x2710
jbe 0x18001f833
imul r14d, r14d, 0x3e8
xor edx, edx
mov eax, r14d
div r11d
mov dword [rbx + 0x518], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, r12d
mov dword [rsp + 0x50], eax
mov rcx, qword [rdi + 0xb]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
jmp 0x18001f853
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x590], r12d
je 0x18001f640
test rbp, rbp
je 0x18001f888
mov rcx, rbp
call fcn.18002c240
mov rcx, qword [rbp + 0x42d0]
test rcx, rcx
je 0x18001f87f
call qword [sym.imp.libssl_3.dll_SSL_CTX_free]
mov rcx, rbp
call qword [sym.imp.MSVCR100.dll_free]
mov r13, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop r15
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.mfc100.dll_Ordinal_2022]
int3
xor r12d, r12d
mov dword [rbx + 0x514], r12d
mov dword [rbx + 0x594], r12d
lea r9d, [r12 + 1]
add rsp, 0x28
pop r15
pop r12
pop rbp
pop rbx
jmp qword [sym.imp.USER32.dll_PostMessageA]