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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x80], 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 0x526f76
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 0x19], 5
jne 0x526564
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.00524f70
pop ecx
jmp 0x526f3d
mov eax, dword [0x669510]
mov byte [eax + 7], 1
mov eax, dword [edi]
mov byte [eax + 0x469], 1
call fcn.0065867c
mov dword [ebp - 0x88], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x258]
mov eax, dword [edi]
call fcn.0055e038
mov byte [ebp - 0x81], al
mov eax, dword [edi]
push edi
lea esi, [eax + 0x258]
lea edi, [ebp - 0x100]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
call fcn.00542158
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov al, byte [ebp - 0x19]
sub al, 1
jb 0x5265dd
je 0x526649
dec al
je 0x526744
dec eax
sub al, 2
jb 0x52675f
jmp 0x526808
mov eax, dword [edi]
call fcn.005bd35c
test al, al
je 0x5265fc
mov eax, dword [edi]
mov edx, dword [eax + 0x300]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x526808
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 - 0x140]
mov eax, dword [edi]
call fcn.005c0e78
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push edi
lea esi, [ebp - 0x130]
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.005bd9c8
jmp 0x526808
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 0x5266d7
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
mov edx, dword [esi + 0x10]
mov eax, dword [edi]
call fcn.005b85b8
cmp eax, dword [esi + 0x14]
jne 0x5266a5
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 0x5266d7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x10]
mov eax, dword [edi]
call fcn.005b85b8
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.00652c54
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
add dword [edx + 0x14], eax
add ebx, eax
cmp ebx, 0x20
jge 0x526713
lea edx, [ebp - 0x140]
mov eax, dword [edi]
call fcn.005c0e78
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
cmp eax, dword [edx + 0x10]
jg 0x52667a
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
mov edx, dword [esi + 0x10]
mov eax, dword [edi]
call fcn.005b85b8
cmp eax, dword [esi + 0x14]
jg 0x52667a
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.005bd9c8
jmp 0x526808
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 0x526808
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.005b85b8
dec eax
cmp eax, dword [ebx + 4]
jle 0x526790
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 - 0x90]
push eax
lea eax, [ebp - 0x38]
push eax
mov ecx, ebx
mov edx, dword [edi]
mov eax, dword [ebp - 0x20]
call fcn.00524b00
cmp dword [ebp - 0x28], 0
jle 0x5267c7
mov eax, dword [ebx + 4]
dec eax
mov edx, dword [ebp - 0x34]
call fcn.00652c54
mov dword [ebx + 4], eax
jmp 0x5267ca
dec dword [ebx + 4]
lea edx, [ebp - 0x140]
mov eax, dword [edi]
call fcn.005c0e78
push edi
lea esi, [ebp - 0x130]
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.005bd9c8
mov eax, dword [edi]
lea edx, [eax + 0x258]
mov cl, byte [0x526f88]
mov eax, dword [edi]
call fcn.005bb3b8
mov al, byte [ebp - 0x19]
add al, 0xfd
sub al, 2
jb 0x52682a
cmp byte [ebp - 0x19], 1
jne 0x526823
mov eax, dword [ebp - 4]
call fcn.005422c0
test al, al
jne 0x52682a
push ebp
call fcn.00524dd8
pop ecx
cmp byte [ebp - 0x19], 1
jne 0x526861
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 0x526861
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.00652c5c
mov edx, dword [edi]
mov dword [edx + 0x7e4], eax
cmp byte [ebp - 0x19], 2
jne 0x52688a
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0xc], 0
je 0x52688a
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.00652c5c
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], eax
mov eax, dword [edi]
call fcn.005bd35c
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x64]
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 - 0x42], 0
mov eax, dword [0x66bfb4]
call fcn.0064e144
cmp byte [ebp - 0x19], 0
jne 0x5268d0
mov dl, 0x4e
mov eax, dword [edi]
call fcn.0055f6b0
push ebp
call fcn.005263bc
pop ecx
cmp byte [ebp - 0x19], 0
jne 0x5268e1
test bl, bl
je 0x5268f0
mov al, byte [ebp - 0x19]
add al, 0xfd
sub al, 2
jae 0x52691e
cmp byte [ebp - 0x41], 0
jne 0x52691e
lea edx, [ebp - 0x140]
mov eax, dword [edi]
call fcn.005c0e78
lea ecx, [ebp - 0x140]
mov edx, dword [ebp - 4]
mov eax, dword [edi]
call fcn.005bf1b0
mov edx, dword [ebp - 4]
mov eax, dword [edi]
call fcn.005bd9c8
push ebp
call fcn.005263bc
pop ecx
cmp byte [ebp - 0x19], 0
jne 0x526bd9
mov al, byte [ebp - 0x42]
xor al, 1
test al, bl
je 0x5269af
lea edx, [ebp - 0x140]
mov eax, dword [edi]
call fcn.005c0e78
lea ecx, [ebp - 0x140]
mov edx, dword [ebp - 4]
mov eax, dword [edi]
call fcn.005bf1b0
mov edx, dword [ebp - 4]
mov eax, dword [edi]
call fcn.005bd9c8
mov eax, dword [ebp - 4]
call fcn.005422c0
test al, al
jne 0x5269af
mov eax, dword [0x669a50]
test byte [eax], 0x10
jne 0x5269af
cmp byte [ebp - 0x81], 3
jne 0x52698b
mov eax, 0x526f8c
mov cl, 0x17
mov dl, 3
call fcn.0061faa0
cmp ax, 6
je 0x5269a8
cmp byte [ebp - 0x81], 3
je 0x5269af
mov eax, 0x527004
mov cl, 0xa
mov dl, 3
call fcn.0061faa0
cmp ax, 6
jne 0x5269af
push ebp
call fcn.005263bc
pop ecx
cmp byte [ebp - 0x42], 0
jne 0x526b7a
mov eax, dword [0x669a50]
test byte [eax], 0x10
jne 0x526b7a
mov eax, dword [edi]
cmp dword [eax + 0x138], 0
jle 0x526b7a
cmp byte [ebp - 0x81], 3
jne 0x5269f3
mov eax, 0x527078
mov cl, 0x19
mov dl, 3
call fcn.0061faa0
cmp ax, 6
je 0x526a18
cmp byte [ebp - 0x81], 3
je 0x526b7a
mov eax, 0x527100
mov cl, 0x18
mov dl, 3
call fcn.0061faa0
cmp ax, 6
jne 0x526b7a
cmp byte [ebp - 0x81], 3
jne 0x526a47
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.0055e958
jmp 0x526a66
push 0
mov al, byte [0x527174]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [edi]
call fcn.005bb588
mov eax, 0x1c20
call fcn.004d8134
xor ebx, ebx
mov eax, dword [edi]
cmp ebx, dword [eax + 0x81c]
je 0x526aa8
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00542258
lea edx, [ebp - 0x140]
mov eax, dword [edi]
call fcn.005c0e40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push edi
lea esi, [ebp - 0x140]
mov edi, eax
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
push ebp
call fcn.005263bc
pop ecx
cmp byte [ebp - 0x42], 0
jne 0x526aca
mov eax, dword [edi]
mov esi, dword [eax + 0x81c]
mov eax, 0x1ce9
call fcn.004d8134
mov eax, dword [edi]
cmp esi, dword [eax + 0x81c]
jne 0x526a66
cmp byte [ebp - 0x42], 0
jne 0x526b54
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.0055e958
mov eax, dword [edi]
cmp ebx, dword [eax + 0x81c]
je 0x526b32
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00542258
lea edx, [ebp - 0x140]
mov eax, dword [edi]
call fcn.005c0e40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push edi
lea esi, [ebp - 0x140]
mov edi, eax
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
push ebp
call fcn.005263bc
pop ecx
cmp byte [ebp - 0x42], 0
jne 0x526b54
mov eax, dword [edi]
mov esi, dword [eax + 0x81c]
mov eax, 0x1ce9
call fcn.004d8134
mov eax, dword [edi]
cmp esi, dword [eax + 0x81c]
jne 0x526af0
cmp byte [ebp - 0x81], 3
je 0x526b7a
mov eax, dword [edi]
mov edx, dword [eax + 0x258]
mov eax, dword [edi]
call fcn.0055e038
cmp al, 3
jne 0x526b7a
mov eax, 0x1c20
call fcn.004d8134
call fcn.004fe288
mov dl, byte [ebp - 0x42]
xor dl, 1
call fcn.004fb5a4
mov eax, dword [edi]
call fcn.0055f764
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov ebx, dword [eax + 0x18]
dec ebx
cmp ebx, 0
jl 0x526bcb
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 0x526ba0
xor edx, edx
mov eax, dword [edi]
call fcn.005bacb4
call fcn.004fe3fc
mov al, byte [ebp - 0x19]
dec eax
sub al, 2
jae 0x526c90
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
cmp byte [ebp - 0x19], 1
jne 0x526c3a
mov eax, dword [edi]
cmp byte [eax + 0x7dd], 0
jne 0x526c06
cmp dword [ebp - 0x10], 0
jg 0x526c06
xor eax, eax
jmp 0x526c08
mov al, 1
mov edx, dword [edi]
mov byte [edx + 0x7dd], al
mov eax, dword [edi]
cmp byte [eax + 0x7de], 0
jne 0x526c30
mov eax, dword [0x66bfb4]
cmp dword [eax + 0x18], 0
jg 0x526c30
cmp dword [ebp - 0x40], 0
jg 0x526c30
xor eax, eax
jmp 0x526c32
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 0x526c90
inc eax
mov dword [ebp - 0x94], 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 0x526c61
mov edx, dword [esi + 4]
jmp 0x526c63
xor edx, edx
cmp ebx, dword [esi + 0x10]
jne 0x526c73
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x8c], ecx
jmp 0x526c7c
mov ecx, dword [eax + 8]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp - 0x8c]
call fcn.0054d584
inc ebx
dec dword [ebp - 0x94]
jne 0x526c4a
cmp byte [ebp - 0x19], 0
jne 0x526e80
cmp byte [ebp - 0x42], 0
jne 0x526e80
mov eax, dword [0x669a50]
test byte [eax], 0x10
jne 0x526e80
cmp dword [ebp - 0x3c], 0
jle 0x526d8b
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x40]
jne 0x526d8b
mov eax, 0x527178
call fcn.0061f884
lea eax, [ebp - 0xf0]
call fcn.0053e6c8
mov eax, dword [0x669b94]
mov eax, dword [eax]
mov dword [ebp - 0x98], eax
push 0x3e80
lea eax, [ebp - 0x98]
mov ecx, 0x527208
mov dl, byte [0x527214]
call fcn.00488cc8
test al, al
je 0x526e80
mov eax, dword [edi]
call fcn.005bd35c
test al, al
je 0x526d29
mov eax, dword [edi]
mov edx, dword [eax + 0x300]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x526d5a
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00542258
lea edx, [ebp - 0x140]
mov eax, dword [edi]
call fcn.005c0e78
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push edi
lea esi, [ebp - 0x140]
mov edi, eax
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
push ebp
call fcn.00524dd8
pop ecx
push 0
lea eax, [ebp - 0xf0]
push eax
mov ecx, dword [ebp - 4]
mov dl, 2
mov eax, dword [edi]
call fcn.005c7af4
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [edi]
mov eax, dword [ebp - 0x20]
call fcn.00526500
jmp 0x526e80
cmp byte [ebp - 0x42], 0
je 0x526dc7
mov eax, dword [edi]
call fcn.005bd35c
test al, al
je 0x526dc7
mov eax, dword [edi]
mov edx, dword [eax + 0x300]
mov eax, dword [ebp - 4]
call fcn.00542438
test al, al
jne 0x526dc7
mov eax, dword [edi]
lea edx, [eax + 0x258]
mov cl, byte [0x526f88]
mov eax, dword [edi]
call fcn.005bb3b8
jmp 0x526e0f
cmp byte [ebp - 0x42], 0
jne 0x526e0f
lea edx, [ebp - 0x140]
mov eax, dword [edi]
call fcn.005c0e78
lea edx, [ebp - 0x140]
lea eax, [ebp - 0x100]
call fcn.0053e1f8
test al, al
je 0x526e0f
mov eax, dword [ebp - 0xf4]
push eax
mov al, byte [0x526f88]
push eax
mov ecx, dword [ebp - 0xfc]
mov edx, dword [ebp - 0x100]
mov eax, dword [edi]
call fcn.005bb588
mov dl, 1
mov eax, dword [edi]
call fcn.005bacb4
cmp dword [ebp - 0x40], 0
jle 0x526e2d
lea eax, [ebp - 0x80]
mov edx, 0x527220
call fcn.0040330c
jmp 0x526e35
lea eax, [ebp - 0x80]
call fcn.00403274
lea eax, [ebp - 0x144]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x154], eax
mov byte [ebp - 0x150], 0
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x14c], eax
mov byte [ebp - 0x148], 0xb
lea edx, [ebp - 0x154]
mov eax, 0x527338
mov ecx, 1
call fcn.006550e0
mov eax, dword [ebp - 0x144]
mov cl, 0x27
mov dl, 2
call fcn.0061faa0
lea edx, [ebp - 0x120]
mov eax, dword [edi]
call fcn.005c0e78
mov eax, dword [edi]
lea ebx, [eax + 0x7dc]
cmp byte [ebp - 0x19], 1
jne 0x526ed7
call fcn.0065867c
sub eax, dword [ebp - 0x88]
cmp eax, 0xa
jge 0x526ed7
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 0x110]
jg 0x526ed7
mov esi, dword [ebx + 4]
cmp esi, dword [ebp - 0x110]
jne 0x5265ba
mov edx, esi
mov eax, dword [edi]
call fcn.005b85b8
cmp eax, dword [ebx + 8]
jne 0x5265ba
mov eax, dword [edi]
cmp byte [eax + 0x458], 0
je 0x526f0f
cmp dword [ebp - 0x10], 0
jne 0x526f0f
cmp dword [ebp - 0xc], 0
je 0x526f0f
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x38]
call fcn.0053e1ac
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.005297c0
mov eax, dword [ebp - 4]
call fcn.005426b4
mov eax, dword [edi]
mov byte [eax + 0x469], 0
mov eax, dword [0x669510]
mov byte [eax + 7], 0
mov eax, dword [0x669070]
cmp dword [eax], 0
je 0x526f3d
call fcn.004fe288
call fcn.004fe208
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x526f7d
lea eax, [ebp - 0x144]
call fcn.00403274
lea eax, [ebp - 0x80]
call fcn.00403274
lea eax, [ebp - 0x64]
call fcn.00403274
lea eax, [ebp - 0x48]
call fcn.00403274
lea eax, [ebp - 0x14]
call fcn.00403274
ret