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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c1ed
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.00415ed0
cmp eax, 0xffffffff
je 0x417af2
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x417ad2
mov eax, dword [ebx + 0xc]
cmp eax, 3
ja case.default.0x417968
jmp dword [eax*4 + 0x417b10]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
cmp eax, 0xc
je 0x41798b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
cmp eax, 0xb
jne case.0x417968.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 0x417af2
mov esi, dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp case.0x417968.0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
add eax, 0xfffffffe
cmp eax, 0x1c
ja case.0x417968.0
movzx eax, byte [eax + 0x417b34]
jmp dword [eax*4 + 0x417b20]
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.0x417968.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 0x417a4e
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.0x417968.0
lea ecx, [ebp - 0x20]
call fcn.0040e930
push dword [ebx + 8]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0040e7d0
test eax, eax
je 0x417a86
push eax
push 0
call fcn.004144c0
add esp, 4
mov ecx, eax
call fcn.00413ef0
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.0040e510
call edi
mov dword [esi + 0x4c], eax
jmp case.0x417968.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 0x417ac3
lock inc dword [esi + 0x48]
call edi
mov dword [esi + 0x4c], eax
jmp case.0x417968.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.00415ed0
cmp eax, 0xffffffff
jne 0x417951
jmp 0x417af2
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.00421dd5
mov esp, ebp
pop ebp
ret