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

Disassembly:
sub rsp, 0x28
cmp dword [0x180399ad0], 0
je 0x18002160b
xor edx, edx
lea rcx, [0x180040e70]
call fcn.180015f00
mov eax, dword [0x180399ab8]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov byte [0x180396c77], 0
cmp eax, 1
je 0x180021871
cmp qword [0x180399a90], 0
je 0x18002167c
mov rcx, qword [0x180396ea0]
mov r8, qword [0x180399ad8]
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
sub rax, rdx
cmp rax, r8
jb 0x180021851
add rdx, r8
xor r8d, r8d
call fcn.180034220
test eax, eax
je 0x180021851
cmp byte [0x180396c77], 0
jne 0x180021851
mov eax, dword [0x180399ab8]
test eax, eax
jne 0x180021848
cmp dword [0x180399ad0], eax
jne 0x180021848
cmp qword [0x180399a98], 0
je 0x180021848
xor edi, edi
mov dword [0x1803971b0], 1
mov qword [0x180399ae8], rdi
call fcn.180030440
test eax, eax
jne 0x180021718
mov rbx, qword [0x18038bfa8]
test rbx, rbx
je 0x18002170e
nop word [rax + rax]
mov rdx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov rcx, qword [0x180399ae0]
sub rax, rdx
cmp rax, rcx
jb 0x180021701
add rdx, rcx
xor r8d, r8d
mov rcx, rbx
mov edi, 1
call fcn.180034220
test eax, eax
je 0x180021851
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x1800216d0
test edi, edi
jne 0x180021718
mov dword [0x1803971b0], 2
cmp byte [0x180396c77], 0
jne 0x180021851
mov eax, dword [0x180399ab8]
test eax, eax
jne 0x180021848
cmp dword [0x1803971b0], 2
jne 0x18002181d
mov rcx, qword [0x1803972e0]
xor edx, edx
mov r8, qword [0x180399ae0]
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.180033270
mov rbx, rax
test rax, rax
je 0x180021809
mov rdi, qword [rax + 0x10]
or qword [rax + 0x28], 8
mov qword [rsp + 0x38], rsi
mov rsi, qword [rax + 0x20]
mov eax, dword [0x180395b40]
sub rdi, rsi
cmp eax, 4
jl 0x1800217cf
mov eax, dword [0x180395b38]
test al, 1
je 0x1800217cf
call fcn.18000b430
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.180043e40
mov r9, qword [rbx + 0x10]
mov ecx, 3
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x20]
call fcn.180005230
mov eax, dword [0x180399ab8]
mov rsi, qword [rsp + 0x38]
mov qword [0x180399ae8], rbx
test eax, eax
je 0x180021824
jmp 0x180021848
mov eax, 1
mov qword [0x180399ae8], rbx
mov dword [0x180399ab8], eax
jmp 0x180021848
mov rbx, qword [0x180399ae8]
test rbx, rbx
je 0x180021848
mov rdx, qword [rbx]
xor r8d, r8d
add rdx, qword [0x180399ae0]
mov rcx, rbx
call fcn.180034220
test eax, eax
je 0x180021851
mov eax, dword [0x180399ab8]
cmp byte [0x180396c77], 0
je 0x180021871
mov dword [0x180399ab8], 1
mov byte [0x180396c77], 0
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
test eax, eax
jne 0x1800218be
cmp qword [0x180399a98], 0
je 0x180021894
mov rcx, qword [0x180399ae0]
mov qword [0x180399d50], rcx
mov qword [0x180399d58], rcx
cmp qword [0x180399a90], 0
je 0x1800218b3
mov rax, qword [0x180399ad8]
mov qword [0x180399b40], rax
mov qword [0x180399b48], rax
mov qword [0x180399aa0], 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, [0x180030c30]
mov r14d, dword [0x18039b360]
xor r12d, r12d
mov qword [rax - 0x28], r15
mov r15d, 1
mov dword [rax - 0x38], r15d
mov qword [0x180399a88], r12
mov qword [rax - 0x30], r12
call fcn.180015f00
mov rdx, qword [0x180396ea0]
mov rax, qword [0x180396e98]
mov qword [rdx], rax
cmp dword [0x18039b360], 4
jne 0x180031156
cmp dword [0x180399ad0], r12d
je 0x180031156
call fcn.18002fc60
test eax, eax
jne 0x18003113b
mov dword [0x180399ab8], r15d
mov dword [0x18039b328], 2
call fcn.180044de0
inc qword [0x18039a0c8]
jmp 0x180031880
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
call fcn.180035230
mov rdi, qword [0x180397150]
mov eax, dword [0x18038c188]
mov dword [0x18039b35c], eax
mov qword [0x180397378], r12
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x1800311a3
nop dword [rax]
mov rcx, rbx
mov rdx, r15
mov rbx, qword [rbx]
call fcn.18006e918
test rbx, rbx
jne 0x180031190
mov qword [rdi + 0x18], r12
mov rax, qword [0x180397130]
cmp qword [0x180395b60], rax
je 0x1800311bc
call fcn.18002c280
call fcn.18003f0f0
mov rbx, qword [0x18038bf98]
test rbx, rbx
je 0x1800311e2
test byte [rbx + 0x28], r15b
je 0x1800311e2
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x1800311e2
test byte [rbx + 0x28], r15b
jne 0x1800311d3
mov rsi, r12
test rbx, rbx
je 0x18003121f
nop word [rax + rax]
mov eax, dword [rbx + 0x28]
mov rdi, qword [rbx + 0x30]
bt rax, 8
jae 0x180031214
call fcn.180019570
movzx edx, al
mov rcx, rbx
call fcn.18002d7f0
mov qword [rsi + 0x30], rdi
jmp 0x180031217
mov rsi, rbx
mov rbx, rdi
test rdi, rdi
jne 0x1800311f0
mov rbx, qword [0x18038c0a8]
test rbx, rbx
je 0x180031240
test byte [rbx + 0x28], r15b
je 0x180031240
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x180031240
test byte [rbx + 0x28], r15b
jne 0x180031231
mov rsi, r12
test rbx, rbx
je 0x18003127f
nop dword [rax + rax]
mov eax, dword [rbx + 0x28]
mov rdi, qword [rbx + 0x30]
bt rax, 8
jae 0x180031274
call fcn.180019570
movzx edx, al
mov rcx, rbx
call fcn.18002d7f0
mov qword [rsi + 0x30], rdi
jmp 0x180031277
mov rsi, rbx
mov rbx, rdi
test rdi, rdi
jne 0x180031250
mov eax, dword [0x18039ab08]
test eax, eax
jne 0x18003128e
call fcn.18003ef10
xor r9d, r9d
lea r8, [0x18039a0e0]
lea rdx, [0x18039a4d0]
mov ecx, ebp
call fcn.180032620
mov ecx, dword [0x18039a4d0]
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], ecx
mov r8d, eax
mov ecx, dword [0x18039a0e0]
mov edx, ebp
mov dword [0x18039b328], eax
call fcn.1800367e0
cmp dword [0x180395734], 4
mov dword [0x18039b328], eax
jb 0x1800312f7
movsxd r9, eax
lea r8, str.condemned_generation_num:__d_n
mov edx, r15d
mov ecx, 0xd
call fcn.1800122e0
mov eax, dword [0x18039b328]
cmp qword [0x180399aa0], r12
mov ecx, dword [0x18039b35c]
je 0x180031323
inc qword [0x180399aa8]
cmp ecx, 0x11
ja 0x180031323
mov edx, 0x22e86
bt edx, ecx
jae 0x180031323
inc qword [0x180399ab0]
cmp eax, r15d
jle 0x18003132f
mov dword [0x18039b32c], r15d
cmp ecx, r15d
mov ecx, eax
sete dl
call fcn.180005230
mov ecx, dword [0x18039b328]
cmp ecx, 2
jne 0x1800313af
cmp dword [rsp + 0x68], r12d
jne 0x1800313af
cmp byte [0x180396c74], r12b
je 0x1800313af
cmp byte [0x180396c75], r12b
jne 0x1800313af
mov eax, dword [0x18039b360]
dec eax
test eax, 0xfffffffd
jne 0x1800313af
mov eax, r15d
mov dword [0x1803978fc], r15d
xchg dword [0x18039b33c], eax
movups xmm0, xmmword [0x1803971c8]
mov ecx, dword [0x18039b328]
movups xmm1, xmmword [0x1803971d8]
movups xmmword [0x1803976e0], xmm0
movups xmm0, xmmword [0x1803971e8]
movups xmmword [0x1803976f0], xmm1
movups xmmword [0x180397700], xmm0
mov edx, dword [0x180399b98]
inc edx
mov qword [0x18039b320], rdx
mov edx, 2
call fcn.18000b740
call fcn.18002ee30
lea rcx, str.BEGIN
call fcn.18002da50
call fcn.180019530
test r15b, al
je 0x1800313f4
call fcn.180019530
test al, 0x40
jne 0x1800313f4
mov ecx, r15d
call fcn.1800451e0
call fcn.180019530
cmp dword [0x18039b33c], r12d
je 0x180031849
movaps xmm0, xmmword [0x18039b320]
lea rcx, [0x180397908]
movaps xmmword [0x18039adf0], xmm0
movaps xmm0, xmmword [0x18039b340]
movaps xmmword [0x18039ae10], xmm0
movaps xmm0, xmmword [0x18039b360]
mov dword [0x18039b330], r12d
movaps xmm1, xmmword [0x18039b330]
movaps xmmword [0x18039ae00], xmm1
movaps xmm1, xmmword [0x18039b350]
movaps xmmword [0x18039ae30], xmm0
movsd xmm0, qword [0x18039b380]
movaps xmmword [0x18039ae20], xmm1
movaps xmm1, xmmword [0x18039b370]
movsd qword [0x18039ae50], xmm0
movaps xmmword [0x18039ae40], xmm1
call sub.KERNEL32.dll_EnterCriticalSection
cmp dword [0x1803978f8], r12d
jne 0x1800314e7
cmp qword [0x180397900], r12
jne 0x1800314e7
lea r9, str..NET_BGC
movzx r8d, r15b
xor edx, edx
lea rcx, [0x180028120]
call fcn.18000b0f0
movzx eax, al
mov dword [0x1803978f8], eax
test eax, eax
je 0x1800314e7
lea rcx, [0x180397908]
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [0x180395b40]
cmp eax, 4
jl 0x1800314f3
mov eax, dword [0x180395b38]
test r15b, al
je 0x1800314f3
call fcn.18000b430
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x38]
jmp 0x1800314f3
lea rcx, [0x180397908]
call sub.KERNEL32.dll_LeaveCriticalSection
cmp qword [0x180397900], r12
mov dword [0x180397934], r15d
mov dword [0x180397930], r12d
je 0x1800316eb
lea rdi, [0x18038be88]
lea rsi, [0x18038c1b8]
nop dword [rax]
mov rbx, qword [rdi]
test rbx, rbx
je 0x180031620
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r15b
jne 0x180031558
nop word [rax + rax]
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x180031620
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r15b
je 0x180031540
test rbx, rbx
je 0x180031620
mov rax, qword [rbx + 0x28]
test al, 0x40
jne 0x180031613
test r15b, al
je 0x1800315e3
mov rcx, qword [rbx + 0x20]
lea rdx, [rbx + 0x10]
mov rax, qword [0x180397300]
mov r8, qword [0x180397308]
cmp rcx, rax
jb 0x1800315b8
mov r9, qword [rdx]
cmp r9, r8
ja 0x1800315b3
mov r8, qword [0x180397140]
mov rdx, r9
call fcn.18002aae0
test eax, eax
je 0x1800316eb
or qword [rbx + 0x28], 0x40
jmp 0x180031613
cmp rax, rcx
jbe 0x1800315bb
mov rcx, rax
mov rdx, qword [rdx]
cmp r8, rdx
cmovb rdx, r8
mov r8, qword [0x180397140]
call fcn.18002aae0
test eax, eax
je 0x1800316eb
or qword [rbx + 0x28], 0x80
jmp 0x180031613
mov r8, qword [0x180397140]
mov rcx, rbx
mov rdx, qword [rbx + 0x10]
call fcn.18002aae0
test eax, eax
je 0x1800316eb
mov rax, qword [rbx + 0x28]
test al, al
jns 0x18003160b
btr rax, 7
or rax, 0x40
mov qword [rbx + 0x28], rax
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x180031561
add rdi, 0x110
cmp rdi, rsi
jl 0x180031520
mov rax, qword [0x180397300]
mov ebx, 0xffffffff
cmp dword [0x18039b35c], 5
mov qword [0x180399a18], rax
mov rax, qword [0x180397308]
cmove ebx, r15d
mov qword [0x180399a20], rax
mov dword [0x180397934], r15d
mov dword [0x18039ace8], r15d
je 0x180031692
mov ecx, r12d
lea rdx, [0x180399b40]
cmp qword [rdx], r12
jg 0x180031692
cmp ebx, ecx
mov eax, ecx
cmovg eax, ebx
inc ecx
add rdx, 0xb0
mov ebx, eax
cmp ecx, 2
jl 0x180031676
mov dword [0x180396e94], r15d
cmp ebx, 0xffffffff
jne 0x1800316ab
xorps xmm0, xmm0
movdqa xmmword [0x18038bc30], xmm0
jmp 0x1800316db
lea rcx, [0x18039b320]
mov dword [0x180397930], r15d
call fcn.1800351d0
mov rax, qword [0x180399b98]
add rax, 2
mov dword [0x18039b328], ebx
mov qword [0x18039b320], rax
call fcn.18002ee30
cmp dword [0x180397930], r12d
jne 0x180031702
call fcn.18002e390
jmp 0x180031702
mov eax, r12d
mov dword [0x180397934], r12d
mov dword [0x18039b330], r15d
xchg dword [0x18039b33c], eax
cmp dword [0x180397934], r12d
je 0x180031849
lea rcx, [0x180397710]
mov edx, 3
lea rax, [0x180399eb0]
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 0x180031722
cmp dword [0x180397930], 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 0x18003184e
mov dword [0x180397180], r12d
mov dword [0x180397184], 0x8000
mov dword [0x18039a078], r12d
mov dword [0x18039a07c], 0x8000
call fcn.1800318b0
movaps xmm0, xmmword [0x18039adf0]
movaps xmm1, xmmword [0x18039ae00]
movaps xmmword [0x18039b320], xmm0
movaps xmm0, xmmword [0x18039ae10]
movaps xmmword [0x18039b340], xmm0
movaps xmm0, xmmword [0x18039ae30]
movaps xmmword [0x18039b330], xmm1
movaps xmm1, xmmword [0x18039ae20]
movaps xmmword [0x18039b360], xmm0
movsd xmm0, qword [0x18039ae50]
movaps xmmword [0x18039b350], xmm1
movaps xmm1, xmmword [0x18039ae40]
movsd qword [0x18039b380], xmm0
movaps xmmword [0x18039b370], xmm1
call fcn.18002e390
jmp 0x18003184e
call fcn.1800318b0
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 [0x1803971b8], rax
mov rax, qword [0x180399b40]
mov qword [0x1803971c0], rax
mov qword [0x180397160], 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 0x1800318a3
add rsp, 0x58
jmp 0x1800215f0
add rsp, 0x58
ret