Function at 0x5462c4
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]
call fcn.00542de8
mov eax, dword [edi]
mov eax, dword [eax + 0x22c]
cmp eax, 0xb
je 0x5466ff
cmp eax, 9
je 0x5466ff
cmp eax, 0xd
je 0x5466ff
cmp eax, 5
je 0x5466ff
cmp eax, 6
je 0x5466ff
cmp eax, 7
je 0x5466ff
cmp eax, 0x12d
je 0x5466ff
mov eax, dword [edi]
mov byte [eax + 0x490], 0
mov eax, dword [0x5673b0]
mov eax, dword [eax]
cmp eax, dword [edi]
je 0x54634e
mov eax, dword [edi]
mov eax, dword [eax + 0x500]
cmp dword [eax + 8], 2
jl 0x54634e
mov eax, dword [edi]
mov byte [eax + 0x490], 1
mov eax, dword [edi]
mov edx, dword [eax + 0x454]
mov eax, dword [edi]
sub edx, dword [eax + 0x44c]
mov eax, dword [edi]
mov si, 0xfff8
call fcn.00404844
mov eax, dword [edi]
mov edx, dword [eax + 0x454]
mov eax, dword [edi]
sub edx, dword [eax + 0x44c]
mov eax, dword [edi]
mov si, 0xfff7
call fcn.00404844
mov eax, dword [edi]
mov ebx, dword [eax + 0x454]
mov eax, dword [edi]
cmp dword [eax + 0x22c], 0
je 0x546662
mov edx, dword [edi]
mov edx, dword [edx + 0x44c]
mov eax, dword [edi]
mov eax, dword [eax + 0x454]
cmp edx, eax
jg 0x5463b9
mov ecx, dword [edi]
cmp eax, dword [ecx + 0x450]
jle 0x5463c1
mov eax, dword [edi]
mov dword [eax + 0x454], edx
mov eax, dword [0x5673b0]
mov eax, dword [eax]
cmp eax, dword [edi]
je 0x5463fb
mov eax, dword [edi]
cmp byte [eax + 0x194], 0
je 0x5463fb
mov eax, dword [edi]
mov eax, dword [eax + 0x478]
add eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
fild qword [ebp - 0x10]
fdiv dword [0x546708]
call fcn.00403670
mov esi, eax
jmp 0x546432
mov eax, dword [edi]
cmp byte [eax + 0x490], 0
je 0x54642a
mov eax, dword [edi]
mov eax, dword [eax + 0x478]
add eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
fild qword [ebp - 0x10]
fdiv dword [0x546708]
call fcn.00403670
mov esi, eax
jmp 0x546432
mov eax, dword [edi]
mov esi, dword [eax + 0x478]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
sub eax, dword [edx + 0x47c]
cmp esi, eax
jae 0x546629
mov eax, dword [edi]
mov eax, dword [eax + 0x454]
mov edx, dword [edi]
cmp eax, dword [edx + 0x450]
jge 0x546515
mov eax, dword [edi]
cmp byte [eax + 0x194], 0
je 0x5464fe
mov eax, dword [edi]
mov eax, dword [eax + 0x1b0]
mov edx, dword [edi]
mov edx, dword [edx + 0x1b4]
sub edx, 2
cmp eax, edx
je 0x54648e
push ebp
call fcn.00546268
pop ecx
test al, al
je 0x5464ca
mov eax, dword [edi]
cmp dword [eax + 0x1bc], 0
jge 0x5464a8
push ebp
call fcn.00546268
pop ecx
test al, al
je 0x54657c
mov eax, dword [edi]
inc dword [eax + 0x454]
mov eax, dword [edi]
inc dword [eax + 0x1b0]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
mov dword [edx + 0x47c], eax
jmp 0x54657c
mov eax, dword [edi]
mov eax, dword [eax + 0x454]
mov edx, dword [edi]
mov edx, dword [edx + 0x450]
dec edx
cmp eax, edx
jge 0x5464e7
mov eax, dword [edi]
inc dword [eax + 0x454]
mov eax, dword [edi]
inc dword [eax + 0x1b0]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
mov dword [edx + 0x47c], eax
jmp 0x54657c
mov eax, dword [edi]
inc dword [eax + 0x454]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
mov dword [edx + 0x47c], eax
jmp 0x54657c
mov eax, dword [edi]
cmp byte [eax + 0x3f], 0
je 0x546523
mov eax, dword [edi]
mov byte [eax + 0x3e], 1
mov eax, dword [0x5673b0]
mov eax, dword [eax]
cmp eax, dword [edi]
jne 0x54655e
mov eax, dword [0x5671fc]
mov eax, dword [eax]
call fcn.004d1ee8
test al, al
je 0x54657c
mov eax, dword [edi]
mov si, 0xfff6
call fcn.00404844
mov eax, dword [edi]
xor edx, edx
mov dword [eax + 0x22c], edx
mov eax, dword [edi]
mov byte [eax + 0x194], 0
jmp 0x54657c
mov eax, dword [edi]
mov si, 0xfff6
call fcn.00404844
mov eax, dword [edi]
xor edx, edx
mov dword [eax + 0x22c], edx
mov eax, dword [edi]
mov byte [eax + 0x194], 0
mov eax, dword [edi]
cmp byte [eax + 0x194], 0
je 0x546629
mov eax, dword [edi]
mov eax, dword [eax + 0x1b0]
mov edx, dword [edi]
mov edx, dword [edx + 0x1b4]
dec edx
cmp eax, edx
jne 0x546629
mov eax, dword [edi]
cmp dword [eax + 0x1bc], 0
jle 0x546616
mov eax, dword [edi]
add eax, 0x1bc
mov edx, dword [eax + 0x10]
push edx
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
push edx
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
push edx
mov edx, dword [eax + 0x14]
push edx
mov edx, dword [eax + 0x18]
push edx
mov edx, dword [eax + 8]
push edx
movzx edx, byte [eax + 0xc]
push edx
movzx edx, 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 [0x566ba4]
mov eax, dword [eax]
mov edx, dword [edi]
call fcn.00531018
cmp byte [ebp - 5], 0
je 0x546609
mov eax, dword [edi]
mov eax, dword [eax + 0x294]
call fcn.0053cc7c
jmp 0x546616
mov eax, dword [edi]
mov eax, dword [eax + 0x298]
call fcn.0053cc7c
mov eax, dword [edi]
xor edx, edx
mov dword [eax + 0x1bc], edx
mov eax, dword [edi]
mov byte [eax + 0x1e0], 1
mov eax, dword [edi]
movzx eax, word [eax + 0x26]
sub ax, 2
jb 0x54663b
sub ax, 0x29
jne 0x546649
mov eax, dword [edi]
mov dword [eax + 0x498], 0xfffffff6
jmp 0x546653
mov eax, dword [edi]
xor edx, edx
mov dword [eax + 0x498], edx
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
mov dword [edx + 0x49c], eax
jmp 0x5466c6
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
sub eax, dword [edx + 0x4a8]
cmp eax, 0xc8
jbe 0x5466c6
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
sub eax, dword [edx + 0x49c]
cmp eax, 0x1f4
jbe 0x5466bb
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
mov dword [edx + 0x49c], eax
mov eax, dword [edi]
inc dword [eax + 0x498]
mov eax, dword [edi]
mov eax, dword [eax + 0x498]
mov edx, dword [edi]
cmp eax, dword [edx + 0x4a0]
jl 0x5466bb
mov eax, dword [edi]
xor edx, edx
mov dword [eax + 0x498], edx
mov eax, dword [edi]
mov si, 0xfffe
call fcn.00404844
mov eax, dword [edi]
cmp ebx, dword [eax + 0x454]
jne 0x5466e7
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
sub eax, dword [edx + 0x28c]
mov edx, dword [edi]
cmp eax, dword [edx + 0x288]
jbe 0x5466ff
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
mov dword [edx + 0x28c], eax
mov eax, dword [edi]
mov si, 0xfff3
call fcn.00404844
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret