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

Disassembly:
sub rsp, 0x28
cmp dword [0x1803966a0], 0
je 0x18002158b
xor edx, edx
lea rcx, [0x180040df0]
call fcn.180015e80
mov eax, dword [0x180396688]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov byte [0x180393847], 0
cmp eax, 1
je 0x1800217f1
cmp qword [0x180396660], 0
je 0x1800215fc
mov rcx, qword [0x180393a70]
mov r8, qword [0x1803966a8]
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
sub rax, rdx
cmp rax, r8
jb 0x1800217d1
add rdx, r8
xor r8d, r8d
call fcn.1800341a0
test eax, eax
je 0x1800217d1
cmp byte [0x180393847], 0
jne 0x1800217d1
mov eax, dword [0x180396688]
test eax, eax
jne 0x1800217c8
cmp dword [0x1803966a0], eax
jne 0x1800217c8
cmp qword [0x180396668], 0
je 0x1800217c8
xor edi, edi
mov dword [0x180393d80], 1
mov qword [0x1803966b8], rdi
call fcn.1800303c0
test eax, eax
jne 0x180021698
mov rbx, qword [0x180388c28]
test rbx, rbx
je 0x18002168e
nop word [rax + rax]
mov rdx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov rcx, qword [0x1803966b0]
sub rax, rdx
cmp rax, rcx
jb 0x180021681
add rdx, rcx
xor r8d, r8d
mov rcx, rbx
mov edi, 1
call fcn.1800341a0
test eax, eax
je 0x1800217d1
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x180021650
test edi, edi
jne 0x180021698
mov dword [0x180393d80], 2
cmp byte [0x180393847], 0
jne 0x1800217d1
mov eax, dword [0x180396688]
test eax, eax
jne 0x1800217c8
cmp dword [0x180393d80], 2
jne 0x18002179d
mov rcx, qword [0x180393eb0]
xor edx, edx
mov r8, qword [0x1803966b0]
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.1800331f0
mov rbx, rax
test rax, rax
je 0x180021789
mov rdi, qword [rax + 0x10]
or qword [rax + 0x28], 8
mov qword [rsp + 0x38], rsi
mov rsi, qword [rax + 0x20]
mov eax, dword [0x180392710]
sub rdi, rsi
cmp eax, 4
jl 0x18002174f
mov eax, dword [0x180392708]
test al, 1
je 0x18002174f
call fcn.18000b410
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.180043dc0
mov r9, qword [rbx + 0x10]
mov ecx, 3
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x20]
call fcn.180005210
mov eax, dword [0x180396688]
mov rsi, qword [rsp + 0x38]
mov qword [0x1803966b8], rbx
test eax, eax
je 0x1800217a4
jmp 0x1800217c8
mov eax, 1
mov qword [0x1803966b8], rbx
mov dword [0x180396688], eax
jmp 0x1800217c8
mov rbx, qword [0x1803966b8]
test rbx, rbx
je 0x1800217c8
mov rdx, qword [rbx]
xor r8d, r8d
add rdx, qword [0x1803966b0]
mov rcx, rbx
call fcn.1800341a0
test eax, eax
je 0x1800217d1
mov eax, dword [0x180396688]
cmp byte [0x180393847], 0
je 0x1800217f1
mov dword [0x180396688], 1
mov byte [0x180393847], 0
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
test eax, eax
jne 0x18002183e
cmp qword [0x180396668], 0
je 0x180021814
mov rcx, qword [0x1803966b0]
mov qword [0x180396920], rcx
mov qword [0x180396928], rcx
cmp qword [0x180396660], 0
je 0x180021833
mov rax, qword [0x1803966a8]
mov qword [0x180396710], rax
mov qword [0x180396718], rax
mov qword [0x180396670], 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, [0x180030bb0]
mov r14d, dword [0x180397f30]
xor r12d, r12d
mov qword [rax - 0x28], r15
mov r15d, 1
mov dword [rax - 0x38], r15d
mov qword [0x180396658], r12
mov qword [rax - 0x30], r12
call fcn.180015e80
mov rdx, qword [0x180393a70]
mov rax, qword [0x180393a68]
mov qword [rdx], rax
cmp dword [0x180397f30], 4
jne 0x1800310d6
cmp dword [0x1803966a0], r12d
je 0x1800310d6
call fcn.18002fbe0
test eax, eax
jne 0x1800310bb
mov dword [0x180396688], r15d
mov dword [0x180397ef8], 2
call fcn.180044d60
inc qword [0x180396c98]
jmp 0x180031800
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
call fcn.1800351b0
mov rdi, qword [0x180393d20]
mov eax, dword [0x180388e08]
mov dword [0x180397f2c], eax
mov qword [0x180393f48], r12
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x180031123
nop dword [rax]
mov rcx, rbx
mov rdx, r15
mov rbx, qword [rbx]
call fcn.18006e870
test rbx, rbx
jne 0x180031110
mov qword [rdi + 0x18], r12
mov rax, qword [0x180393d00]
cmp qword [0x180392730], rax
je 0x18003113c
call fcn.18002c200
call fcn.18003f070
mov rbx, qword [0x180388c18]
test rbx, rbx
je 0x180031162
test byte [rbx + 0x28], r15b
je 0x180031162
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x180031162
test byte [rbx + 0x28], r15b
jne 0x180031153
mov rsi, r12
test rbx, rbx
je 0x18003119f
nop word [rax + rax]
mov eax, dword [rbx + 0x28]
mov rdi, qword [rbx + 0x30]
bt rax, 8
jae 0x180031194
call fcn.1800194f0
movzx edx, al
mov rcx, rbx
call fcn.18002d770
mov qword [rsi + 0x30], rdi
jmp 0x180031197
mov rsi, rbx
mov rbx, rdi
test rdi, rdi
jne 0x180031170
mov rbx, qword [0x180388d28]
test rbx, rbx
je 0x1800311c0
test byte [rbx + 0x28], r15b
je 0x1800311c0
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x1800311c0
test byte [rbx + 0x28], r15b
jne 0x1800311b1
mov rsi, r12
test rbx, rbx
je 0x1800311ff
nop dword [rax + rax]
mov eax, dword [rbx + 0x28]
mov rdi, qword [rbx + 0x30]
bt rax, 8
jae 0x1800311f4
call fcn.1800194f0
movzx edx, al
mov rcx, rbx
call fcn.18002d770
mov qword [rsi + 0x30], rdi
jmp 0x1800311f7
mov rsi, rbx
mov rbx, rdi
test rdi, rdi
jne 0x1800311d0
mov eax, dword [0x1803976d8]
test eax, eax
jne 0x18003120e
call fcn.18003ee90
xor r9d, r9d
lea r8, [0x180396cb0]
lea rdx, [0x1803970a0]
mov ecx, ebp
call fcn.1800325a0
mov ecx, dword [0x1803970a0]
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], ecx
mov r8d, eax
mov ecx, dword [0x180396cb0]
mov edx, ebp
mov dword [0x180397ef8], eax
call fcn.180036760
cmp dword [0x180392304], 4
mov dword [0x180397ef8], eax
jb 0x180031277
movsxd r9, eax
lea r8, str.condemned_generation_num:__d_n
mov edx, r15d
mov ecx, 0xd
call fcn.180012260
mov eax, dword [0x180397ef8]
cmp qword [0x180396670], r12
mov ecx, dword [0x180397f2c]
je 0x1800312a3
inc qword [0x180396678]
cmp ecx, 0x11
ja 0x1800312a3
mov edx, 0x22e86
bt edx, ecx
jae 0x1800312a3
inc qword [0x180396680]
cmp eax, r15d
jle 0x1800312af
mov dword [0x180397efc], r15d
cmp ecx, r15d
mov ecx, eax
sete dl
call fcn.180005210
mov ecx, dword [0x180397ef8]
cmp ecx, 2
jne 0x18003132f
cmp dword [rsp + 0x68], r12d
jne 0x18003132f
cmp byte [0x180393844], r12b
je 0x18003132f
cmp byte [0x180393845], r12b
jne 0x18003132f
mov eax, dword [0x180397f30]
dec eax
test eax, 0xfffffffd
jne 0x18003132f
mov eax, r15d
mov dword [0x1803944cc], r15d
xchg dword [0x180397f0c], eax
movups xmm0, xmmword [0x180393d98]
mov ecx, dword [0x180397ef8]
movups xmm1, xmmword [0x180393da8]
movups xmmword [0x1803942b0], xmm0
movups xmm0, xmmword [0x180393db8]
movups xmmword [0x1803942c0], xmm1
movups xmmword [0x1803942d0], xmm0
mov edx, dword [0x180396768]
inc edx
mov qword [0x180397ef0], rdx
mov edx, 2
call fcn.18000b720
call fcn.18002edb0
lea rcx, str.BEGIN
call fcn.18002d9d0
call fcn.1800194b0
test r15b, al
je 0x180031374
call fcn.1800194b0
test al, 0x40
jne 0x180031374
mov ecx, r15d
call fcn.180045160
call fcn.1800194b0
cmp dword [0x180397f0c], r12d
je 0x1800317c9
movaps xmm0, xmmword [0x180397ef0]
lea rcx, [0x1803944d8]
movaps xmmword [0x1803979c0], xmm0
movaps xmm0, xmmword [0x180397f10]
movaps xmmword [0x1803979e0], xmm0
movaps xmm0, xmmword [0x180397f30]
mov dword [0x180397f00], r12d
movaps xmm1, xmmword [0x180397f00]
movaps xmmword [0x1803979d0], xmm1
movaps xmm1, xmmword [0x180397f20]
movaps xmmword [0x180397a00], xmm0
movsd xmm0, qword [0x180397f50]
movaps xmmword [0x1803979f0], xmm1
movaps xmm1, xmmword [0x180397f40]
movsd qword [0x180397a20], xmm0
movaps xmmword [0x180397a10], xmm1
call sub.KERNEL32.dll_EnterCriticalSection
cmp dword [0x1803944c8], r12d
jne 0x180031467
cmp qword [0x1803944d0], r12
jne 0x180031467
lea r9, str..NET_BGC
movzx r8d, r15b
xor edx, edx
lea rcx, [0x1800280a0]
call fcn.18000b0d0
movzx eax, al
mov dword [0x1803944c8], eax
test eax, eax
je 0x180031467
lea rcx, [0x1803944d8]
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [0x180392710]
cmp eax, 4
jl 0x180031473
mov eax, dword [0x180392708]
test r15b, al
je 0x180031473
call fcn.18000b410
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x38]
jmp 0x180031473
lea rcx, [0x1803944d8]
call sub.KERNEL32.dll_LeaveCriticalSection
cmp qword [0x1803944d0], r12
mov dword [0x180394504], r15d
mov dword [0x180394500], r12d
je 0x18003166b
lea rdi, [0x180388b08]
lea rsi, [0x180388e38]
nop dword [rax]
mov rbx, qword [rdi]
test rbx, rbx
je 0x1800315a0
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r15b
jne 0x1800314d8
nop word [rax + rax]
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x1800315a0
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r15b
je 0x1800314c0
test rbx, rbx
je 0x1800315a0
mov rax, qword [rbx + 0x28]
test al, 0x40
jne 0x180031593
test r15b, al
je 0x180031563
mov rcx, qword [rbx + 0x20]
lea rdx, [rbx + 0x10]
mov rax, qword [0x180393ed0]
mov r8, qword [0x180393ed8]
cmp rcx, rax
jb 0x180031538
mov r9, qword [rdx]
cmp r9, r8
ja 0x180031533
mov r8, qword [0x180393d10]
mov rdx, r9
call fcn.18002aa60
test eax, eax
je 0x18003166b
or qword [rbx + 0x28], 0x40
jmp 0x180031593
cmp rax, rcx
jbe 0x18003153b
mov rcx, rax
mov rdx, qword [rdx]
cmp r8, rdx
cmovb rdx, r8
mov r8, qword [0x180393d10]
call fcn.18002aa60
test eax, eax
je 0x18003166b
or qword [rbx + 0x28], 0x80
jmp 0x180031593
mov r8, qword [0x180393d10]
mov rcx, rbx
mov rdx, qword [rbx + 0x10]
call fcn.18002aa60
test eax, eax
je 0x18003166b
mov rax, qword [rbx + 0x28]
test al, al
jns 0x18003158b
btr rax, 7
or rax, 0x40
mov qword [rbx + 0x28], rax
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x1800314e1
add rdi, 0x110
cmp rdi, rsi
jl 0x1800314a0
mov rax, qword [0x180393ed0]
mov ebx, 0xffffffff
cmp dword [0x180397f2c], 5
mov qword [0x1803965e8], rax
mov rax, qword [0x180393ed8]
cmove ebx, r15d
mov qword [0x1803965f0], rax
mov dword [0x180394504], r15d
mov dword [0x1803978b8], r15d
je 0x180031612
mov ecx, r12d
lea rdx, [0x180396710]
cmp qword [rdx], r12
jg 0x180031612
cmp ebx, ecx
mov eax, ecx
cmovg eax, ebx
inc ecx
add rdx, 0xb0
mov ebx, eax
cmp ecx, 2
jl 0x1800315f6
mov dword [0x180393a64], r15d
cmp ebx, 0xffffffff
jne 0x18003162b
xorps xmm0, xmm0
movdqa xmmword [0x1803888b0], xmm0
jmp 0x18003165b
lea rcx, [0x180397ef0]
mov dword [0x180394500], r15d
call fcn.180035150
mov rax, qword [0x180396768]
add rax, 2
mov dword [0x180397ef8], ebx
mov qword [0x180397ef0], rax
call fcn.18002edb0
cmp dword [0x180394500], r12d
jne 0x180031682
call fcn.18002e310
jmp 0x180031682
mov eax, r12d
mov dword [0x180394504], r12d
mov dword [0x180397f00], r15d
xchg dword [0x180397f0c], eax
cmp dword [0x180394504], r12d
je 0x1800317c9
lea rcx, [0x1803942e0]
mov edx, 3
lea rax, [0x180396a80]
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 0x1800316a2
cmp dword [0x180394500], 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 0x1800317ce
mov dword [0x180393d50], r12d
mov dword [0x180393d54], 0x8000
mov dword [0x180396c48], r12d
mov dword [0x180396c4c], 0x8000
call fcn.180031830
movaps xmm0, xmmword [0x1803979c0]
movaps xmm1, xmmword [0x1803979d0]
movaps xmmword [0x180397ef0], xmm0
movaps xmm0, xmmword [0x1803979e0]
movaps xmmword [0x180397f10], xmm0
movaps xmm0, xmmword [0x180397a00]
movaps xmmword [0x180397f00], xmm1
movaps xmm1, xmmword [0x1803979f0]
movaps xmmword [0x180397f30], xmm0
movsd xmm0, qword [0x180397a20]
movaps xmmword [0x180397f20], xmm1
movaps xmm1, xmmword [0x180397a10]
movsd qword [0x180397f50], xmm0
movaps xmmword [0x180397f40], xmm1
call fcn.18002e310
jmp 0x1800317ce
call fcn.180031830
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 [0x180393d88], rax
mov rax, qword [0x180396710]
mov qword [0x180393d90], rax
mov qword [0x180393d30], 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 0x180031823
add rsp, 0x58
jmp 0x180021570
add rsp, 0x58
ret