Function at 0x52f954
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 0x5303db
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 0x19], 5
jne 0x52f9bb
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.0052e3e4
pop ecx
jmp 0x53039f
mov eax, dword [0x6723cc]
mov byte [eax + 7], 1
mov eax, dword [edi]
mov byte [eax + 0x469], 1
call fcn.0065c614
mov dword [ebp - 0x8c], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x258]
mov eax, dword [edi]
call fcn.00566a44
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.0054abac
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov al, byte [ebp - 0x19]
sub al, 1
jb 0x52fa34
je 0x52faa0
dec al
je 0x52fb9b
dec eax
sub al, 2
jb 0x52fbb6
jmp 0x52fc5f
mov eax, dword [edi]
call fcn.005c504c
test al, al
je 0x52fa53
mov eax, dword [edi]
mov edx, dword [eax + 0x300]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x52fc5f
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.005c8b68
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.005c56b8
jmp 0x52fc5f
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 0x52fb2e
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
mov edx, dword [esi + 0x10]
mov eax, dword [edi]
call fcn.005c0310
cmp eax, dword [esi + 0x14]
jne 0x52fafc
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 0x52fb2e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x10]
mov eax, dword [edi]
call fcn.005c0310
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.00656b70
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
add dword [edx + 0x14], eax
add ebx, eax
cmp ebx, 0x20
jge 0x52fb6a
lea edx, [ebp - 0x144]
mov eax, dword [edi]
call fcn.005c8b68
mov eax, dword [ebp - 0x134]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
cmp eax, dword [edx + 0x10]
jg 0x52fad1
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
mov edx, dword [esi + 0x10]
mov eax, dword [edi]
call fcn.005c0310
cmp eax, dword [esi + 0x14]
jg 0x52fad1
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.005c56b8
jmp 0x52fc5f
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 0x52fc5f
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.005c0310
dec eax
cmp eax, dword [ebx + 4]
jle 0x52fbe7
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.0052df74
cmp dword [ebp - 0x28], 0
jle 0x52fc1e
mov eax, dword [ebx + 4]
dec eax
mov edx, dword [ebp - 0x34]
call fcn.00656b70
mov dword [ebx + 4], eax
jmp 0x52fc21
dec dword [ebx + 4]
lea edx, [ebp - 0x144]
mov eax, dword [edi]
call fcn.005c8b68
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.005c56b8
mov eax, dword [edi]
lea edx, [eax + 0x258]
mov cl, byte [0x5303ec]
mov eax, dword [edi]
call fcn.005c3110
mov al, byte [ebp - 0x19]
add al, 0xfd
sub al, 2
jb 0x52fc81
cmp byte [ebp - 0x19], 1
jne 0x52fc7a
mov eax, dword [ebp - 4]
call fcn.0054ad14
test al, al
jne 0x52fc81
push ebp
call fcn.0052e24c
pop ecx
cmp byte [ebp - 0x19], 1
jne 0x52fcb8
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 0x52fcb8
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.00656b78
mov edx, dword [edi]
mov dword [edx + 0x7e4], eax
cmp byte [ebp - 0x19], 2
jne 0x52fce1
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0xc], 0
je 0x52fce1
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.00656b78
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], eax
mov eax, dword [edi]
call fcn.005c504c
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 [0x675fd0]
call fcn.00651f8c
cmp byte [ebp - 0x19], 0
jne 0x52fd27
mov dl, 0x4e
mov eax, dword [edi]
call fcn.00567f08
push ebp
call fcn.0052f828
pop ecx
cmp byte [ebp - 0x19], 0
jne 0x52fd38
test bl, bl
je 0x52fd47
mov al, byte [ebp - 0x19]
add al, 0xfd
sub al, 2
jae 0x52fd75
cmp byte [ebp - 0x41], 0
jne 0x52fd75
lea edx, [ebp - 0x144]
mov eax, dword [edi]
call fcn.005c8b68
lea ecx, [ebp - 0x144]
mov edx, dword [ebp - 4]
mov eax, dword [edi]
call fcn.005c6ea0
mov edx, dword [ebp - 4]
mov eax, dword [edi]
call fcn.005c56b8
push ebp
call fcn.0052f828
pop ecx
cmp byte [ebp - 0x19], 0
jne 0x53003c
mov al, byte [ebp - 0x49]
xor al, 1
test al, bl
je 0x52fe0e
lea edx, [ebp - 0x144]
mov eax, dword [edi]
call fcn.005c8b68
lea ecx, [ebp - 0x144]
mov edx, dword [ebp - 4]
mov eax, dword [edi]
call fcn.005c6ea0
mov edx, dword [ebp - 4]
mov eax, dword [edi]
call fcn.005c56b8
mov eax, dword [ebp - 4]
call fcn.0054ad14
test al, al
jne 0x52fe0e
mov eax, dword [0x6730b4]
test byte [eax], 0x10
jne 0x52fe0e
cmp byte [ebp - 0x85], 3
jne 0x52fde8
mov eax, dword [0x672bec]
mov eax, dword [eax]
mov cl, 0x17
mov dl, 3
call fcn.00623608
cmp ax, 6
je 0x52fe07
cmp byte [ebp - 0x85], 3
je 0x52fe0e
mov eax, dword [0x672748]
mov eax, dword [eax]
mov cl, 0xa
mov dl, 3
call fcn.00623608
cmp ax, 6
jne 0x52fe0e
push ebp
call fcn.0052f828
pop ecx
cmp byte [ebp - 0x49], 0
jne 0x52ffdd
mov eax, dword [0x6730b4]
test byte [eax], 0x10
jne 0x52ffdd
mov eax, dword [edi]
cmp dword [eax + 0x138], 0
jle 0x52ffdd
cmp byte [ebp - 0x85], 3
jne 0x52fe54
mov eax, dword [0x671e1c]
mov eax, dword [eax]
mov cl, 0x19
mov dl, 3
call fcn.00623608
cmp ax, 6
je 0x52fe7b
cmp byte [ebp - 0x85], 3
je 0x52ffdd
mov eax, dword [0x6732d4]
mov eax, dword [eax]
mov cl, 0x18
mov dl, 3
call fcn.00623608
cmp ax, 6
jne 0x52ffdd
cmp byte [ebp - 0x85], 3
jne 0x52feaa
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.00567364
jmp 0x52fec9
push 0
mov al, byte [0x5303f0]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [edi]
call fcn.005c32e0
mov eax, 0x1c20
call fcn.004e5968
xor ebx, ebx
mov eax, dword [edi]
cmp ebx, dword [eax + 0x81c]
je 0x52ff0b
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0054acac
lea edx, [ebp - 0x144]
mov eax, dword [edi]
call fcn.005c8b30
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.0052f828
pop ecx
cmp byte [ebp - 0x49], 0
jne 0x52ff2d
mov eax, dword [edi]
mov esi, dword [eax + 0x81c]
mov eax, 0x1ce9
call fcn.004e5968
mov eax, dword [edi]
cmp esi, dword [eax + 0x81c]
jne 0x52fec9
cmp byte [ebp - 0x49], 0
jne 0x52ffb7
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.00567364
mov eax, dword [edi]
cmp ebx, dword [eax + 0x81c]
je 0x52ff95
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0054acac
lea edx, [ebp - 0x144]
mov eax, dword [edi]
call fcn.005c8b30
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.0052f828
pop ecx
cmp byte [ebp - 0x49], 0
jne 0x52ffb7
mov eax, dword [edi]
mov esi, dword [eax + 0x81c]
mov eax, 0x1ce9
call fcn.004e5968
mov eax, dword [edi]
cmp esi, dword [eax + 0x81c]
jne 0x52ff53
cmp byte [ebp - 0x85], 3
je 0x52ffdd
mov eax, dword [edi]
mov edx, dword [eax + 0x258]
mov eax, dword [edi]
call fcn.00566a44
cmp al, 3
jne 0x52ffdd
mov eax, 0x1c20
call fcn.004e5968
call fcn.005093e8
mov dl, byte [ebp - 0x49]
xor dl, 1
call fcn.005068d4
mov eax, dword [edi]
call fcn.00567fbc
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov ebx, dword [eax + 0x18]
dec ebx
cmp ebx, 0
jl 0x53002e
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 0x530003
xor edx, edx
mov eax, dword [edi]
call fcn.005c2a0c
call fcn.00509538
mov al, byte [ebp - 0x19]
dec eax
sub al, 2
jae 0x5300f3
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
cmp byte [ebp - 0x19], 1
jne 0x53009d
mov eax, dword [edi]
cmp byte [eax + 0x7dd], 0
jne 0x530069
cmp dword [ebp - 0x10], 0
jg 0x530069
xor eax, eax
jmp 0x53006b
mov al, 1
mov edx, dword [edi]
mov byte [edx + 0x7dd], al
mov eax, dword [edi]
cmp byte [eax + 0x7de], 0
jne 0x530093
mov eax, dword [0x675fd0]
cmp dword [eax + 0x18], 0
jg 0x530093
cmp dword [ebp - 0x40], 0
jg 0x530093
xor eax, eax
jmp 0x530095
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 0x5300f3
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 0x5300c4
mov edx, dword [esi + 4]
jmp 0x5300c6
xor edx, edx
cmp ebx, dword [esi + 0x10]
jne 0x5300d6
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x90], ecx
jmp 0x5300df
mov ecx, dword [eax + 8]
mov dword [ebp - 0x90], ecx
mov ecx, dword [ebp - 0x90]
call fcn.00555fd8
inc ebx
dec dword [ebp - 0x98]
jne 0x5300ad
cmp byte [ebp - 0x19], 0
jne 0x5302f6
cmp byte [ebp - 0x49], 0
jne 0x5302f6
mov eax, dword [0x6730b4]
test byte [eax], 0x10
jne 0x5302f6
cmp dword [ebp - 0x3c], 0
jle 0x5301f3
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x40]
jne 0x5301f3
mov eax, dword [0x673298]
mov eax, dword [eax]
call fcn.006233ec
lea eax, [ebp - 0xf4]
call fcn.005471b8
mov eax, dword [0x6733cc]
mov eax, dword [eax]
mov dword [ebp - 0x9c], eax
push 0x3e80
mov ecx, dword [0x671fec]
mov ecx, dword [ecx]
lea eax, [ebp - 0x9c]
mov dl, byte [0x5303f4]
call fcn.0049c3d4
test al, al
je 0x5302f6
mov eax, dword [edi]
call fcn.005c504c
test al, al
je 0x530191
mov eax, dword [edi]
mov edx, dword [eax + 0x300]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x5301c2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0054acac
lea edx, [ebp - 0x144]
mov eax, dword [edi]
call fcn.005c8b68
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.0052e24c
pop ecx
push 0
lea eax, [ebp - 0xf4]
push eax
mov ecx, dword [ebp - 4]
mov dl, 2
mov eax, dword [edi]
call fcn.005cf610
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [edi]
mov eax, dword [ebp - 0x20]
call fcn.0052f954
jmp 0x5302f6
cmp byte [ebp - 0x49], 0
je 0x53022f
mov eax, dword [edi]
call fcn.005c504c
test al, al
je 0x53022f
mov eax, dword [edi]
mov edx, dword [eax + 0x300]
mov eax, dword [ebp - 4]
call fcn.0054ae8c
test al, al
jne 0x53022f
mov eax, dword [edi]
lea edx, [eax + 0x258]
mov cl, byte [0x5303ec]
mov eax, dword [edi]
call fcn.005c3110
jmp 0x530277
cmp byte [ebp - 0x49], 0
jne 0x530277
lea edx, [ebp - 0x144]
mov eax, dword [edi]
call fcn.005c8b68
lea edx, [ebp - 0x144]
lea eax, [ebp - 0x104]
call fcn.00546ce8
test al, al
je 0x530277
mov eax, dword [ebp - 0xf8]
push eax
mov al, byte [0x5303ec]
push eax
mov ecx, dword [ebp - 0x100]
mov edx, dword [ebp - 0x104]
mov eax, dword [edi]
call fcn.005c32e0
mov dl, 1
mov eax, dword [edi]
call fcn.005c2a0c
cmp dword [ebp - 0x40], 0
jle 0x53029b
lea eax, [ebp - 0x84]
mov edx, dword [0x671bdc]
mov edx, dword [edx]
call fcn.00403438
jmp 0x5302a6
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 [0x67303c]
mov eax, dword [eax]
mov ecx, 1
call fcn.00659050
mov eax, dword [ebp - 0x148]
mov cl, 0x27
mov dl, 2
call fcn.00623608
lea edx, [ebp - 0x124]
mov eax, dword [edi]
call fcn.005c8b68
mov eax, dword [edi]
lea ebx, [eax + 0x7dc]
cmp byte [ebp - 0x19], 1
jne 0x53034d
call fcn.0065c614
sub eax, dword [ebp - 0x8c]
cmp eax, 0xa
jge 0x53034d
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 0x114]
jg 0x53034d
mov esi, dword [ebx + 4]
cmp esi, dword [ebp - 0x114]
jne 0x52fa11
mov edx, esi
mov eax, dword [edi]
call fcn.005c0310
cmp eax, dword [ebx + 8]
jne 0x52fa11
mov eax, dword [edi]
cmp byte [eax + 0x458], 0
je 0x530385
cmp dword [ebp - 0x10], 0
jne 0x530385
cmp dword [ebp - 0xc], 0
je 0x530385
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x38]
call fcn.00546c9c
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.00532844
mov eax, dword [ebp - 4]
call fcn.0054b108
mov eax, dword [edi]
mov byte [eax + 0x469], 0
mov eax, dword [0x6723cc]
mov byte [eax + 7], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5303e2
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