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

Disassembly:
push 0xffffffffffffffff
push 0x58b406
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x7c]
mov ebx, dword [esp + 0x80]
xor edi, edi
cmp ebx, edi
je 0x4264b3
lea esi, [ebp + 0x20]
mov dword [esp + 0x18], edi
cmp esi, edi
je 0x4261d2
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x18], esi
mov dword [esp + 0x74], edi
lea eax, [esp + 0x7c]
push eax
call fcn.004030f0
mov byte [esp + 0x74], 1
movzx ecx, word [esp + 0x84]
push ecx
push ebx
push str._s:_d
lea edi, [esp + 0x88]
call fcn.00402e20
add esp, 0xc
mov edx, edi
push edx
lea eax, [esp + 0x20]
push eax
mov esi, ebp
call fcn.00426b50
mov esi, dword [esp + 0x1c]
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp]
test esi, esi
je 0x426224
cmp esi, eax
je 0x426229
call fcn.004a35f3
cmp dword [esp + 0x20], edi
je 0x4262ad
test esi, esi
jne 0x4262a2
call fcn.004a35f3
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esi + 0x18]
jne 0x426246
call fcn.004a35f3
mov ebx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
add ebx, 0x10
push edx
mov dword [esp + 0x20], 0
call fcn.00425fc0
cmp dword [esp + 0x1c], 0
mov esi, eax
jne 0x4262a6
mov eax, dword [esp + 0x88]
mov dword [eax], 1
mov byte [esp + 0x74], 0
lea ecx, [esp + 0x7c]
push ecx
call fcn.00403090
mov dword [esp + 0x74], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42629b
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x4264b5
mov esi, dword [esi]
jmp 0x426238
mov ebx, dword [esp + 0x80]
lea edx, [esp + 0x48]
push edx
call fcn.00445ce0
mov byte [esp + 0x74], 2
mov ecx, dword [esp + 0x84]
lea eax, [esp + 0x80]
push eax
push ecx
lea ecx, [esp + 0x50]
mov edx, ebx
mov dword [esp + 0x88], 0
call fcn.00494c80
add esp, 8
test eax, eax
je 0x42646e
cmp dword [esp + 0x64], 0
je 0x42646e
lea edx, [esp + 0x2c]
push edx
call fcn.00425da0
mov byte [esp + 0x74], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x60]
mov edi, dword [eax]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
mov ebx, dword [esp + 0x60]
test esi, esi
je 0x426331
cmp esi, dword [esp + 0x48]
je 0x426336
call fcn.004a35f3
cmp edi, ebx
je 0x426380
test esi, esi
jne 0x42637c
call fcn.004a35f3
cmp edi, dword [esi + 0x18]
jne 0x42634d
call fcn.004a35f3
mov ecx, dword [edi + 0xc]
lea ebx, [esp + 0x24]
lea edi, [esp + 0x2c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 0
call fcn.00426630
lea esi, [esp + 0x1c]
call fcn.00422dc0
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jmp 0x426323
mov esi, dword [esi]
jmp 0x426343
push ebp
lea ecx, [esp + 0x80]
call fcn.004266f0
mov esi, eax
push esi
lea ebx, [esp + 0x30]
call fcn.00426540
mov edx, dword [esp + 0x44]
mov dword [esi + 0x18], edx
cmp dword [ebp + 0x1c], 0x1f4
jbe 0x426429
mov eax, dword [ebp + 0x18]
mov edi, dword [eax]
mov esi, dword [ebp]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
lea ecx, [ecx]
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp]
test esi, esi
je 0x4263ce
cmp esi, eax
je 0x4263d3
call fcn.004a35f3
cmp edi, ebx
je 0x426429
test esi, esi
jne 0x426412
call fcn.004a35f3
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4263ec
call fcn.004a35f3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x28]
sub eax, ecx
cmp eax, 0x927c0
jbe 0x426416
push edi
push esi
lea eax, [esp + 0x2c]
push eax
push ebp
call fcn.00426850
mov esi, dword [eax]
mov edi, dword [eax + 4]
jmp 0x4263b5
mov eax, dword [esi]
jmp 0x4263e2
lea esi, [esp + 0x1c]
call fcn.00439e30
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jmp 0x4263c0
lea ecx, [esp + 0x80]
push ecx
push ecx
push ebp
lea ecx, [esp + 0x88]
call fcn.004266f0
add esp, 4
mov ebx, eax
call fcn.00425fc0
mov esi, eax
mov byte [esp + 0x74], 2
lea edx, [esp + 0x2c]
push edx
call fcn.00425e00
mov byte [esp + 0x74], 1
lea eax, [esp + 0x48]
push eax
call fcn.004981c0
jmp 0x426275
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x8c]
mov dword [eax], edx
mov byte [esp + 0x74], 1
lea ecx, [esp + 0x48]
push ecx
call fcn.004981c0
mov byte [esp + 0x74], 0
lea edx, [esp + 0x7c]
push edx
call fcn.00403090
mov dword [esp + 0x74], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4264b3
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x14