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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437e88
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x44c040]
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.00415290
cmp eax, 0xffffffff
je 0x417eab
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x417e8b
mov eax, dword [ebx + 0xc]
cmp eax, 3
ja case.default.0x417d08
jmp dword [eax*4 + 0x417ecc]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
cmp eax, 0xc
je 0x417d2b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
cmp eax, 0xb
jne case.0x417d08.0
push 0
push 1
lea edi, [esi + 0x40]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
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]
push 1
push 0
push edi
mov dword [ecx + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov edx, dword [ebx]
mov ecx, ebx
push 1
call dword [edx]
cmp esi, 1
je 0x417eab
mov esi, dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp case.0x417d08.0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
add eax, 0xfffffffe
cmp eax, 0x1c
ja case.0x417d08.0
movzx eax, byte [eax + 0x417ef0]
jmp dword [eax*4 + 0x417edc]
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
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.0x417d08.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 0x417dfa
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]
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
call edi
mov dword [esi + 0x4c], eax
jmp case.0x417d08.0
lea ecx, [ebp - 0x20]
call fcn.0040dc00
push dword [ebx + 8]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0040dad0
test eax, eax
je 0x417e39
push eax
push 0
call fcn.004139d0
add esp, 4
mov ecx, eax
call fcn.004133e0
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.0040d710
call edi
mov dword [esi + 0x4c], eax
jmp case.0x417d08.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 0x417e7c
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
call edi
mov dword [esi + 0x4c], eax
jmp case.0x417d08.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.00415290
cmp eax, 0xffffffff
jne 0x417cf1
jmp 0x417eab
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.00421b57
mov esp, ebp
pop ebp
ret