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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x513918
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
sub eax, 0x34
jae 0x51368f
mov eax, dword [0x531bb8]
cmp byte [eax], 0
je 0x5134a2
call fcn.00407464
mov edx, dword [0x5316b0]
sub eax, dword [edx]
cmp eax, 0xbb8
jbe 0x5134a2
mov eax, dword [0x531bb8]
mov byte [eax], 0
mov eax, dword [0x531bb8]
cmp byte [eax], 0
jne 0x5134e7
mov eax, ebx
shl eax, 5
sub eax, ebx
mov edx, dword [0x531eb4]
cmp byte [edx + eax*4], 0
je 0x5134e7
mov eax, ebx
shl eax, 5
sub eax, ebx
mov edx, dword [0x531eb4]
cmp byte [edx + eax*4 + 0xf], 3
jbe 0x5134ff
mov eax, ebx
shl eax, 5
sub eax, ebx
mov edx, dword [0x531eb4]
cmp byte [edx + eax*4 + 0xf], 0x1f
je 0x5134ff
mov eax, ebx
shl eax, 5
sub eax, ebx
mov edx, dword [0x531eb4]
cmp byte [edx + eax*4 + 0x4f], 0
jbe 0x5138e8
mov edi, ebx
shl edi, 5
sub edi, ebx
mov eax, dword [0x531eb4]
mov edx, dword [0x531bb8]
push esi
push edi
lea esi, [eax + edi*4]
mov edi, edx
mov ecx, 0x1f
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [0x531eb4]
mov byte [eax + edi*4], 0
mov edi, ebx
shl edi, 5
sub edi, ebx
mov eax, dword [0x531eb4]
cmp byte [eax + edi*4 + 0xf], 4
jne 0x513659
mov eax, dword [0x531eb4]
cmp word [eax + edi*4 + 0x10], 0x64
jge 0x513659
mov eax, dword [0x531eb4]
cmp word [eax + edi*4 + 0x10], 0x32
jge 0x5135de
mov edx, 0x513928
lea eax, [ebp - 0x28]
call fcn.004037a4
mov eax, dword [0x531eb4]
lea edx, [eax + edi*4]
lea eax, [ebp - 0x28]
mov cl, 0x20
call fcn.00403774
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x4c]
call fcn.004037a4
mov edx, 0x51393c
lea eax, [ebp - 0x4c]
mov cl, 0x22
call fcn.00403774
lea edx, [ebp - 0x4c]
lea eax, [ebp - 4]
call fcn.0040507c
mov edx, dword [ebp - 4]
mov eax, dword [0x5320e8]
mov eax, dword [eax]
mov cx, word [0x513940]
call fcn.004de9b4
cmp eax, 6
je 0x513659
mov eax, dword [0x531eb4]
mov edx, dword [0x531bb8]
lea edi, [eax + edi*4]
mov esi, edx
mov ecx, 0x1f
rep movsd dword es:[edi], dword [esi]
jmp 0x5138e8
mov edx, 0x513928
lea eax, [ebp - 0x28]
call fcn.004037a4
mov eax, dword [0x531eb4]
lea edx, [eax + edi*4]
lea eax, [ebp - 0x28]
mov cl, 0x20
call fcn.00403774
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x4c]
call fcn.004037a4
mov edx, 0x51393c
lea eax, [ebp - 0x4c]
mov cl, 0x22
call fcn.00403774
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x50]
call fcn.0040507c
mov edx, dword [ebp - 0x50]
mov eax, dword [0x5320e8]
mov eax, dword [eax]
mov cx, word [0x513940]
call fcn.004de9b4
cmp eax, 6
je 0x513659
mov eax, dword [0x531eb4]
mov edx, dword [0x531bb8]
lea edi, [eax + edi*4]
mov esi, edx
mov ecx, 0x1f
rep movsd dword es:[edi], dword [esi]
jmp 0x5138e8
call fcn.00407464
mov edx, dword [0x5316b0]
mov dword [edx], eax
lea eax, [ebp - 0x54]
mov edx, dword [0x531eb4]
lea edx, [edx + edi*4]
call fcn.0040507c
mov ecx, dword [ebp - 0x54]
mov eax, dword [0x531eb4]
mov edx, dword [eax + edi*4 + 0x74]
mov eax, esi
call fcn.00516f0c
jmp 0x5138e8
inc ebx
jne 0x5138e8
mov eax, dword [0x531ca8]
cmp byte [eax], 0
je 0x5138e8
mov eax, dword [0x531ca8]
mov byte [eax], 0
mov eax, dword [0x531bc0]
mov edx, dword [0x531bb8]
push esi
lea esi, [eax + 4]
mov edi, edx
mov ecx, 0x1f
rep movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [0x531bc0]
mov byte [eax + 4], 0
mov eax, dword [0x531bb8]
cmp byte [eax + 0xf], 4
jne 0x5137d1
mov eax, dword [0x531bb8]
cmp word [eax + 0x10], 0x64
jge 0x5137d1
mov eax, dword [0x531bb8]
cmp word [eax + 0x10], 0x32
jge 0x513765
mov edx, 0x513928
lea eax, [ebp - 0x28]
call fcn.004037a4
mov edx, dword [0x531bb8]
lea eax, [ebp - 0x28]
mov cl, 0x20
call fcn.00403774
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x4c]
call fcn.004037a4
mov edx, 0x51393c
lea eax, [ebp - 0x4c]
mov cl, 0x22
call fcn.00403774
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x58]
call fcn.0040507c
mov edx, dword [ebp - 0x58]
mov eax, dword [0x5320e8]
mov eax, dword [eax]
mov cx, word [0x513940]
call fcn.004de9b4
cmp eax, 6
je 0x5137d1
mov eax, dword [0x531bb8]
call fcn.004cdbac
jmp 0x5138e8
mov edx, 0x513928
lea eax, [ebp - 0x28]
call fcn.004037a4
mov edx, dword [0x531bb8]
lea eax, [ebp - 0x28]
mov cl, 0x20
call fcn.00403774
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x4c]
call fcn.004037a4
mov edx, 0x51393c
lea eax, [ebp - 0x4c]
mov cl, 0x22
call fcn.00403774
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x5c]
call fcn.0040507c
mov edx, dword [ebp - 0x5c]
mov eax, dword [0x5320e8]
mov eax, dword [eax]
mov cx, word [0x513940]
call fcn.004de9b4
cmp eax, 6
je 0x5137d1
mov eax, dword [0x531bb8]
call fcn.004cdbac
jmp 0x5138e8
mov eax, dword [0x531bb8]
cmp byte [eax + 0xf], 0x31
jne 0x5138ba
mov eax, dword [0x531bb8]
mov ax, word [eax + 0x78]
mov edx, dword [0x531bb8]
cmp ax, word [edx + 0x7a]
jb 0x5138ba
mov eax, dword [0x531bb8]
cmp word [eax + 0x13], 0
jne 0x513861
lea eax, [ebp - 0x60]
push eax
mov eax, dword [0x531bb8]
movsx eax, byte [eax + 0x15]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0
mov eax, dword [0x531bb8]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 4
lea edx, [ebp - 0x70]
mov ecx, 1
mov eax, 0x51394c
call fcn.0040bc68
mov edx, dword [ebp - 0x60]
mov eax, dword [0x5320e8]
mov eax, dword [eax]
mov cx, word [0x513940]
call fcn.004de9b4
cmp eax, 6
jne 0x5138ba
mov eax, dword [0x531bb8]
call fcn.004cdbac
jmp 0x5138e8
lea eax, [ebp - 0x74]
push eax
mov eax, dword [0x531bb8]
movsx eax, byte [eax + 0x15]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0
mov eax, dword [0x531bb8]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 4
lea edx, [ebp - 0x70]
mov ecx, 1
mov eax, 0x51396c
call fcn.0040bc68
mov edx, dword [ebp - 0x74]
mov eax, dword [0x5320e8]
mov eax, dword [eax]
mov cx, word [0x513940]
call fcn.004de9b4
cmp eax, 6
jne 0x5138ba
mov eax, dword [0x531bb8]
call fcn.004cdbac
jmp 0x5138e8
call fcn.00407464
mov edx, dword [0x5316b0]
mov dword [edx], eax
lea eax, [ebp - 0x78]
mov edx, dword [0x531bb8]
call fcn.0040507c
mov ecx, dword [ebp - 0x78]
mov edx, dword [0x531bb8]
mov edx, dword [edx + 0x74]
mov eax, esi
call fcn.00516f0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51391f
lea eax, [ebp - 0x78]
mov edx, 2
call fcn.00404e3c
lea eax, [ebp - 0x60]
mov edx, 5
call fcn.00404e3c
lea eax, [ebp - 4]
call fcn.00404e18
ret