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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x648528
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x703eb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], 0
cmp dword [esi + 8], 0
je 0x415c9a
mov esi, dword [ebp + 8]
push 0x6cbc40
mov ecx, esi
call fcn.004023d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp + 0x10], 0
jne 0x415cd1
inc dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
cmp ecx, 1
jle 0x415cb6
cdq
idiv ecx
cmp edx, 1
jne 0x415c76
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [esi + 0x10]
sub eax, dword [esi + 0x18]
test ecx, ecx
jle 0x415ccc
cmp eax, ecx
jl 0x415c76
call edi
mov dword [esi + 0x18], eax
mov esi, dword [esi + 4]
cmp dword [esi - 0xc], 0
je 0x415c76
lea eax, [esi - 0x10]
push eax
call fcn.00402be0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x14], eax
push 2
push 0x6ce000
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00406a10
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x415d0d
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x18]
call fcn.004023d0
push 0x6ce008
push 0x6cc1e0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004063e0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00406a10
push 1
push 0x6ce010
lea ecx, [ebp - 0x14]
call fcn.00406a10
call fcn.0041a80c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x415d65
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 2
movzx eax, word [ebx]
add eax, 0xfffffffe
cmp eax, 0x15
ja case.0x415d8e.6
movzx ecx, byte [eax + 0x415f68]
jmp dword [ecx*4 + 0x415f50]
mov edx, dword [ebx + 8]
push edx
lea ecx, [ebp + 0xc]
call fcn.004023d0
push 0x6ce008
push 0x6cc1e0
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.004063e0
push 0x6ce014
push 0x6ce010
lea ecx, [ebp + 0xc]
call fcn.004063e0
push 0x6ce01c
push 0x6ccb54
lea ecx, [ebp + 0xc]
call fcn.004063e0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp + 0x10]
push 0x6ce024
push ecx
call fcn.00402d30
add esp, 0xc
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0040be80
jmp case.0x415d8e.6
mov edx, dword [ebx + 8]
push edx
lea eax, [ebp + 0x10]
push 0x6ce04c
push eax
call fcn.00402d30
add esp, 0xc
jmp case.0x415d8e.6
mov ecx, dword [ebx + 8]
push ecx
lea edx, [ebp + 0x10]
push 0x6ce030
push edx
call fcn.00402d30
add esp, 0xc
jmp case.0x415d8e.6
fld dword [ebx + 8]
sub esp, 8
fstp qword [esp]
push 0x6ce038
lea eax, [ebp + 0x10]
push eax
jmp 0x415e52
fld qword [ebx + 8]
sub esp, 8
fstp qword [esp]
push 0x6ce038
lea ecx, [ebp + 0x10]
push ecx
call fcn.00402d30
add esp, 0x10
mov edx, dword [ebp + 0x10]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x415eaf
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp + 0xc]
push 0x6ce040
push ecx
call fcn.00406870
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00406a10
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415eaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x6ce048
lea ecx, [ebp - 0x14]
call fcn.00406a10
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
push esi
call fcn.00402be0
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415ef8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415f1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415f3b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc