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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
xor r14d, r14d
mov r13, rdx
movzx esi, r8b
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
lea rdx, [0x100024148]
lea rcx, [0x10003e4e0]
xor r9d, r9d
mov r8d, 0xea60
mov qword [rsp + 0x28], r14
mov edi, r14d
mov dword [rsp + 0x20], r14d
call fcn.100036cc8
lea r15, [0x10003d270]
mov rcx, r15
mov r12d, eax
call fcn.1000325b8
lea rdx, [0x10003d2b8]
mov r8, r13
mov rcx, r15
call fcn.100032ac8
lea ebx, [r14 + 1]
mov ebp, eax
cmp eax, 0xffffffff
je 0x100032804
lea rcx, [0x10003d2b8]
mov edx, eax
call fcn.100032d78
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x208]
cmp eax, r12d
jae 0x1000327fb
lea rcx, [0x10003d2b8]
mov edx, ebp
call fcn.100032d78
lea ebx, [r14 + 1]
mov edi, dword [rax + 0x20c]
jmp 0x100032845
mov ebx, 1
mov esi, ebx
jmp 0x100032845
lea rdx, [0x10003d2a0]
mov r8, r13
mov rcx, r15
call fcn.100032ac8
mov ebp, eax
cmp eax, 0xffffffff
je 0x100032845
lea rcx, [0x10003d2a0]
mov edx, eax
call fcn.100032d78
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x208]
mov ebx, 1
cmp eax, r12d
cmovae esi, ebx
cmp byte [0x10003e21d], r14b
je 0x10003285d
sub dword [0x10003d298], ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, r14d
je 0x100032a42
cmp edi, r14d
jl 0x100032a42
lea rcx, [rsp + 0x40]
call fcn.10002fbf0
lea rcx, [rsp + 0x60]
call fcn.100033184
lea rcx, [rsp + 0x50]
call fcn.10002fbf0
lea rdx, [rsp + 0x60]
mov rcx, r13
call fcn.100033208
lea rdx, [0x100023cf8]
lea rcx, [rsp + 0x60]
call fcn.1000338ac
cmp eax, r14d
mov edi, eax
jl 0x1000329d9
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x60]
mov edx, 0xa
call fcn.100033340
cmp eax, r14d
mov edi, eax
jl 0x1000329d9
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.100033e00
cmp eax, r14d
mov edi, eax
jl 0x1000329d9
mov rdi, qword [rsp + 0x40]
mov eax, r14d
cmp rdi, r14
je 0x100032903
cmp word [rdi], r14w
setne al
cmp al, r14b
je 0x10003295c
cmp rdi, r14
je 0x10003291d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdi, qword [rsp + 0x40]
jmp 0x100032920
mov eax, r14d
mov rcx, qword [rsp + 0x50]
dec eax
movsxd rbx, eax
call fcn.100039c5c
cmp word [rdi + rbx*2], ax
jne 0x100032957
mov rcx, qword [rsp + 0x40]
cmp rcx, r14
je 0x10003294c
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x40]
jmp 0x10003294f
mov eax, r14d
cdqe
mov word [rcx + rax*2 - 2], r14w
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.100031138
cmp eax, r14d
mov edi, eax
jge 0x1000329d9
cmp ebp, 0xffffffff
je 0x1000329d9
mov rcx, r15
call fcn.1000325b8
lea rdx, [0x10003d2b8]
mov r8, r13
mov rcx, r15
call fcn.100032ac8
mov esi, eax
cmp eax, 0xffffffff
je 0x1000329c1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x10003d2b8]
mov edx, esi
mov ebx, eax
call fcn.100032d78
lea rcx, [0x10003d2b8]
mov edx, esi
mov dword [rax + 0x208], ebx
call fcn.100032d78
mov edi, dword [rax + 0x20c]
cmp byte [0x10003e21d], r14b
je 0x1000329d9
dec dword [0x10003d298]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rsp + 0x50]
call fcn.100030020
lea rcx, [rsp + 0xc8]
call fcn.10002f874
lea rcx, [rsp + 0xb8]
call fcn.100030020
lea rcx, [rsp + 0xa8]
call fcn.100030020
lea rcx, [rsp + 0x98]
call fcn.100030020
lea rcx, [rsp + 0x88]
call fcn.100030020
lea rcx, [rsp + 0x70]
call fcn.100030020
lea rcx, [rsp + 0x60]
call fcn.100030020
lea rcx, [rsp + 0x40]
call fcn.100030020
lea r11, [rsp + 0xf0]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret