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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push esi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x16], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1b4], 9
jne 0x50a1bd
mov byte [ebp - 0x15], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1b4], 6
je 0x50a1d5
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1b4], 7
jne 0x50a1d9
mov byte [ebp - 0x16], 1
mov eax, dword [0x5328dc]
mov eax, dword [eax]
cmp eax, dword [ebp - 4]
jne 0x50a355
cmp byte [ebp - 0x15], 0
jne 0x50a355
cmp byte [ebp - 0x16], 0
jne 0x50a355
mov eax, dword [0x532e68]
mov byte [eax], 0
mov eax, dword [0x5328d8]
mov byte [eax], 0
mov eax, dword [0x5328fc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x76]
mov edx, dword [ebp - 4]
cmp ax, word [edx + 0x78]
jbe 0x50a24b
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x76]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x78]
inc edx
mov ecx, edx
xor edx, edx
div ecx
mov edx, dword [0x5328fc]
mov dword [edx], eax
mov eax, dword [0x532e68]
mov byte [eax], 1
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x7a]
mov edx, dword [ebp - 4]
cmp ax, word [edx + 0x7c]
jbe 0x50a280
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x7a]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x7c]
inc edx
mov ecx, edx
xor edx, edx
div ecx
mov edx, dword [0x5328fc]
add dword [edx], eax
mov eax, dword [0x532e68]
mov byte [eax], 1
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x7e]
mov edx, dword [ebp - 4]
cmp ax, word [edx + 0x80]
jbe 0x50a29b
mov eax, dword [0x5328d8]
mov byte [eax], 1
mov eax, dword [0x532e68]
cmp byte [eax], 0
je 0x50a2d3
mov eax, dword [0x5328fc]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x26c]
jle 0x50a2d3
mov eax, dword [0x5328c8]
cmp byte [eax + 0xbc], 0
jne 0x50a2d3
mov eax, dword [ebp - 4]
inc dword [eax + 0x26c]
jmp 0x50a764
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x26c], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1b4], 0xb
je 0x50a31a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1b4], 9
je 0x50a31a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1b4], 0xd
je 0x50a31a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1b4], 6
je 0x50a31a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1b4], 7
jne 0x50a355
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x218]
dec eax
je 0x50a336
sub eax, 3
je 0x50a346
jmp 0x50a355
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e4]
call fcn.005057c8
jmp 0x50a355
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e4]
inc eax
call fcn.005057c8
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x258], 0
mov eax, dword [0x5328dc]
mov eax, dword [eax]
cmp eax, dword [ebp - 4]
je 0x50a388
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x294]
cmp dword [eax + 8], 2
jl 0x50a388
mov eax, dword [ebp - 4]
mov byte [eax + 0x258], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1b4], 0xb
je 0x50a3c8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1b4], 0xd
je 0x50a3c8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1b4], 6
je 0x50a3c8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1b4], 7
jne 0x50a5ca
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x218]
jl 0x50a3f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x21c]
jle 0x50a403
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x218]
dec eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x220], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x21c]
jge 0x50a4a0
mov eax, dword [ebp - 4]
inc dword [eax + 0x220]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x258], 0
je 0x50a453
cmp byte [ebp - 0x16], 0
jne 0x50a453
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x21c]
jge 0x50a453
mov eax, dword [ebp - 4]
inc dword [eax + 0x220]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x218]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x21c]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x218]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dl, byte [eax + 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x254]
mov eax, dword [ebp - 4]
call fcn.00507a14
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x21c]
jl 0x50a51c
mov eax, dword [0x5328dc]
mov eax, dword [eax]
cmp eax, dword [ebp - 4]
jne 0x50a4f5
mov eax, dword [0x532d5c]
mov eax, dword [eax]
call fcn.004b7a94
test al, al
je 0x50a518
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1b4], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x1cc], 1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x270], eax
jmp 0x50a518
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1b4], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x1cc], 1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x270], eax
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1b4], 6
jne 0x50a54c
mov eax, dword [0x5328dc]
mov eax, dword [eax]
cmp eax, dword [ebp - 4]
jne 0x50a54c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x532a50]
mov dword [edx], eax
mov eax, dword [0x532d68]
mov dword [eax], 0x12c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1b4], 7
jne 0x50a5c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x21c]
sub eax, 3
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x220]
jg 0x50a5c6
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x288]
mov edx, dword [ebp - 4]
mov word [edx + 8], ax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x28c]
mov edx, dword [ebp - 4]
mov word [edx + 0xa], ax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x120], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0xa]
mov edx, dword [ebp - 4]
mov dword [edx + 0x124], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1b4], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x1cc], 1
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1b4], 9
jne 0x50a73c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x21c]
jg 0x50a602
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x218]
jge 0x50a615
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x21c]
inc eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x220], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x218]
jle 0x50a6b4
mov eax, dword [ebp - 4]
dec dword [eax + 0x220]
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x258]
or al, byte [ebp - 0x15]
je 0x50a661
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x218]
jle 0x50a661
mov eax, dword [ebp - 4]
dec dword [eax + 0x220]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x21c]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x220]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x21c]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x218]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x10]
call fcn.00511f28
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x254]
mov eax, dword [ebp - 4]
call fcn.00507a14
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x218]
jg 0x50a738
mov eax, dword [0x5328dc]
mov eax, dword [eax]
cmp eax, dword [ebp - 4]
jne 0x50a711
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1b4], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x1cc], 1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x270], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x532a50]
mov dword [edx], eax
mov eax, dword [0x532d68]
mov dword [eax], 0x3e8
jmp 0x50a734
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1b4], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x1cc], 1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x270], eax
mov byte [ebp - 5], 1
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x220]
je 0x50a764
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x278], eax
mov eax, dword [ebp - 4]
mov si, 0xfff3
call fcn.00403b30
mov al, byte [ebp - 5]
pop esi
mov esp, ebp
pop ebp
ret