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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c90d
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.00416540
cmp eax, 0xffffffff
je 0x418162
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x418142
mov eax, dword [ebx + 0xc]
cmp eax, 3
ja case.default.0x417fd8
jmp dword [eax*4 + 0x418180]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
cmp eax, 0xc
je 0x417ffb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
cmp eax, 0xb
jne case.0x417fd8.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 0x418162
mov esi, dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp case.0x417fd8.0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
add eax, 0xfffffffe
cmp eax, 0x1c
ja case.0x417fd8.0
movzx eax, byte [eax + 0x4181a4]
jmp dword [eax*4 + 0x418190]
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.0x417fd8.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 0x4180be
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.0x417fd8.0
lea ecx, [ebp - 0x20]
call fcn.0040ef90
push dword [ebx + 8]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0040ee30
test eax, eax
je 0x4180f6
push eax
push 0
call fcn.00414b30
add esp, 4
mov ecx, eax
call fcn.00414560
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.0040eb70
call edi
mov dword [esi + 0x4c], eax
jmp case.0x417fd8.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 0x418133
lock inc dword [esi + 0x48]
call edi
mov dword [esi + 0x4c], eax
jmp case.0x417fd8.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.00416540
cmp eax, 0xffffffff
jne 0x417fc1
jmp 0x418162
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.00422505
mov esp, ebp
pop ebp
ret