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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48bcd1
mov eax, dword fs:[0]
push eax
sub esp, 0x134
push ebx
push edi
mov eax, dword [0x4b47a8]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
cmp dword [0x4b9178], 0
jg 0x4218f2
cmp dword [0x4b91f0], 0
jg 0x4218f2
mov dword [0x4b908c], 0
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4b9074
mov dword [0x4b908c], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esi + 0x2308]
push 0x4b9170
call fcn.0044e016
lea ecx, [esi + 0x231c]
push 0x4b9184
call fcn.0044e016
lea ecx, [esi + 0x2330]
push 0x4b9198
call fcn.0044e142
lea ecx, [esi + 0x2344]
push 0x4b91ac
call fcn.0044e142
push 0x4b91c0
lea ecx, [esi + 0x2358]
call fcn.0044e142
lea ecx, [esi + 0x236c]
push 0x4b91d4
call fcn.0044e142
lea ecx, [esi + 0x2380]
push 0x4b91e8
call fcn.0044e016
push 0x4b91fc
lea ecx, [esi + 0x2394]
call fcn.0044e016
push 0x4b9210
lea ecx, [esi + 0x23a8]
call fcn.0044e142
push 0x4b9224
lea ecx, [esi + 0x23bc]
call fcn.0044e142
push 0x4b9238
lea ecx, [esi + 0x23d0]
call fcn.0044e142
lea ecx, [esi + 0x23e4]
push 0x4b924c
call fcn.0044e142
push 0x4b9074
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x2310]
mov eax, dword [esi + 0x2324]
cmp ecx, eax
mov edi, dword [esi + 0x2338]
mov edx, dword [esi + 0x234c]
mov ebx, dword [esi + 0x2374]
jne 0x421b61
cmp eax, edi
jne 0x421b61
cmp edi, edx
jne 0x421b61
cmp edx, ebx
jne 0x421b61
cmp edx, ecx
jne 0x421b61
lea eax, [esp + 0xac]
push eax
call fcn.004258c0
xor edi, edi
mov dword [esp + 0x148], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 0x2310], edi
mov dword [esp + 0x18], eax
jle 0x421b4a
test edi, edi
jl 0x421c79
cmp edi, dword [esi + 0x2374]
jge 0x421c79
mov ecx, dword [esi + 0x2370]
mov eax, dword [ecx + edi*4]
mov edx, dword [esp + 0x18]
sub edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 6
cmp edx, dword [0x4b8f5c]
jl 0x421b3b
lea ecx, [esp + 0x10]
call fcn.00401f40
lea ebx, [esi + 0x2308]
mov byte [esp + 0x148], 1
cmp edi, dword [ebx + 8]
jge 0x421c79
mov eax, dword [ebx + 4]
lea ecx, [edi*4]
add eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00426270
lea ecx, [esp + 0x14]
call fcn.00401f20
mov eax, dword [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x421b2a
push edi
mov ecx, ebx
call fcn.004064e0
mov eax, dword [eax]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x421b2a
push 1
push edi
lea ecx, [esi + 0x2344]
call fcn.004250c0
push edi
lea ecx, [esi + 0x2330]
mov ebx, eax
call fcn.004250c0
push eax
push edi
lea ecx, [esi + 0x231c]
call fcn.004064e0
push eax
push edi
lea ecx, [esi + 0x2308]
call fcn.004064e0
push esi
mov ecx, ebx
mov edx, eax
call fcn.00421f20
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 0
call fcn.00401f20
add edi, 1
cmp edi, dword [esi + 0x2310]
jl 0x421a44
lea ecx, [esp + 0xac]
mov dword [esp + 0x148], 0xffffffff
call fcn.004259f0
mov eax, dword [esi + 0x2388]
mov ecx, dword [esi + 0x239c]
cmp eax, ecx
mov edx, dword [esi + 0x23b0]
mov edi, dword [esi + 0x23c4]
mov ebx, dword [esi + 0x23ec]
jne 0x421c64
cmp ecx, edx
jne 0x421c64
cmp edx, edi
jne 0x421c64
cmp edi, eax
jne 0x421c64
cmp dword [esi + 0x23d8], eax
jne 0x421c64
cmp ebx, eax
jne 0x421c64
lea ecx, [esp + 0x1c]
push ecx
call fcn.004258c0
mov dword [esp + 0x148], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
cmp dword [esi + 0x2388], ebx
mov dword [esp + 0x14], eax
jle 0x421c50
test ebx, ebx
jl 0x421c79
cmp ebx, dword [esi + 0x23ec]
jge 0x421c79
mov edx, dword [esi + 0x23e8]
mov eax, dword [edx + ebx*4]
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
cmp edx, dword [0x4b8f5c]
jl 0x421c45
push 0
push 0
push 0
push 0
push esi
push 0x421d50
mov dword [esi + 0x2304], ebx
call fcn.0044f5d2
push 0
push 0
push ebx
lea ecx, [esi + 0x2380]
call fcn.004064e0
mov edi, eax
lea eax, [esp + 0x24]
call fcn.00427bc0
add ebx, 1
cmp ebx, dword [esi + 0x2388]
jl 0x421bdc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x148], 0xffffffff
call fcn.004259f0
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.0044d52a