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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x51fbb8
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x520247
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x544738]
cmp dword [eax], 0
je 0x52022c
mov eax, dword [0x544a9c]
mov byte [eax], 0
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x50]
cmp eax, 0x32
jb 0x51fc1f
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], eax
mov eax, dword [ebp - 4]
inc dword [eax + 0x54]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x54], 0x186a0
jle 0x51fc1f
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x54], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34d8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x51fc4c
inc ebx
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34d8]
mov edx, esi
call fcn.0041bce4
call fcn.0051895c
inc esi
dec ebx
jne 0x51fc33
xor eax, eax
push ebp
push 0x51feb5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x34d8]
cmp ebx, dword [edi + 8]
jge 0x51feab
mov eax, edi
mov edx, ebx
call fcn.0041bce4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x2e], 0
jne 0x51fdef
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 8]
cmp byte [eax + 0xec], 0
je 0x51fca9
mov eax, dword [ebp - 8]
mov byte [eax + 0x220], 0
mov eax, dword [ebp - 8]
cmp byte [eax + 0x220], 0
jne 0x51fd39
mov dword [ebp - 0xc], 4
mov eax, dword [ebp - 8]
call fcn.005146a4
mov dword [ebp - 0xc], 5
mov eax, dword [ebp - 8]
cmp byte [eax + 0xec], 0
je 0x51fd04
mov dword [ebp - 0xc], 6
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x29c]
mov eax, dword [ebp - 8]
call fcn.00518b8c
test al, al
je 0x51fd04
inc ebx
mov dword [ebp - 0xc], 7
jmp 0x51fc5c
mov dword [ebp - 0xc], 8
mov eax, dword [ebp - 8]
mov si, 0xfffa
call fcn.00404458
mov dword [ebp - 0xc], 9
mov eax, dword [0x544738]
mov eax, dword [eax]
cmp eax, dword [ebp - 8]
je 0x51fd32
mov eax, dword [ebp - 8]
call fcn.005149f0
mov dword [ebp - 0xc], 0xa
mov dword [ebp - 0xc], 0xb
mov eax, dword [0x544738]
mov eax, dword [eax]
cmp eax, dword [ebp - 8]
jne 0x51fd54
mov eax, dword [ebp - 8]
call fcn.005149f0
mov dword [ebp - 0xc], 0xc
mov eax, dword [ebp - 8]
cmp dword [eax + 0x17c], 0
je 0x51fdef
mov dword [ebp - 0xc], 0xd
mov eax, dword [ebp - 8]
call fcn.00514b1c
test al, al
je 0x51fdef
mov dword [ebp - 0xc], 0xe
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x17c]
call fcn.00527ec8
mov dword [ebp - 0xc], 0xf
mov eax, dword [ebp - 8]
mov ax, word [eax + 0xc]
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x10]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x180]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x184]
push eax
mov eax, dword [ebp - 8]
mov cx, word [eax + 8]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x17c]
mov eax, dword [ebp - 4]
call fcn.005250cc
mov dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x17c], edx
mov eax, dword [ebp - 8]
mov byte [eax + 0x2e], 1
mov dword [ebp - 0xc], 0x11
mov eax, dword [ebp - 8]
cmp byte [eax + 0x2e], 0
je 0x51fea5
mov dword [ebp - 0xc], 0x12
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34d8]
mov edx, ebx
call fcn.0041bbc0
mov dword [ebp - 0xc], 0x13
mov eax, dword [ebp - 8]
call fcn.0052f774
mov dword [ebp - 0xc], 0x14
mov eax, dword [0x54515c]
mov eax, dword [eax]
cmp eax, dword [ebp - 8]
jne 0x51fe45
mov eax, dword [0x54515c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x544898]
mov eax, dword [eax]
cmp eax, dword [ebp - 8]
jne 0x51fe5a
mov eax, dword [0x544898]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x544e20]
mov eax, dword [eax]
cmp eax, dword [ebp - 8]
jne 0x51fe6f
mov eax, dword [0x544e20]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x544c68]
mov eax, dword [eax]
cmp eax, dword [ebp - 8]
jne 0x51fe84
mov eax, dword [0x544c68]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5447c8]
mov eax, dword [eax]
cmp eax, dword [ebp - 8]
jne 0x51fe99
mov eax, dword [0x5447c8]
xor edx, edx
mov dword [eax], edx
mov dword [ebp - 0xc], 0x15
jmp 0x51fc5c
inc ebx
jmp 0x51fc5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51ff29
mov dword [ebp - 0xc], 0x16
xor eax, eax
push ebp
push 0x520105
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dword [ebp - 0xc], 0x17
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34e0]
cmp ebx, dword [eax + 8]
jge 0x51ffc5
mov dword [ebp - 0xc], 0x18
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34e0]
mov edx, ebx
call fcn.0041bce4
mov edi, eax
mov dword [ebp - 0xc], 0x19
cmp byte [edi + 4], 0
je 0x51ffbf
mov dword [ebp - 0xc], 0x1a
mov eax, edi
mov si, 0xffff
call fcn.00404458
test al, al
jne 0x51ffbf
mov dword [ebp - 0xc], 0x1b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34e0]
mov edx, ebx
call fcn.0041bbc0
mov dword [ebp - 0xc], 0x1c
mov eax, edi
call fcn.00404250
mov dword [ebp - 0xc], 0x1d
jmp 0x51ff40
inc ebx
jmp 0x51ff40
mov dword [ebp - 0xc], 0x1e
xor ebx, ebx
mov dword [ebp - 0xc], 0x1f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34e4]
cmp ebx, dword [eax + 8]
jge 0x520053
mov dword [ebp - 0xc], 0x20
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34e4]
mov edx, ebx
call fcn.0041bce4
mov edi, eax
mov dword [ebp - 0xc], 0x21
cmp byte [edi + 4], 0
je 0x52004d
mov dword [ebp - 0xc], 0x22
mov eax, edi
mov si, 0xffff
call fcn.00404458
test al, al
jne 0x52004d
mov dword [ebp - 0xc], 0x23
mov eax, edi
call fcn.00404250
mov dword [ebp - 0xc], 0x24
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34e4]
mov edx, ebx
call fcn.0041bbc0
mov dword [ebp - 0xc], 0x25
jmp 0x51ffce
inc ebx
jmp 0x51ffce
mov dword [ebp - 0xc], 0x26
xor ebx, ebx
mov dword [ebp - 0xc], 0x27
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34e8]
cmp ebx, dword [eax + 8]
jge 0x5200e1
mov dword [ebp - 0xc], 0x28
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34e8]
mov edx, ebx
call fcn.0041bce4
mov edi, eax
mov dword [ebp - 0xc], 0x29
cmp byte [edi + 4], 0
je 0x5200db
mov dword [ebp - 0xc], 0x2a
mov eax, edi
mov si, 0xffff
call fcn.00404458
test al, al
jne 0x5200db
mov dword [ebp - 0xc], 0x2b
mov eax, edi
call fcn.00404250
mov dword [ebp - 0xc], 0x2c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34e8]
mov edx, ebx
call fcn.0041bbc0
mov dword [ebp - 0xc], 0x2d
jmp 0x52005c
inc ebx
jmp 0x52005c
mov dword [ebp - 0xc], 0x2e
mov eax, dword [0x544cbc]
mov eax, dword [eax]
call fcn.00504b44
mov dword [ebp - 0xc], 0x2f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x520158
xor eax, eax
push ebp
push 0x5201f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0051f800
mov eax, dword [0x544cbc]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5201e8
mov eax, dword [0x544cbc]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, esi
call fcn.0041bce4
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [0x544738]
mov edx, dword [edx]
sub eax, dword [edx + 8]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x1e
jle 0x5201c4
mov eax, dword [ebx + 8]
mov edx, dword [0x544738]
mov edx, dword [edx]
sub eax, dword [edx + 0xc]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x1e
jg 0x5201ca
cmp byte [ebx + 0x40], 0
jne 0x5201e2
mov eax, dword [0x544cbc]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, esi
call fcn.0041bbc0
mov eax, ebx
call fcn.00404250
dec esi
cmp esi, 0xffffffff
jne 0x520181
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52022c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52024e
lea eax, [ebp - 0x2c]
mov edx, 8
call fcn.004050a4
ret