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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2107c5fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
cmp dword [ebp + 0xc], 0
jg 0x2105900e
mov eax, 1
jmp 0x21059249
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 - 0x68], eax
cmp dword [ebp + 0x10], 0
je 0x21059043
cmp dword [ebp - 0x68], 0
jb 0x21059043
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp + 0xc]
jae 0x21059043
mov eax, 1
jmp 0x21059249
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x10], 0
je 0x2105909f
mov ecx, dword [ebp + 0xc]
shl ecx, 2
push ecx
call fcn.2106e07d
add esp, 4
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x21059082
push str.WaitForMultipleObjectsWithProgress_could_not_allocate_handle_array
call fcn.2101235d
add esp, 4
xor eax, eax
jmp 0x21059249
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.2105e440
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 - 0x60], 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 [0x2109c23c]
push ecx
mov edx, dword [0x2109c238]
push edx
lea ecx, [ebp - 0x5c]
call fcn.210440e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x64], 0
mov eax, dword [ebp + 0x20]
push eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.21044f1d
add esp, 8
cmp dword [ebp + 0x14], 0xffffffff
je 0x21059129
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [ebp - 0x5c]
call fcn.210452f4
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x84], eax
push 0
push 0x3e8
push 0
mov ecx, dword [ebp - 0x84]
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
push 1
lea ecx, [ebp - 0x5c]
call fcn.21045078
lea ecx, [ebp - 0x5c]
call fcn.21044dd0
test eax, eax
jne 0x21059144
jmp 0x2105921f
cmp dword [ebp + 0x14], 0xffffffff
je 0x21059159
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [ebp - 0x5c]
call fcn.21044fa0
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 - 0x68], eax
cmp dword [ebp - 0x68], 0
jb 0x210591d7
mov edx, dword [ebp - 0x68]
cmp edx, dword [ebp + 0xc]
jae 0x210591d7
cmp dword [ebp + 0x10], 0
je 0x210591ce
cmp dword [ebp + 0xc], 1
jle 0x210591ce
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x6c]
lea edx, [ecx*4 - 4]
push edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax*4 + 4]
push edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax*4]
push edx
call fcn.2105ff80
add esp, 0xc
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
jmp 0x21059133
mov dword [ebp - 0x64], 1
jmp 0x2105921f
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [ebp + 0xc]
jne 0x2105921f
cmp dword [ebp + 0x14], 0xffffffff
je 0x2105921f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
cmp edx, dword [ebp - 0x60]
jb 0x21059211
mov dword [ebp - 0x78], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.2104417b
mov eax, dword [ebp - 0x78]
jmp 0x21059249
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x70]
mov dword [ebp + 0x14], eax
jmp 0x21059133
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
push edx
call fcn.2106e0a6
add esp, 4
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.2104417b
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret