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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [0x5865d0]
mov byte [ebp - 9], 0
cmp dword [ebp + 8], 0
je 0x52e063
mov eax, dword [ebp + 8]
call fcn.005243c8
cmp ax, 0x151
jbe 0x52e042
mov eax, dword [ebp + 8]
call fcn.005243c8
cmp ax, 0x157
jae 0x52e042
mov dword [ebp - 0x24], 2
jmp 0x52e04b
mov eax, dword [ebx + 0x88]
mov dword [ebp - 0x24], eax
cmp byte [ebx + 0x50], 0
je 0x52e063
mov eax, dword [esi]
call fcn.00511c74
cmp al, 1
jne 0x52e063
mov dword [ebp - 0x24], 2
mov eax, dword [esi]
call fcn.00511c88
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.00511cb0
mov dword [ebp - 0x1c], eax
call fcn.004b9988
mov edi, eax
cmp byte [ebx + 0xd4], 0
je 0x52e7c0
cmp byte [ebp + 0xc], 0
jne 0x52e7c0
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov eax, dword [eax + 0x338]
imul dword [ebx + 0x58]
push eax
call sub.kernel32.dll_Sleep_2
cmp dword [ebp + 8], 0
je case.default.0x52e17e
cmp dword [ebp - 0x24], 2
jle case.default.0x52e17e
cmp dword [ebp + 8], 0
je 0x52e121
mov eax, dword [esi]
call fcn.00511c88
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [esi]
call fcn.00511cb0
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp + 8]
call fcn.005246c0
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp + 8]
call fcn.005246d0
mov dword [ebp - 0x3c], eax
fild dword [ebp - 0x3c]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b8060
mov dword [ebp - 0x14], eax
jmp 0x52e165
mov eax, dword [esi]
call fcn.00511c88
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [esi]
call fcn.00511cb0
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp - 4]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp - 8]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b8060
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
sar eax, 1
jns 0x52e16f
adc eax, 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
cmp eax, 7
ja case.default.0x52e17e
jmp dword [eax*4 + 0x52e185]
mov eax, dword [ebp - 0x20]
add eax, eax
sub dword [ebp - 8], eax
jmp case.default.0x52e17e
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 8], eax
jmp case.default.0x52e17e
mov eax, dword [ebp - 0x20]
add eax, eax
add dword [ebp - 4], eax
jmp case.default.0x52e17e
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
jmp case.default.0x52e17e
mov eax, dword [ebp - 0x20]
add eax, eax
add dword [ebp - 8], eax
jmp case.default.0x52e17e
mov eax, dword [ebp - 0x20]
sub dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
jmp case.default.0x52e17e
mov eax, dword [ebp - 0x20]
add eax, eax
sub dword [ebp - 4], eax
jmp case.default.0x52e17e
mov eax, dword [ebp - 0x20]
sub dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and eax, 0x80000001
jns 0x52e212
dec eax
or eax, 0xfffffffe
inc eax
mov edx, dword [ebp - 8]
and edx, 0x80000001
jns 0x52e222
dec edx
or edx, 0xfffffffe
inc edx
cmp eax, edx
je 0x52e229
inc dword [ebp - 8]
mov eax, dword [esi]
mov byte [eax + 0x46], 0
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0050b7f8
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x52e4cd
mov eax, dword [ebx + 0x58]
push eax
call sub.kernel32.dll_Sleep_2
call fcn.004b9988
sub eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x58]
add eax, eax
lea eax, [eax + eax*2]
cdq
cmp edx, dword [esp + 4]
jne 0x52e275
cmp eax, dword [esp]
pop edx
pop eax
jae 0x52e27d
jmp 0x52e7ca
pop edx
pop eax
jl 0x52e7ca
mov eax, dword [esi]
call fcn.00511c88
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [esi]
call fcn.00511cb0
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp - 4]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp - 8]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b7ec4
fcomp dword [0x52e7d8]
wait
fnstsw ax
sahf
ja 0x52e30f
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov eax, dword [eax + 0x338]
imul dword [ebx + 0x58]
push eax
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x586404]
mov eax, dword [eax]
cmp dword [eax + 0x5f8], 0x31
jne 0x52e306
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov eax, dword [eax + 0x338]
imul dword [ebx + 0x58]
push eax
call sub.kernel32.dll_Sleep_2
mov byte [ebp - 9], 1
jmp 0x52e7ca
mov eax, dword [esi]
cmp byte [eax + 0x46], 0
je 0x52e374
mov eax, dword [esi]
call fcn.00511c88
cmp eax, dword [ebp - 0x18]
jne 0x52e32f
mov eax, dword [esi]
call fcn.00511cb0
cmp eax, dword [ebp - 0x1c]
je 0x52e374
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov eax, dword [eax + 0x338]
imul dword [ebx + 0x58]
push eax
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x586404]
mov eax, dword [eax]
cmp dword [eax + 0x5f8], 0x31
jne 0x52e36b
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov eax, dword [eax + 0x338]
imul dword [ebx + 0x58]
push eax
call sub.kernel32.dll_Sleep_2
mov byte [ebp - 9], 1
jmp 0x52e7ca
call fcn.004b9988
sub eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x58]
add eax, eax
cdq
cmp edx, dword [esp + 4]
jne 0x52e398
cmp eax, dword [esp]
pop edx
pop eax
jae 0x52e4cd
jmp 0x52e3a0
pop edx
pop eax
jge 0x52e4cd
cmp dword [ebp - 0x10], 0
jne 0x52e4cd
mov eax, dword [esi]
cmp byte [eax + 0x46], 0
je 0x52e7ca
fild dword [ebp - 4]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp - 8]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [esi]
call fcn.00511c88
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [esi]
call fcn.00511cb0
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b8060
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, 7
ja case.default.0x52e406
jmp dword [eax*4 + 0x52e40d]
mov ecx, dword [ebp - 8]
add ecx, 4
mov eax, dword [esi]
mov edx, dword [ebp - 4]
call fcn.0050b7f8
jmp case.default.0x52e406
mov ecx, dword [ebp - 8]
add ecx, 2
mov edx, dword [ebp - 4]
sub edx, 2
mov eax, dword [esi]
call fcn.0050b7f8
jmp case.default.0x52e406
mov edx, dword [ebp - 4]
sub edx, 4
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
call fcn.0050b7f8
jmp case.default.0x52e406
mov ecx, dword [ebp - 8]
sub ecx, 2
mov edx, dword [ebp - 4]
sub edx, 2
mov eax, dword [esi]
call fcn.0050b7f8
jmp case.default.0x52e406
mov ecx, dword [ebp - 8]
sub ecx, 4
mov eax, dword [esi]
mov edx, dword [ebp - 4]
call fcn.0050b7f8
jmp case.default.0x52e406
mov ecx, dword [ebp - 8]
sub ecx, 2
mov edx, dword [ebp - 4]
add edx, 2
mov eax, dword [esi]
call fcn.0050b7f8
jmp case.default.0x52e406
mov edx, dword [ebp - 4]
add edx, 4
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
call fcn.0050b7f8
jmp case.default.0x52e406
mov ecx, dword [ebp - 8]
add ecx, 2
mov edx, dword [ebp - 4]
add edx, 2
mov eax, dword [esi]
call fcn.0050b7f8
inc dword [ebp - 0x10]
cmp byte [ebx + 0xd], 0
je 0x52e246
jmp 0x52e7ca
cmp dword [ebp + 8], 0
je 0x52e519
cmp dword [ebx + 0x80], 0
jne 0x52e503
cmp byte [ebx + 0x5c], 0
je 0x52e503
lea edx, [ebp + 8]
mov eax, ebx
call fcn.005317c0
test al, al
jne 0x52e7ca
mov eax, dword [ebp + 8]
call fcn.00524270
cmp eax, dword [ebp - 0x24]
jg 0x52e519
mov byte [ebp - 9], 1
jmp 0x52e7ca
cmp byte [ebp + 0x10], 0
je 0x52e53e
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.0052fecc
test al, al
je 0x52e53e
mov eax, dword [ebp - 0x2c]
call fcn.004041e0
mov byte [ebp - 9], 1
jmp 0x52e7ca
fild dword [ebp - 4]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp - 8]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [esi]
call fcn.00511c88
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [esi]
call fcn.00511cb0
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b8060
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
call fcn.00511c88
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.00511cb0
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
call fcn.00511c88
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [esi]
call fcn.00511cb0
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp - 4]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp - 8]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b7ec4
fcomp dword [0x52e7d8]
wait
fnstsw ax
sahf
jb 0x52e7ba
mov dword [ebp - 0x20], 1
mov eax, dword [esi]
call fcn.00511c88
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [esi]
call fcn.00511cb0
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp - 4]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp - 8]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b7ec4
fcomp dword [0x52e7dc]
wait
fnstsw ax
sahf
jbe 0x52e64e
mov eax, dword [esi]
call fcn.005115f0
cmp eax, 5
jle 0x52e64e
mov dword [ebp - 0x20], 2
mov eax, dword [ebp - 0x14]
cmp eax, 7
ja case.default.0x52e65a
jmp dword [eax*4 + 0x52e661]
mov eax, dword [ebp - 0x20]
add eax, eax
add dword [ebp - 0x1c], eax
jmp case.default.0x52e65a
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x1c], eax
jmp case.default.0x52e65a
mov eax, dword [ebp - 0x20]
add eax, eax
sub dword [ebp - 0x18], eax
jmp case.default.0x52e65a
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x1c], eax
jmp case.default.0x52e65a
mov eax, dword [ebp - 0x20]
add eax, eax
sub dword [ebp - 0x1c], eax
jmp case.default.0x52e65a
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x1c], eax
jmp case.default.0x52e65a
mov eax, dword [ebp - 0x20]
add eax, eax
add dword [ebp - 0x18], eax
jmp case.default.0x52e65a
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov byte [eax + 0x46], 0
mov eax, dword [esi]
mov byte [eax + 0x45], 0
mov byte [ebp - 0x25], 1
call fcn.004b9988
mov edi, eax
cmp dword [ebp - 0x20], 1
jne 0x52e70b
mov eax, dword [esi]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.0050f220
jmp 0x52e765
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [esi]
call fcn.00511cb0
push eax
mov eax, dword [esi]
call fcn.00511c88
mov edx, eax
mov eax, dword [esi]
pop ecx
call fcn.0050f0f4
jmp 0x52e765
push 0x32
call sub.kernel32.dll_Sleep_2
call fcn.004b9988
sub eax, edi
cmp eax, 0x3e8
ja 0x52e74b
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x52e751
mov byte [ebp - 0x25], 0
jmp 0x52e76b
mov eax, dword [esi]
cmp byte [eax + 0x46], 0
je 0x52e765
imul eax, dword [ebp - 0x20], 0x64
push eax
call sub.kernel32.dll_Sleep_2
jmp 0x52e76b
cmp byte [ebx + 0xd], 0
je 0x52e72e
cmp byte [ebp - 0x25], 0
jne 0x52e7c0
mov byte [ebp - 9], 0
cmp dword [ebp + 8], 0
je 0x52e785
mov edx, dword [ebp + 8]
mov eax, ebx
call fcn.0052e8b0
call fcn.0040339c
mov eax, 2
call fcn.004033c4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
add eax, 3
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 0x80000007
jns 0x52e7b2
dec eax
or eax, 0xfffffff8
inc eax
mov dword [ebx + 0xa0], eax
jmp 0x52e7ca
mov byte [ebp - 9], 1
jmp 0x52e7ca
cmp byte [ebx + 0xd], 0
je 0x52e4dc
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc