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

Disassembly:
sub rsp, 0x28
cmp dword [0x1405d2ec0], 0
je 0x1400284ab
xor edx, edx
lea rcx, [0x14004cfc0]
call fcn.140019290
mov eax, dword [0x1405d2ea8]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov byte [0x1405d0067], 0
cmp eax, 1
je 0x140028711
cmp qword [0x1405d2e80], 0
je 0x14002851c
mov rcx, qword [0x1405d0290]
mov r8, qword [0x1405d2ec8]
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
sub rax, rdx
cmp rax, r8
jb 0x1400286f1
add rdx, r8
xor r8d, r8d
call fcn.14003e490
test eax, eax
je 0x1400286f1
cmp byte [0x1405d0067], 0
jne 0x1400286f1
mov eax, dword [0x1405d2ea8]
test eax, eax
jne 0x1400286e8
cmp dword [0x1405d2ec0], eax
jne 0x1400286e8
cmp qword [0x1405d2e88], 0
je 0x1400286e8
xor edi, edi
mov dword [0x1405d05a0], 1
mov qword [0x1405d2ed8], rdi
call fcn.1400396d0
test eax, eax
jne 0x1400285b8
mov rbx, qword [0x1405c5cf8]
test rbx, rbx
je 0x1400285ae
nop word [rax + rax]
mov rdx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov rcx, qword [0x1405d2ed0]
sub rax, rdx
cmp rax, rcx
jb 0x1400285a1
add rdx, rcx
xor r8d, r8d
mov rcx, rbx
mov edi, 1
call fcn.14003e490
test eax, eax
je 0x1400286f1
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x140028570
test edi, edi
jne 0x1400285b8
mov dword [0x1405d05a0], 2
cmp byte [0x1405d0067], 0
jne 0x1400286f1
mov eax, dword [0x1405d2ea8]
test eax, eax
jne 0x1400286e8
cmp dword [0x1405d05a0], 2
jne 0x1400286bd
mov rcx, qword [0x1405d06d0]
xor edx, edx
mov r8, qword [0x1405d2ed0]
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.14003d160
mov rbx, rax
test rax, rax
je 0x1400286a9
mov rdi, qword [rax + 0x10]
or qword [rax + 0x28], 8
mov qword [rsp + 0x38], rsi
mov rsi, qword [rax + 0x20]
mov eax, dword [0x1405cec28]
sub rdi, rsi
cmp eax, 4
jl 0x14002866f
mov eax, dword [0x1405cec20]
test al, 1
je 0x14002866f
call fcn.14000d810
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.140051950
mov r9, qword [rbx + 0x10]
mov ecx, 3
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x20]
call fcn.14000d3e0
mov eax, dword [0x1405d2ea8]
mov rsi, qword [rsp + 0x38]
mov qword [0x1405d2ed8], rbx
test eax, eax
je 0x1400286c4
jmp 0x1400286e8
mov eax, 1
mov qword [0x1405d2ed8], rbx
mov dword [0x1405d2ea8], eax
jmp 0x1400286e8
mov rbx, qword [0x1405d2ed8]
test rbx, rbx
je 0x1400286e8
mov rdx, qword [rbx]
xor r8d, r8d
add rdx, qword [0x1405d2ed0]
mov rcx, rbx
call fcn.14003e490
test eax, eax
je 0x1400286f1
mov eax, dword [0x1405d2ea8]
cmp byte [0x1405d0067], 0
je 0x140028711
mov dword [0x1405d2ea8], 1
mov byte [0x1405d0067], 0
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
test eax, eax
jne 0x14002875e
cmp qword [0x1405d2e88], 0
je 0x140028734
mov rcx, qword [0x1405d2ed0]
mov qword [0x1405d3140], rcx
mov qword [0x1405d3148], rcx
cmp qword [0x1405d2e80], 0
je 0x140028753
mov rax, qword [0x1405d2ec8]
mov qword [0x1405d2f30], rax
mov qword [0x1405d2f38], rax
mov qword [0x1405d2e90], 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, [0x14003a210]
mov r14d, dword [0x1405d4750]
xor r12d, r12d
mov qword [rax - 0x28], r15
mov r15d, 1
mov dword [rax - 0x38], r15d
mov qword [0x1405d2e78], r12
mov qword [rax - 0x30], r12
call fcn.140019290
mov rdx, qword [0x1405d0290]
mov rax, qword [0x1405d0288]
mov qword [rdx], rax
cmp dword [0x1405d4750], 4
jne 0x14003a9b6
cmp dword [0x1405d2ec0], r12d
je 0x14003a9b6
call fcn.140038e70
test eax, eax
jne 0x14003a99b
mov dword [0x1405d2ea8], r15d
mov dword [0x1405d4718], 2
call fcn.140053060
inc qword [0x1405d34b8]
jmp 0x14003b0e0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
call fcn.14003fa50
mov rdi, qword [0x1405d0540]
mov eax, dword [0x1405c5ed8]
mov dword [0x1405d474c], eax
mov qword [0x1405d0768], r12
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x14003aa03
nop dword [rax]
mov rcx, rbx
mov rdx, r15
mov rbx, qword [rbx]
call fcn.14007f680
test rbx, rbx
jne 0x14003a9f0
mov qword [rdi + 0x18], r12
mov rax, qword [0x1405d0520]
cmp qword [0x1405cef50], rax
je 0x14003aa1c
call fcn.1400346d0
call fcn.14004abe0
mov rbx, qword [0x1405c5ce8]
test rbx, rbx
je 0x14003aa42
test byte [rbx + 0x28], r15b
je 0x14003aa42
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x14003aa42
test byte [rbx + 0x28], r15b
jne 0x14003aa33
mov rsi, r12
test rbx, rbx
je 0x14003aa7f
nop word [rax + rax]
mov eax, dword [rbx + 0x28]
mov rdi, qword [rbx + 0x30]
bt rax, 8
jae 0x14003aa74
call fcn.14001dd00
movzx edx, al
mov rcx, rbx
call fcn.140036120
mov qword [rsi + 0x30], rdi
jmp 0x14003aa77
mov rsi, rbx
mov rbx, rdi
test rdi, rdi
jne 0x14003aa50
mov rbx, qword [0x1405c5df8]
test rbx, rbx
je 0x14003aaa0
test byte [rbx + 0x28], r15b
je 0x14003aaa0
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x14003aaa0
test byte [rbx + 0x28], r15b
jne 0x14003aa91
mov rsi, r12
test rbx, rbx
je 0x14003aadf
nop dword [rax + rax]
mov eax, dword [rbx + 0x28]
mov rdi, qword [rbx + 0x30]
bt rax, 8
jae 0x14003aad4
call fcn.14001dd00
movzx edx, al
mov rcx, rbx
call fcn.140036120
mov qword [rsi + 0x30], rdi
jmp 0x14003aad7
mov rsi, rbx
mov rbx, rdi
test rdi, rdi
jne 0x14003aab0
mov eax, dword [0x1405d3ef8]
test eax, eax
jne 0x14003aaee
call fcn.14004aa00
xor r9d, r9d
lea r8, [0x1405d34d0]
lea rdx, [0x1405d38c0]
mov ecx, ebp
call fcn.14003c120
mov ecx, dword [0x1405d38c0]
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], ecx
mov r8d, eax
mov ecx, dword [0x1405d34d0]
mov edx, ebp
mov dword [0x1405d4718], eax
call fcn.1400411f0
cmp dword [0x1405ceb24], 4
mov dword [0x1405d4718], eax
jb 0x14003ab57
movsxd r9, eax
lea r8, str.condemned_generation_num:__d_n
mov edx, r15d
mov ecx, 0xd
call fcn.140013f80
mov eax, dword [0x1405d4718]
cmp qword [0x1405d2e90], r12
mov ecx, dword [0x1405d474c]
je 0x14003ab83
inc qword [0x1405d2e98]
cmp ecx, 0x11
ja 0x14003ab83
mov edx, 0x22e86
bt edx, ecx
jae 0x14003ab83
inc qword [0x1405d2ea0]
cmp eax, r15d
jle 0x14003ab8f
mov dword [0x1405d471c], r15d
cmp ecx, r15d
mov ecx, eax
sete dl
call fcn.14000d400
mov ecx, dword [0x1405d4718]
cmp ecx, 2
jne 0x14003ac0f
cmp dword [rsp + 0x68], r12d
jne 0x14003ac0f
cmp byte [0x1405d0064], r12b
je 0x14003ac0f
cmp byte [0x1405d0065], r12b
jne 0x14003ac0f
mov eax, dword [0x1405d4750]
dec eax
test eax, 0xfffffffd
jne 0x14003ac0f
mov eax, r15d
mov dword [0x1405d0cec], r15d
xchg dword [0x1405d472c], eax
movups xmm0, xmmword [0x1405d05b8]
mov ecx, dword [0x1405d4718]
movups xmm1, xmmword [0x1405d05c8]
movups xmmword [0x1405d0ad0], xmm0
movups xmm0, xmmword [0x1405d05d8]
movups xmmword [0x1405d0ae0], xmm1
movups xmmword [0x1405d0af0], xmm0
mov edx, dword [0x1405d2f88]
inc edx
mov qword [0x1405d4710], rdx
mov edx, 2
call fcn.14000dda0
call fcn.140037b80
lea rcx, str.BEGIN
call fcn.140036470
call fcn.14001dc00
test r15b, al
je 0x14003ac54
call fcn.14001dc00
test al, 0x40
jne 0x14003ac54
mov ecx, r15d
call fcn.1400536a0
call fcn.14001dc00
cmp dword [0x1405d472c], r12d
je 0x14003b0a9
movaps xmm0, xmmword [0x1405d4710]
lea rcx, [0x1405d0cf8]
movaps xmmword [0x1405d41e0], xmm0
movaps xmm0, xmmword [0x1405d4730]
movaps xmmword [0x1405d4200], xmm0
movaps xmm0, xmmword [0x1405d4750]
mov dword [0x1405d4720], r12d
movaps xmm1, xmmword [0x1405d4720]
movaps xmmword [0x1405d41f0], xmm1
movaps xmm1, xmmword [0x1405d4740]
movaps xmmword [0x1405d4220], xmm0
movsd xmm0, qword [0x1405d4770]
movaps xmmword [0x1405d4210], xmm1
movaps xmm1, xmmword [0x1405d4760]
movsd qword [0x1405d4240], xmm0
movaps xmmword [0x1405d4230], xmm1
call sub.KERNEL32.dll_EnterCriticalSection
cmp dword [0x1405d0ce8], r12d
jne 0x14003ad47
cmp qword [0x1405d0cf0], r12
jne 0x14003ad47
lea r9, str..NET_BGC
movzx r8d, r15b
xor edx, edx
lea rcx, [0x14002f530]
call fcn.14000d310
movzx eax, al
mov dword [0x1405d0ce8], eax
test eax, eax
je 0x14003ad47
lea rcx, [0x1405d0cf8]
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [0x1405cec28]
cmp eax, 4
jl 0x14003ad53
mov eax, dword [0x1405cec20]
test r15b, al
je 0x14003ad53
call fcn.14000d810
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x38]
jmp 0x14003ad53
lea rcx, [0x1405d0cf8]
call sub.KERNEL32.dll_LeaveCriticalSection
cmp qword [0x1405d0cf0], r12
mov dword [0x1405d0d24], r15d
mov dword [0x1405d0d20], r12d
je 0x14003af4b
lea rdi, [0x1405c5bd8]
lea rsi, [0x1405c5f08]
nop dword [rax]
mov rbx, qword [rdi]
test rbx, rbx
je 0x14003ae80
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r15b
jne 0x14003adb8
nop word [rax + rax]
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x14003ae80
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r15b
je 0x14003ada0
test rbx, rbx
je 0x14003ae80
mov rax, qword [rbx + 0x28]
test al, 0x40
jne 0x14003ae73
test r15b, al
je 0x14003ae43
mov rcx, qword [rbx + 0x20]
lea rdx, [rbx + 0x10]
mov rax, qword [0x1405d06f0]
mov r8, qword [0x1405d06f8]
cmp rcx, rax
jb 0x14003ae18
mov r9, qword [rdx]
cmp r9, r8
ja 0x14003ae13
mov r8, qword [0x1405d0530]
mov rdx, r9
call fcn.140032b20
test eax, eax
je 0x14003af4b
or qword [rbx + 0x28], 0x40
jmp 0x14003ae73
cmp rax, rcx
jbe 0x14003ae1b
mov rcx, rax
mov rdx, qword [rdx]
cmp r8, rdx
cmovb rdx, r8
mov r8, qword [0x1405d0530]
call fcn.140032b20
test eax, eax
je 0x14003af4b
or qword [rbx + 0x28], 0x80
jmp 0x14003ae73
mov r8, qword [0x1405d0530]
mov rcx, rbx
mov rdx, qword [rbx + 0x10]
call fcn.140032b20
test eax, eax
je 0x14003af4b
mov rax, qword [rbx + 0x28]
test al, al
jns 0x14003ae6b
btr rax, 7
or rax, 0x40
mov qword [rbx + 0x28], rax
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x14003adc1
add rdi, 0x110
cmp rdi, rsi
jl 0x14003ad80
mov rax, qword [0x1405d06f0]
mov ebx, 0xffffffff
cmp dword [0x1405d474c], 5
mov qword [0x1405d2e08], rax
mov rax, qword [0x1405d06f8]
cmove ebx, r15d
mov qword [0x1405d2e10], rax
mov dword [0x1405d0d24], r15d
mov dword [0x1405d40d8], r15d
je 0x14003aef2
mov ecx, r12d
lea rdx, [0x1405d2f30]
cmp qword [rdx], r12
jg 0x14003aef2
cmp ebx, ecx
mov eax, ecx
cmovg eax, ebx
inc ecx
add rdx, 0xb0
mov ebx, eax
cmp ecx, 2
jl 0x14003aed6
mov dword [0x1405d0284], r15d
cmp ebx, 0xffffffff
jne 0x14003af0b
xorps xmm0, xmm0
movdqa xmmword [0x1405c5980], xmm0
jmp 0x14003af3b
lea rcx, [0x1405d4710]
mov dword [0x1405d0d20], r15d
call fcn.14003f9c0
mov rax, qword [0x1405d2f88]
add rax, 2
mov dword [0x1405d4718], ebx
mov qword [0x1405d4710], rax
call fcn.140037b80
cmp dword [0x1405d0d20], r12d
jne 0x14003af62
call fcn.1400370e0
jmp 0x14003af62
mov eax, r12d
mov dword [0x1405d0d24], r12d
mov dword [0x1405d4720], r15d
xchg dword [0x1405d472c], eax
cmp dword [0x1405d0d24], r12d
je 0x14003b0a9
lea rcx, [0x1405d0b00]
mov edx, 3
lea rax, [0x1405d32a0]
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 0x14003af82
cmp dword [0x1405d0d20], 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 0x14003b0ae
mov dword [0x1405d0570], r12d
mov dword [0x1405d0574], 0x8000
mov dword [0x1405d3468], r12d
mov dword [0x1405d346c], 0x8000
call fcn.14003b120
movaps xmm0, xmmword [0x1405d41e0]
movaps xmm1, xmmword [0x1405d41f0]
movaps xmmword [0x1405d4710], xmm0
movaps xmm0, xmmword [0x1405d4200]
movaps xmmword [0x1405d4730], xmm0
movaps xmm0, xmmword [0x1405d4220]
movaps xmmword [0x1405d4720], xmm1
movaps xmm1, xmmword [0x1405d4210]
movaps xmmword [0x1405d4750], xmm0
movsd xmm0, qword [0x1405d4240]
movaps xmmword [0x1405d4740], xmm1
movaps xmm1, xmmword [0x1405d4230]
movsd qword [0x1405d4770], xmm0
movaps xmmword [0x1405d4760], xmm1
call fcn.1400370e0
jmp 0x14003b0ae
call fcn.14003b120
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 [0x1405d05a8], rax
mov rax, qword [0x1405d2f30]
mov qword [0x1405d05b0], rax
mov qword [0x1405d0550], 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 0x14003b103
add rsp, 0x58
jmp 0x140028490
add rsp, 0x58
ret