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

Disassembly:
sub rsp, 0x28
cmp dword [0x1803b5910], 0
je 0x1800215fb
xor edx, edx
lea rcx, [0x180040f00]
call fcn.180015f50
mov eax, dword [0x1803b58f8]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov byte [0x1803b2ab7], 0
cmp eax, 1
je 0x180021861
cmp qword [0x1803b58d0], 0
je 0x18002166c
mov rcx, qword [0x1803b2ce0]
mov r8, qword [0x1803b5918]
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
sub rax, rdx
cmp rax, r8
jb 0x180021841
add rdx, r8
xor r8d, r8d
call fcn.180034360
test eax, eax
je 0x180021841
cmp byte [0x1803b2ab7], 0
jne 0x180021841
mov eax, dword [0x1803b58f8]
test eax, eax
jne 0x180021838
cmp dword [0x1803b5910], eax
jne 0x180021838
cmp qword [0x1803b58d8], 0
je 0x180021838
xor edi, edi
mov dword [0x1803b2ff0], 1
mov qword [0x1803b5928], rdi
call fcn.180030560
test eax, eax
jne 0x180021708
mov rbx, qword [0x1803a7e58]
test rbx, rbx
je 0x1800216fe
nop word [rax + rax]
mov rdx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov rcx, qword [0x1803b5920]
sub rax, rdx
cmp rax, rcx
jb 0x1800216f1
add rdx, rcx
xor r8d, r8d
mov rcx, rbx
mov edi, 1
call fcn.180034360
test eax, eax
je 0x180021841
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x1800216c0
test edi, edi
jne 0x180021708
mov dword [0x1803b2ff0], 2
cmp byte [0x1803b2ab7], 0
jne 0x180021841
mov eax, dword [0x1803b58f8]
test eax, eax
jne 0x180021838
cmp dword [0x1803b2ff0], 2
jne 0x18002180d
mov rcx, qword [0x1803b3120]
xor edx, edx
mov r8, qword [0x1803b5920]
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.1800333b0
mov rbx, rax
test rax, rax
je 0x1800217f9
mov rdi, qword [rax + 0x10]
or qword [rax + 0x28], 8
mov qword [rsp + 0x38], rsi
mov rsi, qword [rax + 0x20]
mov eax, dword [0x1803b1980]
sub rdi, rsi
cmp eax, 4
jl 0x1800217bf
mov eax, dword [0x1803b1978]
test al, 1
je 0x1800217bf
call fcn.18000b470
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.180043e90
mov r9, qword [rbx + 0x10]
mov ecx, 3
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x20]
call fcn.180006d30
mov eax, dword [0x1803b58f8]
mov rsi, qword [rsp + 0x38]
mov qword [0x1803b5928], rbx
test eax, eax
je 0x180021814
jmp 0x180021838
mov eax, 1
mov qword [0x1803b5928], rbx
mov dword [0x1803b58f8], eax
jmp 0x180021838
mov rbx, qword [0x1803b5928]
test rbx, rbx
je 0x180021838
mov rdx, qword [rbx]
xor r8d, r8d
add rdx, qword [0x1803b5920]
mov rcx, rbx
call fcn.180034360
test eax, eax
je 0x180021841
mov eax, dword [0x1803b58f8]
cmp byte [0x1803b2ab7], 0
je 0x180021861
mov dword [0x1803b58f8], 1
mov byte [0x1803b2ab7], 0
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
test eax, eax
jne 0x1800218ae
cmp qword [0x1803b58d8], 0
je 0x180021884
mov rcx, qword [0x1803b5920]
mov qword [0x1803b5b90], rcx
mov qword [0x1803b5b98], rcx
cmp qword [0x1803b58d0], 0
je 0x1800218a3
mov rax, qword [0x1803b5918]
mov qword [0x1803b5980], rax
mov qword [0x1803b5988], rax
mov qword [0x1803b58e0], 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, [0x180030d60]
mov r14d, dword [0x1803b71a0]
xor r12d, r12d
mov qword [rax - 0x28], r15
mov r15d, 1
mov dword [rax - 0x38], r15d
mov qword [0x1803b58c8], r12
mov qword [rax - 0x30], r12
call fcn.180015f50
mov rdx, qword [0x1803b2ce0]
mov rax, qword [0x1803b2cd8]
mov qword [rdx], rax
cmp dword [0x1803b71a0], 4
jne 0x180031286
cmp dword [0x1803b5910], r12d
je 0x180031286
call fcn.18002fd80
test eax, eax
jne 0x18003126b
mov dword [0x1803b58f8], r15d
mov dword [0x1803b7168], 2
call fcn.180044e50
inc qword [0x1803b5f08]
jmp 0x1800319ae
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
call fcn.180035370
mov rdi, qword [0x1803b2f90]
mov eax, dword [0x1803a8038]
mov dword [0x1803b719c], eax
mov qword [0x1803b31b8], r12
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x1800312d3
nop dword [rax]
mov rcx, rbx
mov rdx, r15
mov rbx, qword [rbx]
call fcn.18006e7ec
test rbx, rbx
jne 0x1800312c0
mov qword [rdi + 0x18], r12
mov rax, qword [0x1803b2f70]
cmp qword [0x1803b19a0], rax
je 0x1800312ec
call fcn.18002c320
call fcn.18003f1c0
mov rbx, qword [0x1803a7e48]
test rbx, rbx
je 0x180031312
test byte [rbx + 0x28], r15b
je 0x180031312
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x180031312
test byte [rbx + 0x28], r15b
jne 0x180031303
mov rsi, r12
test rbx, rbx
je 0x18003134f
nop word [rax + rax]
mov eax, dword [rbx + 0x28]
mov rdi, qword [rbx + 0x30]
bt rax, 8
jae 0x180031344
call fcn.1800195c0
movzx edx, al
mov rcx, rbx
call fcn.18002d910
mov qword [rsi + 0x30], rdi
jmp 0x180031347
mov rsi, rbx
mov rbx, rdi
test rdi, rdi
jne 0x180031320
mov rbx, qword [0x1803a7f58]
test rbx, rbx
je 0x180031370
test byte [rbx + 0x28], r15b
je 0x180031370
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x180031370
test byte [rbx + 0x28], r15b
jne 0x180031361
mov rsi, r12
test rbx, rbx
je 0x1800313af
nop dword [rax + rax]
mov eax, dword [rbx + 0x28]
mov rdi, qword [rbx + 0x30]
bt rax, 8
jae 0x1800313a4
call fcn.1800195c0
movzx edx, al
mov rcx, rbx
call fcn.18002d910
mov qword [rsi + 0x30], rdi
jmp 0x1800313a7
mov rsi, rbx
mov rbx, rdi
test rdi, rdi
jne 0x180031380
mov eax, dword [0x1803b6948]
test eax, eax
jne 0x1800313be
call fcn.18003efe0
xor r9d, r9d
lea r8, [0x1803b5f20]
lea rdx, [0x1803b6310]
mov ecx, ebp
call fcn.180032760
mov ecx, dword [0x1803b6310]
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], ecx
mov r8d, eax
mov ecx, dword [0x1803b5f20]
mov edx, ebp
mov dword [0x1803b7168], eax
call fcn.180036910
cmp dword [0x1803b0c04], 4
mov dword [0x1803b7168], eax
jb 0x180031427
movsxd r9, eax
lea r8, str.condemned_generation_num:__d_n
mov edx, r15d
mov ecx, 0xd
call fcn.180010d40
mov eax, dword [0x1803b7168]
cmp qword [0x1803b58e0], r12
mov ecx, dword [0x1803b719c]
je 0x180031453
inc qword [0x1803b58e8]
cmp ecx, 0x11
ja 0x180031453
mov edx, 0x22e86
bt edx, ecx
jae 0x180031453
inc qword [0x1803b58f0]
cmp eax, r15d
jle 0x18003145f
mov dword [0x1803b716c], r15d
cmp ecx, r15d
mov ecx, eax
sete dl
call fcn.180006d30
mov ecx, dword [0x1803b7168]
cmp ecx, 2
jne 0x1800314df
cmp dword [rsp + 0x68], r12d
jne 0x1800314df
cmp byte [0x1803b2ab4], r12b
je 0x1800314df
cmp byte [0x1803b2ab5], r12b
jne 0x1800314df
mov eax, dword [0x1803b71a0]
dec eax
test eax, 0xfffffffd
jne 0x1800314df
mov eax, r15d
mov dword [0x1803b373c], r15d
xchg dword [0x1803b717c], eax
movups xmm0, xmmword [0x1803b3008]
mov ecx, dword [0x1803b7168]
movups xmm1, xmmword [0x1803b3018]
movups xmmword [0x1803b3520], xmm0
movups xmm0, xmmword [0x1803b3028]
movups xmmword [0x1803b3530], xmm1
movups xmmword [0x1803b3540], xmm0
mov edx, dword [0x1803b59d8]
inc edx
mov qword [0x1803b7160], rdx
mov edx, 2
call fcn.18000b780
call fcn.18002ef50
lea rcx, str.BEGIN
call fcn.18002db70
call fcn.180019580
test r15b, al
je 0x180031524
call fcn.180019580
test al, 0x40
jne 0x180031524
mov ecx, r15d
call fcn.180045180
call fcn.180019580
cmp dword [0x1803b717c], r12d
je 0x180031977
movaps xmm0, xmmword [0x1803b7160]
lea rcx, [0x1803b3748]
movaps xmmword [0x1803b6c30], xmm0
movaps xmm0, xmmword [0x1803b7180]
movaps xmmword [0x1803b6c50], xmm0
movaps xmm0, xmmword [0x1803b71a0]
mov dword [0x1803b7170], r12d
movaps xmm1, xmmword [0x1803b7170]
movaps xmmword [0x1803b6c40], xmm1
movaps xmm1, xmmword [0x1803b7190]
movaps xmmword [0x1803b6c70], xmm0
movsd xmm0, qword [0x1803b71c0]
movaps xmmword [0x1803b6c60], xmm1
movaps xmm1, xmmword [0x1803b71b0]
movsd qword [0x1803b6c90], xmm0
movaps xmmword [0x1803b6c80], xmm1
call sub.KERNEL32.dll_EnterCriticalSection
cmp dword [0x1803b3738], r12d
jne 0x180031617
cmp qword [0x1803b3740], r12
jne 0x180031617
lea r9, str..NET_BGC
movzx r8d, r15b
xor edx, edx
lea rcx, [0x1800280d0]
call fcn.18000b130
movzx eax, al
mov dword [0x1803b3738], eax
test eax, eax
je 0x180031617
lea rcx, [0x1803b3748]
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [0x1803b1980]
cmp eax, 4
jl 0x180031623
mov eax, dword [0x1803b1978]
test r15b, al
je 0x180031623
call fcn.18000b470
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x38]
jmp 0x180031623
lea rcx, [0x1803b3748]
call sub.KERNEL32.dll_LeaveCriticalSection
cmp qword [0x1803b3740], r12
mov dword [0x1803b3774], r15d
mov dword [0x1803b3770], r12d
je 0x180031816
lea rdi, [0x1803a7d38]
lea rsi, [0x1803a8068]
nop dword [rax]
mov rbx, qword [rdi]
test rbx, rbx
je 0x18003174b
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r15b
jne 0x180031688
nop word [rax + rax]
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x18003174b
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r15b
je 0x180031670
test rbx, rbx
je 0x18003174b
mov rax, qword [rbx + 0x28]
test al, 0x40
jne 0x18003173e
test r15b, al
je 0x18003170e
mov rcx, qword [rbx + 0x20]
mov rax, qword [0x1803b3140]
mov r8, qword [0x1803b3148]
cmp rcx, rax
jb 0x1800316e2
mov rdx, qword [rbx + 0x10]
cmp rdx, r8
ja 0x1800316dd
mov r8, qword [0x1803b2f80]
call fcn.18002ab60
test eax, eax
je 0x180031816
or qword [rbx + 0x28], 0x40
jmp 0x18003173e
cmp rax, rcx
jbe 0x1800316e5
mov rcx, rax
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
cmovb rdx, r8
mov r8, qword [0x1803b2f80]
call fcn.18002ab60
test eax, eax
je 0x180031816
or qword [rbx + 0x28], 0x80
jmp 0x18003173e
mov r8, qword [0x1803b2f80]
mov rcx, rbx
mov rdx, qword [rbx + 0x10]
call fcn.18002ab60
test eax, eax
je 0x180031816
mov rax, qword [rbx + 0x28]
test al, al
jns 0x180031736
btr rax, 7
or rax, 0x40
mov qword [rbx + 0x28], rax
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x180031691
add rdi, 0x110
cmp rdi, rsi
jl 0x180031650
mov rax, qword [0x1803b3140]
mov ebx, 0xffffffff
cmp dword [0x1803b719c], 5
mov qword [0x1803b5858], rax
mov rax, qword [0x1803b3148]
cmove ebx, r15d
mov qword [0x1803b5860], rax
mov dword [0x1803b3774], r15d
mov dword [0x1803b6b28], r15d
je 0x1800317bd
mov ecx, r12d
lea rdx, [0x1803b5980]
cmp qword [rdx], r12
jg 0x1800317bd
cmp ebx, ecx
mov eax, ecx
cmovg eax, ebx
inc ecx
add rdx, 0xb0
mov ebx, eax
cmp ecx, 2
jl 0x1800317a1
mov dword [0x1803b2cd4], r15d
cmp ebx, 0xffffffff
jne 0x1800317d6
xorps xmm0, xmm0
movdqa xmmword [0x1803a7ae0], xmm0
jmp 0x180031806
lea rcx, [0x1803b7160]
mov dword [0x1803b3770], r15d
call fcn.180035310
mov rax, qword [0x1803b59d8]
add rax, 2
mov dword [0x1803b7168], ebx
mov qword [0x1803b7160], rax
call fcn.18002ef50
cmp dword [0x1803b3770], r12d
jne 0x18003182d
call fcn.18002e4b0
jmp 0x18003182d
mov eax, r12d
mov dword [0x1803b3774], r12d
mov dword [0x1803b7170], r15d
xchg dword [0x1803b717c], eax
cmp dword [0x1803b3774], r12d
je 0x180031977
lea rcx, [0x1803b3550]
mov edx, 3
lea rax, [0x1803b5cf0]
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 0x180031850
cmp dword [0x1803b3770], 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 0x18003197c
mov dword [0x1803b2fc0], r12d
mov dword [0x1803b2fc4], 0x8000
mov dword [0x1803b5eb8], r12d
mov dword [0x1803b5ebc], 0x8000
call fcn.1800319e0
movaps xmm0, xmmword [0x1803b6c30]
movaps xmm1, xmmword [0x1803b6c40]
movaps xmmword [0x1803b7160], xmm0
movaps xmm0, xmmword [0x1803b6c50]
movaps xmmword [0x1803b7180], xmm0
movaps xmm0, xmmword [0x1803b6c70]
movaps xmmword [0x1803b7170], xmm1
movaps xmm1, xmmword [0x1803b6c60]
movaps xmmword [0x1803b71a0], xmm0
movsd xmm0, qword [0x1803b6c90]
movaps xmmword [0x1803b7190], xmm1
movaps xmm1, xmmword [0x1803b6c80]
movsd qword [0x1803b71c0], xmm0
movaps xmmword [0x1803b71b0], xmm1
call fcn.18002e4b0
jmp 0x18003197c
call fcn.1800319e0
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 [0x1803b2ff8], rax
mov rax, qword [0x1803b5980]
mov qword [0x1803b3000], rax
mov qword [0x1803b2fa0], 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 0x1800319d1
add rsp, 0x58
jmp 0x1800215e0
add rsp, 0x58
ret