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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
lea eax, [eax + eax*2]
push esi
push edi
lea edi, [ecx + eax*8]
mov eax, dword [edi + 0x58]
sub eax, 0x10
push eax
call fcn.004018f0
mov ecx, dword [ebp + 8]
add esp, 4
add eax, 0x10
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], eax
call fcn.00403ef0
call fcn.00418feb
test eax, eax
jne 0x4179c6
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov esi, eax
add esi, 0x10
mov dword [ebp + 8], esi
call fcn.00418feb
test eax, eax
jne 0x4179ea
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
lea ebx, [edi + 0x5c]
push ebx
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
mov dword [ebp - 0x10], eax
push edx
lea eax, [ebp - 8]
push eax
call fcn.00404160
add esp, 0x14
test eax, eax
je 0x417acd
cmp eax, 0xfffffffa
jne 0x417a32
mov dword [edi + 0x64], 1
jmp 0x417a46
xor ecx, ecx
cmp eax, 0xffffff38
sete cl
lea ecx, [ecx*4 + 4]
mov dword [edi + 0x64], ecx
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 0x417a65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417a81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417aa0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417abf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x417adb
xor ecx, ecx
jmp 0x417b26
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x417af3
xor eax, eax
xor ecx, ecx
jmp 0x417b26
lea eax, [esi + esi]
call fcn.00430580
mov ecx, dword [ebp - 0xc]
mov eax, esp
push 3
push esi
push ecx
push eax
call fcn.00404970
test eax, eax
jne 0x417b12
xor ecx, ecx
jmp 0x417b26
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x417b17
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00401f60
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
test eax, eax
jge 0x417b4e
fadd qword [0x453ef0]
fdiv qword [0x453ee8]
mov eax, dword [ebx]
mov ebx, dword [ebp + 8]
fstp qword [edi + 0x68]
test eax, eax
je 0x417b86
cmp dword [ebx - 0xc], 0
jl 0x417b86
push eax
push ebx
call fcn.0042f28d
add esp, 8
test eax, eax
je 0x417b86
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x417b86
mov dword [edi + 0x64], 9
jmp 0x417b8f
mov dword [edi + 0x64], 8
xor esi, esi
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 0x417bae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417bca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417be9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417c08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8