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

Disassembly:
sub rsp, 0x28
cmp dword [0x18031b3e0], 0
je 0x180020abb
xor edx, edx
lea rcx, [0x1800401f0]
call fcn.180015430
mov eax, dword [0x18031b3c8]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov byte [0x180318587], 0
cmp eax, 1
je 0x180020d21
cmp qword [0x18031b3a0], 0
je 0x180020b2c
mov rcx, qword [0x1803187b0]
mov r8, qword [0x18031b3e8]
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
sub rax, rdx
cmp rax, r8
jb 0x180020d01
add rdx, r8
xor r8d, r8d
call fcn.1800337f0
test eax, eax
je 0x180020d01
cmp byte [0x180318587], 0
jne 0x180020d01
mov eax, dword [0x18031b3c8]
test eax, eax
jne 0x180020cf8
cmp dword [0x18031b3e0], eax
jne 0x180020cf8
cmp qword [0x18031b3a8], 0
je 0x180020cf8
xor edi, edi
mov dword [0x180318ac0], 1
mov qword [0x18031b3f8], rdi
call fcn.18002fa30
test eax, eax
jne 0x180020bc8
mov rbx, qword [0x18030ee48]
test rbx, rbx
je 0x180020bbe
nop word [rax + rax]
mov rdx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov rcx, qword [0x18031b3f0]
sub rax, rdx
cmp rax, rcx
jb 0x180020bb1
add rdx, rcx
xor r8d, r8d
mov rcx, rbx
mov edi, 1
call fcn.1800337f0
test eax, eax
je 0x180020d01
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x180020b80
test edi, edi
jne 0x180020bc8
mov dword [0x180318ac0], 2
cmp byte [0x180318587], 0
jne 0x180020d01
mov eax, dword [0x18031b3c8]
test eax, eax
jne 0x180020cf8
cmp dword [0x180318ac0], 2
jne 0x180020ccd
mov rcx, qword [0x180318bf0]
xor edx, edx
mov r8, qword [0x18031b3f0]
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.180032840
mov rbx, rax
test rax, rax
je 0x180020cb9
mov rdi, qword [rax + 0x10]
or qword [rax + 0x28], 8
mov qword [rsp + 0x38], rsi
mov rsi, qword [rax + 0x20]
mov eax, dword [0x180317450]
sub rdi, rsi
cmp eax, 4
jl 0x180020c7f
mov eax, dword [0x180317448]
test al, 1
je 0x180020c7f
call fcn.18000a9b0
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.180043180
mov r9, qword [rbx + 0x10]
mov ecx, 3
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x20]
call fcn.180006710
mov eax, dword [0x18031b3c8]
mov rsi, qword [rsp + 0x38]
mov qword [0x18031b3f8], rbx
test eax, eax
je 0x180020cd4
jmp 0x180020cf8
mov eax, 1
mov qword [0x18031b3f8], rbx
mov dword [0x18031b3c8], eax
jmp 0x180020cf8
mov rbx, qword [0x18031b3f8]
test rbx, rbx
je 0x180020cf8
mov rdx, qword [rbx]
xor r8d, r8d
add rdx, qword [0x18031b3f0]
mov rcx, rbx
call fcn.1800337f0
test eax, eax
je 0x180020d01
mov eax, dword [0x18031b3c8]
cmp byte [0x180318587], 0
je 0x180020d21
mov dword [0x18031b3c8], 1
mov byte [0x180318587], 0
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
test eax, eax
jne 0x180020d6e
cmp qword [0x18031b3a8], 0
je 0x180020d44
mov rcx, qword [0x18031b3f0]
mov qword [0x18031b660], rcx
mov qword [0x18031b668], rcx
cmp qword [0x18031b3a0], 0
je 0x180020d63
mov rax, qword [0x18031b3e8]
mov qword [0x18031b450], rax
mov qword [0x18031b458], rax
mov qword [0x18031b3b0], 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, [0x180030230]
mov r14d, dword [0x18031cc70]
xor r12d, r12d
mov qword [rax - 0x28], r15
mov r15d, 1
mov dword [rax - 0x38], r15d
mov qword [0x18031b398], r12
mov qword [rax - 0x30], r12
call fcn.180015430
mov rdx, qword [0x1803187b0]
mov rax, qword [0x1803187a8]
mov qword [rdx], rax
cmp dword [0x18031cc70], 4
jne 0x180030756
cmp dword [0x18031b3e0], r12d
je 0x180030756
call fcn.18002f250
test eax, eax
jne 0x18003073b
mov dword [0x18031b3c8], r15d
mov dword [0x18031cc38], 2
call fcn.180044140
inc qword [0x18031b9d8]
jmp 0x180030e7e
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
call fcn.180034800
mov rdi, qword [0x180318a60]
mov eax, dword [0x18030f028]
mov dword [0x18031cc6c], eax
mov qword [0x180318c88], r12
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x1800307a3
nop dword [rax]
mov rcx, rbx
mov rdx, r15
mov rbx, qword [rbx]
call fcn.18006dc4c
test rbx, rbx
jne 0x180030790
mov qword [rdi + 0x18], r12
mov rax, qword [0x180318a40]
cmp qword [0x180317470], rax
je 0x1800307bc
call fcn.18002b7f0
call fcn.18003e550
mov rbx, qword [0x18030ee38]
test rbx, rbx
je 0x1800307e2
test byte [rbx + 0x28], r15b
je 0x1800307e2
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x1800307e2
test byte [rbx + 0x28], r15b
jne 0x1800307d3
mov rsi, r12
test rbx, rbx
je 0x18003081f
nop word [rax + rax]
mov eax, dword [rbx + 0x28]
mov rdi, qword [rbx + 0x30]
bt rax, 8
jae 0x180030814
call fcn.180018aa0
movzx edx, al
mov rcx, rbx
call fcn.18002cde0
mov qword [rsi + 0x30], rdi
jmp 0x180030817
mov rsi, rbx
mov rbx, rdi
test rdi, rdi
jne 0x1800307f0
mov rbx, qword [0x18030ef48]
test rbx, rbx
je 0x180030840
test byte [rbx + 0x28], r15b
je 0x180030840
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x180030840
test byte [rbx + 0x28], r15b
jne 0x180030831
mov rsi, r12
test rbx, rbx
je 0x18003087f
nop dword [rax + rax]
mov eax, dword [rbx + 0x28]
mov rdi, qword [rbx + 0x30]
bt rax, 8
jae 0x180030874
call fcn.180018aa0
movzx edx, al
mov rcx, rbx
call fcn.18002cde0
mov qword [rsi + 0x30], rdi
jmp 0x180030877
mov rsi, rbx
mov rbx, rdi
test rdi, rdi
jne 0x180030850
mov eax, dword [0x18031c418]
test eax, eax
jne 0x18003088e
call fcn.18003e370
xor r9d, r9d
lea r8, [0x18031b9f0]
lea rdx, [0x18031bde0]
mov ecx, ebp
call fcn.180031c30
mov ecx, dword [0x18031bde0]
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], ecx
mov r8d, eax
mov ecx, dword [0x18031b9f0]
mov edx, ebp
mov dword [0x18031cc38], eax
call fcn.180035da0
cmp dword [0x1803170c4], 4
mov dword [0x18031cc38], eax
jb 0x1800308f7
movsxd r9, eax
lea r8, str.condemned_generation_num:__d_n
mov edx, r15d
mov ecx, 0xd
call fcn.180012e20
mov eax, dword [0x18031cc38]
cmp qword [0x18031b3b0], r12
mov ecx, dword [0x18031cc6c]
je 0x180030923
inc qword [0x18031b3b8]
cmp ecx, 0x11
ja 0x180030923
mov edx, 0x22e86
bt edx, ecx
jae 0x180030923
inc qword [0x18031b3c0]
cmp eax, r15d
jle 0x18003092f
mov dword [0x18031cc3c], r15d
cmp ecx, r15d
mov ecx, eax
sete dl
call fcn.180006710
mov ecx, dword [0x18031cc38]
cmp ecx, 2
jne 0x1800309af
cmp dword [rsp + 0x68], r12d
jne 0x1800309af
cmp byte [0x180318584], r12b
je 0x1800309af
cmp byte [0x180318585], r12b
jne 0x1800309af
mov eax, dword [0x18031cc70]
dec eax
test eax, 0xfffffffd
jne 0x1800309af
mov eax, r15d
mov dword [0x18031920c], r15d
xchg dword [0x18031cc4c], eax
movups xmm0, xmmword [0x180318ad8]
mov ecx, dword [0x18031cc38]
movups xmm1, xmmword [0x180318ae8]
movups xmmword [0x180318ff0], xmm0
movups xmm0, xmmword [0x180318af8]
movups xmmword [0x180319000], xmm1
movups xmmword [0x180319010], xmm0
mov edx, dword [0x18031b4a8]
inc edx
mov qword [0x18031cc30], rdx
mov edx, 2
call fcn.18000acc0
call fcn.18002e420
lea rcx, str.BEGIN
call fcn.18002d040
call fcn.180018a60
test r15b, al
je 0x1800309f4
call fcn.180018a60
test al, 0x40
jne 0x1800309f4
mov ecx, r15d
call fcn.180044470
call fcn.180018a60
cmp dword [0x18031cc4c], r12d
je 0x180030e47
movaps xmm0, xmmword [0x18031cc30]
lea rcx, [0x180319218]
movaps xmmword [0x18031c700], xmm0
movaps xmm0, xmmword [0x18031cc50]
movaps xmmword [0x18031c720], xmm0
movaps xmm0, xmmword [0x18031cc70]
mov dword [0x18031cc40], r12d
movaps xmm1, xmmword [0x18031cc40]
movaps xmmword [0x18031c710], xmm1
movaps xmm1, xmmword [0x18031cc60]
movaps xmmword [0x18031c740], xmm0
movsd xmm0, qword [0x18031cc90]
movaps xmmword [0x18031c730], xmm1
movaps xmm1, xmmword [0x18031cc80]
movsd qword [0x18031c760], xmm0
movaps xmmword [0x18031c750], xmm1
call sub.KERNEL32.dll_EnterCriticalSection
cmp dword [0x180319208], r12d
jne 0x180030ae7
cmp qword [0x180319210], r12
jne 0x180030ae7
lea r9, str..NET_BGC
movzx r8d, r15b
xor edx, edx
lea rcx, [0x1800275a0]
call fcn.18000a670
movzx eax, al
mov dword [0x180319208], eax
test eax, eax
je 0x180030ae7
lea rcx, [0x180319218]
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [0x180317450]
cmp eax, 4
jl 0x180030af3
mov eax, dword [0x180317448]
test r15b, al
je 0x180030af3
call fcn.18000a9b0
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x38]
jmp 0x180030af3
lea rcx, [0x180319218]
call sub.KERNEL32.dll_LeaveCriticalSection
cmp qword [0x180319210], r12
mov dword [0x180319244], r15d
mov dword [0x180319240], r12d
je 0x180030ce6
lea rdi, [0x18030ed28]
lea rsi, [0x18030f058]
nop dword [rax]
mov rbx, qword [rdi]
test rbx, rbx
je 0x180030c1b
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r15b
jne 0x180030b58
nop word [rax + rax]
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x180030c1b
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r15b
je 0x180030b40
test rbx, rbx
je 0x180030c1b
mov rax, qword [rbx + 0x28]
test al, 0x40
jne 0x180030c0e
test r15b, al
je 0x180030bde
mov rcx, qword [rbx + 0x20]
mov rax, qword [0x180318c10]
mov r8, qword [0x180318c18]
cmp rcx, rax
jb 0x180030bb2
mov rdx, qword [rbx + 0x10]
cmp rdx, r8
ja 0x180030bad
mov r8, qword [0x180318a50]
call fcn.18002a040
test eax, eax
je 0x180030ce6
or qword [rbx + 0x28], 0x40
jmp 0x180030c0e
cmp rax, rcx
jbe 0x180030bb5
mov rcx, rax
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
cmovb rdx, r8
mov r8, qword [0x180318a50]
call fcn.18002a040
test eax, eax
je 0x180030ce6
or qword [rbx + 0x28], 0x80
jmp 0x180030c0e
mov r8, qword [0x180318a50]
mov rcx, rbx
mov rdx, qword [rbx + 0x10]
call fcn.18002a040
test eax, eax
je 0x180030ce6
mov rax, qword [rbx + 0x28]
test al, al
jns 0x180030c06
btr rax, 7
or rax, 0x40
mov qword [rbx + 0x28], rax
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x180030b61
add rdi, 0x110
cmp rdi, rsi
jl 0x180030b20
mov rax, qword [0x180318c10]
mov ebx, 0xffffffff
cmp dword [0x18031cc6c], 5
mov qword [0x18031b328], rax
mov rax, qword [0x180318c18]
cmove ebx, r15d
mov qword [0x18031b330], rax
mov dword [0x180319244], r15d
mov dword [0x18031c5f8], r15d
je 0x180030c8d
mov ecx, r12d
lea rdx, [0x18031b450]
cmp qword [rdx], r12
jg 0x180030c8d
cmp ebx, ecx
mov eax, ecx
cmovg eax, ebx
inc ecx
add rdx, 0xb0
mov ebx, eax
cmp ecx, 2
jl 0x180030c71
mov dword [0x1803187a4], r15d
cmp ebx, 0xffffffff
jne 0x180030ca6
xorps xmm0, xmm0
movdqa xmmword [0x18030ead0], xmm0
jmp 0x180030cd6
lea rcx, [0x18031cc30]
mov dword [0x180319240], r15d
call fcn.1800347a0
mov rax, qword [0x18031b4a8]
add rax, 2
mov dword [0x18031cc38], ebx
mov qword [0x18031cc30], rax
call fcn.18002e420
cmp dword [0x180319240], r12d
jne 0x180030cfd
call fcn.18002d980
jmp 0x180030cfd
mov eax, r12d
mov dword [0x180319244], r12d
mov dword [0x18031cc40], r15d
xchg dword [0x18031cc4c], eax
cmp dword [0x180319244], r12d
je 0x180030e47
lea rcx, [0x180319020]
mov edx, 3
lea rax, [0x18031b7c0]
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 0x180030d20
cmp dword [0x180319240], 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 0x180030e4c
mov dword [0x180318a90], r12d
mov dword [0x180318a94], 0x8000
mov dword [0x18031b988], r12d
mov dword [0x18031b98c], 0x8000
call fcn.180030eb0
movaps xmm0, xmmword [0x18031c700]
movaps xmm1, xmmword [0x18031c710]
movaps xmmword [0x18031cc30], xmm0
movaps xmm0, xmmword [0x18031c720]
movaps xmmword [0x18031cc50], xmm0
movaps xmm0, xmmword [0x18031c740]
movaps xmmword [0x18031cc40], xmm1
movaps xmm1, xmmword [0x18031c730]
movaps xmmword [0x18031cc70], xmm0
movsd xmm0, qword [0x18031c760]
movaps xmmword [0x18031cc60], xmm1
movaps xmm1, xmmword [0x18031c750]
movsd qword [0x18031cc90], xmm0
movaps xmmword [0x18031cc80], xmm1
call fcn.18002d980
jmp 0x180030e4c
call fcn.180030eb0
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 [0x180318ac8], rax
mov rax, qword [0x18031b450]
mov qword [0x180318ad0], rax
mov qword [0x180318a70], 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 0x180030ea1
add rsp, 0x58
jmp 0x180020aa0
add rsp, 0x58
ret