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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x2b
push 0
push 0
dec ecx
jne 0x50dad9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040575c
xor eax, eax
push ebp
push 0x50de8b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0x7fffffff
jne 0x50dd65
xor ebx, ebx
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0050227c
push 0
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 0x34], 9
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00479c78
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 8]
call fcn.00405374
push 0
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 0x34], 9
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00479c78
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 8]
call fcn.00405374
push 0
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 0x34], 9
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00479c78
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 8]
call fcn.00405374
push 0
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 0x34], 9
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00479c78
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 8]
call fcn.00405374
push 0
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 0x34], 9
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00479c78
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 8]
call fcn.00405374
push 0
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 0x34], 9
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.00479c78
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 8]
call fcn.00405374
cmp dword [ebp - 0xc], 0
je 0x50dd65
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.0050e0a8
mov edi, eax
test edi, edi
je 0x50dc34
cmp dword [edi + 0xc], 5
jle 0x50dc34
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [edi + 0x10]
cmp eax, 0x2bf20
jae 0x50dc34
call sub.kernel32.dll_GetTickCount_1
mov dword [edi + 0x10], eax
mov ebx, 0xfffffffe
jmp 0x50de17
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0xc]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x148]
lea eax, [esi + 0x79]
mov cl, 0x10
call fcn.00403a88
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0x10]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x148]
lea eax, [esi + 0xc8]
mov cl, 0x14
call fcn.00403a88
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0x14]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x148]
lea eax, [esi + 0xdd]
mov cl, 0xc
call fcn.00403a88
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0x18]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x148]
lea eax, [esi + 0x113]
mov cl, 0x14
call fcn.00403a88
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0x1c]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x148]
lea eax, [esi + 0x128]
mov cl, 0xc
call fcn.00403a88
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0x20]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x148]
lea eax, [esi + 0x135]
mov cl, 0xa
call fcn.00403a88
mov edx, dword [0x507da4]
mov eax, 0x14
call fcn.004061b4
mov edi, eax
mov word [edi], 0x67
mov dword [edi + 4], ebx
lea eax, [edi + 8]
call fcn.004052dc
mov dword [edi + 0xc], esi
push 0
lea eax, [edi + 0x10]
mov ecx, 1
mov edx, dword [0x507d84]
call fcn.004065d8
add esp, 4
mov eax, dword [0x523364]
mov eax, dword [eax]
mov edx, edi
call fcn.00502f94
jmp 0x50de4b
test ebx, ebx
je 0x50dda7
lea eax, [ebp - 0x14c]
lea edx, [esi + 0x79]
call fcn.00405540
mov edx, dword [ebp - 0x14c]
mov cl, 1
mov eax, edi
call fcn.0050e0a8
mov edi, eax
cmp ebx, 1
jne 0x50dd9c
xor eax, eax
mov dword [edi + 0xc], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [edi + 0x10], eax
jmp 0x50dda7
inc dword [edi + 0xc]
call sub.kernel32.dll_GetTickCount_1
mov dword [edi + 0x10], eax
cmp ebx, 1
jne 0x50de17
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
xor ecx, ecx
xor edx, edx
mov ax, 0xbbc
call fcn.005021a4
lea edx, [ebp - 0x150]
lea eax, [ebp - 0x2c]
call fcn.005023b0
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x158]
lea edx, [esi + 0x8a]
call fcn.00405540
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
call fcn.00502414
mov edx, dword [ebp - 0x154]
pop eax
call fcn.004055a8
mov ecx, dword [ebp - 0x150]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x3c]
call fcn.0050de9c
jmp 0x50de4b
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
xor ecx, ecx
mov edx, ebx
mov ax, 0xbbd
call fcn.005021a4
lea edx, [ebp - 0x15c]
lea eax, [ebp - 0x2c]
call fcn.005023b0
mov ecx, dword [ebp - 0x15c]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x3c]
call fcn.0050de9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50de92
lea eax, [ebp - 0x15c]
mov edx, 5
call fcn.00405300
lea eax, [ebp - 0x48]
mov edx, 5
call fcn.00405300
lea eax, [ebp - 0x30]
call fcn.004052dc
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00405300
ret