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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
mov eax, dword [0x5402b0]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x34]
mov dword [esp + 0x18], edi
test edi, edi
je 0x425871
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, dword [esi + 0x20]
sete bl
test edi, edi
je 0x425887
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x425a52
mov eax, esi
call fcn.004260f0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4258c4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.004c0985
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
mov ebx, 3
mov edi, eax
call fcn.00425fe0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edi, dword [esp + 0x10]
mov dword [esi + 0x28], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
mov dword [esp + 0x14], 0
call eax
test al, 8
je 0x4259b5
xor ecx, ecx
push 0x40e
push ecx
lea edx, [esp + 0x2a]
push edx
mov word [esp + 0x2c], cx
call fcn.004c5470
mov eax, dword [edi]
mov edx, dword [eax]
add esp, 0xc
mov ecx, edi
call edx
mov ecx, dword [esi + 0x20]
lea edi, [esp + 0x20]
call fcn.0042f8a0
mov edx, edi
xor ecx, ecx
call fcn.00409670
mov edi, eax
test edi, edi
je 0x4259c2
push 0x64
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x425990
mov eax, dword [esp + 0x18]
test eax, eax
je 0x425958
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, dword [esi + 0x20]
mov eax, dword [esp + 0x18]
sete bl
test eax, eax
je 0x425972
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x425a4b
push 0x64
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x425949
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x1c]
push ecx
push edi
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
jmp 0x4259c2
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
mov dword [esp + 0x14], eax
call ebx
sub eax, dword [esi + 0x28]
cmp eax, 0x1f4
jae 0x4259e4
mov edi, edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
sub eax, dword [esi + 0x28]
cmp eax, 0x1f4
jb 0x4259d0
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x4259f3
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [esi + 0x20]
sete al
mov edi, eax
test ebx, ebx
je 0x425a0b
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x425a52
mov eax, dword [esp + 0x14]
cmp eax, 4
jne 0x425a1c
mov ebx, eax
jmp 0x425a2a
mov ebx, 6
test eax, eax
jne 0x425a2a
mov ebx, 5
mov edi, dword [esp + 0x10]
call fcn.00425fe0
mov eax, esi
call fcn.004260f0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4258c0
jmp 0x42589e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004c0985
mov esp, ebp
pop ebp
ret 4