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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54d74b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5a2740]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x20], edi
mov esi, dword [edi + 0xc68]
xor ecx, ecx
mov eax, esi
mov edx, 0xc60
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0040ff88
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], 0
test eax, eax
je 0x409170
push fcn.0040a1b0
push fcn.0040a050
push esi
lea ebx, [eax + 4]
push 0xc60
push ebx
mov dword [eax], esi
mov dword [esp + 0x24], ebx
call fcn.00527312
jmp 0x409176
xor ebx, ebx
mov dword [esp + 0x10], ebx
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
cmp dword [edi + 0xc68], esi
jle 0x409235
add ebx, 0xc10
push 0xffffffffffffffff
push 0
lea ecx, [ebx - 0x28]
call fcn.00421079
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.00421079
push 0xffffffffffffffff
push 0
lea ecx, [ebx + 0x3c]
call fcn.00421079
test esi, esi
js 0x409318
cmp esi, dword [edi + 0xc68]
jge 0x409318
mov eax, dword [edi + 0xc64]
mov edx, dword [eax + esi*4]
test edx, edx
jne 0x4091da
xor ecx, ecx
jmp 0x4091f4
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x18], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4091e3
sub ecx, dword [esp + 0x18]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx - 0xbfc]
call fcn.00402770
lea eax, [ebx - 0xc10]
mov ecx, eax
call fcn.0040a310
test al, al
je 0x409303
push ecx
lea ecx, [ebx - 0xc10]
call fcn.0040a850
inc esi
add ebx, 0xc60
cmp esi, dword [edi + 0xc68]
jl 0x409192
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, eax
call esi
sub eax, ebx
cmp eax, dword [edi + 0xc78]
jae 0x409261
jmp 0x409250
call fcn.004096f0
call esi
sub eax, ebx
cmp eax, dword [edi + 0xc78]
jb 0x409250
xor ebx, ebx
cmp dword [edi + 0xc68], ebx
jle 0x409286
mov esi, dword [esp + 0x10]
nop
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
inc ebx
add esi, 0xc60
cmp ebx, dword [edi + 0xc68]
jl 0x409270
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp dword [edi + 0xc68], ecx
jle 0x409397
mov ebx, dword [esp + 0x10]
add ebx, 0xc14
mov dword [esp + 0x18], ebx
mov eax, dword [ebx + 4]
xor esi, esi
test eax, eax
jle 0x40937c
test esi, esi
js 0x409318
cmp esi, eax
jge 0x409318
mov eax, dword [ebx]
push ecx
push dword [eax + esi*4]
lea eax, [edi + 0xc7c]
push eax
call fcn.00408d90
cmp esi, dword [ebx + 0x18]
jge 0x409318
mov eax, dword [ebx + 0x14]
push ecx
mov edi, dword [eax + esi*4]
mov dword [esp + 0x20], esp
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi - 4], 0
lea edx, [edi - 4]
mov ecx, eax
jl 0x40931d
cmp ecx, dword [edi - 0x10]
jne 0x40931d
lea ebx, [edi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x40934f
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041201f
mov eax, dword [ecx]
push 2
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x4093c4
mov ecx, dword [edi - 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [edi - 0xc]
lea eax, [ebx + 0x10]
lea ecx, [ecx*2 + 2]
push ecx
push edi
push ecx
push eax
call fcn.005258c7
add esp, 0x10
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
lea eax, [edi + 0xc90]
push eax
call fcn.00408f70
mov ebx, dword [esp + 0x18]
inc esi
mov eax, dword [ebx + 4]
cmp esi, eax
jl 0x4092b3
mov ecx, dword [esp + 0x14]
inc ecx
add ebx, 0xc60
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp ecx, dword [edi + 0xc68]
jl 0x4092a6
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4093d2
cmp dword [ecx - 4], 0
lea eax, [ecx - 4]
je 0x4093c9
mov eax, dword [ecx]
push 3
call dword [eax + 4]
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004016c0
push eax
call fcn.0040ff91
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret