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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x493014]
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 ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, 0x4973c0
mov dword [0x4973d0], eax
call fcn.004021c0
mov ecx, 0x4973c8
call fcn.004042e0
mov eax, dword [0x4973a0]
test eax, eax
je 0x404e11
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x4973a0]
mov dword [ebp - 0x34], eax
or edi, 0xffffffff
nop word [eax + eax]
push 0x3e8
push 0
lea eax, [ebp - 0x34]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x404ffa
cmp eax, 0x102
jne 0x404ffa
call ebx
mov ecx, dword [0x497498]
mov edx, eax
test ecx, ecx
jne 0x404e9d
mov ecx, edx
sub ecx, dword [0x4973d0]
cmp ecx, 0x493e0
jb 0x404f05
xorps xmm0, xmm0
mov dword [0x497498], edx
lea ecx, [ebp - 0x20]
movlpd qword [ebp - 0x20], xmm0
call fcn.0040bb40
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x404e91
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x1c]
jmp 0x404edb
mov eax, edx
sub eax, ecx
cmp eax, 0x36ee80
jb 0x404f05
xorps xmm0, xmm0
mov dword [0x497498], edx
lea ecx, [ebp - 0x28]
movlpd qword [ebp - 0x28], xmm0
call fcn.0040bb40
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x404ed1
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 3
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x404efe
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x404efe
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x404efe
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
call ebx
mov ecx, dword [0x497494]
mov edx, eax
test ecx, ecx
jne 0x404f89
mov ecx, edx
sub ecx, dword [0x4973d0]
cmp ecx, 0x75300
jb 0x404e20
xorps xmm0, xmm0
mov dword [0x497494], edx
lea ecx, [ebp - 0x30]
movlpd qword [ebp - 0x30], xmm0
call fcn.0040bb40
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x404f50
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [ebp - 4], 5
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x404f7d
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x404f7d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x404f7d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
jmp 0x404e20
mov eax, edx
sub eax, ecx
cmp eax, 0x36ee80
jb 0x404e20
xorps xmm0, xmm0
mov dword [0x497494], edx
lea ecx, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
call fcn.0040bb40
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x404fc1
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [ebp - 4], 7
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x404f7d
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x404f7d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x404f7d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
jmp 0x404e20
mov ecx, dword [0x4973c8]
test ecx, ecx
je 0x40507e
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [0x4973c8]
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 9
mov esi, dword [0x4973cc]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [0x4973c8], 0
mov dword [0x4973cc], 0
mov byte [ebp - 4], 0xa
test esi, esi
je 0x405077
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x405077
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x405077
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4973c4]
test eax, eax
je 0x405095
cmp dword [eax + 0x34], 0
lea ecx, [eax + 0x34]
je 0x405095
call fcn.00408530
mov al, 1
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.00434f3f
mov esp, ebp
pop ebp
ret 8