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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c8fd
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.00416690
cmp eax, 0xffffffff
je 0x4182b2
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x418292
mov eax, dword [ebx + 0xc]
cmp eax, 3
ja case.default.0x418128
jmp dword [eax*4 + 0x4182d0]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
cmp eax, 0xc
je 0x41814b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
cmp eax, 0xb
jne case.0x418128.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 0x4182b2
mov esi, dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp case.0x418128.0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
add eax, 0xfffffffe
cmp eax, 0x1c
ja case.0x418128.0
movzx eax, byte [eax + 0x4182f4]
jmp dword [eax*4 + 0x4182e0]
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.0x418128.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 0x41820e
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.0x418128.0
lea ecx, [ebp - 0x20]
call fcn.0040f0e0
push dword [ebx + 8]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0040ef80
test eax, eax
je 0x418246
push eax
push 0
call fcn.00414c80
add esp, 4
mov ecx, eax
call fcn.004146b0
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ecc0
call edi
mov dword [esi + 0x4c], eax
jmp case.0x418128.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 0x418283
lock inc dword [esi + 0x48]
call edi
mov dword [esi + 0x4c], eax
jmp case.0x418128.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.00416690
cmp eax, 0xffffffff
jne 0x418111
jmp 0x4182b2
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.004224f6
mov esp, ebp
pop ebp
ret