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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1003f7b0
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0xa8], ebp
je 0x10020f10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
push 0x493e0
mov ecx, esi
mov dword [esp + 0x18], edi
call fcn.100222b0
mov edx, dword [esi + 0x120]
mov ecx, dword [esi + 0x128]
mov byte [esp + 0x13], al
mov eax, edi
sub eax, edx
mov byte [esp + 0x12], 0
cmp eax, ecx
mov byte [esp + 0x11], 0
jb 0x10020b9c
cmp dword [esi + 0xfc], 0xffffffff
jne 0x10020a8a
mov ecx, esi
call fcn.100216a0
call fcn.1002f1c0
mov bl, al
mov al, byte [esi + 0x124]
cmp al, 1
mov byte [esp + 0x11], bl
mov byte [esp + 0x12], 1
jne 0x10020ab5
mov dword [esi + 0x128], 0x6ddd00
mov byte [esi + 0x124], 0
mov dword [esi + 0x120], edi
call fcn.1002f8e0
mov dx, word [esi + 0x156]
xor ecx, ecx
cmp bl, 1
mov dword [esi + 0x1a4], eax
sete cl
mov word [esi + 0x1a8], cx
mov word [esi + 0x1a0], dx
lea edi, [esi + 0x19c]
lea ebx, [esi + 0xb0]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], 0x100471d4
mov ecx, ebx
mov dword [esp + 0x68], ebp
mov byte [esp + 0x1c], 3
mov word [esp + 0x1e], 8
call fcn.1002a600
mov dword [esp + 0x20], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
mov ebp, eax
lea ecx, [ebx + 4]
add ebp, 7
push ebp
call fcn.1002a720
lea eax, [ebx + 4]
lea ecx, [esp + 0x30]
mov dword [eax + 8], ebp
mov ebx, dword [ebx + 0xc]
mov eax, dword [eax]
push ebx
push eax
call fcn.10020f30
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 1
call dword [edx + 0xc]
mov eax, dword [edi]
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call dword [eax + 0xc]
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 0
call fcn.10021140
mov eax, dword [esi + 0xbc]
mov edx, dword [esi + 0xb4]
mov ecx, dword [esi + 0xa8]
lea edi, [esi + 0xf4]
push edi
push eax
push edx
mov dword [esp + 0x74], 0xffffffff
call fcn.100389f0
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0x114]
mov eax, dword [esi + 0x11c]
mov edx, edi
sub edx, ecx
cmp edx, eax
jb 0x10020d10
mov al, byte [esp + 0x12]
test al, al
jne 0x10020bca
call fcn.1002f1c0
mov byte [esp + 0x11], al
mov byte [esp + 0x12], 1
cmp byte [esp + 0x11], 1
jne 0x10020d10
mov eax, dword [esi + 0xc4]
test eax, eax
jne 0x10020d10
cmp dword [esi + 0xe8], 0xffffffff
jne 0x10020bf3
mov ecx, esi
call fcn.100215b0
cmp byte [esi + 0x118], 1
jne 0x10020c0d
mov dword [esi + 0x11c], 0xea60
mov byte [esi + 0x118], 0
mov dword [esi + 0x114], edi
mov word [esi + 0x16e], 1
call fcn.1002f8e0
mov ecx, esi
mov dword [esi + 0x170], eax
call fcn.1002a290
mov word [esi + 0x16c], ax
lea edi, [esi + 0x158]
lea ebx, [esi + 0xb0]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0x100471d4
mov ecx, ebx
mov dword [esp + 0x68], 2
mov byte [esp + 0x1c], 1
mov word [esp + 0x1e], 8
call fcn.1002a600
mov dword [esp + 0x20], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
mov ebp, eax
lea ecx, [ebx + 4]
add ebp, 7
push ebp
call fcn.1002a720
lea eax, [ebx + 4]
lea ecx, [esp + 0x30]
mov dword [eax + 8], ebp
mov ebx, dword [ebx + 0xc]
mov eax, dword [eax]
push ebx
push eax
call fcn.10020f30
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 3
call dword [edx + 0xc]
mov eax, dword [edi]
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call dword [eax + 0xc]
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 2
call fcn.10021140
mov eax, dword [esi + 0xbc]
mov edx, dword [esi + 0xb4]
mov ecx, dword [esi + 0xa8]
lea edi, [esi + 0xe0]
push edi
push eax
push edx
mov dword [esp + 0x74], 0xffffffff
call fcn.100389f0
mov ecx, dword [esi + 0xc0]
push 0x2710
mov dword [esi + 0xc4], 1
call fcn.10039df0
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0x108]
mov eax, dword [esi + 0x110]
mov edx, edi
sub edx, ecx
cmp edx, eax
jb 0x10020e9f
cmp byte [esp + 0x13], 1
jne 0x10020e9f
mov al, byte [esp + 0x12]
test al, al
jne 0x10020d44
call fcn.1002f1c0
mov byte [esp + 0x11], al
cmp byte [esp + 0x11], 1
jne 0x10020e9f
mov eax, dword [esi + 0xc4]
test eax, eax
jne 0x10020e9f
cmp dword [esi + 0xe8], 0xffffffff
jne 0x10020d6d
mov ecx, esi
call fcn.100215b0
cmp byte [esi + 0x10c], 1
jne 0x10020d87
mov dword [esi + 0x110], 0xea60
mov byte [esi + 0x10c], 0
mov dword [esi + 0x108], edi
mov word [esi + 0x16e], 0
call fcn.1002f8e0
mov ecx, esi
mov dword [esi + 0x170], eax
call fcn.1002a290
mov word [esi + 0x16c], ax
lea ebp, [esi + 0x158]
mov dword [esp + 0x24], 0x100471d4
mov eax, dword [esi + 0xb0]
mov dword [esp + 0x68], 4
inc eax
mov byte [esp + 0x28], 1
mov word [esp + 0x2a], 8
mov dword [esi + 0xb0], eax
jne 0x10020dea
mov dword [esi + 0xb0], 1
mov eax, dword [esi + 0xb0]
mov ecx, ebp
mov dword [esp + 0x2c], eax
mov eax, dword [ebp]
call dword [eax + 0x10]
mov edi, eax
lea ebx, [esi + 0xb4]
add edi, 7
mov ecx, ebx
push edi
call fcn.1002a720
mov dword [ebx + 8], edi
mov eax, dword [esi + 0xbc]
mov ebx, dword [ebx]
push eax
push ebx
lea ecx, [esp + 0x50]
call fcn.10020f30
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 5
call dword [edx + 0xc]
mov eax, dword [ebp]
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebp
call dword [eax + 0xc]
lea ecx, [esp + 0x48]
mov byte [esp + 0x68], 4
call fcn.10021140
mov eax, dword [esi + 0xbc]
mov ecx, dword [esi + 0xb4]
lea edx, [esi + 0xe0]
mov dword [esp + 0x68], 0xffffffff
push edx
push eax
push ecx
mov ecx, dword [esi + 0xa8]
mov dword [esp + 0x30], 0x10046f98
call fcn.100389f0
mov ecx, dword [esi + 0xc0]
push 0x2710
mov dword [esi + 0xc4], 1
call fcn.10039df0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x1bc]
mov edi, eax
mov edx, edi
sub edx, ecx
cmp edx, 0x5265c00
jbe 0x10020ec6
mov ecx, esi
call fcn.10021310
mov dword [esi + 0x1bc], edi
mov eax, dword [0x10056c40]
mov ecx, 0xf
cdq
idiv ecx
pop edi
pop ebx
test edx, edx
jne 0x10020f0a
cmp word [esi + 0x156], 1
jne 0x10020f0a
push 4
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x10020ef9
mov dword [eax], 0x100471cc
jmp 0x10020efb
xor eax, eax
mov edx, dword [esi + 0x60]
push eax
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
inc dword [0x10056c40]
mov ecx, esi
call fcn.10022290
mov ecx, dword [esp + 0x58]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x5c
ret