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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c68d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
push 0xffffffffffffffff
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
call fcn.004162c0
cmp eax, 0xffffffff
je 0x417ee2
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x417ec2
mov eax, dword [ebx + 0xc]
cmp eax, 3
ja case.default.0x417d58
jmp dword [eax*4 + 0x417f00]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
cmp eax, 0xc
je 0x417d7b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
cmp eax, 0xb
jne case.0x417d58.0
lea edi, [esi + 0x40]
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edi], ecx
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov dword [ecx + 0x4c], eax
mov eax, 1
lock cmpxchg dword [edi], edx
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
cmp esi, 1
je 0x417ee2
mov esi, dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp case.0x417d58.0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
add eax, 0xfffffffe
cmp eax, 0x1c
ja case.0x417d58.0
movzx eax, byte [eax + 0x417f24]
jmp dword [eax*4 + 0x417f10]
lock inc dword [esi + 0x48]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
call edi
mov dword [esi + 0x4c], eax
jmp case.0x417d58.0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
call eax
test al, al
je 0x417e3e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
lock inc dword [esi + 0x48]
call edi
mov dword [esi + 0x4c], eax
jmp case.0x417d58.0
lea ecx, [ebp - 0x20]
call fcn.0040ed10
push dword [ebx + 8]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0040ebb0
test eax, eax
je 0x417e76
push eax
push 0
call fcn.004148b0
add esp, 4
mov ecx, eax
call fcn.004142e0
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.0040e8f0
call edi
mov dword [esi + 0x4c], eax
jmp case.0x417d58.0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
mov ecx, eax
push ebx
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x417eb3
lock inc dword [esi + 0x48]
call edi
mov dword [esi + 0x4c], eax
jmp case.0x417d58.0
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov dword [ebp - 0x24], 0
push 0xffffffffffffffff
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.004162c0
cmp eax, 0xffffffff
jne 0x417d41
jmp 0x417ee2
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422285
mov esp, ebp
pop ebp
ret