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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x2c
push 0
push 0
dec ecx
jne 0x50c34d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040575c
xor eax, eax
push ebp
push 0x50c7b1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp esi, 0x7fffffff
jne 0x50c650
xor esi, esi
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0050227c
push 0
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 0x38], 9
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00479c78
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 8]
call fcn.00405374
push 0
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 0x38], 9
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x10]
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 - 0x38], 9
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x14]
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 - 0x38], 9
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x18]
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 - 0x38], 9
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00479c78
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 8]
call fcn.00405374
push 0
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 0x38], 9
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.00479c78
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 8]
call fcn.00405374
push 0
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 0x38], 9
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.00479c78
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 8]
call fcn.00405374
cmp dword [ebp - 0xc], 0
je 0x50c650
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.0050e0a8
mov edi, eax
test edi, edi
je 0x50c4cb
cmp dword [edi + 0xc], 5
jle 0x50c4cb
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [edi + 0x10]
cmp eax, 0x2bf20
jae 0x50c4cb
call sub.kernel32.dll_GetTickCount_1
mov dword [edi + 0x10], eax
mov esi, 0xfffffffe
jmp 0x50c735
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 0xc]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x150]
lea eax, [ebx + 0x79]
mov cl, 0x10
call fcn.00403a88
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 0x10]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x150]
lea eax, [ebx + 0x8a]
mov cl, 0xa
call fcn.00403a88
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 0x14]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x150]
lea eax, [ebx + 0xc8]
mov cl, 0x14
call fcn.00403a88
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 0x18]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x150]
lea eax, [ebx + 0xdd]
mov cl, 0xc
call fcn.00403a88
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 0x1c]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x150]
lea eax, [ebx + 0x113]
mov cl, 0x14
call fcn.00403a88
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 0x20]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x150]
lea eax, [ebx + 0x128]
mov cl, 0xc
call fcn.00403a88
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 0x24]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x150]
lea eax, [ebx + 0x135]
mov cl, 0xa
call fcn.00403a88
xor eax, eax
mov dword [ebx + 0x178], eax
mov eax, dword [ebp - 8]
mov edx, 0x50c7cc
call fcn.00405704
jne 0x50c600
call fcn.0040fde4
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0050c2b0
mov dword [ebx + 0x178], eax
mov edx, dword [0x507da4]
mov eax, 0x14
call fcn.004061b4
mov edi, eax
mov word [edi], 0x68
mov dword [edi + 4], esi
lea eax, [edi + 8]
call fcn.004052dc
mov dword [edi + 0xc], ebx
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 0x50c771
test esi, esi
je 0x50c692
lea eax, [ebp - 0x154]
lea edx, [ebx + 0x79]
call fcn.00405540
mov edx, dword [ebp - 0x154]
mov cl, 1
mov eax, edi
call fcn.0050e0a8
mov edi, eax
cmp esi, 1
jne 0x50c687
xor eax, eax
mov dword [edi + 0xc], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [edi + 0x10], eax
jmp 0x50c692
inc dword [edi + 0xc]
call sub.kernel32.dll_GetTickCount_1
mov dword [edi + 0x10], eax
cmp esi, 1
jne 0x50c735
push 0
cmp dword [ebx + 0x178], 0
setne al
and eax, 0x7f
push eax
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
mov edx, esi
mov ax, 0xbe3
call fcn.005021a4
mov eax, ebx
call fcn.0050c2f0
cmp word [ebp - 0x26], 0
je 0x50c714
lea edx, [ebp - 0x158]
lea eax, [ebp - 0x30]
call fcn.005023b0
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x15c]
lea eax, [ebx + 0x17c]
mov edx, 0x28
call fcn.00502498
mov edx, dword [ebp - 0x15c]
pop eax
call fcn.004055a8
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x3c]
call fcn.0050de9c
jmp 0x50c771
lea edx, [ebp - 0x160]
lea eax, [ebp - 0x30]
call fcn.005023b0
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x3c]
call fcn.0050de9c
jmp 0x50c771
xor eax, eax
mov dword [ebx + 0x178], eax
push 0
push 0
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
mov edx, esi
mov ax, 0xbe3
call fcn.005021a4
lea edx, [ebp - 0x164]
lea eax, [ebp - 0x30]
call fcn.005023b0
mov ecx, dword [ebp - 0x164]
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x3c]
call fcn.0050de9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50c7b8
lea eax, [ebp - 0x164]
mov edx, 5
call fcn.00405300
lea eax, [ebp - 0x50]
mov edx, 6
call fcn.00405300
lea eax, [ebp - 0x34]
call fcn.004052dc
lea eax, [ebp - 0x24]
mov edx, 9
call fcn.00405300
ret