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

Disassembly:
mov eax, 0x200a1352
call fcn.2007d394
sub esp, 0x80
push ebx
push esi
mov ebx, ecx
push edi
lea eax, [ebx + 0x10938]
push eax
lea ecx, [ebp - 0x18]
xor edi, edi
call fcn.200011c0
mov dword [ebp - 4], edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [ebx + 0x10bfc]
cmp eax, 0x186a0
jae 0x2005d092
inc edi
jmp 0x2005d09a
call esi
mov dword [ebx + 0x10bfc], eax
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x2005d0af
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [esi + 0x18]
test edi, edi
je 0x2005d0ba
xor eax, eax
jmp 0x2005d40b
lea ecx, [ebp - 0x64]
call fcn.200352d0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x64]
push eax
mov ecx, ebx
call fcn.2005cfe0
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x40]
call fcn.2004fec8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
call fcn.2004fd99
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.2004fd99
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.2004fd99
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.2004fd99
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
call fcn.2004fd99
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x60]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [ebp - 0x14], eax
je 0x2005d284
cmp dword [eax + 0x34], 0
je 0x2005d270
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 4]
add eax, 8
push eax
lea ecx, [ebp - 0x20]
call fcn.20020cb6
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x20]
lea edi, [esi + 0xc0]
cmp byte [edi], 0x12
je 0x2005d264
lea eax, [esi + 0x88]
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
cmp eax, 2
je 0x2005d17b
cmp eax, 3
jne 0x2005d264
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0xc]
xor edx, edx
mov ecx, 0x3e8
div ecx
cmp eax, 0x14
jbe 0x2005d264
xor eax, eax
cmp dword [ebx + 0x2a0], eax
je 0x2005d1b1
cmp byte [esi + 0xbf], 3
je 0x2005d264
push 1
jmp 0x2005d1dd
cmp dword [ebx + 0x548], eax
je 0x2005d1c6
cmp byte [edi], 0
je 0x2005d264
push 2
jmp 0x2005d1dd
cmp byte [edi], 0
je 0x2005d264
cmp byte [esi + 0xbf], 3
je 0x2005d264
push eax
mov ecx, esi
call fcn.200207fa
call fcn.2007f3d0
test eax, eax
je 0x2005d264
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi]
inc dword [ebp - 0x18]
cdq
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x84], ecx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x88], edx
call fcn.200492d1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp eax, 2
jne 0x2005d22a
lea ecx, [ebp - 0x58]
jmp 0x2005d232
cmp eax, 3
jne 0x2005d23c
lea ecx, [ebp - 0x7c]
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.20048d9e
mov al, byte [esi + 0xbf]
cmp al, 1
je 0x2005d257
test al, al
je 0x2005d257
cmp al, 3
je 0x2005d252
cmp al, 2
jne 0x2005d264
lea ecx, [ebp - 0x4c]
jmp 0x2005d25a
lea ecx, [ebp - 0x70]
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.20048d9e
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x20]
call fcn.20001efb
lea ecx, [ebp - 0x14]
call fcn.2003492d
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x60]
jne 0x2005d130
mov eax, dword [ebx + 0x540]
cmp eax, 0x14
mov dword [ebp - 0x18], 1
jle 0x2005d2a5
add eax, 0xfffffffb
cmp dword [ebp - 0x38], eax
jl 0x2005d2a5
mov dword [ebp - 0x18], 3
mov esi, dword [ebp - 0x3c]
mov edi, dword [esi]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x10], edi
jmp 0x2005d306
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jg 0x2005d30a
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x18]
jge 0x2005d30a
lea eax, [edi + 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.2000296c
mov eax, dword [eax]
cmp eax, dword [ebp - 0x48]
je 0x2005d2fb
lea ecx, [ebx + 0x19898]
mov eax, dword [ecx]
lea esi, [edi + 0x18]
push dword [esi]
call dword [eax + 0x1c]
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x34]
call fcn.20048d9e
mov esi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x10]
call fcn.2003c473
mov edi, dword [ebp - 0x10]
cmp edi, esi
jne 0x2005d2b3
mov edi, dword [esi]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x10], edi
jmp 0x2005d368
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jg 0x2005d36c
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x2c], eax
jge 0x2005d36c
lea eax, [edi + 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x58]
call fcn.2000296c
mov eax, dword [eax]
cmp eax, dword [ebp - 0x54]
je 0x2005d35d
lea ecx, [ebx + 0x19898]
mov eax, dword [ecx]
lea esi, [edi + 0x18]
push dword [esi]
call dword [eax + 0x1c]
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x34]
call fcn.20048d9e
mov esi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x10]
call fcn.2003c473
mov edi, dword [ebp - 0x10]
cmp edi, esi
jne 0x2005d315
mov eax, dword [esi]
xor edi, edi
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x2005d3b2
inc edi
cmp edi, 0xa
jg 0x2005d3b2
mov ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x2c], ecx
jge 0x2005d3b2
lea esi, [eax + 0x18]
push dword [esi]
lea ecx, [ebx + 0x19898]
mov eax, dword [ecx]
call dword [eax + 0x1c]
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x34]
call fcn.20048d9e
lea ecx, [ebp - 0x10]
call fcn.2003c473
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x3c]
jne 0x2005d377
mov esi, dword [ebp - 0x2c]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
call fcn.2004f1c2
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.2004f1c2
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.2004f1c2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.2004f1c2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
call fcn.2004f1c2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.2004f19f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.200352ad
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret