Function at 0x429edc
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 0x42a1d1
mov eax, dword [edi + 0x84]
push dword [edi + 0x34]
mov ebx, dword [edi + 0x80]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x453170]
mov dword [ebp - 4], eax
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push 0x447c78
push eax
call fcn.00401d30
push dword [edi + 0x38]
lea eax, [ebp + 8]
push 0x448dbc
push eax
call fcn.00401d30
add esp, 0x18
lea eax, [esi + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x3c]
push eax
mov eax, 0x443108
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 0x443100
lea eax, [esi + 0xe8]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 8], ecx
call fcn.00401dc3
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00408c68
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00401dc3
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00408c68
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401dc3
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408c68
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401dc3
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00408c68
push eax
lea ecx, [esi + 0xe8]
call fcn.00401b73
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x429fd5
call fcn.004013ad
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x429fe8
call fcn.004013ad
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x429ffb
call fcn.004013ad
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x42a00e
call fcn.004013ad
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x42a021
call fcn.004013ad
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x42a034
call fcn.004013ad
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x42a047
call fcn.004013ad
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x42a05a
call fcn.004013ad
lea eax, [esi + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x20], 2
jne 0x42a172
push dword [ebx + 0x1c]
mov ecx, esi
call fcn.00427f12
test eax, eax
jne 0x42a0ce
mov ecx, edi
mov dword [ebx + 0xc], 0x50004
call fcn.00428ffb
mov ecx, esi
call fcn.00427d6b
mov ebx, eax
test ebx, ebx
je 0x42a0c1
push dword [esi + 0x40]
mov ecx, edi
push dword [ebp - 0x2c]
push ebx
push dword [esi + 0x64]
call fcn.00428f6e
cmp dword [ebx + 0xc], 0
jne 0x42a1ab
mov dword [ebx + 0xc], 2
jmp 0x42a1ab
push edi
mov ecx, esi
call fcn.00429dfd
jmp 0x42a1ab
mov eax, dword [ebx + 0x1c]
push 0
lea ecx, [esi + 0xa0]
mov dword [esi + 0x4c], eax
call fcn.0042764a
push dword [esi + 0x4c]
mov ecx, dword [eax]
call fcn.00427b43
lea eax, [edi + 0x34]
push eax
lea ecx, [esi + 0x34]
call fcn.004289d8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [esi + 0x54]
xor eax, eax
inc eax
cmp ecx, eax
jb 0x42a112
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.00401b73
push dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
push eax
mov ecx, esi
call fcn.00427591
test eax, eax
jne 0x42a15b
mov ecx, esi
call fcn.0042917d
mov eax, dword [esi + 0x60]
test eax, eax
mov dword [esi + 0x20], 1
je 0x42a1ab
push dword [esi + 0x5c]
push 0
push 3
call eax
jmp 0x42a1ab
mov eax, dword [esi + 0x60]
test eax, eax
mov dword [esi + 0x20], 3
je 0x42a172
push dword [esi + 0x5c]
push 0
push 1
call eax
mov eax, dword [esi + 0x4c]
cmp eax, dword [ebx + 0x1c]
mov ecx, edi
jne 0x42a19f
mov dword [ebx + 0xc], 0x10004
push dword [esi + 0x44]
call fcn.004289ff
push ecx
mov ecx, esp
push dword [ebp - 8]
call fcn.00401abf
mov ecx, esi
call fcn.004290ed
jmp 0x42a1ab
mov dword [ebx + 0xc], 0x50004
call fcn.00428ffb
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x42a1be
call fcn.004013ad
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x42a1d1
call fcn.004013ad
pop edi
pop esi
pop ebx
leave
ret 4