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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea edi, [ebp - 4]
mov eax, dword [edi]
mov eax, dword [eax + 0x1b4]
cmp eax, 0xb
je 0x523d83
cmp eax, 9
je 0x523d83
cmp eax, 0xd
je 0x523d83
cmp eax, 5
je 0x523d83
cmp eax, 6
je 0x523d83
cmp eax, 7
je 0x523d83
cmp eax, 0x12d
je 0x523d83
mov eax, dword [edi]
mov byte [eax + 0x2c4], 0
mov eax, dword [0x53e6d8]
mov eax, dword [eax]
cmp eax, dword [edi]
je 0x5239eb
mov eax, dword [edi]
mov eax, dword [eax + 0x330]
cmp dword [eax + 8], 2
jl 0x5239eb
mov eax, dword [edi]
mov byte [eax + 0x2c4], 1
mov eax, dword [edi]
mov edx, dword [eax + 0x288]
mov eax, dword [edi]
sub edx, dword [eax + 0x280]
mov eax, dword [edi]
mov si, 0xfff8
call fcn.00404114
mov eax, dword [edi]
mov edx, dword [eax + 0x288]
mov eax, dword [edi]
sub edx, dword [eax + 0x280]
mov eax, dword [edi]
mov si, 0xfff7
call fcn.00404114
mov eax, dword [edi]
mov ebx, dword [eax + 0x288]
mov eax, dword [edi]
cmp dword [eax + 0x1b4], 0
je 0x523cfd
mov edx, dword [edi]
mov edx, dword [edx + 0x280]
mov eax, dword [edi]
mov eax, dword [eax + 0x288]
cmp edx, eax
jg 0x523a56
mov ecx, dword [edi]
cmp eax, dword [ecx + 0x284]
jle 0x523a5e
mov eax, dword [edi]
mov dword [eax + 0x288], edx
mov eax, dword [0x53e6d8]
mov eax, dword [eax]
cmp eax, dword [edi]
je 0x523a98
mov eax, dword [edi]
cmp byte [eax + 0x148], 0
je 0x523a98
mov eax, dword [edi]
mov eax, dword [eax + 0x2ac]
add eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
fild qword [ebp - 0x10]
fdiv dword [0x523d8c]
call fcn.00402fc8
mov esi, eax
jmp 0x523acf
mov eax, dword [edi]
cmp byte [eax + 0x2c4], 0
je 0x523ac7
mov eax, dword [edi]
mov eax, dword [eax + 0x2ac]
add eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
fild qword [ebp - 0x10]
fdiv dword [0x523d8c]
call fcn.00402fc8
mov esi, eax
jmp 0x523acf
mov eax, dword [edi]
mov esi, dword [eax + 0x2ac]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
sub eax, dword [edx + 0x2b0]
cmp esi, eax
jae 0x523cc4
mov eax, dword [edi]
mov eax, dword [eax + 0x288]
mov edx, dword [edi]
cmp eax, dword [edx + 0x284]
jge 0x523bb2
mov eax, dword [edi]
cmp byte [eax + 0x148], 0
je 0x523b9b
mov eax, dword [edi]
mov eax, dword [eax + 0x160]
mov edx, dword [edi]
mov edx, dword [edx + 0x164]
sub edx, 2
cmp eax, edx
je 0x523b2b
push ebp
call fcn.0052390c
pop ecx
test al, al
je 0x523b67
mov eax, dword [edi]
cmp dword [eax + 0x16c], 0
jge 0x523b45
push ebp
call fcn.0052390c
pop ecx
test al, al
je 0x523c19
mov eax, dword [edi]
inc dword [eax + 0x288]
mov eax, dword [edi]
inc dword [eax + 0x160]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
mov dword [edx + 0x2b0], eax
jmp 0x523c19
mov eax, dword [edi]
mov eax, dword [eax + 0x288]
mov edx, dword [edi]
mov edx, dword [edx + 0x284]
dec edx
cmp eax, edx
jge 0x523b84
mov eax, dword [edi]
inc dword [eax + 0x288]
mov eax, dword [edi]
inc dword [eax + 0x160]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
mov dword [edx + 0x2b0], eax
jmp 0x523c19
mov eax, dword [edi]
inc dword [eax + 0x288]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
mov dword [edx + 0x2b0], eax
jmp 0x523c19
mov eax, dword [edi]
cmp byte [eax + 0x33], 0
je 0x523bc0
mov eax, dword [edi]
mov byte [eax + 0x32], 1
mov eax, dword [0x53e6d8]
mov eax, dword [eax]
cmp eax, dword [edi]
jne 0x523bfb
mov eax, dword [0x53ea98]
mov eax, dword [eax]
call fcn.004ae240
test al, al
je 0x523c19
mov eax, dword [edi]
mov si, 0xfff6
call fcn.00404114
mov eax, dword [edi]
xor edx, edx
mov dword [eax + 0x1b4], edx
mov eax, dword [edi]
mov byte [eax + 0x148], 0
jmp 0x523c19
mov eax, dword [edi]
mov si, 0xfff6
call fcn.00404114
mov eax, dword [edi]
xor edx, edx
mov dword [eax + 0x1b4], edx
mov eax, dword [edi]
mov byte [eax + 0x148], 0
mov eax, dword [edi]
cmp byte [eax + 0x148], 0
je 0x523cc4
mov eax, dword [edi]
mov eax, dword [eax + 0x160]
mov edx, dword [edi]
mov edx, dword [edx + 0x164]
dec edx
cmp eax, edx
jne 0x523cc4
mov eax, dword [edi]
cmp dword [eax + 0x16c], 0
jle 0x523cb1
mov eax, dword [edi]
add eax, 0x16c
mov edx, dword [eax + 0x10]
push edx
mov edx, dword [edi]
mov edx, dword [edx + 8]
push edx
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
push edx
mov edx, dword [eax + 0x14]
push edx
mov edx, dword [eax + 0x18]
push edx
mov edx, dword [eax + 8]
push edx
mov dl, byte [eax + 0xc]
push edx
mov dl, byte [eax + 0x1c]
push edx
mov edx, dword [eax + 0x20]
push edx
lea edx, [ebp - 5]
push edx
mov ecx, dword [eax]
mov eax, dword [0x53e520]
mov eax, dword [eax]
mov edx, dword [edi]
call fcn.0050e928
cmp byte [ebp - 5], 0
je 0x523ca4
mov eax, dword [edi]
mov eax, dword [eax + 0x21c]
call fcn.0051aa7c
jmp 0x523cb1
mov eax, dword [edi]
mov eax, dword [eax + 0x220]
call fcn.0051aa7c
mov eax, dword [edi]
xor edx, edx
mov dword [eax + 0x16c], edx
mov eax, dword [edi]
mov byte [eax + 0x190], 1
mov eax, dword [edi]
mov ax, word [eax + 0x1c]
sub ax, 2
jb 0x523cd6
sub ax, 0x29
jne 0x523ce4
mov eax, dword [edi]
mov dword [eax + 0x2cc], 0xfffffff6
jmp 0x523cee
mov eax, dword [edi]
xor edx, edx
mov dword [eax + 0x2cc], edx
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
mov dword [edx + 0x2d0], eax
jmp 0x523d61
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
sub eax, dword [edx + 0x2dc]
cmp eax, 0xc8
jbe 0x523d61
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
sub eax, dword [edx + 0x2d0]
cmp eax, 0x1f4
jbe 0x523d56
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
mov dword [edx + 0x2d0], eax
mov eax, dword [edi]
inc dword [eax + 0x2cc]
mov eax, dword [edi]
mov eax, dword [eax + 0x2cc]
mov edx, dword [edi]
cmp eax, dword [edx + 0x2d4]
jl 0x523d56
mov eax, dword [edi]
xor edx, edx
mov dword [eax + 0x2cc], edx
mov eax, dword [edi]
mov si, 0xfffe
call fcn.00404114
mov eax, dword [edi]
cmp ebx, dword [eax + 0x288]
je 0x523d83
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
mov dword [edx + 0x214], eax
mov eax, dword [edi]
mov si, 0xfff3
call fcn.00404114
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret