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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469248
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x492014]
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, 0x4963d0
mov dword [0x4963e0], eax
call fcn.00402140
mov ecx, 0x4963d8
call fcn.00404250
mov eax, dword [0x4963b0]
test eax, eax
je 0x404d81
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x4963b0]
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 0x404f6a
cmp eax, 0x102
jne 0x404f6a
call ebx
mov ecx, dword [0x496448]
mov edx, eax
test ecx, ecx
jne 0x404e0d
mov ecx, edx
sub ecx, dword [0x4963e0]
cmp ecx, 0x493e0
jb 0x404e75
xorps xmm0, xmm0
mov dword [0x496448], edx
lea ecx, [ebp - 0x20]
movlpd qword [ebp - 0x20], xmm0
call fcn.0040b450
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x404e01
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x1c]
jmp 0x404e4b
mov eax, edx
sub eax, ecx
cmp eax, 0x36ee80
jb 0x404e75
xorps xmm0, xmm0
mov dword [0x496448], edx
lea ecx, [ebp - 0x28]
movlpd qword [ebp - 0x28], xmm0
call fcn.0040b450
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x404e41
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 3
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x404e6e
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x404e6e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x404e6e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
call ebx
mov ecx, dword [0x496444]
mov edx, eax
test ecx, ecx
jne 0x404ef9
mov ecx, edx
sub ecx, dword [0x4963e0]
cmp ecx, 0x75300
jb 0x404d90
xorps xmm0, xmm0
mov dword [0x496444], edx
lea ecx, [ebp - 0x30]
movlpd qword [ebp - 0x30], xmm0
call fcn.0040b450
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x404ec0
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [ebp - 4], 5
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x404eed
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x404eed
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x404eed
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
jmp 0x404d90
mov eax, edx
sub eax, ecx
cmp eax, 0x36ee80
jb 0x404d90
xorps xmm0, xmm0
mov dword [0x496444], edx
lea ecx, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
call fcn.0040b450
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x404f31
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [ebp - 4], 7
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x404eed
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x404eed
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x404eed
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
jmp 0x404d90
mov ecx, dword [0x4963d8]
test ecx, ecx
je 0x404fee
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [0x4963d8]
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 [0x4963dc]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [0x4963d8], 0
mov dword [0x4963dc], 0
mov byte [ebp - 4], 0xa
test esi, esi
je 0x404fe7
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x404fe7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x404fe7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4963d4]
test eax, eax
je 0x405005
cmp dword [eax + 0x34], 0
lea ecx, [eax + 0x34]
je 0x405005
call fcn.004084a0
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.004345d1
mov esp, ebp
pop ebp
ret 8