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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x84], ebx
mov byte [ebp - 0x19], cl
mov dword [ebp - 8], edx
mov dword [ebp - 0x20], eax
lea edi, [ebp - 8]
xor eax, eax
push ebp
push 0x52d6b3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 0x19], 5
jne 0x52cc93
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xc], eax
push ebp
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.0052b6bc
pop ecx
jmp 0x52d677
mov eax, dword [0x66f364]
mov byte [eax + 7], 1
mov eax, dword [edi]
mov byte [eax + 0x469], 1
call fcn.00658fe8
mov dword [ebp - 0x8c], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x258]
mov eax, dword [edi]
call fcn.00563a8c
mov byte [ebp - 0x85], al
mov eax, dword [edi]
push edi
lea esi, [eax + 0x258]
lea edi, [ebp - 0x104]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
call fcn.00547bf4
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov al, byte [ebp - 0x19]
sub al, 1
jb 0x52cd0c
je 0x52cd78
dec al
je 0x52ce73
dec eax
sub al, 2
jb 0x52ce8e
jmp 0x52cf37
mov eax, dword [edi]
call fcn.005c208c
test al, al
je 0x52cd2b
mov eax, dword [edi]
mov edx, dword [eax + 0x300]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x52cf37
mov eax, dword [edi]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
push edi
lea esi, [eax + 0x258]
mov edi, edx
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
lea edx, [ebp - 0x144]
mov eax, dword [edi]
call fcn.005c5ba8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push edi
lea esi, [ebp - 0x134]
lea edi, [eax + 0x10]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
mov edx, dword [ebp - 4]
mov eax, dword [edi]
call fcn.005c26f8
jmp 0x52cf37
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [edi]
mov ecx, dword [edx + 0x7e0]
mov dword [eax], ecx
mov ecx, dword [edx + 0x7e4]
mov dword [eax + 4], ecx
mov edx, dword [edi]
mov ecx, dword [edx + 0x7e0]
mov dword [eax + 0x10], ecx
mov ecx, dword [edx + 0x7e4]
mov dword [eax + 0x14], ecx
xor ebx, ebx
jmp 0x52ce06
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
mov edx, dword [esi + 0x10]
mov eax, dword [edi]
call fcn.005bd358
cmp eax, dword [esi + 0x14]
jne 0x52cdd4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
inc dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
mov dword [eax + 0x14], edx
jmp 0x52ce06
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x10]
mov eax, dword [edi]
call fcn.005bd358
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
sub edx, dword [eax + 0x14]
mov eax, 0x20
sub eax, ebx
call fcn.00653538
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
add dword [edx + 0x14], eax
add ebx, eax
cmp ebx, 0x20
jge 0x52ce42
lea edx, [ebp - 0x144]
mov eax, dword [edi]
call fcn.005c5ba8
mov eax, dword [ebp - 0x134]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
cmp eax, dword [edx + 0x10]
jg 0x52cda9
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
mov edx, dword [esi + 0x10]
mov eax, dword [edi]
call fcn.005bd358
cmp eax, dword [esi + 0x14]
jg 0x52cda9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x10]
mov edx, dword [edi]
mov dword [edx + 0x7e0], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14]
mov edx, dword [edi]
mov dword [edx + 0x7e4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edi]
call fcn.005c26f8
jmp 0x52cf37
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
push edi
mov esi, eax
mov edi, edx
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
jmp 0x52cf37
mov eax, dword [edi]
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 4]
push edi
lea esi, [eax + 0x258]
mov edi, ebx
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
mov edx, dword [ebx]
mov eax, dword [edi]
call fcn.005bd358
dec eax
cmp eax, dword [ebx + 4]
jle 0x52cebf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
inc dword [eax + 4]
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
inc dword [ebx + 4]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x38]
push eax
mov ecx, ebx
mov edx, dword [edi]
mov eax, dword [ebp - 0x20]
call fcn.0052b24c
cmp dword [ebp - 0x28], 0
jle 0x52cef6
mov eax, dword [ebx + 4]
dec eax
mov edx, dword [ebp - 0x34]
call fcn.00653538
mov dword [ebx + 4], eax
jmp 0x52cef9
dec dword [ebx + 4]
lea edx, [ebp - 0x144]
mov eax, dword [edi]
call fcn.005c5ba8
push edi
lea esi, [ebp - 0x134]
lea edi, [ebx + 0x10]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
mov edx, dword [ebp - 4]
mov eax, dword [edi]
call fcn.005c26f8
mov eax, dword [edi]
lea edx, [eax + 0x258]
mov cl, byte [0x52d6c4]
mov eax, dword [edi]
call fcn.005c0150
mov al, byte [ebp - 0x19]
add al, 0xfd
sub al, 2
jb 0x52cf59
cmp byte [ebp - 0x19], 1
jne 0x52cf52
mov eax, dword [ebp - 4]
call fcn.00547d5c
test al, al
jne 0x52cf59
push ebp
call fcn.0052b524
pop ecx
cmp byte [ebp - 0x19], 1
jne 0x52cf90
mov eax, dword [edi]
mov eax, dword [eax + 0x7e0]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
cmp eax, dword [edx + 0x10]
jne 0x52cf90
mov eax, dword [edi]
mov edx, dword [eax + 0x7e4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14]
call fcn.00653540
mov edx, dword [edi]
mov dword [edx + 0x7e4], eax
cmp byte [ebp - 0x19], 2
jne 0x52cfb9
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0xc], 0
je 0x52cfb9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
call fcn.00653540
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], eax
mov eax, dword [edi]
call fcn.005c208c
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x68]
call fcn.00403274
xor eax, eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x41], 0
mov byte [ebp - 0x49], 0
mov eax, dword [0x672fd0]
call fcn.0064e930
cmp byte [ebp - 0x19], 0
jne 0x52cfff
mov dl, 0x4e
mov eax, dword [edi]
call fcn.00564f50
push ebp
call fcn.0052cb00
pop ecx
cmp byte [ebp - 0x19], 0
jne 0x52d010
test bl, bl
je 0x52d01f
mov al, byte [ebp - 0x19]
add al, 0xfd
sub al, 2
jae 0x52d04d
cmp byte [ebp - 0x41], 0
jne 0x52d04d
lea edx, [ebp - 0x144]
mov eax, dword [edi]
call fcn.005c5ba8
lea ecx, [ebp - 0x144]
mov edx, dword [ebp - 4]
mov eax, dword [edi]
call fcn.005c3ee0
mov edx, dword [ebp - 4]
mov eax, dword [edi]
call fcn.005c26f8
push ebp
call fcn.0052cb00
pop ecx
cmp byte [ebp - 0x19], 0
jne 0x52d314
mov al, byte [ebp - 0x49]
xor al, 1
test al, bl
je 0x52d0e6
lea edx, [ebp - 0x144]
mov eax, dword [edi]
call fcn.005c5ba8
lea ecx, [ebp - 0x144]
mov edx, dword [ebp - 4]
mov eax, dword [edi]
call fcn.005c3ee0
mov edx, dword [ebp - 4]
mov eax, dword [edi]
call fcn.005c26f8
mov eax, dword [ebp - 4]
call fcn.00547d5c
test al, al
jne 0x52d0e6
mov eax, dword [0x670050]
test byte [eax], 0x10
jne 0x52d0e6
cmp byte [ebp - 0x85], 3
jne 0x52d0c0
mov eax, dword [0x66fb88]
mov eax, dword [eax]
mov cl, 0x17
mov dl, 3
call fcn.006200d0
cmp ax, 6
je 0x52d0df
cmp byte [ebp - 0x85], 3
je 0x52d0e6
mov eax, dword [0x66f6e0]
mov eax, dword [eax]
mov cl, 0xa
mov dl, 3
call fcn.006200d0
cmp ax, 6
jne 0x52d0e6
push ebp
call fcn.0052cb00
pop ecx
cmp byte [ebp - 0x49], 0
jne 0x52d2b5
mov eax, dword [0x670050]
test byte [eax], 0x10
jne 0x52d2b5
mov eax, dword [edi]
cmp dword [eax + 0x138], 0
jle 0x52d2b5
cmp byte [ebp - 0x85], 3
jne 0x52d12c
mov eax, dword [0x66edb4]
mov eax, dword [eax]
mov cl, 0x19
mov dl, 3
call fcn.006200d0
cmp ax, 6
je 0x52d153
cmp byte [ebp - 0x85], 3
je 0x52d2b5
mov eax, dword [0x670274]
mov eax, dword [eax]
mov cl, 0x18
mov dl, 3
call fcn.006200d0
cmp ax, 6
jne 0x52d2b5
cmp byte [ebp - 0x85], 3
jne 0x52d182
mov eax, dword [edi]
mov ebx, dword [eax + 0x81c]
mov eax, dword [edi]
mov eax, dword [eax + 0x13c]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov edx, dword [eax + 0x94]
xor ecx, ecx
mov eax, dword [edi]
call fcn.005643ac
jmp 0x52d1a1
push 0
mov al, byte [0x52d6c8]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [edi]
call fcn.005c0320
mov eax, 0x1c20
call fcn.004e30ec
xor ebx, ebx
mov eax, dword [edi]
cmp ebx, dword [eax + 0x81c]
je 0x52d1e3
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00547cf4
lea edx, [ebp - 0x144]
mov eax, dword [edi]
call fcn.005c5b70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push edi
lea esi, [ebp - 0x144]
mov edi, eax
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
push ebp
call fcn.0052cb00
pop ecx
cmp byte [ebp - 0x49], 0
jne 0x52d205
mov eax, dword [edi]
mov esi, dword [eax + 0x81c]
mov eax, 0x1ce9
call fcn.004e30ec
mov eax, dword [edi]
cmp esi, dword [eax + 0x81c]
jne 0x52d1a1
cmp byte [ebp - 0x49], 0
jne 0x52d28f
mov eax, dword [edi]
mov eax, dword [eax + 0x13c]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov edx, dword [eax + 0x98]
xor ecx, ecx
mov eax, dword [edi]
call fcn.005643ac
mov eax, dword [edi]
cmp ebx, dword [eax + 0x81c]
je 0x52d26d
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00547cf4
lea edx, [ebp - 0x144]
mov eax, dword [edi]
call fcn.005c5b70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push edi
lea esi, [ebp - 0x144]
mov edi, eax
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
push ebp
call fcn.0052cb00
pop ecx
cmp byte [ebp - 0x49], 0
jne 0x52d28f
mov eax, dword [edi]
mov esi, dword [eax + 0x81c]
mov eax, 0x1ce9
call fcn.004e30ec
mov eax, dword [edi]
cmp esi, dword [eax + 0x81c]
jne 0x52d22b
cmp byte [ebp - 0x85], 3
je 0x52d2b5
mov eax, dword [edi]
mov edx, dword [eax + 0x258]
mov eax, dword [edi]
call fcn.00563a8c
cmp al, 3
jne 0x52d2b5
mov eax, 0x1c20
call fcn.004e30ec
call fcn.00506a54
mov dl, byte [ebp - 0x49]
xor dl, 1
call fcn.00503f2c
mov eax, dword [edi]
call fcn.00565004
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov ebx, dword [eax + 0x18]
dec ebx
cmp ebx, 0
jl 0x52d306
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + ebx*4]
mov esi, dword [eax + 0x38]
mov eax, dword [esi + 0x824]
mov edx, dword [eax]
call dword [edx + 0x34]
mov eax, dword [esi + 0x828]
mov edx, dword [eax]
call dword [edx + 0x34]
dec ebx
cmp ebx, 0xffffffff
jne 0x52d2db
xor edx, edx
mov eax, dword [edi]
call fcn.005bfa4c
call fcn.00506ba4
mov al, byte [ebp - 0x19]
dec eax
sub al, 2
jae 0x52d3cb
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
cmp byte [ebp - 0x19], 1
jne 0x52d375
mov eax, dword [edi]
cmp byte [eax + 0x7dd], 0
jne 0x52d341
cmp dword [ebp - 0x10], 0
jg 0x52d341
xor eax, eax
jmp 0x52d343
mov al, 1
mov edx, dword [edi]
mov byte [edx + 0x7dd], al
mov eax, dword [edi]
cmp byte [eax + 0x7de], 0
jne 0x52d36b
mov eax, dword [0x672fd0]
cmp dword [eax + 0x18], 0
jg 0x52d36b
cmp dword [ebp - 0x40], 0
jg 0x52d36b
xor eax, eax
jmp 0x52d36d
mov al, 1
mov edx, dword [edi]
mov byte [edx + 0x7de], al
mov ebx, dword [esi]
mov eax, dword [esi + 0x10]
sub eax, ebx
jl 0x52d3cb
inc eax
mov dword [ebp - 0x98], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xb0]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + ebx*4]
cmp ebx, dword [esi]
jne 0x52d39c
mov edx, dword [esi + 4]
jmp 0x52d39e
xor edx, edx
cmp ebx, dword [esi + 0x10]
jne 0x52d3ae
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x90], ecx
jmp 0x52d3b7
mov ecx, dword [eax + 8]
mov dword [ebp - 0x90], ecx
mov ecx, dword [ebp - 0x90]
call fcn.00553020
inc ebx
dec dword [ebp - 0x98]
jne 0x52d385
cmp byte [ebp - 0x19], 0
jne 0x52d5ce
cmp byte [ebp - 0x49], 0
jne 0x52d5ce
mov eax, dword [0x670050]
test byte [eax], 0x10
jne 0x52d5ce
cmp dword [ebp - 0x3c], 0
jle 0x52d4cb
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x40]
jne 0x52d4cb
mov eax, dword [0x670238]
mov eax, dword [eax]
call fcn.0061feb4
lea eax, [ebp - 0xf4]
call fcn.00544200
mov eax, dword [0x67036c]
mov eax, dword [eax]
mov dword [ebp - 0x9c], eax
push 0x3e80
mov ecx, dword [0x66ef84]
mov ecx, dword [ecx]
lea eax, [ebp - 0x9c]
mov dl, byte [0x52d6cc]
call fcn.0049a9b4
test al, al
je 0x52d5ce
mov eax, dword [edi]
call fcn.005c208c
test al, al
je 0x52d469
mov eax, dword [edi]
mov edx, dword [eax + 0x300]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x52d49a
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00547cf4
lea edx, [ebp - 0x144]
mov eax, dword [edi]
call fcn.005c5ba8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push edi
lea esi, [ebp - 0x144]
mov edi, eax
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
push ebp
call fcn.0052b524
pop ecx
push 0
lea eax, [ebp - 0xf4]
push eax
mov ecx, dword [ebp - 4]
mov dl, 2
mov eax, dword [edi]
call fcn.005cc650
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [edi]
mov eax, dword [ebp - 0x20]
call fcn.0052cc2c
jmp 0x52d5ce
cmp byte [ebp - 0x49], 0
je 0x52d507
mov eax, dword [edi]
call fcn.005c208c
test al, al
je 0x52d507
mov eax, dword [edi]
mov edx, dword [eax + 0x300]
mov eax, dword [ebp - 4]
call fcn.00547ed4
test al, al
jne 0x52d507
mov eax, dword [edi]
lea edx, [eax + 0x258]
mov cl, byte [0x52d6c4]
mov eax, dword [edi]
call fcn.005c0150
jmp 0x52d54f
cmp byte [ebp - 0x49], 0
jne 0x52d54f
lea edx, [ebp - 0x144]
mov eax, dword [edi]
call fcn.005c5ba8
lea edx, [ebp - 0x144]
lea eax, [ebp - 0x104]
call fcn.00543d30
test al, al
je 0x52d54f
mov eax, dword [ebp - 0xf8]
push eax
mov al, byte [0x52d6c4]
push eax
mov ecx, dword [ebp - 0x100]
mov edx, dword [ebp - 0x104]
mov eax, dword [edi]
call fcn.005c0320
mov dl, 1
mov eax, dword [edi]
call fcn.005bfa4c
cmp dword [ebp - 0x40], 0
jle 0x52d573
lea eax, [ebp - 0x84]
mov edx, dword [0x66eb74]
mov edx, dword [edx]
call fcn.00403438
jmp 0x52d57e
lea eax, [ebp - 0x84]
call fcn.00403274
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov eax, dword [0x66ffd8]
mov eax, dword [eax]
mov ecx, 1
call fcn.00655a28
mov eax, dword [ebp - 0x148]
mov cl, 0x27
mov dl, 2
call fcn.006200d0
lea edx, [ebp - 0x124]
mov eax, dword [edi]
call fcn.005c5ba8
mov eax, dword [edi]
lea ebx, [eax + 0x7dc]
cmp byte [ebp - 0x19], 1
jne 0x52d625
call fcn.00658fe8
sub eax, dword [ebp - 0x8c]
cmp eax, 0xa
jge 0x52d625
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 0x114]
jg 0x52d625
mov esi, dword [ebx + 4]
cmp esi, dword [ebp - 0x114]
jne 0x52cce9
mov edx, esi
mov eax, dword [edi]
call fcn.005bd358
cmp eax, dword [ebx + 8]
jne 0x52cce9
mov eax, dword [edi]
cmp byte [eax + 0x458], 0
je 0x52d65d
cmp dword [ebp - 0x10], 0
jne 0x52d65d
cmp dword [ebp - 0xc], 0
je 0x52d65d
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x38]
call fcn.00543ce4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
call fcn.0052fb1c
mov eax, dword [ebp - 4]
call fcn.00548150
mov eax, dword [edi]
mov byte [eax + 0x469], 0
mov eax, dword [0x66f364]
mov byte [eax + 7], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52d6ba
lea eax, [ebp - 0x148]
call fcn.00403274
lea eax, [ebp - 0x84]
call fcn.00403274
lea eax, [ebp - 0x68]
call fcn.00403274
lea eax, [ebp - 0x48]
call fcn.00403274
lea eax, [ebp - 0x14]
call fcn.00403274
ret