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

Disassembly:
mov eax, 0x2009ec3f
call fcn.2007d394
sub esp, 0x9ac
mov eax, dword [0x200cc84c]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x960], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ecx + 0x1c], ebx
je 0x2004275b
cmp esi, ebx
je 0x2004275b
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x2004275b
cmp byte [eax + 0x1e4], bl
jne 0x2004275b
lea ecx, [eax + 0xb4]
call fcn.200342ea
test eax, eax
je 0x2004275b
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x95c], eax
call edi
mov ecx, dword [ebp - 0x95c]
sub eax, dword [ecx + 0x214]
cmp eax, 0x3e8
jb 0x2004275b
call edi
sub eax, dword [esi + 0x88]
cmp eax, 0xea60
jbe 0x2004234e
cmp dword [ebp + 0x14], ebx
jne 0x2004275b
push dword [esi + 0x18]
mov ecx, dword [ebp + 8]
call fcn.200210d5
test al, al
jne 0x2004275b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x21c]
cmp ecx, dword [esi + 0x18]
jne 0x200423af
mov ecx, esi
mov dword [ebp - 0x95c], eax
call fcn.2001a4f4
mov ecx, dword [ebp - 0x95c]
cmp eax, dword [ecx + 0x214]
jae 0x200423ac
mov eax, dword [ebp + 8]
mov dword [ebp - 0x95c], eax
call edi
mov ecx, dword [ebp - 0x95c]
sub eax, dword [ecx + 0x214]
cmp eax, 0x1770
jb 0x2004275b
mov eax, dword [ebp + 8]
xor edx, edx
inc edx
cmp word [eax + 0x1dc], dx
mov ecx, edx
ja 0x200423da
cmp word [eax + 0x1de], dx
ja 0x200423da
cmp word [eax + 0x1e0], bx
ja 0x200423da
cmp word [eax + 0x1e2], 0xa28
jbe 0x200423dc
xor ecx, ecx
cmp byte [eax + 0xc0], bl
je 0x200423ed
cmp byte [eax + 0xbf], 3
jne 0x200423ef
mov ecx, edx
cmp ecx, ebx
jne 0x2004275b
mov edi, 0x400
push edi
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x9b8]
call fcn.200030b0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x9b8]
push eax
mov ecx, esi
call fcn.2001a82e
test al, al
je 0x2004274d
mov eax, dword [ebp - 0x9b0]
sub eax, dword [ebp - 0x9b4]
je 0x2004274d
push edi
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x99c]
call fcn.200030b0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x998]
mov dword [ebp - 0x994], eax
push ebx
lea ecx, [ebp - 0x99c]
mov byte [eax], bl
call fcn.200012d7
push 0x43
lea ecx, [ebp - 0x99c]
call fcn.20001294
push ebx
lea ecx, [ebp - 0x99c]
call fcn.200012d7
push 0x89
lea ecx, [ebp - 0x99c]
call fcn.20001294
push 0x148
lea eax, [ebp - 0x958]
push ebx
push eax
call fcn.2007e690
mov ecx, dword [ebp - 0x960]
mov eax, dword [ecx + 0x10b14]
add esp, 0xc
cmp dword [ecx + 0x2a0], ebx
mov dword [ebp - 0x954], eax
je 0x200424cb
or byte [ebp - 0x950], 0x80
mov eax, dword [ecx + 0x548]
cmp eax, ebx
je 0x200424dc
or byte [ebp - 0x950], 0x40
cmp byte [ecx + 0x10e58], 1
jne 0x200424ec
or byte [ebp - 0x950], 0x20
cmp dword [ecx + 0x2a4], 2
jl 0x200424fc
or byte [ebp - 0x950], 0x10
cmp dword [ebp + 0x14], ebx
je 0x20042508
or byte [ebp - 0x94f], 0x80
cmp byte [esi + 0x21], bl
je 0x20042514
or byte [ebp - 0x94f], 0x40
or byte [ebp - 0x94f], 2
lea eax, [ebp - 0x978]
push eax
lea eax, [ebp - 0x970]
push eax
lea eax, [ebp - 0x980]
push eax
lea eax, [ebp - 0x96c]
push eax
mov dword [ebp - 0x974], ebx
mov dword [ebp - 0x95c], ebx
mov dword [ebp - 0x964], ebx
mov dword [ebp - 0x96c], ebx
mov dword [ebp - 0x968], ebx
mov dword [ebp - 0x980], ebx
mov dword [ebp - 0x97c], ebx
mov dword [ebp - 0x970], ebx
mov dword [ebp - 0x978], ebx
call fcn.2003aeb9
mov ecx, dword [ebp - 0x960]
lea eax, [ebp - 0x964]
push eax
lea eax, [ebp - 0x95c]
push eax
lea eax, [ebp - 0x974]
push eax
call fcn.2003c6df
mov eax, dword [esi + 8]
inc dword [eax + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x94c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x948], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x944], eax
mov eax, dword [ebp - 0x960]
mov eax, dword [eax + 0x10f8c]
mov dword [ebp - 0x940], eax
push 0x10
lea eax, [esi + 0x44]
push eax
lea eax, [ebp - 0x93c]
push eax
call fcn.2007ca70
mov eax, dword [ebp - 0x970]
add esp, 0xc
push ebx
shr eax, 0xa
push edi
push dword [ebp - 0x97c]
mov word [ebp - 0x92c], ax
mov eax, dword [ebp - 0x978]
push dword [ebp - 0x980]
shr eax, 0xa
mov word [ebp - 0x92a], ax
call fcn.2007c9c0
mov dword [ebp - 0x96c], eax
mov al, byte [ebp - 0x974]
mov byte [ebp - 0x920], al
mov al, byte [ebp - 0x964]
mov byte [ebp - 0x91f], al
mov al, byte [ebp - 0x95c]
mov byte [ebp - 0x91e], al
mov al, byte [esi + 0x78]
mov byte [ebp - 0x91d], al
mov eax, dword [esi + 0xb0]
mov dword [ebp - 0x918], eax
mov eax, dword [ebp - 0x9b0]
sub eax, dword [ebp - 0x9b4]
mov dword [ebp - 0x968], edx
fild qword [ebp - 0x96c]
push eax
push dword [ebp - 0x9b4]
lea eax, [ebp - 0x910]
fstp dword [ebp - 0x928]
push eax
mov word [ebp - 0x91c], 0xff
call fcn.2007ca70
add esp, 0xc
mov edi, dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [edi + 0x18]
lea eax, [ebp - 0x958]
push eax
lea eax, [ebp - 0x99c]
push eax
call fcn.200709ae
mov eax, dword [ebp - 0x994]
sub eax, dword [ebp - 0x998]
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0xb8]
push edx
push dword [ecx + 0xb4]
mov ecx, dword [ebp - 0x960]
push eax
push dword [ebp - 0x998]
add ecx, 0x10b5c
call fcn.2007625c
test eax, eax
je 0x2004273e
mov edi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x214], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x21c], eax
mov eax, dword [ebp - 0x994]
sub eax, dword [ebp - 0x998]
mov ecx, dword [ebp + 8]
push eax
call fcn.20020954
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x99c]
call fcn.200030f4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x9b8]
call fcn.200030f4
mov bl, 1
jmp 0x20042789
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x99c]
call fcn.200030f4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x9b8]
call fcn.200030f4
push dword [ebp + 0x14]
lea eax, [ebp + 8]
push esi
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x95c], esp
push eax
call fcn.20020cb6
mov byte [ebp - 4], 3
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x960]
call fcn.20040e7e
cmp eax, ebx
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.20001efb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.2007c9ae
leave
ret 0x10