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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
lea eax, [rdx - 0xd]
movaps xmmword [rsp + 0x70], xmm6
mov dword [rsp + 0x30], eax
mov r15, r9
mov r13, rcx
cmp edx, eax
jbe case.0x18001d4f5.9
movsxd r8, dword [rsp + 0x38]
add edx, 0xffffffae
movsd xmm6, qword [rsp + 0x50]
mov r14, r8
mov rdi, qword [rsp + 0x50]
xor ebx, ebx
mov rsi, qword [rsp + 0xe0]
mov ecx, eax
mov qword [rsp + 0x40], r8
mov dword [rsp + 0x34], edx
lea r9, [0x180000000]
cmp edx, 0x29
ja case.default.0x18001d4f5
movzx eax, byte [r9 + rdx + 0x1d980]
mov ecx, dword [r9 + rax*4 + 0x1d948]
add rcx, r9
jmp rcx
mov ecx, dword [rsi]
test ecx, ecx
je 0x18001d90d
mov r8d, ebx
mov r14, rbx
nop word [rax + rax]
mov eax, 0x66666667
inc r8d
imul ecx
inc r14
mov ecx, edx
sar ecx, 2
mov eax, ecx
shr eax, 0x1f
add ecx, eax
jne 0x18001d510
mov edx, dword [rsp + 0x34]
mov dword [rsp + 0x38], r8d
mov qword [rsp + 0x40], r14
jmp case.0x18001d4f5.13
mov rdx, qword [0x1802906b8]
mov r9d, 0x10c
xor r8d, r8d
xor ecx, ecx
call fcn.180039640
test al, al
je 0x18001d936
mov r8, qword [0x1802906b8]
lea rcx, [rsp + 0xc8]
xor r9d, r9d
mov byte [rsp + 0xc8], 1
mov edx, 0x116
call fcn.1800185b0
mov r8d, dword [rsp + 0x38]
mov edx, dword [rsp + 0x34]
jmp case.0x18001d4f5.13
lea eax, [r8 + 1]
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, qword [rsp + 0xe0]
mov qword [rsp + 0x60], rax
cmp dword [rbp], ebx
je 0x18001d5ee
lea r8, [r14 + rax]
mov ecx, dword [rbp]
lea r8, [r8 - 1]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub ecx, eax
mov eax, 0x66666667
add cl, 0x30
mov byte [r8], cl
imul dword [rbp]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp], edx
jne 0x18001d5b2
mov r8d, dword [rsp + 0x38]
mov rsi, rbp
mov edx, dword [rsp + 0x34]
jmp case.0x18001d4f5.13
cmp byte [r15], bl
je case.0x18001d4f5.13
mov rax, qword [rsp + 0xe0]
xor edx, edx
mov r8, r13
mov r9, qword [rax + 0x28]
lea ecx, [rdx + 0x21]
call fcn.180022330
mov rax, rbx
jmp 0x18001d8ed
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x48], eax
jmp case.0x18001d4f5.13
mov rax, qword [rsp + 0x60]
mov byte [r14 + rax], bl
jmp case.0x18001d4f5.13
mov rax, qword [rsp + 0xe0]
mov r12d, 0xa5
mov r14, qword [r13 + 8]
mov r15, qword [rax]
nop dword [rax]
mov eax, r12d
sub eax, 0x6d
je 0x18001d712
sub eax, 0x38
je 0x18001d6b8
cmp eax, 0x3bf1
jne 0x18001d736
mov r9, r15
mov dword [rsp + 0x20], 0x127
mov r8, r14
xor edx, edx
xor ecx, ecx
call fcn.18004b6f0
mov rdi, rbx
mov r15, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xe0]
mov r8d, dword [rsp + 0x38]
mov edx, dword [rsp + 0x34]
mov qword [r13 + 8], rdi
jmp 0x18001d8ce
test r14, r14
je 0x18001d693
mov rbp, rbx
cmp qword [r14 + 8], rbx
jbe 0x18001d6f9
mov byte [rsp + 0xc8], bl
mov rsi, rbx
mov rcx, qword [r14]
lea rdx, [rsp + 0xc8]
add rcx, rsi
mov r9, r15
mov r8d, 0xb4
call fcn.18001ca50
inc rbp
add rsi, 0x10
cmp rbp, qword [r14 + 8]
jb 0x18001d6d0
mov r8, qword [r14]
mov r9, r15
xor edx, edx
mov dword [rsp + 0x20], 0x127
xor ecx, ecx
call fcn.18004b6f0
jmp 0x18001d736
mov rax, qword [r14 + 0x10]
lea rdx, [rsp + 0x50]
mov r9, qword [r14]
xor r8d, r8d
mov rcx, r15
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], 0x100
call fcn.180025000
add r12d, 0x3bf1
cmp r12d, 0xb3d3
jbe 0x18001d660
jmp 0x18001d696
mov rbp, qword [rsp + 0xe0]
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor r8d, r8d
mov edx, 0xd4
mov qword [rsp + 0x20], rbx
xor ecx, ecx
call fcn.18002ef00
test al, al
je 0x18001d916
mov rcx, qword [rbp + 0x28]
mov dword [rsp + 0x3c], ebx
call qword [rbp + 0x20]
test al, al
je 0x18001d812
mov r15d, dword [rsp + 0x58]
mov esi, 0xcf
nop dword [rax + rax]
mov eax, esi
sub eax, 0xcf
je 0x18001d7d1
cmp eax, 1
jne 0x18001d7f6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
sub ecx, r15d
mul ecx
mov r14d, edx
shr r14d, 6
mov dword [rsp + 0x3c], r14d
call qword [rbp + 0x50]
jmp 0x18001d7f6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
mov ecx, 0xdb
mov r15d, eax
call fcn.180015190
inc esi
cmp esi, 0xd1
jb 0x18001d7a0
mov r14, qword [rsp + 0x40]
mov dword [rsp + 0x58], r15d
mov r15, qword [rsp + 0xd8]
mov r9, qword [0x1802906b8]
xor r8d, r8d
mov dword [rsp + 0x28], 0x5b
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.180016a80
mov r8d, dword [rsp + 0x38]
mov rsi, rbp
mov edx, dword [rsp + 0x34]
jmp case.0x18001d4f5.13
movsd xmm6, qword [0x1802862b0]
mov qword [r13], rbx
mov qword [r15], rbx
jmp case.0x18001d4f5.13
mov rax, qword [rsp + 0xe0]
mov r14, rax
test rax, rax
je 0x18001d8cb
mov rsi, qword [r14 + 0x10]
test rsi, rsi
je 0x18001d8b0
mov r9, qword [rsi]
xor edx, edx
mov r8, qword [r14]
mov ecx, 0xab
call fcn.18003a740
mov qword [rsp + 0x50], rax
movsd xmm0, qword [rsp + 0x50]
comisd xmm0, xmm6
jbe 0x18001d8a3
mov rax, qword [r14]
movaps xmm6, xmm0
mov qword [r13], rax
mov rax, qword [rsi]
mov qword [r15], rax
mov rsi, qword [rsi + 0x10]
test rsi, rsi
jne 0x18001d870
mov rsi, qword [r14 + 0x10]
mov r14, rsi
test rsi, rsi
jne 0x18001d867
mov rsi, qword [rsp + 0xe0]
mov r8d, dword [rsp + 0x38]
mov edx, dword [rsp + 0x34]
jmp 0x18001d8ce
mov rsi, rax
mov r14, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
dec edx
mov dword [rsp + 0x34], edx
lea eax, [rdx + 0x52]
cmp eax, ecx
ja 0x18001d4d1
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0xc0]
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rax, [0x18009552c]
jmp 0x18001d8ed
mov r9, qword [0x1802906b8]
xor r8d, r8d
mov dword [rsp + 0x28], 0x5b
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.180016a80
mov dword [rsp + 0x48], ebx
jmp case.0x18001d4f5.9
mov rax, r13
jmp 0x18001d8ed
mov rax, qword [rsp + 0x60]
jmp 0x18001d8ed