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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x586d04
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x50], ebx
lea esi, [esp + 0x14]
call fcn.0042cb20
cmp dword [esp + 0x14], ebx
jne 0x429822
mov dword [esp + 0x50], 0xffffffff
jmp 0x429bc4
lea eax, [esp + 0x2c]
push eax
call fcn.00462370
mov byte [esp + 0x50], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x429842
lea edi, [ebx + 1]
jmp 0x42984d
cmp ebx, 1
jne 0x429901
xor edi, edi
mov dword [esp + 0x18], 0
mov byte [esp + 0x50], 2
lea esi, [esp + 0x18]
call fcn.0042cbb0
mov esi, dword [esp + 0x18]
test eax, eax
je 0x4298d8
test esi, esi
je 0x4298d8
mov cl, byte [ebp + 0x28]
mov byte [esi + 0x8090], cl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x8080], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x802c], edi
mov dword [esi + 0x8048], edx
mov dword [esi + 0x804c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x8030], ecx
test edi, edi
jne 0x4298af
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x8034], eax
mov eax, dword [ebp + 0xc]
test edi, edi
jne 0x4298bf
mov eax, dword [ebp + 0x10]
lea ebx, [esp + 0x18]
lea edi, [esp + 0x2c]
mov dword [esi + 0x8038], eax
call fcn.0042d5d0
mov ebx, dword [esp + 0x1c]
jmp 0x4298e0
mov dword [esp + 0x24], 1
mov byte [esp + 0x50], 1
test esi, esi
je 0x429901
lea edx, [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x429901
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
inc ebx
cmp ebx, 1
mov dword [esp + 0x1c], ebx
jle 0x429839
xor ebx, ebx
cmp dword [esp + 0x24], ebx
jne 0x429b42
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 8], eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x50], 3
mov dword [esp + 0x20], ebx
mov byte [esp + 0x50], 5
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, edx
sub eax, ecx
sar eax, 2
test eax, eax
jbe 0x429a35
cmp ebx, eax
jb 0x42995e
call fcn.004a35f3
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [ecx + ebx*4]
mov eax, esp
mov dword [esp + 0x28], esp
mov dword [eax], ecx
test ecx, ecx
je 0x429978
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [esp + 0x54], 6
mov edi, dword [ebp + 8]
push edi
mov byte [esp + 0x58], 5
call fcn.0042c460
call fcn.00429750
mov edx, dword [esp + 0x3c]
sub edx, dword [esp + 0x38]
sar edx, 2
cmp ebx, edx
jb 0x4299a4
call fcn.004a35f3
mov eax, dword [esp + 0x38]
mov eax, dword [eax + ebx*4]
lea ecx, [esp + 0x14]
push ecx
lea esi, [eax + 0x8094]
call fcn.0042cd20
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, eax
sub edx, ecx
sar edx, 2
cmp ebx, edx
jb 0x4299db
call fcn.004a35f3
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + ebx*4]
sub eax, ecx
sar eax, 2
cmp dword [edx + 0x802c], 0
je 0x429a03
cmp ebx, eax
jb 0x4299f9
call fcn.004a35f3
mov ecx, dword [esp + 0x38]
lea eax, [ecx + ebx*4]
push eax
lea esi, [esp + 0x24]
jmp 0x429a18
cmp ebx, eax
jb 0x429a10
call fcn.004a35f3
mov ecx, dword [esp + 0x38]
lea ecx, [ecx + ebx*4]
push ecx
lea esi, [esp + 0x20]
call fcn.0042cd20
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, edx
sub eax, ecx
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x42995e
mov eax, dword [ebp + 0x1c]
cmp byte [eax], 0
jne 0x429aaf
mov ebx, dword [ebp + 8]
lea esi, [ebx + 0xf4]
mov dword [esp + 0x24], 0
test esi, esi
je 0x429a5d
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x24], esi
mov byte [esp + 0x50], 7
mov esi, dword [ebx + 0xec]
mov edx, dword [esi + 4]
add ebx, 0xd8
lea ecx, [esp + 0x1c]
push ecx
push edx
push esi
call fcn.0042dc40
mov ecx, ebx
mov edi, eax
call fcn.0042dcf0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
push 0x601e54
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [esp + 0x50], 5
mov eax, dword [esp + 0x24]
test eax, eax
je 0x429ae6
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x429ae6
mov ebx, edx
cmp ecx, edx
jbe 0x429ac2
call fcn.004a35f3
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
mov edi, ecx
cmp ecx, edx
jbe 0x429ad1
call fcn.004a35f3
mov eax, dword [esp + 0x2c]
push ebx
push esi
push edi
push eax
lea edi, [esp + 0x34]
lea esi, [esp + 0x3c]
call fcn.0042db90
mov byte [esp + 0x50], 1
lea ecx, [esp + 0x1c]
push ecx
call fcn.00429be0
mov byte [esp + 0x50], 0
lea edx, [esp + 0x2c]
push edx
call fcn.0042d550
mov dword [esp + 0x50], 0xffffffff
mov esi, dword [esp + 0x14]
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x429b28
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov ebx, eax
cmp edi, eax
jbe 0x429b5d
call fcn.004a35f3
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
cmp edi, eax
jbe 0x429b6a
call fcn.004a35f3
mov ecx, dword [esp + 0x2c]
push ebx
push esi
push edi
push ecx
lea edi, [esp + 0x34]
lea esi, [esp + 0x3c]
call fcn.0042db90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x20]
mov dword [edx], eax
mov eax, dword [ebp + 0x24]
mov dword [eax], 9
mov byte [esp + 0x50], 0
mov ecx, esi
push ecx
call fcn.0042d550
mov dword [esp + 0x50], 0xffffffff
mov esi, dword [esp + 0x14]
lea edx, [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x429bc4
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24