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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x5d0
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rsp + 0x5c0], rax
mov r14, rcx
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x80], rcx
lea r15, [rcx + 0xd0]
lea rbx, [rcx + 0xc0]
mov rax, qword [rcx + 0x6e8]
mov qword [rsp + 0x20], rax
mov r9b, byte [rcx + 0x6e0]
mov r8, r15
mov rdx, rbx
mov rcx, qword [rcx + 0xa8]
call fcn.140005094
xor esi, esi
test al, al
je 0x140006c64
lea rdi, [r14 + 0xc8]
mov rax, qword [r14 + 0x6f0]
mov qword [rsp + 0x30], rax
mov al, byte [r14 + 0x6e0]
mov byte [rsp + 0x28], al
mov eax, dword [r15]
mov dword [rsp + 0x20], eax
mov r9d, dword [r14 + 0xb8]
mov r8d, dword [r14 + 0xb4]
mov rdx, rdi
mov rcx, qword [r14 + 0xa8]
call fcn.140005498
test al, al
je 0x140006c64
mov rax, qword [r14 + 0x6e8]
mov qword [rsp + 0x20], rax
mov r9b, byte [r14 + 0x6e0]
mov rdx, qword [rbx]
mov rcx, qword [r14 + 0xa8]
call fcn.1400058a0
test al, al
je 0x140006c64
mov rax, qword [r14 + 0x6f0]
mov qword [rsp + 0x20], rax
mov r9b, byte [r14 + 0x6e0]
mov rdx, qword [rdi]
mov rcx, qword [r14 + 0xa8]
call fcn.140005a60
test al, al
je 0x140006c64
lea ebx, [rsi + 0x40]
mov ecx, ebx
call fcn.14000c680
mov r13, rax
mov qword [rsp + 0x98], rax
mov r8d, ebx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [r13 + 8], rsi
mov qword [r13 + 0x10], rsi
mov qword [r13 + 0x18], rsi
mov word [r13 + 0x20], si
mov dword [r13 + 0x24], esi
mov word [r13 + 0x28], si
lea rax, vtable.TGuardThread.0
mov qword [r13], rax
mov qword [r13 + 0x30], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [r13 + 0x38], rax
mov qword [rsp + 0x88], r13
mov rcx, r13
call fcn.140001528
mov r12d, esi
mov qword [rsp + 0x78], rsi
mov ebx, esi
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x6c], ebx
mov dword [rsp + 0x74], esi
mov edi, 0x13880
cmp byte [r14 + 0x21], sil
jne 0x140006c1d
cmp byte [r14 + 0x6e0], sil
je 0x14000634b
mov rax, qword [r14 + 0x6f0]
cmp dword [rax + 0xfaf0], esi
jne 0x14000638f
cmp dword [rax + 0x7dc8], esi
jne 0x14000638f
mov edx, 0x2bf20
mov rcx, qword [r14 + 0xc8]
call fcn.140009ed8
test eax, eax
jne 0x140006385
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [r14 + 0xa4]
mov edx, eax
sub edx, ecx
cmp eax, ecx
jae 0x140006377
dec edx
cmp edx, 0x2bf20
ja 0x140006c1d
jmp 0x140006321
cmp byte [r14 + 0x21], sil
jne 0x140006c1d
lea r9, [rsp + 0x70]
lea rdx, [rsp + 0x1c0]
cmp byte [r14 + 0x6e0], sil
je 0x1400063b5
mov rcx, qword [r14 + 0x6f0]
call fcn.1400099c8
test al, al
jmp 0x1400063c3
mov rcx, qword [r14 + 0xc8]
call fcn.14000b2d0
test eax, eax
je 0x140006c1d
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x70]
lea rcx, [rsp + 0x1c0]
call fcn.140005fcc
test al, al
je 0x140006c1d
cmp byte [r14 + 0x21], sil
jne 0x140006c1d
mov r15d, dword [rsp + 0x60]
test r15d, r15d
jle 0x140006321
cmp byte [r14 + 0x21], sil
jne 0x140006c1d
test ebx, ebx
jne 0x1400066ef
mov rax, qword [rsp + 0x80]
mov cl, byte [rax + 0x6e0]
movsxd rax, r15d
mov r9d, edi
cmp rax, 4
jb 0x140006474
lea r8d, [rbx + 4]
lea rdx, [rsp + 0xa0]
test cl, cl
je 0x14000644b
mov rcx, qword [r14 + 0x6f0]
call fcn.140009604
test al, al
jmp 0x140006459
mov rcx, qword [r14 + 0xc8]
call fcn.140009f6c
test eax, eax
je 0x140006c1d
sub r15d, 4
mov dword [rsp + 0x60], r15d
mov ebx, dword [rsp + 0xa0]
jmp 0x14000665c
mov r8d, r15d
lea rdx, [rsp + 0xb0]
test cl, cl
je 0x1400064b8
mov rcx, qword [r14 + 0x6f0]
call fcn.140009604
test al, al
je 0x140006c1d
mov r9d, edi
mov r8d, 2
lea rdx, [rsp + 0x1c0]
mov rcx, qword [r14 + 0x6f0]
call fcn.140009604
test al, al
jmp 0x1400064eb
mov rcx, qword [r14 + 0xc8]
call fcn.140009f6c
test eax, eax
je 0x140006c1d
mov r9d, edi
mov r8d, 2
lea rdx, [rsp + 0x1c0]
mov rcx, qword [r14 + 0xc8]
call fcn.140009f6c
test eax, eax
je 0x140006c1d
mov ebx, 4
movsxd r12, r15d
sub ebx, r15d
test ebx, ebx
mov dword [rsp + 0x60], esi
mov r15d, esi
jle 0x14000664e
cmp byte [r14 + 0x21], sil
jne 0x140006c1d
mov r15, qword [rsp + 0x80]
lea r9, [rsp + 0x70]
lea rdx, [rsp + 0x1c0]
cmp byte [r15 + 0x6e0], sil
je 0x140006543
mov rcx, qword [r14 + 0x6f0]
call fcn.1400099c8
test al, al
jmp 0x140006551
mov rcx, qword [r14 + 0xc8]
call fcn.14000b2d0
test eax, eax
je 0x140006c1d
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x70]
lea rcx, [rsp + 0x1c0]
call fcn.140005fcc
test al, al
je 0x140006c1d
cmp byte [r14 + 0x21], sil
jne 0x140006c1d
mov al, byte [r15 + 0x6e0]
mov rcx, r12
mov r15d, dword [rsp + 0x60]
lea rdx, [rsp + 0xb0]
add rdx, rcx
mov r9d, edi
cmp r15d, ebx
jge 0x14000661b
mov r8d, r15d
test al, al
je 0x1400065dd
mov rcx, qword [r14 + 0x6f0]
call fcn.140009604
test al, al
je 0x140006c1d
mov r9d, edi
mov r8d, 2
lea rdx, [rsp + 0x1c0]
mov rcx, qword [r14 + 0x6f0]
call fcn.140009604
test al, al
jmp 0x140006610
mov rcx, qword [r14 + 0xc8]
call fcn.140009f6c
test eax, eax
je 0x140006c1d
mov r9d, edi
mov r8d, 2
lea rdx, [rsp + 0x1c0]
mov rcx, qword [r14 + 0xc8]
call fcn.140009f6c
test eax, eax
je 0x140006c1d
jmp 0x1400064f9
mov r8d, ebx
test al, al
je 0x140006632
mov rcx, qword [r14 + 0x6f0]
call fcn.140009604
test al, al
jmp 0x140006640
mov rcx, qword [r14 + 0xc8]
call fcn.140009f6c
test eax, eax
je 0x140006c1d
sub r15d, ebx
mov dword [rsp + 0x60], r15d
mov ebx, dword [rsp + 0xb0]
mov dword [rsp + 0xa0], ebx
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x6c], ebx
lea eax, [rbx - 1]
cmp eax, 0x63fffff
ja 0x140006c1d
lea eax, [rbx + 0xf]
and eax, 0xfffffff0
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x1400066ef
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x64], eax
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [rsp + 0xa0]
add ecx, 0xf
and ecx, 0xfffffff0
movsxd rcx, ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x64]
cmp eax, 0x7530
ja 0x1400066e6
cmp byte [r14 + 0x21], sil
jne 0x140006c1d
test r12, r12
je 0x140006698
mov rax, r12
jmp 0x1400066fc
test r12, r12
je 0x140006c1d
mov rax, r12
cmp byte [r14 + 0x21], sil
jne 0x140006c1d
cmp r15d, ebx
jl 0x14000674c
movsxd rdx, dword [rsp + 0x74]
add rdx, rax
mov r9d, edi
mov r8d, ebx
cmp byte [r14 + 0x6e0], sil
je 0x140006728
mov rcx, qword [r14 + 0x6f0]
call fcn.140009604
test al, al
jmp 0x140006736
mov rcx, qword [r14 + 0xc8]
call fcn.140009f6c
test eax, eax
je 0x140006c1d
sub r15d, ebx
mov dword [rsp + 0x60], r15d
mov ebx, esi
mov dword [rsp + 0x74], esi
jmp 0x14000679b
test r15d, r15d
jle 0x1400067a3
movsxd rdx, dword [rsp + 0x74]
add rdx, rax
mov r9d, edi
mov r8d, r15d
cmp byte [r14 + 0x6e0], sil
je 0x140006778
mov rcx, qword [r14 + 0x6f0]
call fcn.140009604
test al, al
jmp 0x140006786
mov rcx, qword [r14 + 0xc8]
call fcn.140009f6c
test eax, eax
je 0x140006c1d
sub ebx, r15d
add dword [rsp + 0x74], r15d
mov r15d, esi
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x6c], ebx
mov dword [rsp + 0x68], ebx
cmp byte [r14 + 0x21], sil
jne 0x140006c14
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [r14 + 0xa0], eax
test ebx, ebx
jne 0x140006b8a
mov r8d, dword [rsp + 0xa0]
mov rdx, r12
mov rcx, r14
call fcn.140006100
test al, al
je 0x140006c14
movsxd rdx, dword [rsp + 0xa0]
cmp rdx, 4
jb 0x140006c14
mov r8d, dword [r12]
mov dword [rsp + 0x64], r8d
lea eax, [rdx - 4]
test r8d, r8d
jne 0x140006aa1
cmp eax, 4
jb 0x140006c14
mov edx, dword [r12 + 4]
add eax, 0xfffffffc
cmp edx, 0x19f
jne 0x1400069e8
cmp eax, 4
jb 0x140006c14
mov r11d, dword [r12 + 8]
add eax, 0xfffffffc
cmp eax, 4
jb 0x140006c14
mov eax, dword [r12 + 0xc]
mov dword [rsp + 0x64], eax
mov edi, esi
mov edx, esi
mov r8, qword [r14 + 0xa8]
mov r10d, dword [r8 + 0x3050]
test r10d, r10d
jle 0x14000696a
test edx, edx
js 0x140006878
cmp edx, r10d
jge 0x140006878
movsxd rcx, edx
mov rax, qword [r8 + 0x3048]
lea r9, [rax + rcx*8]
jmp 0x14000687f
lea r9, [0x140017820]
mov rbx, qword [r9]
cmp dword [rbx], r11d
je 0x140006893
inc edx
cmp edx, r10d
jl 0x14000685f
jmp 0x14000696a
mov dword [rsp + 0x78], 1
mov qword [rsp + 0xa8], rsi
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0xa8]
call qword [rbx + reloc.WS2_32.dll_recv]
mov eax, dword [rsp + 0xa0]
mov dword [r12], eax
mov rcx, qword [rsp + 0xa8]
mov r10, qword [rcx]
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x48], r12
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x40], eax
mov rax, qword [r14 + 0x30]
mov qword [rsp + 0x38], rax
lea rax, [0x140006078]
mov qword [rsp + 0x30], rax
lea rax, [0x140006064]
mov qword [rsp + 0x28], rax
lea rax, [0x140006050]
mov qword [rsp + 0x20], rax
lea r9, [0x14000603c]
lea r8, [0x140006028]
mov rdx, r14
call qword [r10 + 0x18]
test eax, eax
je 0x140006958
mov rbx, qword [rsp + 0xa8]
lea rcx, [r14 + 0x38]
call fcn.1400088f4
lea rcx, [r14 + 0x88]
mov rdx, rbx
call fcn.140001318
lea rcx, [r14 + 0x38]
call fcn.1400089b4
jmp 0x140006966
mov rcx, qword [rsp + 0xa8]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov edi, dword [rsp + 0x78]
test edi, edi
jne 0x140006b79
lea r9, [0x14000e8e0]
lea r8d, [rdi + 0x14]
lea rdx, str._X_s
lea rcx, [rsp + 0xc0]
call qword [sym.imp.USER32.dll_wsprintfA]
movsxd rbx, eax
mov dword [rsp + rbx + 0xc0], reloc.WS2_32.dll_recv
mov word [rsp + rbx + 0xd4], 0xa0d
lea rdx, [rsp + 0xc4]
add rdx, rbx
mov eax, dword [rsp + 0x64]
mov dword [rdx], eax
mov qword [rdx + 4], 0x1a0
lea r8d, [rdi + 0x10]
mov rcx, r14
call fcn.14000608c
lea r8d, [rbx + 0x16]
lea rdx, [rsp + 0xc0]
mov rcx, r14
call fcn.140005f6c
jmp 0x140006b70
cmp edx, 0x1ad
jne 0x140006b79
cmp eax, 4
jb 0x140006c14
mov eax, dword [r12 + 8]
mov dword [rsp + 0x64], eax
lea r12, [r14 + 0x38]
mov qword [rsp + 0xa8], r12
mov rcx, r12
call fcn.140008888
mov ebx, esi
cmp ebx, dword [r14 + 0x98]
jge 0x140006a64
test ebx, ebx
js 0x140006a41
movsxd rcx, ebx
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x90]
lea rdi, [rax + rcx*8]
jmp 0x140006a48
lea rdi, [0x140017820]
mov rdi, qword [rdi]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
cmp eax, dword [rsp + 0x64]
jne 0x140006a9a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x38]
nop
mov rcx, r12
call fcn.140008960
jmp 0x140006b79
inc ebx
jmp 0x140006a1c
mov edi, esi
mov dword [r12], edx
lea rcx, [r14 + 0x38]
mov qword [rsp + 0x98], rcx
call fcn.140008888
mov ebx, esi
cmp ebx, dword [r14 + 0x98]
jge 0x140006b5f
test ebx, ebx
js 0x140006ae3
movsxd rcx, ebx
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x90]
lea rcx, [rax + rcx*8]
jmp 0x140006aea
lea rcx, [0x140017820]
mov rcx, qword [rcx]
mov qword [rsp + 0xa8], rcx
mov rax, qword [rcx]
call qword [rax + 0x20]
cmp eax, dword [rsp + 0x64]
jne 0x140006bf7
mov edi, 1
mov dword [rsp + 0x64], edi
mov rcx, qword [rsp + 0xa8]
mov rax, qword [rcx]
mov r8d, dword [rsp + 0xa0]
mov rdx, r12
call qword [rax + 0x48]
jmp 0x140006b5f
mov rcx, qword [rsp + 0x98]
call fcn.140008960
test edi, edi
jne 0x140006b79
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r12, rsi
mov qword [rsp + 0x78], rsi
mov ebx, dword [rsp + 0x68]
mov edi, 0x13880
test r15d, r15d
jne 0x1400063f9
cmp byte [r14 + 0x21], sil
jne 0x140006c1d
mov r9d, edi
lea r8d, [r15 + 2]
lea rdx, [rsp + 0x1c0]
cmp byte [r14 + 0x6e0], sil
je 0x140006bfe
mov rcx, qword [r14 + 0x6f0]
call fcn.140009604
test al, al
je 0x140006c1d
jmp 0x1400063f6
inc ebx
jmp 0x140006aba
mov rcx, qword [r14 + 0xc8]
call fcn.140009f6c
test eax, eax
jne 0x1400063f6
jmp 0x140006c1d
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r13, r13
je 0x140006c64
cmp byte [r13 + 0x21], sil
jne 0x140006c43
mov rax, qword [r13]
mov rcx, r13
call qword [rax + reloc.WS2_32.dll_recv]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [r13 + 0x18], rax
mov byte [r13 + 0x21], 1
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x28]
mov rcx, r13
call fcn.1400015ac
mov rax, qword [r13]
mov edx, 1
mov rcx, r13
call qword [rax + 0x20]
mov rcx, r14
call fcn.140005cac
mov rcx, r14
call fcn.140005d44
cmp byte [r14 + 0x21], sil
jne 0x140006c94
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_recv]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [r14 + 0x18], rax
mov byte [r14 + 0x21], 1
mov rcx, qword [rsp + 0x5c0]
xor rcx, rsp
call fcn.14000c390
lea r11, [rsp + 0x5d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret