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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov eax, dword [0x689024]
mov dword [eax], edi
mov eax, dword [0x688ea8]
mov edx, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [0x688dac]
mov byte [eax], 0
cmp byte [ebp - 5], 1
jne 0x506551
mov eax, dword [0x6882d4]
cmp byte [eax], 0
je 0x506551
mov eax, dword [0x689150]
mov eax, dword [eax]
call fcn.005435d8
jmp 0x507022
cmp byte [ebp - 5], 1
jne 0x50657a
mov eax, dword [0x688c00]
cmp byte [eax], 0
je 0x50657a
mov eax, dword [0x688c00]
mov byte [eax], 0
mov dx, 1
mov eax, dword [ebp - 4]
call fcn.00447e40
jmp 0x507022
cmp esi, dword [ebp - 4]
jne 0x50659e
push edi
mov eax, dword [ebp + 8]
push eax
mov eax, dword [0x6884d4]
mov eax, dword [eax]
mov ecx, ebx
movzx edx, byte [ebp - 5]
call fcn.004943d4
test al, al
jne 0x507022
mov eax, dword [0x688a9c]
cmp dword [eax], 0
je 0x507022
mov eax, dword [0x69458c]
mov eax, dword [eax + 4]
cmp eax, dword [0x694598]
jne 0x507022
mov eax, dword [0x688c00]
cmp byte [eax], 0
je 0x5065ed
mov eax, dword [0x688c00]
cmp byte [eax], 5
je 0x5065ed
mov eax, dword [0x688c00]
mov byte [eax], 0
mov dx, 1
mov eax, dword [ebp - 4]
call fcn.00447e40
jmp 0x507022
xor eax, eax
push ebp
push 0x50701b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x689120]
cmp byte [eax], 0
je 0x50665e
mov eax, dword [0x689120]
mov byte [eax], 0
mov eax, dword [0x6886ec]
mov byte [eax], 0
mov eax, dword [0x688b8c]
mov dword [eax], 0xffffffff
mov eax, dword [0x688a98]
mov dword [eax], 0xffffffff
mov eax, dword [0x68898c]
mov dword [eax], 0xffffffff
push 1
push 0
mov ecx, 0xffffff
mov edx, 0x507034
mov eax, dword [0x69458c]
call fcn.0053ca7c
mov eax, dword [0x6891b4]
mov edx, dword [0x4a7484]
call fcn.004069ec
test bl, 0x10
je 0x5069d8
movzx eax, byte [0x507048]
cmp al, bl
jne 0x506679
mov eax, dword [0x68865c]
inc dword [eax]
mov eax, dword [0x68865c]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, edi
mov eax, dword [0x694598]
call fcn.0052b81c
mov esi, eax
mov eax, dword [0x68865c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x18]
je 0x5066ad
mov eax, dword [0x68865c]
xor edx, edx
mov dword [eax], edx
test esi, esi
je 0x5066f4
test bl, 4
je 0x5066fd
call sub.kernel32.dll_GetTickCount
mov edx, dword [0x688758]
sub eax, dword [edx]
cmp eax, 0x3e8
jbe 0x5066fd
cmp byte [esi + 0x16], 0
jne 0x5066fd
cmp byte [esi + 0x31], 0
jne 0x5066fd
mov eax, dword [ebp + 8]
push eax
mov eax, dword [0x689150]
mov eax, dword [eax]
mov ecx, edi
mov edx, esi
call fcn.0056a300
call fcn.00404c4c
jmp 0x507022
mov eax, dword [0x68865c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x688a9c]
mov eax, dword [eax]
cmp byte [eax + 0x134], 0
je 0x506717
call fcn.00404c4c
jmp 0x507022
mov eax, dword [0x68889c]
push eax
mov eax, dword [0x688750]
push eax
mov ecx, dword [ebp + 8]
mov edx, edi
mov eax, dword [0x694598]
call fcn.0052b58c
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov eax, esi
mov edx, dword [0x68889c]
sub eax, dword [edx]
cdq
xor eax, edx
sub eax, edx
dec eax
jg 0x506806
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edx, dword [0x688750]
sub eax, dword [edx]
cdq
xor eax, edx
sub eax, edx
dec eax
jg 0x506806
mov eax, dword [0x688750]
mov eax, dword [eax]
push eax
mov ecx, dword [0x68889c]
mov ecx, dword [ecx]
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [0x688a9c]
mov eax, esi
call fcn.005b2550
movzx eax, al
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.0050d798
test al, al
je 0x5069d8
mov eax, dword [ebp - 4]
call fcn.0050d734
test al, al
je 0x5069d8
mov eax, dword [0x688a9c]
mov eax, dword [eax]
movzx eax, byte [eax + 0x14]
cmp eax, dword [ebp - 0xc]
je 0x5069d8
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov dx, 1
call fcn.0059c908
jmp 0x5069d8
mov eax, dword [0x688750]
mov eax, dword [eax]
push eax
mov ecx, dword [0x68889c]
mov ecx, dword [ecx]
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [0x688a9c]
mov eax, esi
call fcn.005b2550
movzx eax, al
mov dword [ebp - 0xc], eax
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [0x688a9c]
mov eax, dword [eax]
cmp byte [eax + 0x1c], 0
je 0x5068bc
movzx eax, byte [ebp - 0xc]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.005b24e4
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, dword [0x694598]
call fcn.0052bc64
test al, al
je 0x506975
mov eax, dword [0x68918c]
mov byte [eax], 1
mov eax, dword [0x688b88]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [0x688a78]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
call fcn.00404c4c
jmp 0x507022
movzx eax, byte [ebp - 0xc]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.005b2478
mov eax, dword [0x688c64]
cmp byte [eax], 0
je 0x506925
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, dword [0x694598]
call fcn.0052bd9c
test al, al
je 0x506925
mov eax, dword [0x68918c]
mov byte [eax], 6
mov eax, dword [0x688b88]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [0x688a78]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
call fcn.00404c4c
jmp 0x507022
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, dword [0x694598]
call fcn.0052bdcc
test al, al
je 0x506975
mov eax, dword [0x68918c]
mov byte [eax], 1
mov eax, dword [0x688b88]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [0x688a78]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
call fcn.00404c4c
jmp 0x507022
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], eax
movzx eax, byte [ebp - 0xc]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.005b2418
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [0x694598]
call fcn.0052c0b4
test al, al
je 0x5069ce
mov eax, dword [0x68918c]
mov byte [eax], 0
mov eax, dword [0x688b88]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [0x688a78]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
call fcn.00404c4c
jmp 0x507022
test bl, 8
je 0x506fef
mov eax, dword [0x688a9c]
mov eax, dword [eax]
cmp byte [eax + 0x134], 0
jne 0x506fef
mov eax, dword [0x68865c]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
mov ecx, dword [ebp + 8]
mov edx, edi
mov eax, dword [0x694598]
call fcn.0052b81c
mov esi, eax
mov eax, dword [0x688c00]
cmp byte [eax], 5
jne 0x506a80
test esi, esi
je 0x506a76
cmp byte [esi + 0x16], 0
jne 0x506a76
cmp byte [esi + 0x31], 0
jne 0x506a76
call sub.kernel32.dll_GetTickCount
mov edx, dword [0x6887fc]
cmp eax, dword [edx]
jbe 0x506a76
mov eax, dword [0x688a9c]
cmp esi, dword [eax]
jne 0x506a50
call fcn.00404c4c
jmp 0x507022
call sub.kernel32.dll_GetTickCount
add eax, 0xbb8
mov edx, dword [0x6887fc]
mov dword [edx], eax
mov eax, dword [esi + 0x10]
push eax
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov eax, dword [0x694588]
call fcn.0050cde4
call fcn.00404c4c
jmp 0x507022
mov eax, dword [0x68889c]
push eax
mov eax, dword [0x688750]
push eax
mov ecx, dword [ebp + 8]
mov edx, edi
mov eax, dword [0x694598]
call fcn.0052b58c
mov eax, dword [0x688554]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x68878c]
cmp byte [eax + 0x10e], 0
je 0x506bc8
test esi, esi
jne 0x506bc8
mov eax, dword [0x688a9c]
mov eax, dword [eax]
cmp byte [eax + 0x1c], 0
jne 0x506bc8
mov eax, dword [0x68878c]
cmp byte [eax + 0x120], 0x13
jne 0x506bc8
mov eax, dword [0x688750]
mov eax, dword [eax]
push eax
mov ecx, dword [0x68889c]
mov ecx, dword [ecx]
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
call fcn.005b2550
movzx eax, al
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
call fcn.005b2720
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [0x6945ac]
call fcn.005230dc
test al, al
je 0x506b4d
test bl, 1
je 0x506bc8
mov eax, dword [ebp - 4]
call fcn.0050d798
test al, al
je 0x506ba2
mov eax, dword [ebp - 4]
call fcn.0050d734
test al, al
je 0x506ba2
mov eax, dword [ebp - 4]
call fcn.0050d7e0
test al, al
je 0x506ba2
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov dx, 8
call fcn.0059c908
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [0x6945ac]
call fcn.005230dc
test al, al
jne 0x506bbe
mov eax, dword [0x688dac]
mov byte [eax], 1
call fcn.00404c4c
jmp 0x507022
test bl, 2
je 0x506cef
mov eax, dword [0x688a9c]
mov eax, dword [eax]
cmp byte [eax + 0x1c], 0
jne 0x506cef
mov eax, dword [0x688750]
mov eax, dword [eax]
push eax
mov ecx, dword [0x68889c]
mov ecx, dword [ecx]
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
call fcn.005b2550
movzx eax, al
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.0050d798
test al, al
je 0x506cdf
mov eax, dword [ebp - 4]
call fcn.0050d734
test al, al
je 0x506cdf
mov ecx, dword [0x688750]
mov ecx, dword [ecx]
mov edx, dword [0x68889c]
mov edx, dword [edx]
mov eax, dword [0x694598]
call fcn.0052dce0
mov esi, eax
test esi, esi
je 0x506cae
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [esi + 4]
push eax
mov ecx, dword [0x688750]
mov ecx, dword [ecx]
mov edx, dword [0x68889c]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.0050c0b0
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [esi + 4]
push eax
push 0
push 0
push 0
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov dx, 3
call fcn.0059c908
call fcn.00404c4c
jmp 0x507022
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov dx, 3
call fcn.0059c908
mov eax, dword [0x688b88]
mov dword [eax], 0xffffffff
jmp 0x506fef
test esi, esi
jne 0x506cfc
test bl, 1
je 0x506f81
mov eax, dword [0x688b88]
mov dword [eax], 0xffffffff
test esi, esi
je 0x506e62
call sub.kernel32.dll_GetTickCount
mov edx, dword [0x688758]
sub eax, dword [edx]
cmp eax, 0x3e8
jbe 0x506dd1
cmp byte [esi + 0x17], 0xa
jne 0x506d7b
call sub.kernel32.dll_GetTickCount
mov edx, dword [0x6884a4]
sub eax, dword [edx]
cmp eax, 0x1f4
jbe 0x506d7b
call sub.kernel32.dll_GetTickCount
mov edx, dword [0x6884a4]
mov dword [edx], eax
push 0
push 0
push 0
push 0
mov ecx, dword [esi + 4]
mov edx, 0x21
mov eax, dword [ebp - 4]
call fcn.0050a960
mov eax, esi
mov si, 0xfffb
call fcn.00404528
call fcn.00404c4c
jmp 0x507022
cmp byte [esi + 0x16], 0
jne 0x506dd1
cmp byte [esi + 0x134], 0
je 0x506dd1
call sub.kernel32.dll_GetTickCount
mov edx, dword [0x6884a4]
sub eax, dword [edx]
cmp eax, 0x1f4
jbe 0x506dd1
call sub.kernel32.dll_GetTickCount
mov edx, dword [0x6884a4]
mov dword [edx], eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push 0
mov ecx, dword [esi + 4]
mov edx, 0x45
mov eax, dword [ebp - 4]
call fcn.0050a960
call fcn.00404c4c
jmp 0x507022
cmp byte [esi + 0x31], 0
jne 0x506fef
cmp byte [esi + 0x134], 0
jne 0x506fef
mov eax, dword [0x688a9c]
mov eax, dword [eax]
cmp byte [eax + 0x1c], 0
je 0x506e0d
mov eax, dword [0x68878c]
cmp byte [eax + 0xdad], 0x21
je 0x506e0d
cmp byte [esi + 0x17], 0x1e
jne 0x506fef
mov eax, dword [0x688554]
mov dword [eax], esi
cmp byte [esi + 0x16], 0
je 0x506e37
cmp byte [esi + 0x17], 0xb
je 0x506e37
cmp byte [esi + 0x17], 0xa
je 0x506e37
mov edx, dword [esi + 0x40]
mov eax, 0x507054
call fcn.00405744
test eax, eax
je 0x506e46
test bl, 1
jne 0x506e46
cmp byte [esi + 0x58], 0x45
jne 0x506fef
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.005057b8
call sub.kernel32.dll_GetTickCount
mov edx, dword [0x689174]
mov dword [edx], eax
jmp 0x506fef
mov eax, dword [0x688a9c]
mov eax, dword [eax]
cmp byte [eax + 0x1c], 0
jne 0x506fef
mov eax, dword [0x688750]
mov eax, dword [eax]
push eax
mov ecx, dword [0x68889c]
mov ecx, dword [ecx]
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
call fcn.005b2550
movzx eax, al
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.0050d798
test al, al
je 0x506f72
mov eax, dword [ebp - 4]
call fcn.0050d734
test al, al
je 0x506f72
mov eax, dword [ebp - 4]
call fcn.0050d7e0
test al, al
je 0x506f72
mov eax, 3
call fcn.00403440
mov ebx, eax
add ebx, 7
mov eax, dword [0x6885e4]
cmp byte [eax + 0x26], 0
jne 0x506f05
mov eax, dword [0x68896c]
cmp byte [eax], 0
je 0x506f0a
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00505000
test al, al
je 0x506f0a
mov ebx, 0xb
mov eax, dword [0x688aa8]
cmp byte [eax], 0
jne 0x506f1f
mov eax, dword [0x6885e4]
cmp byte [eax + 0x27], 0
je 0x506f43
mov eax, dword [0x688a9c]
mov eax, dword [eax]
cmp dword [eax + 0x97], 3
jl 0x506f43
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.005051dc
test al, al
je 0x506f43
mov ebx, 0xc
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov edx, ebx
call fcn.0059c908
call sub.kernel32.dll_GetTickCount
mov edx, dword [0x688d40]
mov dword [edx], eax
jmp 0x506fef
mov eax, dword [0x68889c]
mov eax, dword [eax]
mov edx, dword [0x688a9c]
mov edx, dword [edx]
cmp eax, dword [edx + 0xc]
jne 0x506fb5
mov eax, dword [0x688750]
mov eax, dword [eax]
mov edx, dword [0x688a9c]
mov edx, dword [edx]
cmp eax, dword [edx + 0x10]
jne 0x506fb5
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005080d0
jmp 0x506fef
call sub.kernel32.dll_GetTickCount
mov edx, dword [0x688d40]
sub eax, dword [edx]
cmp eax, 0x12c
jbe 0x506fef
mov eax, dword [0x68918c]
mov byte [eax], 0
mov eax, dword [0x68889c]
mov eax, dword [eax]
mov edx, dword [0x688b88]
mov dword [edx], eax
mov eax, dword [0x688750]
mov eax, dword [eax]
mov edx, dword [0x688a78]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507022
mov eax, dword [0x688c00]
cmp byte [eax], 0
je 0x50701a
mov eax, dword [0x688c00]
mov byte [eax], 0
mov dx, 1
mov eax, dword [ebp - 4]
call fcn.00447e40
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc