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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4c8]
sub rsp, 0x5c8
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rbp + 0x4b0], rax
mov r15, r9
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov rsi, qword [rbp + 0x530]
mov r9, r8
mov r8d, 0xa0
call fcn.1800a7390
test al, al
je 0x18009f8a1
mov al, 1
jmp 0x18009fe1c
mov byte [r15], 0
mov byte [rsi], 1
mov qword [rbp - 0x58], rbx
test rbx, rbx
je 0x18009f8ba
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
nop
xor r13d, r13d
mov qword [rsp + 0x60], r13
mov dword [rsp + 0x40], 0xffffffff
mov qword [rsp + 0x44], r13
mov esi, 1
mov word [rsp + 0x4c], si
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
movdqu xmmword [rbp - 0x80], xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rsp + 0x58], r13
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x58]
mov rdx, r14
mov rcx, qword [rdi + 0x200]
call fcn.18026eae0
test al, al
je 0x18009fac3
mov rax, qword [rbx]
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
call qword [rax + 0x130]
mov rax, qword [rbx]
mov rdx, qword [rbp - 0x80]
mov rcx, rbx
call qword [rax + 0xa8]
mov rax, qword [rbx]
mov edx, dword [rsp + 0x40]
mov rcx, rbx
call qword [rax + 0x40]
mov rax, qword [rbx]
mov r8d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x44]
mov rcx, rbx
call qword [rax + 0xd8]
mov qword [rsp + 0x68], r13
mov rcx, qword [rdi + 0x1f8]
mov rax, qword [rcx]
lea r9, [rsp + 0x68]
mov r8, qword [rbp - 0x70]
lea edx, [rsi + 3]
call qword [rax + 0x50]
test al, al
je 0x18009f9bc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x118]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
xor r8d, r8d
movzx edx, word [rsp + 0x4c]
call qword [rax + 0x128]
mov rax, qword [rbx]
mov r8d, esi
mov rdx, qword [rsp + 0x68]
mov rcx, rbx
call qword [rax + 0x160]
jmp 0x18009fa78
mov qword [rsp + 0x50], r13
mov rcx, qword [rdi + 0x1f8]
mov rax, qword [rcx]
lea r9, [rsp + 0x50]
mov r8, qword [rsp + 0x70]
mov edx, esi
call qword [rax + 0x50]
test al, al
je 0x18009faa2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x118]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
xor r8d, r8d
movzx edx, word [rsp + 0x4c]
call qword [rax + 0x128]
mov qword [rsp + 0x58], r13
mov rcx, qword [rdi + 0x1f8]
mov rax, qword [rcx]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 1
mov dword [rsp + 0x20], 0xa0
mov r9d, 0xa0
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x58]
call qword [rax + 0x28]
test al, al
je 0x18009fa91
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x18009fa91
mov rax, qword [rbx]
mov r8d, esi
mov rcx, rbx
call qword [rax + 0x160]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x18009fa67
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18009fa78
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18009fdeb
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x18009fdeb
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x18009faa2
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18009fab3
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18009fac3
mov rax, qword [rcx]
call qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r12d, eax
lea rsi, [rdi + 0x48]
test rdi, rdi
cmove rsi, r13
mov rcx, qword [rdi + 0x1f8]
mov r10, qword [rcx]
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xa00004
lea r9, [rsp + 0x60]
mov r8, r14
mov edx, 2
call qword [r10 + 0x20]
mov rcx, qword [rsp + 0x60]
test al, al
je 0x18009fba6
test rcx, rcx
je 0x18009fdac
mov rax, qword [rcx]
call qword [rax + 0x80]
mov esi, eax
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rcx]
call qword [rdx + 0x88]
mov r8d, eax
cmp dword [rsp + 0x40], 0x22
je 0x18009fb86
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
xor r8d, r8d
movzx edx, word [rsp + 0x4c]
call qword [rax + 0x128]
test al, al
je 0x18009fb7d
movzx eax, word [rsp + 0x4c]
sub eax, 5
cmp eax, 3
ja 0x18009fb7d
mov r8d, dword [rsp + 0x44]
mov esi, dword [rsp + 0x48]
mov dword [rsp + 0x44], esi
mov dword [rsp + 0x48], r8d
jmp 0x18009fb86
mov r8d, dword [rsp + 0x48]
mov esi, dword [rsp + 0x44]
mov rax, qword [rbx]
mov edx, esi
mov rcx, rbx
call qword [rax + 0xd8]
mov rax, qword [rbx]
mov edx, dword [rsp + 0x40]
mov rcx, rbx
call qword [rax + 0x40]
jmp 0x18009fda2
test rcx, rcx
je 0x18009fbb6
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x50], r13
mov rcx, qword [rdi + 0x1f8]
mov rax, qword [rcx]
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0xa00001
lea r9, [rsp + 0x50]
mov r8, r14
mov edx, 1
call qword [rax + 0x20]
test al, al
jne 0x18009fbf8
xor dil, dil
jmp 0x18009fcf5
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18009fd92
mov rax, qword [rcx]
xor r8d, r8d
movzx edx, word [rsp + 0x4c]
call qword [rax + 0x128]
test al, al
je 0x18009fc3c
movzx eax, word [rsp + 0x4c]
sub eax, 5
cmp eax, 3
ja 0x18009fc3c
mov r8d, dword [rsp + 0x44]
mov edx, dword [rsp + 0x48]
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x48], r8d
jmp 0x18009fc45
mov r8d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x44]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0xd8]
mov rax, qword [rbx]
mov edx, dword [rsp + 0x40]
mov rcx, rbx
call qword [rax + 0x40]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x80]
cmp eax, dword [rsp + 0x44]
jne 0x18009fd0e
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, dword [rsp + 0x48]
jne 0x18009fd0e
mov byte [r15], 1
mov rax, qword [rbx]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call qword [rax + 0x160]
lea rcx, [rbp - 0x50]
call fcn.18009f240
nop
mov rax, qword [rbx]
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [rax + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r12d
cmp eax, 0xc8
jbe 0x18009fce8
lea rcx, [rdi + 0x48]
mov rax, qword [rcx]
call qword [rax]
test al, al
jne 0x18009fce8
mov rdx, r14
mov rcx, rdi
call fcn.1800a6d10
mov dil, 1
lea rcx, [rbp - 0x50]
call fcn.18009f620
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18009fdee
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x18009fdee
mov qword [rsp + 0x58], r13
mov rcx, qword [rdi + 0x1f8]
mov rax, qword [rcx]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 1
mov dword [rsp + 0x20], 0xa0
mov r9d, 0xa0
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x58]
call qword [rax + 0x28]
test al, al
je 0x18009fd81
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x18009fd81
mov qword [rsp + 0x58], r13
mov rcx, qword [rsp + 0x60]
cmp rcx, rsi
je 0x18009fd81
test rsi, rsi
je 0x18009fd71
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18009fd7c
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [rsp + 0x60], rsi
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x18009fd92
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18009fda2
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
jne 0x18009fdb1
xor dil, dil
jmp 0x18009fdee
mov rax, qword [rbx]
mov r8d, 1
mov rcx, rbx
call qword [rax + 0x160]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r12d
cmp eax, 0xc8
jbe 0x18009fdeb
lea rcx, [rdi + 0x48]
mov rax, qword [rcx]
call qword [rax]
test al, al
jne 0x18009fdeb
mov rdx, r14
mov rcx, rdi
call fcn.1800a6d10
mov dil, 1
lea rcx, [rsp + 0x70]
call fcn.18009f170
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18009fe0a
mov rdx, qword [rcx]
call qword [rdx + 8]
nop
test rbx, rbx
je 0x18009fe18
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 8]
movzx eax, dil
mov rcx, qword [rbp + 0x4b0]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x5c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret