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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x51b573
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x672220]
mov eax, dword [eax]
cmp dword [eax + 0x17c], 0
jne 0x51b533
mov eax, dword [0x672220]
mov eax, dword [eax]
mov byte [eax + 0x124], 0
mov eax, dword [0x6720fc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x164]
mov ebx, dword [eax + 0x30]
mov edx, dword [0x672220]
mov esi, dword [eax + 0x34]
mov eax, dword [0x672220]
mov eax, dword [eax]
mov ecx, dword [eax + 0x34]
mov eax, dword [0x672220]
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
mov eax, dword [0x672220]
mov eax, dword [eax]
call fcn.0060ce8c
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x164]
cmp ebx, dword [eax + 0x30]
jne 0x51ad73
mov edx, dword [0x672220]
cmp esi, dword [eax + 0x34]
jne 0x51ad73
xor eax, eax
jmp 0x51ad75
mov al, 1
mov byte [ebp - 0x16], al
mov eax, dword [0x672220]
mov eax, dword [eax]
cmp byte [eax + 0x170], 1
jne 0x51ada4
call fcn.005397ec
mov eax, dword [eax + 0x10]
cmp dword [eax + 0x18], 1
jg 0x51ada4
mov eax, dword [0x672220]
mov eax, dword [eax]
mov byte [eax + 0x170], 0
mov eax, dword [0x672220]
mov eax, dword [eax]
mov esi, dword [eax + 0x128]
mov ebx, dword [esi + 0x120]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
test eax, eax
je 0x51ae11
mov eax, esi
call fcn.0063cd0c
test eax, eax
jl 0x51ae11
mov edx, 1
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x48]
test eax, eax
setge al
push eax
call fcn.005397ec
mov eax, dword [eax + 0x10]
cmp dword [eax + 0x18], 1
setg al
pop edx
cmp dl, al
jne 0x51ae11
mov eax, esi
call fcn.0063cca8
mov edx, dword [0x672220]
mov edx, dword [edx]
movzx edx, byte [edx + 0x170]
cmp eax, edx
je 0x51aeaf
mov eax, ebx
call fcn.00657948
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x34]
lea eax, [ebp - 0x20]
mov edx, dword [0x6729c0]
mov edx, dword [edx]
call fcn.00403438
mov edx, dword [ebp - 0x20]
xor ecx, ecx
mov eax, ebx
call fcn.00657778
call fcn.005397ec
mov eax, dword [eax + 0x10]
cmp dword [eax + 0x18], 1
jle 0x51ae69
lea eax, [ebp - 0x20]
mov edx, dword [0x6729c0]
mov edx, dword [edx + 4]
call fcn.00403438
mov edx, dword [ebp - 0x20]
mov ecx, 1
mov eax, ebx
call fcn.00657778
lea eax, [ebp - 0x20]
mov edx, dword [0x6729c0]
mov edx, dword [edx + 8]
call fcn.00403438
mov edx, dword [ebp - 0x20]
mov ecx, 2
mov eax, ebx
call fcn.00657778
mov eax, dword [0x672220]
mov eax, dword [eax]
xor edx, edx
mov dl, byte [eax + 0x170]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, eax
mov eax, esi
call fcn.0063cd28
mov eax, ebx
call fcn.00657960
mov eax, dword [0x672220]
mov eax, dword [eax]
mov byte [eax + 0x172], 1
call fcn.00603f80
mov al, byte [eax + 0x3a]
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x51af01
call fcn.005397ec
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
dec esi
cmp esi, 0
jl 0x51af01
call fcn.005397ec
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
mov byte [eax + 0x8a4], 0
mov byte [eax + 0x46c], 0
dec esi
cmp esi, 0xffffffff
jne 0x51aedf
mov bl, byte [ebp - 0x15]
xor bl, 1
mov edx, ebx
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x128]
call fcn.00646650
mov edx, ebx
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x12c]
call fcn.00646650
mov edx, ebx
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x138]
call fcn.00646650
lea edx, [ebp - 0x24]
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x138]
call fcn.006466f8
mov eax, dword [ebp - 0x24]
push eax
call fcn.00603f80
mov eax, dword [eax + 0x1a4]
lea edx, [ebp - 0x28]
call fcn.006466f8
mov edx, dword [ebp - 0x28]
pop eax
call fcn.00403bd0
je 0x51afee
call fcn.00603f80
mov eax, dword [eax + 0x1a4]
lea edx, [ebp - 0x24]
call fcn.006466f8
mov edx, dword [ebp - 0x24]
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x138]
call fcn.006467a4
call fcn.005397ec
call fcn.00539784
mov eax, dword [0x672220]
mov eax, dword [eax]
cmp byte [eax + 0x173], 0
je 0x51afe0
push 0xffff0000
push 0
push 0x142
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x138]
call fcn.0064a424
push eax
call sub.user32.dll_SendMessageW
mov eax, dword [0x672220]
mov eax, dword [eax]
mov byte [eax + 0x173], 0
call fcn.00603f80
mov eax, dword [eax + 0x1a4]
mov edx, dword [eax + 0x120]
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x138]
mov eax, dword [eax + 0x120]
call fcn.006578d8
mov edx, ebx
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x13c]
call fcn.00646650
mov edx, ebx
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x140]
call fcn.00646650
call fcn.00603f80
mov eax, dword [eax + 0x1a8]
call fcn.0063e0c8
mov edx, eax
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x140]
call fcn.0063e0d4
mov edx, ebx
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x148]
call fcn.00646650
call fcn.00603f80
mov eax, dword [eax + 0x1b0]
lea edx, [ebp - 0x24]
call fcn.006466f8
mov edx, dword [ebp - 0x24]
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x148]
call fcn.006467a4
call fcn.00603f80
mov eax, dword [eax + 0x1b0]
mov edx, dword [eax + 0x120]
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x148]
mov eax, dword [eax + 0x120]
call fcn.006578d8
mov edx, ebx
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x14c]
call fcn.00646650
call fcn.00603f80
mov eax, dword [eax + 0x1b4]
call fcn.0063e0c8
mov edx, eax
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x14c]
call fcn.0063e0d4
mov bl, 1
mov esi, ebx
and esi, 0x7f
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + esi*4 + 0x150]
mov dl, byte [ebp - 0x15]
xor dl, 1
call fcn.00646650
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + esi*4 + 0x158]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.00648310
mov esi, eax
dec esi
cmp esi, 0
jl 0x51b195
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.006482e0
mov edi, eax
mov dl, byte [ebp - 0x15]
xor dl, 1
mov eax, edi
call fcn.00646650
call fcn.00603f80
xor edx, edx
mov dl, bl
cmp dword [eax + edx*4 + 0x1fc], 0
je 0x51b18f
call fcn.00603f80
xor edx, edx
mov dl, bl
mov eax, dword [eax + edx*4 + 0x1fc]
mov edx, esi
call fcn.006482e0
mov edx, dword [eax + 0x58]
lea eax, [edi + 0x58]
call fcn.004032c8
dec esi
cmp esi, 0xffffffff
jne 0x51b141
dec ebx
cmp bl, 0xff
jne 0x51b102
cmp byte [ebp - 0x15], 0
je 0x51b1bf
mov eax, dword [0x672220]
mov eax, dword [eax]
mov byte [eax + 0x171], 0
mov eax, 0x51b58c
call fcn.0065cc08
jmp 0x51b1d6
lea edx, [ebp - 0x20]
mov eax, dword [0x672220]
mov eax, dword [eax]
call fcn.0060d5fc
mov eax, dword [ebp - 0x20]
call fcn.0065cc08
mov byte [ebp - 1], 0
xor ebx, ebx
cmp byte [ebp - 0x16], 0
jne 0x51b200
call fcn.00660e34
mov edx, dword [0x672220]
mov edx, dword [edx]
sub eax, dword [edx + 0x174]
cmp eax, 0x3e8
jle 0x51b4e4
mov eax, dword [0x672220]
mov eax, dword [eax]
xor edx, edx
mov dword [eax + 0x174], edx
mov eax, dword [0x672220]
mov eax, dword [eax]
cmp byte [eax + 0x171], 0
je 0x51b3b4
mov eax, dword [0x672220]
mov eax, dword [eax]
call fcn.0060d5a0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x18]
dec esi
cmp esi, 0
jl 0x51b292
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax + esi*4]
cmp byte [edi + 0x9a4], 0
je 0x51b259
cmp dword [edi + 0x9b4], 0
jl 0x51b267
mov eax, dword [0x672220]
mov eax, dword [eax]
mov byte [eax + 0x172], 0
cmp byte [edi + 0x9a4], 0
je 0x51b28c
mov eax, dword [edi + 0x9a8]
call fcn.005481c0
test al, al
jne 0x51b28c
mov eax, dword [edi + 0x9a8]
call fcn.00548140
add ebx, eax
dec esi
cmp esi, 0xffffffff
jne 0x51b23e
mov eax, dword [0x672220]
mov eax, dword [eax]
cmp byte [eax + 0x172], 0
je 0x51b340
test ebx, ebx
jne 0x51b2d0
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x160]
mov edx, 0x51b5e0
call fcn.00646734
mov eax, 0x51b5f4
call fcn.0065cc08
jmp 0x51b3aa
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x3c]
mov eax, ebx
call fcn.006233b0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0xb
xor eax, eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea edx, [ebp - 0x38]
mov eax, 0x51b600
mov ecx, 1
call fcn.0065d7d4
mov edx, dword [ebp - 0x20]
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x160]
call fcn.00646734
mov eax, dword [ebp - 8]
mov edi, dword [eax + 0x18]
dec edi
test edi, edi
jl 0x51b3aa
inc edi
xor esi, esi
push ebp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
call fcn.0051a764
pop ecx
inc esi
dec edi
jne 0x51b32a
jmp 0x51b3aa
test ebx, ebx
jle 0x51b34e
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.006233b0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0xb
call fcn.00660e34
mov ecx, 0x12c
cdq
idiv ecx
and eax, 0x80000003
jns 0x51b375
dec eax
or eax, 0xfffffffc
inc eax
mov eax, dword [eax*4 + 0x66c5e0]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea edx, [ebp - 0x38]
mov eax, 0x51b600
mov ecx, 1
call fcn.0065d7d4
mov edx, dword [ebp - 0x20]
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x160]
call fcn.00646734
mov eax, dword [ebp - 8]
call fcn.00656ff0
jmp 0x51b3cb
mov edx, 0x51b5e0
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x160]
call fcn.00646734
mov eax, dword [0x672220]
mov eax, dword [eax]
cmp byte [eax + 0x170], 0
jne 0x51b3e8
call fcn.005397f4
lea esi, [eax + 0x9b8]
jmp 0x51b3f5
mov eax, dword [0x672220]
mov eax, dword [eax]
lea esi, [eax + 0x178]
mov eax, dword [0x672220]
mov eax, dword [eax]
cmp byte [eax + 0x172], 0
je 0x51b4e4
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x164]
cmp dword [eax + 0x30], 0
jle 0x51b4e4
mov ecx, dword [0x6720fc]
mov ecx, dword [ecx]
mov edx, dword [0x6721a4]
mov edx, dword [edx]
lea eax, [ebp - 0xc]
call fcn.00403358
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0065c958
cmp byte [ebp - 0x16], 0
jne 0x51b4a2
mov eax, dword [ebp - 0x14]
call fcn.00403ab8
mov edi, eax
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x164]
mov eax, dword [eax + 0x144]
call fcn.00403ab8
cmp edi, eax
jne 0x51b4a2
mov eax, dword [ebp - 0x14]
mov edx, dword [0x672220]
mov edx, dword [edx]
mov edx, dword [edx + 0x164]
mov edx, dword [edx + 0x144]
call fcn.00403bd0
jne 0x51b4a2
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x164]
cmp esi, dword [eax + 0x14c]
je 0x51b4e4
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x164]
add eax, 0x144
mov edx, dword [ebp - 0x14]
call fcn.004038bc
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x164]
mov ecx, esi
xor edx, edx
call fcn.0061cf4c
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x164]
mov edx, dword [eax]
call dword [edx + 0x38]
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x168]
mov dl, byte [ebp - 1]
call fcn.00646650
mov eax, dword [0x672220]
mov eax, dword [eax]
cmp byte [eax + 0x172], 0
je 0x51b50d
test ebx, ebx
jg 0x51b511
xor edx, edx
jmp 0x51b513
mov dl, 1
mov eax, dword [0x672220]
mov eax, dword [eax]
mov eax, dword [eax + 0x16c]
call fcn.00646650
mov eax, dword [0x672220]
mov eax, dword [eax]
mov byte [eax + 0x124], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51b57a
lea eax, [ebp - 0x3c]
call fcn.00403274
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00403898
lea eax, [ebp - 0x20]
call fcn.00403274
lea eax, [ebp - 0x14]
call fcn.00403880
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00403298
ret