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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x1a8
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x14031f2d0]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov edx, 0x88
lea rcx, [rsp + 0x70]
call fcn.140004bc0
lea rcx, [rsp + 0x70]
call fcn.1400ce610
nop
mov edx, 0x88
lea rcx, [rsp + 0x100]
call fcn.140004bc0
lea rcx, [rsp + 0x100]
call fcn.1400ce610
nop
mov eax, dword [rsp + 0x1b8]
cmp dword [rsp + 0x1c0], eax
jge 0x140015e08
lea rdx, str.lLengthMax_cant_be_less_than_lLengthMin
lea rcx, [rsp + 0x100]
call fcn.1400ce80c
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1b0]
call fcn.1400ce5b8
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x100]
call fcn.1400ce724
nop
lea rcx, [rsp + 0x70]
call fcn.1400ce724
mov rax, qword [rsp + 0x1b0]
jmp 0x1400160d6
cmp dword [rsp + 0x1b8], 0
jle 0x140015e1c
cmp dword [rsp + 0x1c0], 0
jg 0x140015e72
lea rdx, str.lLengthMax_and_lLengthMin_cant_be_less_than_or_equal_0
lea rcx, [rsp + 0x100]
call fcn.1400ce80c
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1b0]
call fcn.1400ce5b8
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x100]
call fcn.1400ce724
nop
lea rcx, [rsp + 0x70]
call fcn.1400ce724
mov rax, qword [rsp + 0x1b0]
jmp 0x1400160d6
mov eax, dword [rsp + 0x1c8]
cmp dword [rsp + 0x1d0], eax
jge 0x140015eda
lea rdx, str.lCharMax_cant_be_less_than_lCharMin
lea rcx, [rsp + 0x100]
call fcn.1400ce80c
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1b0]
call fcn.1400ce5b8
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x100]
call fcn.1400ce724
nop
lea rcx, [rsp + 0x70]
call fcn.1400ce724
mov rax, qword [rsp + 0x1b0]
jmp 0x1400160d6
cmp dword [rsp + 0x1c8], 0
jle 0x140015eee
cmp dword [rsp + 0x1d0], 0
jg 0x140015f44
lea rdx, str.lCharMax_and_lCharMin_cant_be_less_than_or_equal_0
lea rcx, [rsp + 0x100]
call fcn.1400ce80c
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1b0]
call fcn.1400ce5b8
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x100]
call fcn.1400ce724
nop
lea rcx, [rsp + 0x70]
call fcn.1400ce724
mov rax, qword [rsp + 0x1b0]
jmp 0x1400160d6
call fcn.1402273fc
mov dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x1b8]
mov edx, dword [rsp + 0x1c0]
sub edx, ecx
mov ecx, edx
inc ecx
xor edx, edx
div ecx
mov eax, edx
add eax, dword [rsp + 0x1b8]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
inc eax
cdqe
mov qword [rsp + 0x48], rax
mov eax, 2
mov rcx, qword [rsp + 0x48]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400cd718
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x34]
inc eax
cdqe
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.140009490
mov dword [rsp + 0x24], 0
jmp 0x140015fe7
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x24], eax
jge 0x140016047
call fcn.1402273fc
mov dword [rsp + 0x3c], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x1c8]
mov edx, dword [rsp + 0x1d0]
sub edx, ecx
mov ecx, edx
inc ecx
xor edx, edx
div ecx
mov eax, edx
add eax, dword [rsp + 0x1c8]
movsx ax, al
mov word [rsp + 0x30], ax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x28]
movzx edx, word [rsp + 0x30]
mov word [rcx + rax*2], dx
jmp 0x140015fdd
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x70]
call fcn.1400ce80c
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.14013aa70
cmp qword [rsp + 0x40], 0
jne 0x14001607d
mov qword [rsp + 0x58], 0
jmp 0x140016090
mov qword [rsp + 0x28], 0x8123
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1b0]
call fcn.1400ce5b8
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x100]
call fcn.1400ce724
nop
lea rcx, [rsp + 0x70]
call fcn.1400ce724
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14013a450
add rsp, 0x1a8
ret