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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x20]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ebx, eax
lea eax, [ebp - 0x20]
mov edx, dword [0x4cf634]
call fcn.004060d4
xor eax, eax
push ebp
push 0x52e917
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 8]
mov dword [ebx + 0x250], eax
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x254], eax
cmp dword [ebp - 0x20], 0x1b
jne 0x52e54f
mov byte [ebx + 0x2c], 0
mov byte [ebx + 0x2d], 0
cmp byte [ebx + 0x2c], 0
jne 0x52e8b4
mov eax, dword [ebp - 0x20]
cmp eax, 0x14
jg 0x52e576
je 0x52e582
add eax, 0xfffffffa
sub eax, 2
jb 0x52e582
dec eax
sub eax, 3
jb 0x52e582
dec eax
je 0x52e582
jmp 0x52e5a2
sub eax, 0x1b
je 0x52e582
sub eax, 0x1377
jne 0x52e5a2
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x28], eax
test al, 2
je 0x52e59b
mov byte [ebx + 0x168], 1
jmp 0x52e5a2
mov byte [ebx + 0x168], 0
mov eax, dword [ebp - 0x20]
cmp eax, 0x17
mov edx, dword [0x55359c]
cmp ebx, dword [edx]
jne 0x52e7ef
cmp eax, 0xbc3
jne 0x52e5d7
mov eax, dword [0x5530d0]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
call fcn.005254bc
test al, al
je 0x52e8fb
cmp dword [ebp - 0x20], 0xbc5
jne 0x52e610
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [0x55359c]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x55359c]
mov eax, dword [eax]
mov edx, dword [eax + 8]
mov eax, dword [0x5530d0]
mov eax, dword [eax]
call fcn.00525348
test al, al
je 0x52e8fb
cmp dword [ebp - 0x20], 0xbdb
jne 0x52e649
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [0x55359c]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x55359c]
mov eax, dword [eax]
mov edx, dword [eax + 8]
mov eax, dword [0x5530d0]
mov eax, dword [eax]
call fcn.00525348
test al, al
je 0x52e8fb
mov eax, dword [ebp - 0x20]
add eax, 0xfffff443
cmp eax, 0x21
ja case.0x52e661.3006
movzx eax, byte [eax + 0x52e668]
jmp dword [eax*4 + 0x52e68a]
lea eax, [ebx + 0x260]
lea edx, [ebp - 0x20]
mov ecx, dword [0x4cf634]
call fcn.004061f4
sub dword [ebp - 0x20], 0xbb8
jmp case.0x52e661.3006
lea eax, [ebx + 0x260]
lea edx, [ebp - 0x20]
mov ecx, dword [0x4cf634]
call fcn.004061f4
mov dword [ebp - 0x20], 0x1392
jmp case.0x52e661.3006
cmp dword [ebx + 0x20], 0
je 0x52e718
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [ebx + 0xf4], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0xf8], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebx + 0xfc], eax
lea eax, [ebx + 0x260]
lea edx, [ebp - 0x20]
mov ecx, dword [0x4cf634]
call fcn.004061f4
mov dword [ebp - 0x20], 5
jmp case.0x52e661.3006
lea eax, [ebx + 0x260]
lea edx, [ebp - 0x20]
mov ecx, dword [0x4cf634]
call fcn.004061f4
mov dword [ebp - 0x20], 8
jmp case.0x52e661.3006
lea eax, [ebx + 0x260]
lea edx, [ebp - 0x20]
mov ecx, dword [0x4cf634]
call fcn.004061f4
mov dword [ebp - 0x20], 0x19
jmp case.0x52e661.3006
lea eax, [ebx + 0x260]
lea edx, [ebp - 0x20]
mov ecx, dword [0x4cf634]
call fcn.004061f4
mov dword [ebp - 0x20], 0x1a
jmp case.0x52e661.3006
lea eax, [ebx + 0x260]
lea edx, [ebp - 0x20]
mov ecx, dword [0x4cf634]
call fcn.004061f4
mov dword [ebp - 0x20], 4
jmp case.0x52e661.3006
lea eax, [ebx + 0x260]
lea edx, [ebp - 0x20]
mov ecx, dword [0x4cf634]
call fcn.004061f4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebx + 0x26c], eax
sub dword [ebp - 0x20], 0xbb8
mov eax, dword [ebx + 8]
mov dword [ebx + 0x244], eax
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x248], eax
movzx eax, byte [ebx + 0x10]
mov dword [ebx + 0x24c], eax
mov eax, dword [ebp - 0x20]
sub eax, 0x11
je 0x52e846
sub eax, 0xe
jne 0x52e88b
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x1a8], eax
movzx eax, word [ebx + 0x3c]
lea eax, [eax + eax*4]
mov edx, 0xc8
sub edx, eax
mov dword [ebp - 0x24], edx
fild dword [ebp - 0x24]
call fcn.004035cc
cmp eax, 0x50
jle 0x52e82f
mov dword [ebx + 0x224], eax
jmp 0x52e839
mov dword [ebx + 0x224], 0x50
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x19c], eax
jmp 0x52e89e
movzx eax, byte [ebp - 0x14]
mov byte [ebx + 0x10], al
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x52e89e
mov esi, eax
lea edi, [ebx + 0x140]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x140], 0xffffffff
mov edx, dword [ebp - 0x1c]
mov dword [ebx + 0x154], edx
mov edx, dword [ebp - 0x18]
mov dword [ebx + 0x158], edx
mov edx, 0x24
call fcn.00402f34
jmp 0x52e89e
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0xc], eax
movzx eax, byte [ebp - 0x14]
mov byte [ebx + 0x10], al
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x17c], eax
mov eax, ebx
mov si, 0xffff
call fcn.004045d4
jmp 0x52e8d1
mov eax, dword [ebp - 0x20]
cmp eax, 0x21
jne 0x52e8d1
mov dword [ebx + 0x17c], eax
mov eax, ebx
mov si, 0xffff
call fcn.004045d4
mov byte [ebx + 0x2d], 1
mov eax, dword [ebp - 0x20]
cmp eax, 0x20
je 0x52e8de
cmp eax, 0x22
jne 0x52e8f0
mov byte [ebx + 0x2c], 1
mov eax, dword [0x5530d0]
mov eax, dword [eax]
mov edx, ebx
call fcn.00525e4c
mov eax, ebx
mov si, 0xfff9
call fcn.004045d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52e91e
lea eax, [ebp - 0x20]
mov edx, dword [0x4cf634]
call fcn.00405f90
ret