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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4db480
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x5181f4]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax + 0x14], esi
mov byte [esp + 0x12], 1
mov byte [esp + 0x13], 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
jne 0x4a8692
xor al, al
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebx + 4]
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x4c], esi
jbe 0x4a8706
lea edi, [ebx + 0x44]
mov eax, dword [edi + 4]
mov esi, dword [eax]
cmp esi, eax
jne 0x4a86b6
call fcn.00441e1b
cmp dword [esi + 0xc], 0
jne 0x4a86c1
call fcn.00441e1b
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
cmp edx, dword [ecx + 4]
jne 0x4a86d1
call fcn.00441e1b
mov esi, dword [esi + 0x10]
add esi, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 0x20], eax
ja 0x4a8706
mov eax, dword [edi + 4]
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
mov ecx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
call fcn.004a8100
cmp dword [ebx + 0x4c], 0
ja 0x4a86a8
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x34]
lea edi, [ebx + 0x1c]
push ecx
mov ecx, edi
call fcn.004a7c50
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebx + 0x4c]
cmp eax, dword [ebx + 0x54]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
jb 0x4a8775
test esi, esi
mov eax, dword [edi + 4]
mov dword [esp + 0x34], eax
je 0x4a873d
cmp esi, edi
je 0x4a8742
call fcn.00441e1b
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x20], ecx
jne 0x4a8775
mov ecx, dword [ebx + 0x48]
mov edx, dword [ecx]
lea eax, [ebx + 0x44]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x64]
push ecx
mov ecx, ebx
mov dword [esp + 0x20], edx
call fcn.004a8100
mov eax, dword [ebx + 0x4c]
cmp eax, dword [ebx + 0x54]
jae 0x4a872e
test esi, esi
mov edx, dword [edi + 4]
mov dword [esp + 0x34], edx
je 0x4a8784
cmp esi, edi
je 0x4a8789
call fcn.00441e1b
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x20], eax
jne 0x4a88b9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
push esi
call fcn.00443e36
mov edi, dword [ebx + 0x50]
add esp, 4
call fcn.00443e43
mov ecx, eax
imul ecx, edi
mov eax, 0x66673335
mul ecx
mov eax, dword [ebp + 0xc]
shr edx, 0x11
add edx, edi
add edx, esi
push edx
mov edx, dword [ebp + 8]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
xor edi, edi
push 0xffffffffffffffff
push edi
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], edi
push edx
mov word [ecx + 4], di
call fcn.00404c75
lea eax, [esp + 0x9c]
push eax
call fcn.004a66d0
add esp, 0x28
mov esi, eax
push 0xffffffffffffffff
push edi
push esi
lea ecx, [esp + 0x48]
mov dword [esp + 0xb4], edi
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], edi
mov word [esp + 0x4c], di
call fcn.00404c75
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x58], ecx
mov edx, dword [esi + 0x20]
mov dword [esp + 0x5c], edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [ebx + 0x1c]
mov byte [esp + 0xb0], 1
call fcn.004a82d0
cmp dword [esp + 0x54], 8
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
jb 0x4a886d
mov eax, dword [esp + 0x40]
push eax
call fcn.00441cca
add esp, 4
cmp dword [esp + 0x90], 8
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], edi
mov word [esp + 0x40], di
mov dword [esp + 0xa8], 0xffffffff
jb 0x4a88a0
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00441cca
add esp, 4
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [ebx + 0x44]
call fcn.004a7070
mov byte [esp + 0x12], 0
jmp 0x4a88da
test esi, esi
jne 0x4a88c2
call fcn.00441e1b
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esi + 4]
jne 0x4a88d0
call fcn.00441e1b
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
or dword [eax + 0x28], edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [esp + 0x64]
lea edi, [ebx + 0x28]
push ecx
mov ecx, edi
call fcn.004a6060
mov ecx, dword [eax]
test ecx, ecx
mov edx, dword [eax + 4]
mov eax, dword [edi + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x34], eax
je 0x4a8909
cmp ecx, edi
je 0x4a890e
call fcn.00441e1b
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x28], ecx
jne 0x4a89ad
mov esi, dword [ebp + 0x10]
lea edx, [esp + 0x3c]
mov ecx, 7
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [ebx + 0x28]
mov dword [esp + 0x60], 0
call fcn.004a6a00
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov ecx, dword [ebp + 0x14]
lea edx, [esp + 0x1c]
mov dword [esp + 0x2c], ecx
push edx
lea ecx, [ebx + 0x34]
call fcn.004a83c0
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x4a8972
call fcn.00441e1b
mov esi, dword [esp + 0x28]
cmp esi, dword [edi + 4]
jne 0x4a8980
call fcn.00441e1b
add dword [esi + 0x28], 1
mov bl, byte [esp + 0x13]
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [esp + 0x12], 0
je 0x4a8951
mov edi, dword [ebx + 0x3c]
cmp dword [ebx + 0x38], edi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x64], esi
lea esi, [ebx + 0x34]
mov dword [esp + 0x68], eax
jbe 0x4a89d0
call fcn.00441e1b
mov edx, dword [esi + 4]
cmp edx, dword [esi + 8]
mov dword [esp + 0x14], edx
jbe 0x4a89e5
call fcn.00441e1b
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
sub esp, 0x18
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
push edi
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x44]
push esi
push edx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x38]
push esi
push edx
mov dword [eax + 0x14], ecx
call fcn.004a5f80
mov edi, dword [esi + 8]
add esp, 0x2c
cmp dword [esi + 4], edi
jbe 0x4a8a34
call fcn.00441e1b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a8a40
cmp eax, esi
je 0x4a8a49
call fcn.00441e1b
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp esi, edi
je 0x4a8951
test eax, eax
jne 0x4a8a62
call fcn.00441e1b
mov eax, dword [esp + 0x14]
cmp esi, dword [eax + 8]
jb 0x4a8a6c
call fcn.00441e1b
mov eax, dword [ebp + 0x14]
or dword [esi + 0x10], eax
xor bl, bl
jmp 0x4a8988