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

Disassembly:
sub rsp, 0x28
cmp dword [0x1801723f0], 0
je 0x18001f3eb
xor edx, edx
lea rcx, [0x18003eb20]
call fcn.180013d60
mov eax, dword [0x1801723d8]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov byte [0x18016f597], 0
cmp eax, 1
je 0x18001f651
cmp qword [0x1801723b0], 0
je 0x18001f45c
mov rcx, qword [0x18016f7c0]
mov r8, qword [0x1801723f8]
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
sub rax, rdx
cmp rax, r8
jb 0x18001f631
add rdx, r8
xor r8d, r8d
call fcn.180032120
test eax, eax
je 0x18001f631
cmp byte [0x18016f597], 0
jne 0x18001f631
mov eax, dword [0x1801723d8]
test eax, eax
jne 0x18001f628
cmp dword [0x1801723f0], eax
jne 0x18001f628
cmp qword [0x1801723b8], 0
je 0x18001f628
xor edi, edi
mov dword [0x18016fad0], 1
mov qword [0x180172408], rdi
call fcn.18002e360
test eax, eax
jne 0x18001f4f8
mov rbx, qword [0x1801696a8]
test rbx, rbx
je 0x18001f4ee
nop word [rax + rax]
mov rdx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov rcx, qword [0x180172400]
sub rax, rdx
cmp rax, rcx
jb 0x18001f4e1
add rdx, rcx
xor r8d, r8d
mov rcx, rbx
mov edi, 1
call fcn.180032120
test eax, eax
je 0x18001f631
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x18001f4b0
test edi, edi
jne 0x18001f4f8
mov dword [0x18016fad0], 2
cmp byte [0x18016f597], 0
jne 0x18001f631
mov eax, dword [0x1801723d8]
test eax, eax
jne 0x18001f628
cmp dword [0x18016fad0], 2
jne 0x18001f5fd
mov rcx, qword [0x18016fc00]
xor edx, edx
mov r8, qword [0x180172400]
add r8, 0x1030
add r8, rcx
mov rax, r8
div rcx
sub r8, rdx
mov edx, 1
cmp rcx, r8
cmovbe rcx, r8
add rcx, 0xfff
and rcx, 0xfffffffffffff000
call fcn.180031170
mov rbx, rax
test rax, rax
je 0x18001f5e9
mov rdi, qword [rax + 0x10]
or qword [rax + 0x28], 8
mov qword [rsp + 0x38], rsi
mov rsi, qword [rax + 0x20]
mov eax, dword [0x18016e460]
sub rdi, rsi
cmp eax, 4
jl 0x18001f5af
mov eax, dword [0x18016e458]
test al, 1
je 0x18001f5af
call fcn.180009310
mov r9d, 1
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov r10, qword [rax]
call qword [r10 + 0x28]
mov rdx, rbx
mov ecx, 3
call fcn.180041ab0
mov r9, qword [rbx + 0x10]
mov ecx, 3
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x20]
call fcn.180006040
mov eax, dword [0x1801723d8]
mov rsi, qword [rsp + 0x38]
mov qword [0x180172408], rbx
test eax, eax
je 0x18001f604
jmp 0x18001f628
mov eax, 1
mov qword [0x180172408], rbx
mov dword [0x1801723d8], eax
jmp 0x18001f628
mov rbx, qword [0x180172408]
test rbx, rbx
je 0x18001f628
mov rdx, qword [rbx]
xor r8d, r8d
add rdx, qword [0x180172400]
mov rcx, rbx
call fcn.180032120
test eax, eax
je 0x18001f631
mov eax, dword [0x1801723d8]
cmp byte [0x18016f597], 0
je 0x18001f651
mov dword [0x1801723d8], 1
mov byte [0x18016f597], 0
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
test eax, eax
jne 0x18001f69e
cmp qword [0x1801723b8], 0
je 0x18001f674
mov rcx, qword [0x180172400]
mov qword [0x180172670], rcx
mov qword [0x180172678], rcx
cmp qword [0x1801723b0], 0
je 0x18001f693
mov rax, qword [0x1801723f8]
mov qword [0x180172460], rax
mov qword [0x180172468], rax
mov qword [0x1801723c0], 1
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
mov rax, rsp
sub rsp, 0x58
mov qword [rax + 0x18], rbp
lea rdx, [rax - 0x38]
mov qword [rax - 0x18], r12
mov ebp, ecx
mov qword [rax - 0x20], r14
lea rcx, [0x18002eb60]
mov r14d, dword [0x180173c80]
xor r12d, r12d
mov qword [rax - 0x28], r15
mov r15d, 1
mov dword [rax - 0x38], r15d
mov qword [0x1801723a8], r12
mov qword [rax - 0x30], r12
call fcn.180013d60
mov rdx, qword [0x18016f7c0]
mov rax, qword [0x18016f7b8]
mov qword [rdx], rax
cmp dword [0x180173c80], 4
jne 0x18002f086
cmp dword [0x1801723f0], r12d
je 0x18002f086
call fcn.18002db80
test eax, eax
jne 0x18002f06b
mov dword [0x1801723d8], r15d
mov dword [0x180173c48], 2
call fcn.180042a70
inc qword [0x1801729e8]
jmp 0x18002f7ae
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
call fcn.180033130
mov rdi, qword [0x18016fa70]
mov eax, dword [0x180169888]
mov dword [0x180173c7c], eax
mov qword [0x18016fc98], r12
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x18002f0d3
nop dword [rax]
mov rcx, rbx
mov rdx, r15
mov rbx, qword [rbx]
call fcn.18006c388
test rbx, rbx
jne 0x18002f0c0
mov qword [rdi + 0x18], r12
mov rax, qword [0x18016fa50]
cmp qword [0x18016e480], rax
je 0x18002f0ec
call fcn.18002a120
call fcn.18003ce80
mov rbx, qword [0x180169698]
test rbx, rbx
je 0x18002f112
test byte [rbx + 0x28], r15b
je 0x18002f112
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x18002f112
test byte [rbx + 0x28], r15b
jne 0x18002f103
mov rsi, r12
test rbx, rbx
je 0x18002f14f
nop word [rax + rax]
mov eax, dword [rbx + 0x28]
mov rdi, qword [rbx + 0x30]
bt rax, 8
jae 0x18002f144
call fcn.1800173d0
movzx edx, al
mov rcx, rbx
call fcn.18002b710
mov qword [rsi + 0x30], rdi
jmp 0x18002f147
mov rsi, rbx
mov rbx, rdi
test rdi, rdi
jne 0x18002f120
mov rbx, qword [0x1801697a8]
test rbx, rbx
je 0x18002f170
test byte [rbx + 0x28], r15b
je 0x18002f170
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x18002f170
test byte [rbx + 0x28], r15b
jne 0x18002f161
mov rsi, r12
test rbx, rbx
je 0x18002f1af
nop dword [rax + rax]
mov eax, dword [rbx + 0x28]
mov rdi, qword [rbx + 0x30]
bt rax, 8
jae 0x18002f1a4
call fcn.1800173d0
movzx edx, al
mov rcx, rbx
call fcn.18002b710
mov qword [rsi + 0x30], rdi
jmp 0x18002f1a7
mov rsi, rbx
mov rbx, rdi
test rdi, rdi
jne 0x18002f180
mov eax, dword [0x180173428]
test eax, eax
jne 0x18002f1be
call fcn.18003cca0
xor r9d, r9d
lea r8, [0x180172a00]
lea rdx, [0x180172df0]
mov ecx, ebp
call fcn.180030560
mov ecx, dword [0x180172df0]
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], ecx
mov r8d, eax
mov ecx, dword [0x180172a00]
mov edx, ebp
mov dword [0x180173c48], eax
call fcn.1800346d0
cmp dword [0x18016d6e4], 4
mov dword [0x180173c48], eax
jb 0x18002f227
movsxd r9, eax
lea r8, str.condemned_generation_num:__d_n
mov edx, r15d
mov ecx, 0xd
call fcn.18000ed10
mov eax, dword [0x180173c48]
cmp qword [0x1801723c0], r12
mov ecx, dword [0x180173c7c]
je 0x18002f253
inc qword [0x1801723c8]
cmp ecx, 0x11
ja 0x18002f253
mov edx, 0x22e86
bt edx, ecx
jae 0x18002f253
inc qword [0x1801723d0]
cmp eax, r15d
jle 0x18002f25f
mov dword [0x180173c4c], r15d
cmp ecx, r15d
mov ecx, eax
sete dl
call fcn.180006040
mov ecx, dword [0x180173c48]
cmp ecx, 2
jne 0x18002f2df
cmp dword [rsp + 0x68], r12d
jne 0x18002f2df
cmp byte [0x18016f594], r12b
je 0x18002f2df
cmp byte [0x18016f595], r12b
jne 0x18002f2df
mov eax, dword [0x180173c80]
dec eax
test eax, 0xfffffffd
jne 0x18002f2df
mov eax, r15d
mov dword [0x18017021c], r15d
xchg dword [0x180173c5c], eax
movups xmm0, xmmword [0x18016fae8]
mov ecx, dword [0x180173c48]
movups xmm1, xmmword [0x18016faf8]
movups xmmword [0x180170000], xmm0
movups xmm0, xmmword [0x18016fb08]
movups xmmword [0x180170010], xmm1
movups xmmword [0x180170020], xmm0
mov edx, dword [0x1801724b8]
inc edx
mov qword [0x180173c40], rdx
mov edx, 2
call fcn.180009620
call fcn.18002cd50
lea rcx, str.BEGIN
call fcn.18002b970
call fcn.180017390
test r15b, al
je 0x18002f324
call fcn.180017390
test al, 0x40
jne 0x18002f324
mov ecx, r15d
call fcn.180042da0
call fcn.180017390
cmp dword [0x180173c5c], r12d
je 0x18002f777
movaps xmm0, xmmword [0x180173c40]
lea rcx, [0x180170228]
movaps xmmword [0x180173710], xmm0
movaps xmm0, xmmword [0x180173c60]
movaps xmmword [0x180173730], xmm0
movaps xmm0, xmmword [0x180173c80]
mov dword [0x180173c50], r12d
movaps xmm1, xmmword [0x180173c50]
movaps xmmword [0x180173720], xmm1
movaps xmm1, xmmword [0x180173c70]
movaps xmmword [0x180173750], xmm0
movsd xmm0, qword [0x180173ca0]
movaps xmmword [0x180173740], xmm1
movaps xmm1, xmmword [0x180173c90]
movsd qword [0x180173770], xmm0
movaps xmmword [0x180173760], xmm1
call sub.KERNEL32.dll_EnterCriticalSection
cmp dword [0x180170218], r12d
jne 0x18002f417
cmp qword [0x180170220], r12
jne 0x18002f417
lea r9, str..NET_BGC
movzx r8d, r15b
xor edx, edx
lea rcx, [0x180025ed0]
call fcn.180008fd0
movzx eax, al
mov dword [0x180170218], eax
test eax, eax
je 0x18002f417
lea rcx, [0x180170228]
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [0x18016e460]
cmp eax, 4
jl 0x18002f423
mov eax, dword [0x18016e458]
test r15b, al
je 0x18002f423
call fcn.180009310
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x38]
jmp 0x18002f423
lea rcx, [0x180170228]
call sub.KERNEL32.dll_LeaveCriticalSection
cmp qword [0x180170220], r12
mov dword [0x180170254], r15d
mov dword [0x180170250], r12d
je 0x18002f616
lea rdi, [0x180169588]
lea rsi, [0x1801698b8]
nop dword [rax]
mov rbx, qword [rdi]
test rbx, rbx
je 0x18002f54b
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r15b
jne 0x18002f488
nop word [rax + rax]
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x18002f54b
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r15b
je 0x18002f470
test rbx, rbx
je 0x18002f54b
mov rax, qword [rbx + 0x28]
test al, 0x40
jne 0x18002f53e
test r15b, al
je 0x18002f50e
mov rcx, qword [rbx + 0x20]
mov rax, qword [0x18016fc20]
mov r8, qword [0x18016fc28]
cmp rcx, rax
jb 0x18002f4e2
mov rdx, qword [rbx + 0x10]
cmp rdx, r8
ja 0x18002f4dd
mov r8, qword [0x18016fa60]
call fcn.180028970
test eax, eax
je 0x18002f616
or qword [rbx + 0x28], 0x40
jmp 0x18002f53e
cmp rax, rcx
jbe 0x18002f4e5
mov rcx, rax
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
cmovb rdx, r8
mov r8, qword [0x18016fa60]
call fcn.180028970
test eax, eax
je 0x18002f616
or qword [rbx + 0x28], 0x80
jmp 0x18002f53e
mov r8, qword [0x18016fa60]
mov rcx, rbx
mov rdx, qword [rbx + 0x10]
call fcn.180028970
test eax, eax
je 0x18002f616
mov rax, qword [rbx + 0x28]
test al, al
jns 0x18002f536
btr rax, 7
or rax, 0x40
mov qword [rbx + 0x28], rax
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x18002f491
add rdi, 0x110
cmp rdi, rsi
jl 0x18002f450
mov rax, qword [0x18016fc20]
mov ebx, 0xffffffff
cmp dword [0x180173c7c], 5
mov qword [0x180172338], rax
mov rax, qword [0x18016fc28]
cmove ebx, r15d
mov qword [0x180172340], rax
mov dword [0x180170254], r15d
mov dword [0x180173608], r15d
je 0x18002f5bd
mov ecx, r12d
lea rdx, [0x180172460]
cmp qword [rdx], r12
jg 0x18002f5bd
cmp ebx, ecx
mov eax, ecx
cmovg eax, ebx
inc ecx
add rdx, 0xb0
mov ebx, eax
cmp ecx, 2
jl 0x18002f5a1
mov dword [0x18016f7b4], r15d
cmp ebx, 0xffffffff
jne 0x18002f5d6
xorps xmm0, xmm0
movdqa xmmword [0x180169330], xmm0
jmp 0x18002f606
lea rcx, [0x180173c40]
mov dword [0x180170250], r15d
call fcn.1800330d0
mov rax, qword [0x1801724b8]
add rax, 2
mov dword [0x180173c48], ebx
mov qword [0x180173c40], rax
call fcn.18002cd50
cmp dword [0x180170250], r12d
jne 0x18002f62d
call fcn.18002c2b0
jmp 0x18002f62d
mov eax, r12d
mov dword [0x180170254], r12d
mov dword [0x180173c50], r15d
xchg dword [0x180173c5c], eax
cmp dword [0x180170254], r12d
je 0x18002f777
lea rcx, [0x180170030]
mov edx, 3
lea rax, [0x1801727d0]
nop dword [rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, r15
jne 0x18002f650
cmp dword [0x180170250], r12d
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
mov rax, qword [rax + 0x60]
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm1
mov qword [rcx + 0x60], rax
je 0x18002f77c
mov dword [0x18016faa0], r12d
mov dword [0x18016faa4], 0x8000
mov dword [0x180172998], r12d
mov dword [0x18017299c], 0x8000
call fcn.18002f7e0
movaps xmm0, xmmword [0x180173710]
movaps xmm1, xmmword [0x180173720]
movaps xmmword [0x180173c40], xmm0
movaps xmm0, xmmword [0x180173730]
movaps xmmword [0x180173c60], xmm0
movaps xmm0, xmmword [0x180173750]
movaps xmmword [0x180173c50], xmm1
movaps xmm1, xmmword [0x180173740]
movaps xmmword [0x180173c80], xmm0
movsd xmm0, qword [0x180173770]
movaps xmmword [0x180173c70], xmm1
movaps xmm1, xmmword [0x180173760]
movsd qword [0x180173ca0], xmm0
movaps xmmword [0x180173c90], xmm1
call fcn.18002c2b0
jmp 0x18002f77c
call fcn.18002f7e0
call sub.KERNEL32.dll_GetTickCount
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov eax, eax
mov qword [0x18016fad8], rax
mov rax, qword [0x180172460]
mov qword [0x18016fae0], rax
mov qword [0x18016fa80], rax
mov r15, qword [rsp + 0x30]
cmp r14d, 4
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x70]
jne 0x18002f7d1
add rsp, 0x58
jmp 0x18001f3d0
add rsp, 0x58
ret