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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x20], 0
mov esi, ecx
je 0x429f5f
mov eax, dword [edi + 0x84]
push dword [edi + 0x34]
mov ebx, dword [edi + 0x80]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x452170]
mov dword [ebp - 4], eax
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push 0x446b24
push eax
call fcn.00401d58
push dword [edi + 0x38]
lea eax, [ebp + 8]
push 0x447c34
push eax
call fcn.00401d58
add esp, 0x18
lea eax, [esi + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x3c]
push eax
mov eax, 0x442108
push eax
lea edx, [ebp + 8]
push edx
push eax
lea edx, [ebp - 4]
push edx
push eax
lea ecx, [ebx + 8]
push ecx
push 0x442100
lea eax, [esi + 0xe8]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 8], ecx
call fcn.00401deb
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00408bb7
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00401deb
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00408bb7
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401deb
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408bb7
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401deb
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00408bb7
push eax
lea ecx, [esi + 0xe8]
call fcn.00401b9b
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x429d63
call fcn.004013ad
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x429d76
call fcn.004013ad
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x429d89
call fcn.004013ad
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x429d9c
call fcn.004013ad
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x429daf
call fcn.004013ad
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x429dc2
call fcn.004013ad
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x429dd5
call fcn.004013ad
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x429de8
call fcn.004013ad
lea eax, [esi + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x20], 2
jne 0x429f00
push dword [ebx + 0x1c]
mov ecx, esi
call fcn.00427c38
test eax, eax
jne 0x429e5c
mov ecx, edi
mov dword [ebx + 0xc], 0x50004
call fcn.00428d89
mov ecx, esi
call fcn.00427a91
mov ebx, eax
test ebx, ebx
je 0x429e4f
push dword [esi + 0x40]
mov ecx, edi
push dword [ebp - 0x2c]
push ebx
push dword [esi + 0x64]
call fcn.00428cfc
cmp dword [ebx + 0xc], 0
jne 0x429f39
mov dword [ebx + 0xc], 2
jmp 0x429f39
push edi
mov ecx, esi
call fcn.00429b8b
jmp 0x429f39
mov eax, dword [ebx + 0x1c]
push 0
lea ecx, [esi + 0xa0]
mov dword [esi + 0x4c], eax
call fcn.004273f2
push dword [esi + 0x4c]
mov ecx, dword [eax]
call fcn.00427869
lea eax, [edi + 0x34]
push eax
lea ecx, [esi + 0x34]
call fcn.00428766
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [esi + 0x54]
xor eax, eax
inc eax
cmp ecx, eax
jb 0x429ea0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x54]
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp - 8]
lea ecx, [esi + 0x48]
mov dword [esi + 0x54], eax
call fcn.00401b9b
push dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
push eax
mov ecx, esi
call fcn.00427321
test eax, eax
jne 0x429ee9
mov ecx, esi
call fcn.00428f0b
mov eax, dword [esi + 0x60]
test eax, eax
mov dword [esi + 0x20], 1
je 0x429f39
push dword [esi + 0x5c]
push 0
push 3
call eax
jmp 0x429f39
mov eax, dword [esi + 0x60]
test eax, eax
mov dword [esi + 0x20], 3
je 0x429f00
push dword [esi + 0x5c]
push 0
push 1
call eax
mov eax, dword [esi + 0x4c]
cmp eax, dword [ebx + 0x1c]
mov ecx, edi
jne 0x429f2d
mov dword [ebx + 0xc], 0x10004
push dword [esi + 0x44]
call fcn.0042878d
push ecx
mov ecx, esp
push dword [ebp - 8]
call fcn.00401afa
mov ecx, esi
call fcn.00428e7b
jmp 0x429f39
mov dword [ebx + 0xc], 0x50004
call fcn.00428d89
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x429f4c
call fcn.004013ad
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x429f5f
call fcn.004013ad
pop edi
pop esi
pop ebx
leave
ret 4