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

Disassembly:
sub rsp, 0x28
cmp dword [0x18037cbd0], 0
je 0x18002119b
xor edx, edx
lea rcx, [0x180040520]
call fcn.180015b00
mov eax, dword [0x18037cbb8]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov byte [0x18037aa2b], 0
cmp eax, 1
je 0x180021401
cmp qword [0x18037cb90], 0
je 0x18002120c
mov rcx, qword [0x180379fc0]
mov r8, qword [0x18037cb88]
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
sub rax, rdx
cmp rax, r8
jb 0x1800213e1
add rdx, r8
xor r8d, r8d
call fcn.180033940
test eax, eax
je 0x1800213e1
cmp byte [0x18037aa2b], 0
jne 0x1800213e1
mov eax, dword [0x18037cbb8]
test eax, eax
jne 0x1800213d8
cmp dword [0x18037cbd0], eax
jne 0x1800213d8
cmp qword [0x18037cb98], 0
je 0x1800213d8
xor edi, edi
mov dword [0x18037a264], 1
mov qword [0x18037cbe0], rdi
call fcn.18002fbc0
test eax, eax
jne 0x1800212a8
mov rbx, qword [0x18036f168]
test rbx, rbx
je 0x18002129e
nop word [rax + rax]
mov rdx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov rcx, qword [0x18037cbd8]
sub rax, rdx
cmp rax, rcx
jb 0x180021291
add rdx, rcx
xor r8d, r8d
mov rcx, rbx
mov edi, 1
call fcn.180033940
test eax, eax
je 0x1800213e1
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x180021260
test edi, edi
jne 0x1800212a8
mov dword [0x18037a264], 2
cmp byte [0x18037aa2b], 0
jne 0x1800213e1
mov eax, dword [0x18037cbb8]
test eax, eax
jne 0x1800213d8
cmp dword [0x18037a264], 2
jne 0x1800213ad
mov rcx, qword [0x18037a3e0]
xor edx, edx
mov r8, qword [0x18037cbd8]
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.180032990
mov rbx, rax
test rax, rax
je 0x180021399
mov rdi, qword [rax + 0x10]
or qword [rax + 0x28], 8
mov qword [rsp + 0x38], rsi
mov rsi, qword [rax + 0x20]
mov eax, dword [0x180378c60]
sub rdi, rsi
cmp eax, 4
jl 0x18002135f
mov eax, dword [0x180378c58]
test al, 1
je 0x18002135f
call fcn.18000b140
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.180043260
mov r9, qword [rbx + 0x10]
mov ecx, 3
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x20]
call fcn.180007260
mov eax, dword [0x18037cbb8]
mov rsi, qword [rsp + 0x38]
mov qword [0x18037cbe0], rbx
test eax, eax
je 0x1800213b4
jmp 0x1800213d8
mov eax, 1
mov qword [0x18037cbe0], rbx
mov dword [0x18037cbb8], eax
jmp 0x1800213d8
mov rbx, qword [0x18037cbe0]
test rbx, rbx
je 0x1800213d8
mov rdx, qword [rbx]
xor r8d, r8d
add rdx, qword [0x18037cbd8]
mov rcx, rbx
call fcn.180033940
test eax, eax
je 0x1800213e1
mov eax, dword [0x18037cbb8]
cmp byte [0x18037aa2b], 0
je 0x180021401
mov dword [0x18037cbb8], 1
mov byte [0x18037aa2b], 0
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
test eax, eax
jne 0x18002144e
cmp qword [0x18037cb98], 0
je 0x180021424
mov rcx, qword [0x18037cbd8]
mov qword [0x18037ce40], rcx
mov qword [0x18037ce48], rcx
cmp qword [0x18037cb90], 0
je 0x180021443
mov rax, qword [0x18037cb88]
mov qword [0x18037cc30], rax
mov qword [0x18037cc38], rax
mov qword [0x18037cba0], 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 - 0x10], r12
mov ebp, ecx
mov qword [rax - 0x18], r13
lea rcx, [0x1800303b0]
xor r12d, r12d
mov qword [rax - 0x28], r15
mov r15d, dword [0x18037e420]
mov r13d, 1
mov dword [rax - 0x38], r13d
mov qword [0x18037cb80], r12
mov qword [rax - 0x30], r12
call fcn.180015b00
mov rdx, qword [0x180379fc0]
mov rax, qword [0x180379fb8]
mov qword [rdx], rax
cmp dword [0x18037e420], 4
jne 0x1800308dd
cmp dword [0x18037cbd0], r12d
je 0x1800308dd
call fcn.18002f3d0
mov ecx, dword [0x18037cbb8]
test eax, eax
mov dword [0x18037e3e8], 2
cmove ecx, r13d
mov dword [0x18037cbb8], ecx
call fcn.180044200
inc qword [0x18037d1b8]
jmp 0x180030fd0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x38], r14
call fcn.180034930
mov rdi, qword [0x18037a250]
mov eax, dword [0x18036f348]
mov dword [0x18037e41c], eax
mov qword [0x18037a470], r12
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x180030933
nop dword [rax]
mov rcx, rbx
mov rdx, r13
mov rbx, qword [rbx]
call fcn.180062ed4
test rbx, rbx
jne 0x180030920
mov qword [rdi + 0x18], r12
mov rax, qword [0x18037a230]
cmp qword [0x180378c80], rax
je 0x18003094c
call fcn.18002bbb0
call fcn.18003e960
lea r14, [0x18036f158]
mov rbx, qword [r14]
test rbx, rbx
je 0x180030975
test byte [rbx + 0x28], r13b
je 0x180030975
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x180030975
test byte [rbx + 0x28], r13b
jne 0x180030966
mov rsi, r12
test rbx, rbx
je 0x1800309b4
nop dword [rax]
mov eax, dword [rbx + 0x28]
mov rdi, qword [rbx + 0x30]
bt rax, 8
jae 0x1800309a9
call fcn.180019170
test al, al
mov edx, r12d
mov rcx, rbx
setne dl
call fcn.18002d050
mov qword [rsi + 0x30], rdi
jmp 0x1800309ac
mov rsi, rbx
mov rbx, rdi
test rdi, rdi
jne 0x180030980
add r14, 0x110
lea rsi, [0x18036f378]
cmp r14, rsi
jl 0x180030958
mov eax, dword [0x18037da1c]
mov r14, qword [rsp + 0x38]
test eax, eax
jne 0x1800309db
call fcn.18003e780
xor r9d, r9d
lea r8, [0x18037d1ac]
lea rdx, [0x18037d58c]
mov ecx, ebp
call fcn.180031d40
mov edx, dword [0x18037d58c]
lea r9, [rsp + 0x68]
mov ecx, dword [0x18037d1ac]
mov r8d, eax
mov dword [rsp + 0x68], edx
mov edx, ebp
mov dword [0x18037e3e8], eax
call fcn.180035f00
cmp dword [0x180378884], 4
movsxd r8, eax
mov dword [0x18037e3e8], r8d
jb 0x180030a49
mov r9, r8
mov edx, r13d
lea r8, str.condemned_generation_num:__d_n
mov ecx, 0xd
call fcn.1800121c0
mov r8d, dword [0x18037e3e8]
cmp qword [0x18037cba0], r12
mov ecx, dword [0x18037e41c]
je 0x180030a75
inc qword [0x18037cba8]
cmp ecx, 0x11
ja 0x180030a75
mov eax, 0x22e86
bt eax, ecx
jae 0x180030a75
inc qword [0x18037cbb0]
mov eax, dword [0x18037e3ec]
cmp r8d, r13d
cmovg eax, r13d
cmp ecx, r13d
mov ecx, r8d
mov dword [0x18037e3ec], eax
sete dl
call fcn.180007260
mov ecx, dword [0x18037e3e8]
cmp ecx, 2
jne 0x180030b09
cmp dword [rsp + 0x68], r12d
jne 0x180030b09
cmp byte [0x18037aa28], r12b
je 0x180030b09
cmp byte [0x18037aa29], r12b
jne 0x180030b09
mov eax, dword [0x18037e420]
dec eax
test eax, 0xfffffffd
jne 0x180030b09
mov eax, r13d
mov dword [0x18037a4ac], r13d
xchg dword [0x18037e3fc], eax
movups xmm0, xmmword [0x18037a2c8]
mov ecx, dword [0x18037e3e8]
movups xmm1, xmmword [0x18037a2d8]
movups xmmword [0x18037a7e0], xmm0
movups xmm0, xmmword [0x18037a2e8]
movups xmmword [0x18037a7f0], xmm1
movups xmmword [0x18037a800], xmm0
mov edx, dword [0x18037cc88]
inc edx
mov qword [0x18037e3e0], rdx
mov edx, 2
call fcn.18000b450
call fcn.18002e5a0
lea rcx, str.BEGIN
call fcn.18002d2b0
call fcn.180019130
test r13b, al
je 0x180030b4e
call fcn.180019130
test al, 0x40
jne 0x180030b4e
mov ecx, r13d
call fcn.180044600
call fcn.180019130
cmp dword [0x18037e3fc], r12d
je 0x180030f99
movaps xmm0, xmmword [0x18037e3e0]
lea rcx, [0x18037aa00]
movaps xmmword [0x18037deb0], xmm0
movaps xmm0, xmmword [0x18037e400]
movaps xmmword [0x18037ded0], xmm0
movaps xmm0, xmmword [0x18037e420]
mov dword [0x18037e3f0], r12d
movaps xmm1, xmmword [0x18037e3f0]
movaps xmmword [0x18037dec0], xmm1
movaps xmm1, xmmword [0x18037e410]
movaps xmmword [0x18037def0], xmm0
movsd xmm0, qword [0x18037e440]
movaps xmmword [0x18037dee0], xmm1
movaps xmm1, xmmword [0x18037e430]
movsd qword [0x18037df10], xmm0
movaps xmmword [0x18037df00], xmm1
call sub.KERNEL32.dll_EnterCriticalSection
cmp dword [0x18037a4a8], r12d
jne 0x180030c41
cmp qword [0x18037a9f8], r12
jne 0x180030c41
lea r9, str..NET_BGC
movzx r8d, r13b
xor edx, edx
lea rcx, [0x180027af0]
call fcn.18000ae00
movzx eax, al
mov dword [0x18037a4a8], eax
test eax, eax
je 0x180030c41
lea rcx, [0x18037aa00]
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [0x180378c60]
cmp eax, 4
jl 0x180030c4d
mov eax, dword [0x180378c58]
test r13b, al
je 0x180030c4d
call fcn.18000b140
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x38]
jmp 0x180030c4d
lea rcx, [0x18037aa00]
call sub.KERNEL32.dll_LeaveCriticalSection
cmp qword [0x18037a9f8], r12
mov dword [0x18037aa30], r13d
mov dword [0x18037aa2c], r12d
je 0x180030e3b
lea rdi, [0x18036f048]
nop
mov rbx, qword [rdi]
test rbx, rbx
je 0x180030d70
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r13b
jne 0x180030ca8
nop word [rax + rax]
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x180030d70
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r13b
je 0x180030c90
test rbx, rbx
je 0x180030d70
mov rax, qword [rbx + 0x28]
test al, 0x40
jne 0x180030d63
test r13b, al
je 0x180030d33
mov rcx, qword [rbx + 0x20]
lea rdx, [rbx + 0x10]
mov rax, qword [0x18037a400]
mov r8, qword [0x18037a408]
cmp rcx, rax
jb 0x180030d08
mov r9, qword [rdx]
cmp r9, r8
ja 0x180030d03
mov r8, qword [0x18037a240]
mov rdx, r9
call fcn.18002a410
test eax, eax
je 0x180030e3b
or qword [rbx + 0x28], 0x40
jmp 0x180030d63
cmp rax, rcx
jbe 0x180030d0b
mov rcx, rax
mov rdx, qword [rdx]
cmp r8, rdx
cmovb rdx, r8
mov r8, qword [0x18037a240]
call fcn.18002a410
test eax, eax
je 0x180030e3b
or qword [rbx + 0x28], 0x80
jmp 0x180030d63
mov r8, qword [0x18037a240]
mov rcx, rbx
mov rdx, qword [rbx + 0x10]
call fcn.18002a410
test eax, eax
je 0x180030e3b
mov rax, qword [rbx + 0x28]
test al, al
jns 0x180030d5b
btr rax, 7
or rax, 0x40
mov qword [rbx + 0x28], rax
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x180030cb1
add rdi, 0x110
cmp rdi, rsi
jl 0x180030c70
mov rax, qword [0x18037a400]
mov ebx, 0xffffffff
cmp dword [0x18037e41c], 5
mov qword [0x18037cb10], rax
mov rax, qword [0x18037a408]
cmove ebx, r13d
mov qword [0x18037cb18], rax
mov dword [0x18037aa30], r13d
mov dword [0x18037e448], r13d
je 0x180030de2
mov ecx, r12d
lea rdx, [0x18037cc30]
cmp qword [rdx], r12
jg 0x180030de2
cmp ebx, ecx
mov eax, ecx
cmovg eax, ebx
inc ecx
add rdx, 0xb0
mov ebx, eax
cmp ecx, 2
jl 0x180030dc6
mov dword [0x180379fb0], r13d
cmp ebx, 0xffffffff
jne 0x180030dfb
xorps xmm0, xmm0
movdqa xmmword [0x18036edf0], xmm0
jmp 0x180030e2b
lea rcx, [0x18037e3e0]
mov dword [0x18037aa2c], r13d
call fcn.1800348d0
mov rax, qword [0x18037cc88]
add rax, 2
mov dword [0x18037e3e8], ebx
mov qword [0x18037e3e0], rax
call fcn.18002e5a0
cmp dword [0x18037aa2c], r12d
jne 0x180030e52
call fcn.18002db00
jmp 0x180030e52
mov eax, r12d
mov dword [0x18037aa30], r12d
mov dword [0x18037e3f0], r13d
xchg dword [0x18037e3fc], eax
cmp dword [0x18037aa30], r12d
je 0x180030f99
lea rcx, [0x18037a810]
mov edx, 3
lea rax, [0x18037cfa0]
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, r13
jne 0x180030e72
cmp dword [0x18037aa2c], 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 0x180030f9e
mov dword [0x18037a288], r12d
mov dword [0x18037a28c], 0x8000
mov dword [0x18037d168], r12d
mov dword [0x18037d16c], 0x8000
call fcn.180031000
movaps xmm0, xmmword [0x18037deb0]
movaps xmm1, xmmword [0x18037dec0]
movaps xmmword [0x18037e3e0], xmm0
movaps xmm0, xmmword [0x18037ded0]
movaps xmmword [0x18037e400], xmm0
movaps xmm0, xmmword [0x18037def0]
movaps xmmword [0x18037e3f0], xmm1
movaps xmm1, xmmword [0x18037dee0]
movaps xmmword [0x18037e420], xmm0
movsd xmm0, qword [0x18037df10]
movaps xmmword [0x18037e410], xmm1
movaps xmm1, xmmword [0x18037df00]
movsd qword [0x18037e440], xmm0
movaps xmmword [0x18037e430], xmm1
call fcn.18002db00
jmp 0x180030f9e
call fcn.180031000
call sub.KERNEL32.dll_GetTickCount
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x60]
mov eax, eax
mov qword [0x18037a2b8], rax
mov rax, qword [0x18037cc30]
mov qword [0x18037a2c0], rax
mov qword [0x18037a268], rax
mov r13, qword [rsp + 0x40]
cmp r15d, 4
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x70]
jne 0x180030ff3
add rsp, 0x58
jmp 0x180021180
add rsp, 0x58
ret