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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c7a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x44d034]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x40862f
mov dword [esi + 0x34], 0xf0000001
jmp 0x408893
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push eax
call ebx
lea ecx, [esi + 0x10]
call fcn.00402ef0
cmp eax, 0x24
jae 0x408651
mov dword [esi + 0x34], 0xf0000005
jmp 0x408893
push dword [esi + 0x2c]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
call fcn.00401100
push str._MUTEX
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.00401880
push dword [ebp - 0x20]
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov edi, eax
call fcn.00401490
test edi, edi
jne 0x4086a8
mov dword [esi + 0x34], 0xf0000002
jmp 0x408893
mov eax, dword [esi + 0x28]
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
push dword [ebp + 0x10]
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x1c]
push 0
push eax
push 3
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 2
jne 0x408854
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push 0
push eax
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 2
jne 0x408800
lea ecx, [esi + 0x10]
call fcn.00402f00
cmp eax, 0x24
jae 0x408746
mov eax, dword [esi + 4]
test eax, eax
je 0x40871d
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp - 0x28]
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp + 0x10]
jbe 0x4086c2
push edi
mov dword [esi + 0x34], 0xf0000003
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408893
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x24
push dword [ebp - 0x24]
lea ecx, [esi + 0x10]
call fcn.00402d40
lea ecx, [esi + 0x10]
mov dword [ebp - 0x2c], eax
call fcn.00402f00
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x20], eax
jbe 0x40877e
lea ecx, [esi + 0x10]
call fcn.00402f00
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4087b9
cmp dword [ebp - 0x30], 0
je 0x4087a9
push eax
call fcn.00414c15
mov ecx, dword [ebp - 0x30]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x4087a9
mov ecx, dword [ebp - 0x24]
push dword [ecx + 0x20]
push eax
jmp 0x4087b1
mov eax, dword [ebp - 0x24]
push dword [eax + 0x20]
push 0
lea ecx, [esi + 0x10]
call fcn.00402d40
cmp dword [ebp - 0x2c], 0
jle 0x4087cd
mov eax, dword [esi + 8]
test eax, eax
je 0x4087cd
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [esi + 0x10]
call fcn.00402f00
test eax, eax
jne 0x4087e7
mov eax, dword [esi + 4]
test eax, eax
je 0x4087e7
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp - 0x28]
call ebx
xor eax, eax
mov dword [esi + 0x34], 0
cmp dword [ebp - 0x2c], eax
setg al
jmp 0x408895
cmp eax, 1
jne 0x40881d
push edi
mov dword [esi + 0x34], 0xf0000002
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x28]
call ebx
jmp 0x408883
cmp eax, 0x102
jne 0x40883c
push edi
mov dword [esi + 0x34], 0xf0000003
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x28]
call ebx
jmp 0x408883
push edi
mov dword [esi + 0x34], 0xf0000001
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x28]
call ebx
jmp 0x408883
cmp eax, 1
jne 0x408862
mov dword [esi + 0x34], 0xf0000002
jmp 0x408879
cmp eax, 0x102
jne 0x408872
mov dword [esi + 0x34], 0xf0000003
jmp 0x408879
mov dword [esi + 0x34], 0xf0000001
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x34], 0xf0000003
je 0x408893
mov ecx, esi
call fcn.00408560
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.0041498e
mov esp, ebp
pop ebp
ret 0xc