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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x52deac
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x52e605
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5673b0]
cmp dword [eax], 0
je 0x52e5ea
mov eax, dword [0x56775c]
mov byte [eax], 0
mov byte [ebp - 5], 0
mov eax, dword [0x567764]
cmp byte [eax + 0xc], 0
je 0x52df26
mov eax, dword [0x5673b0]
mov eax, dword [eax]
movzx eax, byte [eax + 0xbe]
imul eax, eax, 0x64
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fdiv dword [0x52e614]
call fcn.0040367c
push eax
mov eax, 0x64
pop edx
sub eax, edx
mov edx, 5
call fcn.0047a1ec
mov ebx, eax
jmp 0x52df2b
mov ebx, 0x64
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x48]
cmp ebx, eax
ja 0x52df60
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
inc dword [eax + 0x4c]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 1
jle 0x52df60
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x4c], edx
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x50]
cmp eax, 0x32
jb 0x52df95
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 0x52df95
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x54], edx
xor eax, eax
push ebp
push 0x52e1f9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x34d8]
cmp ebx, dword [edi + 8]
jge 0x52e1ef
mov eax, edi
mov edx, ebx
call fcn.0041c194
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x3e], 0
jne 0x52e133
mov dword [ebp - 0x10], 1
cmp byte [ebp - 5], 0
je 0x52dff8
mov eax, dword [ebp - 0xc]
call fcn.0054670c
test al, al
je 0x52dff8
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x248], 0
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x248], 0
jne 0x52e07e
mov dword [ebp - 0x10], 4
mov eax, dword [ebp - 0xc]
call fcn.00542014
mov dword [ebp - 0x10], 5
cmp byte [ebp - 5], 0
je 0x52e049
mov dword [ebp - 0x10], 6
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x2c4]
mov eax, dword [ebp - 0xc]
call fcn.00546914
test al, al
je 0x52e049
inc ebx
mov dword [ebp - 0x10], 7
jmp 0x52dfa5
mov dword [ebp - 0x10], 8
mov eax, dword [ebp - 0xc]
mov si, 0xfffa
call fcn.00404844
mov dword [ebp - 0x10], 9
mov eax, dword [0x5673b0]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x52e077
mov eax, dword [ebp - 0xc]
call fcn.00542328
mov dword [ebp - 0x10], 0xa
mov dword [ebp - 0x10], 0xb
mov eax, dword [0x5673b0]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jne 0x52e099
mov eax, dword [ebp - 0xc]
call fcn.00542328
mov dword [ebp - 0x10], 0xc
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1a0], 0
je 0x52e133
mov dword [ebp - 0x10], 0xd
mov eax, dword [ebp - 0xc]
call fcn.00542454
test al, al
je 0x52e133
mov dword [ebp - 0x10], 0xe
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1a0]
call fcn.0055ac54
mov dword [ebp - 0x10], 0xf
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
push eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x18]
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x1a4
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1ac]
push eax
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x1a0]
mov eax, dword [ebp - 4]
call fcn.00533278
mov dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x1a0], edx
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x3e], 1
mov dword [ebp - 0x10], 0x11
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x3e], 0
je 0x52e1e9
mov dword [ebp - 0x10], 0x12
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34d8]
mov edx, ebx
call fcn.0041c088
mov dword [ebp - 0x10], 0x13
mov eax, dword [ebp - 0xc]
call fcn.005253f0
mov dword [ebp - 0x10], 0x14
mov eax, dword [0x566e14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jne 0x52e189
mov eax, dword [0x566e14]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x567520]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jne 0x52e19e
mov eax, dword [0x567520]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x567b70]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jne 0x52e1b3
mov eax, dword [0x567b70]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x567948]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jne 0x52e1c8
mov eax, dword [0x567948]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x56744c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jne 0x52e1dd
mov eax, dword [0x56744c]
xor edx, edx
mov dword [eax], edx
mov dword [ebp - 0x10], 0x15
jmp 0x52dfa5
inc ebx
jmp 0x52dfa5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52e26d
mov dword [ebp - 0x10], 0x16
xor eax, eax
push ebp
push 0x52e449
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dword [ebp - 0x10], 0x17
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34e0]
cmp ebx, dword [eax + 8]
jge 0x52e309
mov dword [ebp - 0x10], 0x18
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34e0]
mov edx, ebx
call fcn.0041c194
mov edi, eax
mov dword [ebp - 0x10], 0x19
cmp byte [edi + 4], 0
je 0x52e303
mov dword [ebp - 0x10], 0x1a
mov eax, edi
mov si, 0xffff
call fcn.00404844
test al, al
jne 0x52e303
mov dword [ebp - 0x10], 0x1b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34e0]
mov edx, ebx
call fcn.0041c088
mov dword [ebp - 0x10], 0x1c
mov eax, edi
call fcn.00404648
mov dword [ebp - 0x10], 0x1d
jmp 0x52e284
inc ebx
jmp 0x52e284
mov dword [ebp - 0x10], 0x1e
xor ebx, ebx
mov dword [ebp - 0x10], 0x1f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34e4]
cmp ebx, dword [eax + 8]
jge 0x52e397
mov dword [ebp - 0x10], 0x20
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34e4]
mov edx, ebx
call fcn.0041c194
mov edi, eax
mov dword [ebp - 0x10], 0x21
cmp byte [edi + 4], 0
je 0x52e391
mov dword [ebp - 0x10], 0x22
mov eax, edi
mov si, 0xffff
call fcn.00404844
test al, al
jne 0x52e391
mov dword [ebp - 0x10], 0x23
mov eax, edi
call fcn.00404648
mov dword [ebp - 0x10], 0x24
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34e4]
mov edx, ebx
call fcn.0041c088
mov dword [ebp - 0x10], 0x25
jmp 0x52e312
inc ebx
jmp 0x52e312
mov dword [ebp - 0x10], 0x26
xor ebx, ebx
mov dword [ebp - 0x10], 0x27
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34e8]
cmp ebx, dword [eax + 8]
jge 0x52e425
mov dword [ebp - 0x10], 0x28
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34e8]
mov edx, ebx
call fcn.0041c194
mov edi, eax
mov dword [ebp - 0x10], 0x29
cmp byte [edi + 4], 0
je 0x52e41f
mov dword [ebp - 0x10], 0x2a
mov eax, edi
mov si, 0xffff
call fcn.00404844
test al, al
jne 0x52e41f
mov dword [ebp - 0x10], 0x2b
mov eax, edi
call fcn.00404648
mov dword [ebp - 0x10], 0x2c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34e8]
mov edx, ebx
call fcn.0041c088
mov dword [ebp - 0x10], 0x2d
jmp 0x52e3a0
inc ebx
jmp 0x52e3a0
mov dword [ebp - 0x10], 0x2e
mov eax, dword [0x5673f4]
mov eax, dword [eax]
call fcn.0053df00
mov dword [ebp - 0x10], 0x2f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52e49c
xor edx, edx
push ebp
push 0x52e5b0
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.0052db24
mov eax, dword [0x5673f4]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x52e52c
mov eax, dword [0x5673f4]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, esi
call fcn.0041c194
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [0x5673b0]
mov edx, dword [edx]
sub eax, dword [edx + 0x10]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x1e
jle 0x52e508
mov eax, dword [ebx + 8]
mov edx, dword [0x5673b0]
mov edx, dword [edx]
sub eax, dword [edx + 0x14]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x1e
jg 0x52e50e
cmp byte [ebx + 0x40], 0
jne 0x52e526
mov eax, dword [0x5673f4]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, esi
call fcn.0041c088
mov eax, ebx
call fcn.00404648
dec esi
cmp esi, 0xffffffff
jne 0x52e4c5
mov eax, dword [0x5673f4]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x52e5a6
inc edi
xor esi, esi
mov eax, dword [0x5673f4]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, esi
call fcn.0041c194
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [0x5673b0]
mov edx, dword [edx]
sub eax, dword [edx + 0x10]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xf
jg 0x52e5a2
mov eax, dword [ebx + 8]
mov edx, dword [0x5673b0]
mov edx, dword [edx]
sub eax, dword [edx + 0x14]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xf
jg 0x52e5a2
mov eax, dword [ebx + 0x18]
add eax, 0xfffffff9
sub eax, 7
jae 0x52e5a2
mov eax, dword [ebx + 0x44]
test eax, eax
jle 0x52e5a2
call fcn.0053cc7c
mov dword [ebx + 0x44], 0xfffffffe
inc esi
dec edi
jne 0x52e541
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52e5ea
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52e60c
lea eax, [ebp - 0x34]
mov edx, 8
call fcn.00405568
ret