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

Disassembly:
sub rsp, 0x28
cmp dword [0x180388820], 0
je 0x18002080b
xor edx, edx
lea rcx, [0x18003ff40]
call fcn.180015180
mov eax, dword [0x180388808]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov byte [0x1803859c7], 0
cmp eax, 1
je 0x180020a71
cmp qword [0x1803887e0], 0
je 0x18002087c
mov rcx, qword [0x180385bf0]
mov r8, qword [0x180388828]
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
sub rax, rdx
cmp rax, r8
jb 0x180020a51
add rdx, r8
xor r8d, r8d
call fcn.180033540
test eax, eax
je 0x180020a51
cmp byte [0x1803859c7], 0
jne 0x180020a51
mov eax, dword [0x180388808]
test eax, eax
jne 0x180020a48
cmp dword [0x180388820], eax
jne 0x180020a48
cmp qword [0x1803887e8], 0
je 0x180020a48
xor edi, edi
mov dword [0x180385f00], 1
mov qword [0x180388838], rdi
call fcn.18002f780
test eax, eax
jne 0x180020918
mov rbx, qword [0x18037c4b8]
test rbx, rbx
je 0x18002090e
nop word [rax + rax]
mov rdx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov rcx, qword [0x180388830]
sub rax, rdx
cmp rax, rcx
jb 0x180020901
add rdx, rcx
xor r8d, r8d
mov rcx, rbx
mov edi, 1
call fcn.180033540
test eax, eax
je 0x180020a51
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x1800208d0
test edi, edi
jne 0x180020918
mov dword [0x180385f00], 2
cmp byte [0x1803859c7], 0
jne 0x180020a51
mov eax, dword [0x180388808]
test eax, eax
jne 0x180020a48
cmp dword [0x180385f00], 2
jne 0x180020a1d
mov rcx, qword [0x180386030]
xor edx, edx
mov r8, qword [0x180388830]
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.180032590
mov rbx, rax
test rax, rax
je 0x180020a09
mov rdi, qword [rax + 0x10]
or qword [rax + 0x28], 8
mov qword [rsp + 0x38], rsi
mov rsi, qword [rax + 0x20]
mov eax, dword [0x180384890]
sub rdi, rsi
cmp eax, 4
jl 0x1800209cf
mov eax, dword [0x180384888]
test al, 1
je 0x1800209cf
call fcn.18000a700
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.180042ed0
mov r9, qword [rbx + 0x10]
mov ecx, 3
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x20]
call fcn.180006850
mov eax, dword [0x180388808]
mov rsi, qword [rsp + 0x38]
mov qword [0x180388838], rbx
test eax, eax
je 0x180020a24
jmp 0x180020a48
mov eax, 1
mov qword [0x180388838], rbx
mov dword [0x180388808], eax
jmp 0x180020a48
mov rbx, qword [0x180388838]
test rbx, rbx
je 0x180020a48
mov rdx, qword [rbx]
xor r8d, r8d
add rdx, qword [0x180388830]
mov rcx, rbx
call fcn.180033540
test eax, eax
je 0x180020a51
mov eax, dword [0x180388808]
cmp byte [0x1803859c7], 0
je 0x180020a71
mov dword [0x180388808], 1
mov byte [0x1803859c7], 0
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
test eax, eax
jne 0x180020abe
cmp qword [0x1803887e8], 0
je 0x180020a94
mov rcx, qword [0x180388830]
mov qword [0x180388aa0], rcx
mov qword [0x180388aa8], rcx
cmp qword [0x1803887e0], 0
je 0x180020ab3
mov rax, qword [0x180388828]
mov qword [0x180388890], rax
mov qword [0x180388898], rax
mov qword [0x1803887f0], 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, [0x18002ff80]
mov r14d, dword [0x18038a0b0]
xor r12d, r12d
mov qword [rax - 0x28], r15
mov r15d, 1
mov dword [rax - 0x38], r15d
mov qword [0x1803887d8], r12
mov qword [rax - 0x30], r12
call fcn.180015180
mov rdx, qword [0x180385bf0]
mov rax, qword [0x180385be8]
mov qword [rdx], rax
cmp dword [0x18038a0b0], 4
jne 0x1800304a6
cmp dword [0x180388820], r12d
je 0x1800304a6
call fcn.18002efa0
test eax, eax
jne 0x18003048b
mov dword [0x180388808], r15d
mov dword [0x18038a078], 2
call fcn.180043e90
inc qword [0x180388e18]
jmp 0x180030bce
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
call fcn.180034550
mov rdi, qword [0x180385ea0]
mov eax, dword [0x18037c698]
mov dword [0x18038a0ac], eax
mov qword [0x1803860c8], r12
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x1800304f3
nop dword [rax]
mov rcx, rbx
mov rdx, r15
mov rbx, qword [rbx]
call fcn.180062c78
test rbx, rbx
jne 0x1800304e0
mov qword [rdi + 0x18], r12
mov rax, qword [0x180385e80]
cmp qword [0x1803848b0], rax
je 0x18003050c
call fcn.18002b540
call fcn.18003e2a0
mov rbx, qword [0x18037c4a8]
test rbx, rbx
je 0x180030532
test byte [rbx + 0x28], r15b
je 0x180030532
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x180030532
test byte [rbx + 0x28], r15b
jne 0x180030523
mov rsi, r12
test rbx, rbx
je 0x18003056f
nop word [rax + rax]
mov eax, dword [rbx + 0x28]
mov rdi, qword [rbx + 0x30]
bt rax, 8
jae 0x180030564
call fcn.1800187f0
movzx edx, al
mov rcx, rbx
call fcn.18002cb30
mov qword [rsi + 0x30], rdi
jmp 0x180030567
mov rsi, rbx
mov rbx, rdi
test rdi, rdi
jne 0x180030540
mov rbx, qword [0x18037c5b8]
test rbx, rbx
je 0x180030590
test byte [rbx + 0x28], r15b
je 0x180030590
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x180030590
test byte [rbx + 0x28], r15b
jne 0x180030581
mov rsi, r12
test rbx, rbx
je 0x1800305cf
nop dword [rax + rax]
mov eax, dword [rbx + 0x28]
mov rdi, qword [rbx + 0x30]
bt rax, 8
jae 0x1800305c4
call fcn.1800187f0
movzx edx, al
mov rcx, rbx
call fcn.18002cb30
mov qword [rsi + 0x30], rdi
jmp 0x1800305c7
mov rsi, rbx
mov rbx, rdi
test rdi, rdi
jne 0x1800305a0
mov eax, dword [0x180389858]
test eax, eax
jne 0x1800305de
call fcn.18003e0c0
xor r9d, r9d
lea r8, [0x180388e30]
lea rdx, [0x180389220]
mov ecx, ebp
call fcn.180031980
mov ecx, dword [0x180389220]
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], ecx
mov r8d, eax
mov ecx, dword [0x180388e30]
mov edx, ebp
mov dword [0x18038a078], eax
call fcn.180035af0
cmp dword [0x180384484], 4
mov dword [0x18038a078], eax
jb 0x180030647
movsxd r9, eax
lea r8, str.condemned_generation_num:__d_n
mov edx, r15d
mov ecx, 0xd
call fcn.1800111e0
mov eax, dword [0x18038a078]
cmp qword [0x1803887f0], r12
mov ecx, dword [0x18038a0ac]
je 0x180030673
inc qword [0x1803887f8]
cmp ecx, 0x11
ja 0x180030673
mov edx, 0x22e86
bt edx, ecx
jae 0x180030673
inc qword [0x180388800]
cmp eax, r15d
jle 0x18003067f
mov dword [0x18038a07c], r15d
cmp ecx, r15d
mov ecx, eax
sete dl
call fcn.180006850
mov ecx, dword [0x18038a078]
cmp ecx, 2
jne 0x1800306ff
cmp dword [rsp + 0x68], r12d
jne 0x1800306ff
cmp byte [0x1803859c4], r12b
je 0x1800306ff
cmp byte [0x1803859c5], r12b
jne 0x1800306ff
mov eax, dword [0x18038a0b0]
dec eax
test eax, 0xfffffffd
jne 0x1800306ff
mov eax, r15d
mov dword [0x18038664c], r15d
xchg dword [0x18038a08c], eax
movups xmm0, xmmword [0x180385f18]
mov ecx, dword [0x18038a078]
movups xmm1, xmmword [0x180385f28]
movups xmmword [0x180386430], xmm0
movups xmm0, xmmword [0x180385f38]
movups xmmword [0x180386440], xmm1
movups xmmword [0x180386450], xmm0
mov edx, dword [0x1803888e8]
inc edx
mov qword [0x18038a070], rdx
mov edx, 2
call fcn.18000aa10
call fcn.18002e170
lea rcx, str.BEGIN
call fcn.18002cd90
call fcn.1800187b0
test r15b, al
je 0x180030744
call fcn.1800187b0
test al, 0x40
jne 0x180030744
mov ecx, r15d
call fcn.1800441c0
call fcn.1800187b0
cmp dword [0x18038a08c], r12d
je 0x180030b97
movaps xmm0, xmmword [0x18038a070]
lea rcx, [0x180386658]
movaps xmmword [0x180389b40], xmm0
movaps xmm0, xmmword [0x18038a090]
movaps xmmword [0x180389b60], xmm0
movaps xmm0, xmmword [0x18038a0b0]
mov dword [0x18038a080], r12d
movaps xmm1, xmmword [0x18038a080]
movaps xmmword [0x180389b50], xmm1
movaps xmm1, xmmword [0x18038a0a0]
movaps xmmword [0x180389b80], xmm0
movsd xmm0, qword [0x18038a0d0]
movaps xmmword [0x180389b70], xmm1
movaps xmm1, xmmword [0x18038a0c0]
movsd qword [0x180389ba0], xmm0
movaps xmmword [0x180389b90], xmm1
call sub.KERNEL32.dll_EnterCriticalSection
cmp dword [0x180386648], r12d
jne 0x180030837
cmp qword [0x180386650], r12
jne 0x180030837
lea r9, str..NET_BGC
movzx r8d, r15b
xor edx, edx
lea rcx, [0x1800272f0]
call fcn.18000a3c0
movzx eax, al
mov dword [0x180386648], eax
test eax, eax
je 0x180030837
lea rcx, [0x180386658]
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [0x180384890]
cmp eax, 4
jl 0x180030843
mov eax, dword [0x180384888]
test r15b, al
je 0x180030843
call fcn.18000a700
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x38]
jmp 0x180030843
lea rcx, [0x180386658]
call sub.KERNEL32.dll_LeaveCriticalSection
cmp qword [0x180386650], r12
mov dword [0x180386684], r15d
mov dword [0x180386680], r12d
je 0x180030a36
lea rdi, [0x18037c398]
lea rsi, [0x18037c6c8]
nop dword [rax]
mov rbx, qword [rdi]
test rbx, rbx
je 0x18003096b
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r15b
jne 0x1800308a8
nop word [rax + rax]
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x18003096b
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r15b
je 0x180030890
test rbx, rbx
je 0x18003096b
mov rax, qword [rbx + 0x28]
test al, 0x40
jne 0x18003095e
test r15b, al
je 0x18003092e
mov rcx, qword [rbx + 0x20]
mov rax, qword [0x180386050]
mov r8, qword [0x180386058]
cmp rcx, rax
jb 0x180030902
mov rdx, qword [rbx + 0x10]
cmp rdx, r8
ja 0x1800308fd
mov r8, qword [0x180385e90]
call fcn.180029d90
test eax, eax
je 0x180030a36
or qword [rbx + 0x28], 0x40
jmp 0x18003095e
cmp rax, rcx
jbe 0x180030905
mov rcx, rax
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
cmovb rdx, r8
mov r8, qword [0x180385e90]
call fcn.180029d90
test eax, eax
je 0x180030a36
or qword [rbx + 0x28], 0x80
jmp 0x18003095e
mov r8, qword [0x180385e90]
mov rcx, rbx
mov rdx, qword [rbx + 0x10]
call fcn.180029d90
test eax, eax
je 0x180030a36
mov rax, qword [rbx + 0x28]
test al, al
jns 0x180030956
btr rax, 7
or rax, 0x40
mov qword [rbx + 0x28], rax
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x1800308b1
add rdi, 0x110
cmp rdi, rsi
jl 0x180030870
mov rax, qword [0x180386050]
mov ebx, 0xffffffff
cmp dword [0x18038a0ac], 5
mov qword [0x180388768], rax
mov rax, qword [0x180386058]
cmove ebx, r15d
mov qword [0x180388770], rax
mov dword [0x180386684], r15d
mov dword [0x180389a38], r15d
je 0x1800309dd
mov ecx, r12d
lea rdx, [0x180388890]
cmp qword [rdx], r12
jg 0x1800309dd
cmp ebx, ecx
mov eax, ecx
cmovg eax, ebx
inc ecx
add rdx, 0xb0
mov ebx, eax
cmp ecx, 2
jl 0x1800309c1
mov dword [0x180385be4], r15d
cmp ebx, 0xffffffff
jne 0x1800309f6
xorps xmm0, xmm0
movdqa xmmword [0x18037c140], xmm0
jmp 0x180030a26
lea rcx, [0x18038a070]
mov dword [0x180386680], r15d
call fcn.1800344f0
mov rax, qword [0x1803888e8]
add rax, 2
mov dword [0x18038a078], ebx
mov qword [0x18038a070], rax
call fcn.18002e170
cmp dword [0x180386680], r12d
jne 0x180030a4d
call fcn.18002d6d0
jmp 0x180030a4d
mov eax, r12d
mov dword [0x180386684], r12d
mov dword [0x18038a080], r15d
xchg dword [0x18038a08c], eax
cmp dword [0x180386684], r12d
je 0x180030b97
lea rcx, [0x180386460]
mov edx, 3
lea rax, [0x180388c00]
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 0x180030a70
cmp dword [0x180386680], 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 0x180030b9c
mov dword [0x180385ed0], r12d
mov dword [0x180385ed4], 0x8000
mov dword [0x180388dc8], r12d
mov dword [0x180388dcc], 0x8000
call fcn.180030c00
movaps xmm0, xmmword [0x180389b40]
movaps xmm1, xmmword [0x180389b50]
movaps xmmword [0x18038a070], xmm0
movaps xmm0, xmmword [0x180389b60]
movaps xmmword [0x18038a090], xmm0
movaps xmm0, xmmword [0x180389b80]
movaps xmmword [0x18038a080], xmm1
movaps xmm1, xmmword [0x180389b70]
movaps xmmword [0x18038a0b0], xmm0
movsd xmm0, qword [0x180389ba0]
movaps xmmword [0x18038a0a0], xmm1
movaps xmm1, xmmword [0x180389b90]
movsd qword [0x18038a0d0], xmm0
movaps xmmword [0x18038a0c0], xmm1
call fcn.18002d6d0
jmp 0x180030b9c
call fcn.180030c00
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 [0x180385f08], rax
mov rax, qword [0x180388890]
mov qword [0x180385f10], rax
mov qword [0x180385eb0], 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 0x180030bf1
add rsp, 0x58
jmp 0x1800207f0
add rsp, 0x58
ret