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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x21064a55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
cmp dword [ebp + 0xc], 0
jg 0x2104535d
mov eax, 1
jmp 0x2104558f
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x60], eax
cmp dword [ebp + 0x10], 0
je 0x21045392
cmp dword [ebp - 0x60], 0
jb 0x21045392
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp + 0xc]
jae 0x21045392
mov eax, 1
jmp 0x2104558f
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x10], 0
je 0x210453eb
mov ecx, dword [ebp + 0xc]
shl ecx, 2
push ecx
call fcn.21058728
add esp, 4
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x210453ce
push str.WaitForMultipleObjectsWithProgress_could_not_allocate_handle_array
call fcn.2100df3d
xor eax, eax
jmp 0x2104558f
mov eax, dword [ebp + 0xc]
shl eax, 2
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.210490b0
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp + 0x24]
push ecx
push 1
push 0xb
push 0xb
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [0x2107bdc4]
push ecx
mov edx, dword [0x2107bdc0]
push edx
lea ecx, [ebp - 0x54]
call fcn.21033a00
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp + 0x20]
push eax
lea ecx, [ebp - 0x54]
push ecx
call fcn.210346f0
add esp, 8
cmp dword [ebp + 0x14], 0xffffffff
je 0x2104546f
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [ebp - 0x54]
call fcn.21034ab6
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x7c], eax
push 0
push 0x3e8
push 0
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
push 1
lea ecx, [ebp - 0x54]
call fcn.2103483a
lea ecx, [ebp - 0x54]
call fcn.210345bb
test eax, eax
jne 0x2104548a
jmp 0x21045565
cmp dword [ebp + 0x14], 0xffffffff
je 0x2104549f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [ebp - 0x54]
call fcn.21034783
push 0xff
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jb 0x2104551d
mov edx, dword [ebp - 0x60]
cmp edx, dword [ebp + 0xc]
jae 0x2104551d
cmp dword [ebp + 0x10], 0
je 0x21045514
cmp dword [ebp + 0xc], 1
jle 0x21045514
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x64]
lea edx, [ecx*4 - 4]
push edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax*4 + 4]
push edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax*4]
push edx
call fcn.2104abe0
add esp, 0xc
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
jmp 0x21045479
mov dword [ebp - 0x5c], 1
jmp 0x21045565
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp + 0xc]
jne 0x21045565
cmp dword [ebp + 0x14], 0xffffffff
je 0x21045565
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
cmp edx, dword [ebp - 0x58]
jb 0x21045557
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.21033a9b
mov eax, dword [ebp - 0x70]
jmp 0x2104558f
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x68]
mov dword [ebp + 0x14], eax
jmp 0x21045479
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
push edx
call fcn.21058751
add esp, 4
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.21033a9b
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x20