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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax + 0x18]
cmp ecx, 1
jne 0x4bd48b
jmp 0x4bd729
push 0xffffffffffffffff
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x18], 1
mov dword [ebp - 4], 0
jmp 0x4bd4b3
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0x30]
call fcn.00421e50
cmp dword [ebp - 4], eax
jae 0x4bd715
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
movzx ecx, byte [eax + 4]
test ecx, ecx
je 0x4bd54a
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x4bd504
push 1
mov ecx, dword [ebp - 8]
call fcn.00404330
mov dword [ebp - 0x34], eax
jmp 0x4bd50b
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.00419560
mov ecx, eax
call fcn.00404b00
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.004049d0
jmp 0x4bd710
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
movzx edx, byte [eax + 5]
test edx, edx
jne 0x4bd710
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
add eax, 8
mov ecx, eax
call fcn.0040a850
test eax, eax
jbe 0x4bd5d6
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
add eax, 8
mov ecx, eax
call fcn.0040a850
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
add eax, 8
mov ecx, eax
call fcn.00402e30
push eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
mov ecx, dword [eax]
add ecx, 8
call fcn.00404480
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
add eax, 8
mov ecx, eax
call fcn.00404400
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
movzx eax, byte [eax + 6]
cmp eax, 1
jne 0x4bd62d
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
mov edx, dword [eax]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x38]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
mov byte [eax + 5], 1
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
mov byte [eax + 6], 0
jmp 0x4bd710
push 4
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
mov ecx, dword [eax]
call fcn.004b29b0
movzx ecx, al
test ecx, ecx
je 0x4bd67d
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
mov byte [eax + 5], 1
jmp 0x4bd710
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
mov ecx, dword [eax]
call fcn.00404260
test eax, eax
jne 0x4bd6b0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
mov ecx, dword [eax]
call fcn.00404280
jmp 0x4bd710
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
mov ecx, dword [eax]
call fcn.00404260
cmp eax, 0xffffffff
je 0x4bd710
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
mov ecx, dword [eax]
call fcn.00404260
sub esi, eax
cmp esi, 0xea60
jbe 0x4bd710
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
mov ecx, dword [eax]
call fcn.004b2e50
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.00421e70
mov byte [eax + 5], 1
jmp 0x4bd4aa
mov edx, dword [ebp - 0x30]
mov byte [edx + 0x18], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
mov esp, ebp
pop ebp
ret