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

Disassembly:
mov eax, 0x200a1dcc
call fcn.2007d394
sub esp, 0xb58
mov eax, dword [0x200cc84c]
xor eax, ebp
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp + 0xc]
push edi
mov esi, 0x100
push esi
mov ebx, ecx
mov dword [ebp - 0x170], eax
call fcn.2008f9f9
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x198], eax
xor edi, edi
mov dword [ebp - 4], edi
push esi
push edi
push eax
call fcn.2007e690
mov ecx, dword [ebx + 0x20044]
add esp, 0x10
lea eax, [ebp - 0x18c]
push eax
push dword [ebp - 0x168]
mov dword [ebp - 0x18c], edi
call fcn.2003bac7
test al, al
je 0x200688c6
mov eax, dword [ebp - 0x18c]
cmp eax, edi
je 0x200688c6
push 4
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x200688c6
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0x17c]
call fcn.20070ae5
cmp word [ebp - 0x158], di
pop ecx
pop ecx
jne 0x20067f69
cmp dword [ebp - 0x154], edi
je 0x200688c6
mov ecx, dword [ebx + 0x20044]
call fcn.2003b99d
cmp dword [ebp - 0x154], eax
jne 0x200688c6
cmp word [ebp - 0x114], si
ja 0x200688c6
movzx esi, word [ebp - 0x114]
push esi
mov dword [ebp - 0x17c], esi
call fcn.2008f9f9
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x194], eax
mov byte [ebp - 4], 1
push esi
push edi
push eax
call fcn.2007e690
mov eax, dword [ebp - 0x18c]
push 4
cdq
pop ecx
idiv ecx
mov edi, eax
mov esi, edi
shl esi, 2
push esi
mov dword [ebp - 0x174], edi
call fcn.2008f9f9
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x178], eax
mov byte [ebp - 4], 2
push esi
call fcn.2008f9f9
add esp, 0x18
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x188], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb64]
call fcn.20028970
mov byte [ebp - 4], 4
push edi
push 0x10001
push dword [ebp - 0x16c]
lea ecx, [ebp - 0xb64]
call fcn.20028f08
push dword [ebp - 0x18c]
push dword [ebp - 0x168]
push dword [ebp - 0x160]
call fcn.2007ca70
push esi
call fcn.2008f9f9
mov edi, eax
mov dword [ebp - 0x15c], edi
mov byte [ebp - 4], 5
push esi
call fcn.2008f9f9
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x190], eax
mov byte [ebp - 4], 6
push esi
push 0
push edi
call fcn.2007e690
push esi
push 0
push dword [ebp - 0x164]
call fcn.2007e690
push esi
lea eax, [ebp - 0x110]
push eax
push edi
call fcn.2007ca70
add esp, 0x38
push dword [ebp - 0x174]
lea ecx, [ebp - 0xb64]
push dword [ebp - 0x16c]
push dword [ebp - 0x160]
push edi
push dword [ebp - 0x164]
call fcn.2002acd2
push esi
push dword [ebp - 0x164]
lea eax, [ebp - 0x110]
push eax
call fcn.2007ca70
mov byte [ebp - 4], 5
push dword [ebp - 0x164]
call fcn.2008f9fe
mov byte [ebp - 4], 4
push edi
call fcn.2008f9fe
add esp, 0x14
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb64]
call fcn.20028984
mov byte [ebp - 4], 2
push dword [ebp - 0x16c]
call fcn.2008f9fe
mov byte [ebp - 4], 1
push dword [ebp - 0x160]
call fcn.2008f9fe
mov eax, dword [ebp - 0x118]
cmp eax, dword [ebp - 0x110]
pop ecx
pop ecx
jne 0x200688a5
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x10c]
jne 0x200688a5
push dword [ebp - 0x17c]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x184]
call fcn.2007ca70
mov eax, dword [ebp - 0x118]
mov cx, word [ebp - 0x12c]
mov edi, dword [ebp - 0x14c]
mov dword [ebp - 0x178], eax
mov al, byte [ebp - 0x14f]
mov byte [ebp - 0x17d], al
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x164], eax
lea esi, [ebx + 0x20038]
mov eax, dword [esi]
mov word [eax + 0xe8], cx
mov eax, dword [esi]
mov cx, word [ebp - 0x12a]
mov word [eax + 0xea], cx
mov eax, dword [esi]
mov ecx, dword [ebp - 0x128]
mov dword [eax + 0xec], ecx
mov ecx, dword [ebp - 0x124]
mov eax, dword [esi]
mov dword [eax + 0xf0], ecx
mov cl, byte [ebp - 0x120]
mov eax, dword [esi]
mov byte [eax + 0xf4], cl
mov cl, byte [ebp - 0x11f]
mov eax, dword [esi]
mov byte [eax + 0xf5], cl
mov eax, dword [esi]
mov cl, byte [ebp - 0x11e]
mov byte [eax + 0xf6], cl
movzx ax, byte [ebp - 0x11d]
mov ecx, dword [ebp - 0x118]
mov word [ebp - 0x188], ax
mov eax, dword [esi]
add esp, 0xc
cmp ecx, dword [eax + 0x108]
mov dword [ebp - 0x160], edi
jbe 0x200682b1
mov dword [eax + 0x108], ecx
mov eax, dword [esi]
mov byte [eax + 0xfc], 0
mov ecx, dword [ebx + 0x20044]
mov eax, dword [esi]
mov ecx, dword [ecx + 0x19244]
cmp ecx, dword [eax + 0x108]
jae 0x200682b1
mov ecx, dword [ebp - 0x118]
mov eax, dword [ebx + 0x20044]
mov dword [eax + 0x19244], ecx
mov ecx, dword [ebx + 0x20044]
push dword [ebp - 0x118]
add ecx, 0x688
call fcn.2001e302
push dword [ebp - 0x108]
mov ecx, dword [ebx + 0x20044]
push dword [ebp - 0x118]
add ecx, 0x688
call fcn.2001ba30
mov ecx, dword [ebp - 0x170]
push 5
call fcn.2000133b
mov ecx, dword [ebp - 0x170]
push 0x1a
call fcn.20001294
mov eax, dword [esi]
push dword [eax + 0x108]
mov ecx, dword [ebp - 0x170]
call fcn.2000133b
mov eax, dword [ebx + 0x20044]
push dword [eax + 0x2a0]
lea ecx, [eax + 0x688]
push edi
call fcn.2001c08e
and dword [ebp - 0x15c], 0
mov dword [ebp - 0x174], eax
mov eax, dword [ebx + 0x20044]
add eax, 0x2bc
cmp dword [eax], 0
jne 0x200682fa
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x20044]
mov dword [ecx + 0x2c0], eax
mov edi, dword [ebx + 0x20044]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x2c0]
xor edx, edx
mov ecx, 0x3e8
div ecx
xor edx, edx
add eax, dword [edi + 0x2bc]
cmp dword [edi + 0x2a0], edx
je 0x2006832d
cmp dword [ebp - 0x174], edx
jne 0x20068372
mov ecx, dword [esi]
cmp byte [ecx + 0xc0], 0
je 0x20068372
cmp byte [ecx + 0xbf], 3
jne 0x20068357
mov ecx, dword [ebx + 0x20044]
cmp dword [ecx + 0x2a0], edx
jne 0x20068357
cmp dword [ecx + 0x548], edx
je 0x20068372
lea ecx, [eax - 0xf0]
cmp dword [ebp - 0x160], ecx
jbe 0x2006837c
add eax, 0xf0
cmp dword [ebp - 0x160], eax
jae 0x2006837c
mov dword [ebp - 0x15c], 1
mov eax, dword [ebx + 0x20044]
cmp dword [eax + 0x2a0], edx
je 0x20068396
cmp dword [ebp - 0x174], edx
je 0x2006888e
cmp dword [ebp - 0x15c], edx
je 0x2006888e
cmp dword [ebp - 0x160], edx
je 0x2006888e
push dword [ebp - 0x160]
lea ecx, [eax + 0x688]
call fcn.2001bb16
mov edi, eax
mov eax, dword [ebx + 0x20044]
cmp dword [eax + 0x2a0], 0
je 0x200683d8
test edi, edi
je 0x200688a5
push dword [ebp - 0x160]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x190], esp
push esi
call fcn.20020cb6
mov byte [ebp - 4], 7
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 0x20044]
call fcn.2004d4dc
mov eax, dword [esi]
cmp dword [eax + 0x20], 0
jne 0x200685c6
push dword [ebp - 0x118]
mov ecx, dword [ebx + 0x20044]
push dword [ebp - 0x160]
add ecx, 0x688
push dword [ebp - 0x164]
push dword [ebp - 0x16c]
call fcn.2001fdae
mov edi, eax
test edi, edi
je 0x200687a0
push dword [edi + 8]
lea ecx, [ebp - 0x15c]
call fcn.200011c0
mov byte [ebp - 4], 8
cmp dword [edi + 0x70], 0
je 0x2006845f
lea eax, [edi + 0x44]
test eax, eax
jne 0x20068493
mov eax, dword [ebp - 0x16c]
xor edx, edx
div dword [ebp - 0x164]
lea ecx, [edi + 0x40]
mov dword [ebp - 0x174], eax
xor eax, eax
test edx, edx
setne al
add eax, dword [ebp - 0x174]
push eax
call fcn.2003ab2e
push 0
lea ecx, [edi + 0x40]
call fcn.2003ac10
mov eax, dword [ebp - 0x16c]
xor edx, edx
div dword [ebp - 0x164]
xor ecx, ecx
test edx, edx
setne cl
add ecx, eax
mov eax, dword [esi]
push ecx
lea ecx, [eax + 0x28]
call fcn.2003ab2e
mov eax, dword [esi]
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [eax + 0x28]
call fcn.2003ac79
mov ax, word [ebp - 0x188]
mov word [edi + 0x78], ax
mov eax, dword [ebp - 0x178]
mov dword [edi + 0xb0], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x15c], 0
je 0x200684ff
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x15c]
dec dword [eax + 0x18]
mov eax, dword [esi]
add eax, 0x28
push eax
mov ecx, edi
call fcn.2001a392
mov eax, dword [esi]
mov ecx, dword [ebp - 0x160]
mov dword [eax + 0x20], ecx
mov eax, dword [ebx + 0x20044]
mov ecx, dword [eax + 0x548]
test ecx, ecx
je 0x20068536
mov edx, dword [esi]
cmp byte [edx + 0xc0], 0
je 0x20068553
test ecx, ecx
jne 0x20068588
cmp dword [eax + 0x2a0], 0
jne 0x20068588
mov ecx, dword [esi]
cmp byte [ecx + 0xc0], 0
je 0x20068553
cmp byte [ecx + 0xbf], 3
jne 0x20068588
cmp byte [eax + 0x6cc], 0
jne 0x20068588
mov eax, dword [ebx + 0x20044]
mov ecx, dword [ebp - 0x160]
mov dword [eax + 0x6c4], ecx
mov eax, dword [ebx + 0x20044]
mov byte [eax + 0x6cc], 1
mov eax, dword [ebx + 0x20044]
and dword [eax + 0x6d0], 0
mov eax, dword [ebx + 0x20044]
cmp dword [eax + 0x6c4], 0
jne 0x20068736
mov ecx, dword [ebp - 0x160]
mov dword [eax + 0x6c4], ecx
mov eax, dword [ebx + 0x20044]
and dword [eax + 0x6d0], 0
mov eax, dword [ebx + 0x20044]
mov byte [eax + 0x6cc], 0
jmp 0x20068736
mov ecx, dword [ebp - 0x160]
cmp ecx, dword [eax + 0x20]
jne 0x2006864d
mov ecx, dword [ebx + 0x20044]
push dword [eax + 0x20]
add ecx, 0x688
call fcn.2001bb16
mov edi, eax
test edi, edi
je 0x200687a0
mov eax, dword [esi]
add eax, 0x28
push eax
mov ecx, edi
call fcn.2001a3dc
push dword [edi + 8]
lea ecx, [ebp - 0x15c]
call fcn.200011c0
mov byte [ebp - 4], 9
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x10]
xor edx, edx
div ecx
xor ecx, ecx
test edx, edx
setne cl
add ecx, eax
mov eax, dword [esi]
push ecx
lea ecx, [eax + 0x28]
call fcn.2003ab2e
mov eax, dword [esi]
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [eax + 0x28]
call fcn.2003ac79
mov ax, word [ebp - 0x188]
mov word [edi + 0x78], ax
jmp 0x20068707
jbe 0x20068736
push dword [ebp - 0x178]
push ecx
push dword [ebp - 0x164]
mov ecx, dword [ebx + 0x20044]
push dword [ebp - 0x16c]
add ecx, 0x688
call fcn.2001fdae
mov edi, eax
test edi, edi
je 0x200687a0
push dword [edi + 8]
lea ecx, [ebp - 0x15c]
call fcn.200011c0
mov byte [ebp - 4], 0xa
cmp dword [edi + 0x70], 0
je 0x200686a0
lea eax, [edi + 0x44]
test eax, eax
jne 0x200686d4
mov eax, dword [ebp - 0x16c]
xor edx, edx
div dword [ebp - 0x164]
lea ecx, [edi + 0x40]
mov dword [ebp - 0x174], eax
xor eax, eax
test edx, edx
setne al
add eax, dword [ebp - 0x174]
push eax
call fcn.2003ab2e
push 0
lea ecx, [edi + 0x40]
call fcn.2003ac10
mov eax, dword [esi]
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [eax + 0x28]
call fcn.2003ac79
mov ax, word [ebp - 0x188]
mov ecx, dword [ebp - 0x160]
mov word [edi + 0x78], ax
mov eax, dword [ebp - 0x178]
mov dword [edi + 0xb0], eax
mov eax, dword [esi]
mov dword [eax + 0x20], ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x15c], 0
je 0x20068729
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x15c]
dec dword [eax + 0x18]
mov eax, dword [esi]
add eax, 0x28
mov ecx, edi
push eax
call fcn.2001a392
test edi, edi
je 0x200687a0
push dword [ebp - 0x17c]
mov ecx, edi
push dword [ebp - 0x184]
call fcn.2001a7ac
push 0x14
lea eax, [ebp - 0x104]
push eax
mov ecx, edi
call fcn.2001ac20
mov eax, dword [ebp - 0x148]
test eax, eax
jbe 0x20068784
cmp dword [ebp - 0x144], 0
je 0x20068784
xor edx, edx
div dword [ebp - 0x144]
cmp eax, 0x40
jbe 0x20068784
push 0x80
jmp 0x20068786
push 0x40
lea eax, [ebp - 0x90]
mov ecx, edi
push eax
call fcn.2001a554
mov al, byte [ebp - 0x17d]
shr al, 7
mov byte [edi + 0x21], al
mov ecx, dword [ebx + 0x20044]
mov edi, 0x688
push 0
add ecx, edi
call fcn.2001c76a
test eax, eax
je 0x20068849
mov ecx, dword [ebx + 0x20044]
push eax
add ecx, edi
call fcn.2001bb16
test eax, eax
mov dword [ebp - 0x17c], eax
je 0x20068849
push eax
push dword [ebp - 0x170]
mov ecx, ebx
call fcn.20067c5f
test eax, eax
je 0x20068849
mov eax, dword [ebx + 0x20044]
cmp dword [eax + 0x2a0], 0
jne 0x20068849
cmp dword [eax + 0x548], 0
jne 0x20068849
and dword [ebp - 0x178], 0
mov ecx, dword [ebx + 0x20044]
push dword [ebp - 0x17c]
add ecx, edi
call fcn.2001be8e
test eax, eax
mov dword [ebp - 0x17c], eax
je 0x20068849
cmp dword [eax + 0x74], 0
jle 0x20068849
push eax
push dword [ebp - 0x170]
mov ecx, ebx
call fcn.20064e7d
test eax, eax
je 0x20068849
inc dword [ebp - 0x178]
cmp dword [ebp - 0x178], 2
jl 0x20068805
mov esi, dword [esi]
lea ecx, [esi + 0x28]
call fcn.2003acb4
call fcn.2007f3d0
mov byte [esi + 0xf7], al
mov eax, dword [ebx + 0x20044]
cmp dword [eax + 0x2a0], 0
mov esi, dword [ebp - 0x170]
jne 0x2006887b
push esi
mov ecx, ebx
call fcn.20065874
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
jne 0x200688a5
push 0
mov ecx, esi
call fcn.2000133b
jmp 0x200688a5
push 0x200aa770
push 0x195
push dword [ebp - 0x170]
mov ecx, ebx
call fcn.20064bfe
mov byte [ebp - 4], 0
push dword [ebp - 0x184]
call fcn.2008f9fe
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x168]
call fcn.2008f9fe
pop ecx
jmp 0x200688d5
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x168]
call fcn.2008f9fe
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.2007c9ae
leave
ret 8