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

Disassembly:
mov eax, 0x200a200e
call fcn.2007d394
sub esp, 0x50
push ebx
mov ebx, ecx
cmp byte [ebx + 0x20071], 0
push esi
push edi
je 0x2006b72d
push 0x200aa908
push 0x1fa
push dword [ebp + 0x10]
call fcn.20064bfe
jmp 0x2006b7a1
cmp dword [ebp + 0xc], 0xe
jl 0x2006c148
push 0x64
push dword [ebp + 8]
lea ecx, [ebp - 0x40]
mov dword [ebx + 0x20060], 2
call fcn.200030b0
and dword [ebp - 4], 0
push 0xa
lea ecx, [ebp - 0x40]
call fcn.2000135f
mov esi, eax
test esi, esi
jne 0x2006b76a
or esi, 0xffffffff
jmp 0x2006c0fb
push 0x18
push 8
push esi
call fcn.2001762c
mov di, word [esi + 8]
push 0xa
push str.PSProtocol
push esi
mov dword [ebp + 8], eax
call fcn.2007ce10
add esp, 0x18
test eax, eax
je 0x2006b7a9
cmp di, word [ebp + 8]
je 0x2006b7a9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.200030f4
or eax, 0xffffffff
jmp 0x2006c14a
lea ecx, [ebp - 0x40]
call fcn.200012b7
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x10], eax
call fcn.200012b7
cmp dword [ebp + 0xc], 0x3c
jl 0x2006c13c
lea ecx, [ebp - 0x40]
call fcn.2000131e
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], eax
call fcn.200013b6
lea ecx, [ebp - 0x40]
mov dword [ebp + 8], eax
call fcn.20001279
mov byte [ebp + 0xf], al
and byte [ebp + 0xf], 0x3f
movzx eax, al
mov edi, eax
shr eax, 6
and eax, 1
shr edi, 7
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], eax
call fcn.2000131e
lea ecx, [ebp - 0x40]
call fcn.2000131e
mov esi, dword [ebp - 0x10]
mov ecx, esi
and cx, 0xff00
mov eax, 0x100
cmp cx, ax
je 0x2006b8ce
cmp si, ax
jae 0x2006b842
push 0x200aa8f0
push 0x19a
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.20064bfe
jmp 0x2006b8bf
jbe 0x2006b8bf
push 0x200aa8d8
push 0x19a
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.20064bfe
cmp dword [ebx + 0x20044], 0
jne 0x2006b8a8
cmp dword [ebx + 0x20068], 0
jne 0x2006b8a8
mov ecx, ebx
call fcn.20064b91
movzx eax, word [eax + 0x98]
push eax
call fcn.20064b91
mov ecx, dword [eax + 4]
call fcn.2003f4e9
test eax, eax
mov dword [ebx + 0x20044], eax
jne 0x2006b8a8
push dword [ebp + 8]
mov ecx, ebx
call fcn.20064b91
mov ecx, dword [eax + 4]
call fcn.20042c79
mov dword [ebx + 0x20044], eax
mov eax, dword [ebx + 0x20044]
test eax, eax
je 0x2006b8bf
add eax, 0x10b04
cmp si, word [eax]
jbe 0x2006b8bf
mov word [eax], si
mov dword [ebx + 0x2005c], 1
jmp 0x2006b762
mov eax, dword [ebx + 0x20044]
xor esi, esi
cmp eax, esi
je 0x2006bcbd
cmp dword [eax + 0x10898], esi
jne 0x2006bcbd
push dword [ebp + 8]
lea ecx, [eax + 0x440]
call fcn.20001d33
test eax, eax
jne 0x2006bca4
lea esi, [ebx + 0x20038]
mov eax, dword [esi]
mov byte [ebx + 0x20071], 1
cmp byte [eax + 0xc0], 0
je 0x2006b936
cmp byte [eax + 0xbf], 3
je 0x2006b936
mov ecx, dword [ebx + 0x20044]
add eax, 0xb4
push eax
call fcn.2003fd59
test eax, eax
je 0x2006b95d
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x2006b960
mov eax, dword [ebx + 0x20044]
mov dword [eax + 0x2b4], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x20044]
mov dword [ecx + 0x2b8], eax
jmp 0x2006b960
mov edi, dword [ebp - 0x14]
mov eax, dword [esi]
mov cx, word [ebp - 0x10]
mov word [eax + 0x90], cx
mov eax, dword [esi]
mov ecx, ebx
mov dword [eax + 0x1c], edi
call fcn.20064b91
mov ecx, dword [ebx + 0x20044]
push 1
mov edi, eax
call fcn.2003c5bc
cmp eax, dword [edi + 0x9c]
jle 0x2006ba9f
mov ecx, dword [ebx + 0x20044]
call fcn.2005d051
cmp eax, 1
jge 0x2006ba9f
mov eax, dword [ebx + 0x20044]
add eax, 0x10938
push eax
lea ecx, [ebp + 0xc]
call fcn.200011c0
mov byte [ebp - 4], 1
mov eax, dword [esi]
mov byte [eax + 0xcd], 1
mov ecx, dword [ebx + 0x20044]
push esi
lea eax, [ebp - 0x24]
push eax
add ecx, 0x10a14
call fcn.20048f98
mov byte [ebp - 4], 0
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x2006b9f4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [esi + 0x18]
mov ecx, dword [ebx + 0x20044]
call fcn.2003b735
test eax, eax
je 0x2006ba9f
mov ecx, dword [ebx + 0x20044]
call fcn.2003b844
test eax, eax
je 0x2006ba9f
mov ecx, ebx
call fcn.20064b91
add eax, 0x9c
add dword [eax], 5
call fcn.20064b91
add eax, 0xa4
add dword [eax], 5
call fcn.20064b91
push 0x64
pop edx
cmp dword [eax + 0xa4], edx
jle 0x2006ba51
call fcn.20064b91
mov dword [eax + 0xa4], edx
mov ecx, ebx
call fcn.20064b91
cmp dword [eax + 0x9c], edx
jle 0x2006ba6b
call fcn.20064b91
mov dword [eax + 0x9c], edx
mov ecx, ebx
call fcn.20064b91
mov edx, eax
call fcn.20064b91
mov eax, dword [eax + 0x9c]
cmp eax, dword [edx + 0xa4]
jle 0x2006ba9f
call fcn.20064b91
mov edx, eax
call fcn.20064b91
mov ecx, dword [edx + 0xa4]
mov dword [eax + 0x9c], ecx
lea ecx, [ebx + 0x20038]
mov eax, dword [ecx]
lea edi, [eax + 0xb4]
lea esi, [ebx + 0x20030]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [ecx]
call fcn.20020af0
mov cx, word [ebx + 0x20034]
lea esi, [ebx + 0x20038]
mov eax, dword [esi]
mov word [eax + 0xba], cx
mov eax, dword [ebx + 0x20044]
add eax, 0x10938
push eax
lea ecx, [ebp + 0xc]
call fcn.200011c0
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x20044]
push esi
add ecx, 0x109cc
call fcn.2004c378
mov ecx, dword [ebx + 0x20044]
push esi
add ecx, 0x109a8
call fcn.2004c378
mov ecx, dword [ebx + 0x20044]
push esi
add ecx, 0x109d8
call fcn.2004c378
mov ecx, dword [ebx + 0x20044]
push esi
add ecx, 0x109e4
call fcn.2004c378
mov ecx, dword [ebx + 0x20044]
push esi
lea eax, [ebp - 0x24]
push eax
add ecx, 0x109f0
call fcn.20048f98
mov byte [ebp - 4], 0
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x2006bb5e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [esi + 0x18]
mov ecx, dword [ebx + 0x20044]
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp dword [ecx + 0x548], esi
jne 0x2006bb9b
cmp dword [ecx + 0x192e4], 1
je 0x2006bb9b
push dword [ecx + 0x19244]
call fcn.2003b5e2
test eax, eax
je 0x2006bb9b
push 1
mov ecx, edi
call fcn.2000133b
push 0x1c
mov ecx, edi
call fcn.20001294
push esi
push edi
mov ecx, ebx
call fcn.200654e0
mov eax, dword [ebx + 0x20044]
cmp dword [eax + 0x548], esi
je 0x2006bbc4
push 1
mov ecx, edi
call fcn.2000133b
push 0x18
mov ecx, edi
call fcn.20001294
push 1
mov ecx, edi
call fcn.2000133b
push 8
mov ecx, edi
call fcn.20001294
mov esi, dword [ebx + 0x20038]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x20044]
mov eax, dword [eax + 0x2c4]
mov eax, dword [eax + 0x298]
xor esi, esi
cmp eax, esi
jle 0x2006bc45
cmp eax, 0x14
jge 0x2006bc45
add eax, 2
push eax
mov ecx, edi
call fcn.2000133b
push 0x1d
mov ecx, edi
call fcn.20001294
mov eax, dword [ebx + 0x20044]
mov eax, dword [eax + 0x2c4]
add eax, 0x284
cmp dword [eax + 0x18], 0x10
jb 0x2006bc32
mov eax, dword [eax + 4]
jmp 0x2006bc35
add eax, 4
push eax
mov ecx, edi
call fcn.2000122e
push esi
mov ecx, edi
call fcn.20001294
cmp dword [ebp - 0x18], esi
mov dword [ebx + 0x20060], esi
je 0x2006bc76
push ecx
push ecx
lea eax, [ebx + 0x20038]
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
call fcn.20020cb6
mov byte [ebp - 4], 3
mov byte [ebp - 4], 0
mov ecx, dword [ebx + 0x20044]
call fcn.2003e347
mov ecx, dword [ebx + 0x20044]
call fcn.2003b074
test eax, eax
jne 0x2006bc9c
mov ecx, dword [ebx + 0x20044]
call fcn.2003b9a4
test al, al
jne 0x2006bc9c
push edi
mov ecx, ebx
call fcn.20066e82
push 0x3c
pop esi
jmp 0x2006c0fb
push 0x200aa8c4
push 0x194
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.20064bfe
jmp 0x2006b762
cmp dword [ebx + 0x20068], esi
mov ecx, ebx
jne 0x2006c130
call fcn.20064b91
movzx eax, word [eax + 0x98]
push eax
call fcn.20064b91
mov ecx, dword [eax + 4]
call fcn.2003f4e9
cmp eax, esi
mov dword [ebx + 0x20044], eax
jne 0x2006bd07
push dword [ebp + 8]
mov ecx, ebx
call fcn.20064b91
mov ecx, dword [eax + 4]
call fcn.20042c79
mov dword [ebx + 0x20044], eax
mov eax, dword [ebx + 0x20044]
cmp eax, esi
je 0x2006c124
push dword [ebp + 8]
add eax, 0x440
mov ecx, eax
call fcn.20001d33
test eax, eax
jne 0x2006c124
mov eax, dword [ebx + 0x20044]
cmp dword [eax + 0x2a0], esi
mov cl, byte [ebp + 0xf]
je 0x2006bd4f
test cl, cl
je 0x2006bd4f
cmp cl, 2
je 0x2006bd4f
cmp cl, 0x11
jne 0x2006c124
cmp dword [eax + 0x10898], esi
jne 0x2006c10b
cmp cl, 2
je 0x2006bd72
cmp cl, 1
je 0x2006bd72
test cl, cl
je 0x2006bd72
cmp cl, 0x11
jne 0x2006c10b
lea esi, [ebx + 0x20030]
mov ecx, esi
call fcn.200342ea
test eax, eax
je 0x2006c10b
lea eax, [ebp - 0x5c]
push eax
mov ecx, esi
call fcn.20034401
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 0x10
jb 0x2006bda1
mov eax, dword [eax + 4]
jmp 0x2006bda4
add eax, 4
mov ecx, dword [ebx + 0x20044]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.20058063
mov byte [ebp - 4], 5
lea esi, [ebx + 0x20038]
push eax
mov ecx, esi
call fcn.20020cef
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.20001efb
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.2000275e
mov eax, dword [esi]
test eax, eax
je 0x2006c0e4
test edi, edi
mov ecx, dword [ebx + 0xc]
mov dword [eax], ecx
mov eax, dword [esi]
mov ecx, dword [eax + 0x8c]
mov dword [ebx + 0x20040], ecx
mov cx, word [ebp - 0x10]
mov word [eax + 0x90], cx
mov eax, dword [esi]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x1c], ecx
je 0x2006be1d
mov byte [ebx + 0x20073], 1
mov al, byte [ebp + 0xf]
cmp al, 1
je 0x2006be42
test al, al
je 0x2006be42
cmp al, 2
je 0x2006be42
cmp al, 0x11
jne 0x2006bfc7
mov eax, dword [esi]
mov byte [eax + 0xc0], 0x12
jmp 0x2006bfc7
mov edx, dword [ebx + 0x20044]
cmp dword [edx + 0x2a0], 0
je 0x2006be5b
cmp dword [ebp - 0x20], 0
jne 0x2006bfaf
mov ecx, ebx
call fcn.20064b91
mov ecx, edx
mov edi, eax
call fcn.2003c635
cmp eax, dword [edi + 0xa4]
jg 0x2006be95
mov ecx, ebx
call fcn.20064b91
mov ecx, dword [ebx + 0x20044]
push 0
mov edi, eax
call fcn.2003c5bc
cmp eax, dword [edi + 0xa0]
jle 0x2006bfaf
mov ecx, dword [ebx + 0x20044]
call fcn.2005d051
cmp eax, 1
jge 0x2006bfaf
mov ecx, dword [ebx + 0x20044]
call fcn.2004ae16
test eax, eax
jne 0x2006bf04
mov eax, dword [ebx + 0x20044]
add eax, 0x10938
push eax
lea ecx, [ebp + 8]
call fcn.200011c0
mov byte [ebp - 4], 6
mov eax, dword [esi]
mov byte [eax + 0xcd], 1
mov ecx, dword [ebx + 0x20044]
push esi
lea eax, [ebp - 0x24]
push eax
add ecx, 0x10a08
call fcn.20048f98
mov byte [ebp - 4], 0
mov edi, dword [ebp + 8]
test edi, edi
je 0x2006bf04
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [edi + 0x18]
mov ecx, dword [ebx + 0x20044]
call fcn.2003b735
test eax, eax
je 0x2006bfaf
mov ecx, dword [ebx + 0x20044]
call fcn.2003b844
test eax, eax
je 0x2006bfaf
mov ecx, ebx
call fcn.20064b91
add eax, 0xa0
add dword [eax], 5
call fcn.20064b91
add eax, 0xa4
add dword [eax], 5
call fcn.20064b91
push 0x64
pop edx
cmp dword [eax + 0xa4], edx
jle 0x2006bf61
call fcn.20064b91
mov dword [eax + 0xa4], edx
mov ecx, ebx
call fcn.20064b91
cmp dword [eax + 0xa0], edx
jle 0x2006bf7b
call fcn.20064b91
mov dword [eax + 0xa0], edx
mov ecx, ebx
call fcn.20064b91
mov edx, eax
call fcn.20064b91
mov eax, dword [eax + 0xa0]
cmp eax, dword [edx + 0xa4]
jle 0x2006bfaf
call fcn.20064b91
mov edx, eax
call fcn.20064b91
mov ecx, dword [edx + 0xa4]
mov dword [eax + 0xa0], ecx
cmp byte [ebp + 0xf], 2
mov eax, dword [esi]
jne 0x2006bfc0
mov byte [eax + 0xc0], 2
jmp 0x2006bfc7
mov byte [eax + 0xc0], 3
mov eax, dword [esi]
cmp byte [eax + 0xcd], 0
je 0x2006bfef
mov eax, dword [ebx + 0x20044]
mov ecx, dword [eax + 0x10a1c]
mov eax, dword [eax + 0x10a10]
add eax, ecx
cmp eax, 0xa
jg 0x2006c0e4
mov edi, dword [ebp + 0x10]
push edi
mov ecx, ebx
call fcn.20065234
mov eax, dword [esi]
cmp byte [eax + 0xcd], 1
jne 0x2006c017
push 1
mov ecx, edi
call fcn.2000133b
push 0x19
mov ecx, edi
call fcn.20001294
mov eax, dword [ebx + 0x20044]
cmp dword [eax + 0x2a0], 0
jne 0x2006c04c
cmp dword [eax + 0x548], 0
jne 0x2006c04c
push 1
mov ecx, edi
call fcn.2000133b
push 8
mov ecx, edi
call fcn.20001294
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x20044]
mov eax, dword [eax + 0x2c4]
mov eax, dword [eax + 0x298]
test eax, eax
jle 0x2006c0ab
cmp eax, 0x14
jge 0x2006c0ab
add eax, 2
push eax
mov ecx, edi
call fcn.2000133b
push 0x1d
mov ecx, edi
call fcn.20001294
mov eax, dword [ebx + 0x20044]
mov eax, dword [eax + 0x2c4]
add eax, 0x284
cmp dword [eax + 0x18], 0x10
jb 0x2006c097
mov eax, dword [eax + 4]
jmp 0x2006c09a
add eax, 4
push eax
mov ecx, edi
call fcn.2000122e
push 0
mov ecx, edi
call fcn.20001294
mov ecx, dword [ebx + 0x20044]
call fcn.2003b074
test eax, eax
jne 0x2006c0d1
mov ecx, dword [ebx + 0x20044]
call fcn.2003b9a4
test al, al
jne 0x2006c0d1
push edi
mov ecx, ebx
call fcn.20066e82
and dword [ebx + 0x20060], 0
mov byte [ebx + 0x20071], 1
jmp 0x2006bc9c
push 0x200aa8b8
push 0x190
push dword [ebp + 0x10]
mov ecx, ebx
or esi, 0xffffffff
call fcn.20064bfe
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.200030f4
mov eax, esi
jmp 0x2006c14a
push 0x200aa8b8
push 0x190
mov ecx, ebx
push dword [ebp + 0x10]
call fcn.20064bfe
jmp 0x2006b795
push 0x200aa8c4
push 0x194
jmp 0x2006c115
push 0x200aa8a8
push 0x190
jmp 0x2006c117
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.200030f4
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc