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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x6a1068]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x4e00db
xor eax, eax
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00565c32
add esp, 0x4c
ret 8
cmp dword [esi + 0x10], 0
je 0x4e00c7
mov ecx, dword [esi + 0x18]
add ecx, dword [esp + 0x54]
cmp dword [esi + 0x14a], 0
mov eax, dword [esi + 0x14]
mov edx, dword [esp + 0x58]
push ebx
push ebp
mov ebx, 1
lea ebp, [eax + edx - 1]
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
je 0x4e019b
lea eax, [esi + 0x4c]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4e0122
sub eax, edi
lea edi, [eax + 2]
mov eax, dword [esi + 0x14e]
mov edx, ebp
mov dword [eax + 0x3a], ecx
mov dword [eax + 0x3e], edx
mov ecx, dword [esi + 0x14e]
call fcn.00430580
movzx ecx, word [esi + 0x8a]
push 0xb4464646
lea eax, [esp + 0x2c]
push eax
push edi
push 0x583d4e
push ecx
mov ecx, 0x6b01e8
call fcn.0042a1e0
mov edx, dword [esi + 0x8e]
movzx ecx, word [esi + 0x8a]
sub dword [esp + 0x28], ebx
sub dword [esp + 0x2c], ebx
or edx, 0xff000000
push edx
lea eax, [esp + 0x2c]
push eax
push edi
push 0x583d4e
push ecx
mov ecx, 0x6b01e8
call fcn.0042a1e0
push 0
push 0x2000
mov ecx, 0x6dd980
call fcn.00537dc0
test eax, eax
je 0x4e025a
lea ecx, [esp + 0x38]
call fcn.0042cf30
lea eax, [esi + 0x4c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4e01c3
push 0xb4464646
sub eax, ecx
lea edx, [esp + 0x2c]
push edx
lea edi, [eax + 2]
movzx eax, word [esi + 0x8a]
push edi
push 0x583d4e
push eax
mov ecx, 0x6b01e8
call fcn.0042a1e0
mov ecx, dword [esi + 0x8e]
movzx eax, word [esi + 0x8a]
sub dword [esp + 0x28], ebx
sub dword [esp + 0x2c], ebx
or ecx, 0xff000000
push ecx
lea edx, [esp + 0x2c]
push edx
push edi
push 0x583d4e
push eax
mov ecx, 0x6b01e8
call fcn.0042a1e0
push 0xffffffffffffffff
fldz
push 0
push ecx
lea ecx, [esp + 0x44]
fstp dword [esp]
push 0
push 0
call fcn.0042cf50
lea ecx, [esp + 0x38]
call fcn.0042cf40
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00565c32
add esp, 0x4c
ret 8
cmp byte [esi + 0x4c], 0
lea edi, [esi + 0x4c]
je 0x4e0418
mov ecx, dword [0x6b1164]
cmp byte [ecx + 0x443], bl
jne 0x4e02d8
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e0280
sub eax, edx
push 0xb4464646
lea edx, [esp + 0x2c]
push edx
lea ebp, [eax + 2]
movzx eax, word [esi + 0x8a]
push ebp
push edi
push eax
mov ecx, 0x6b01e8
call fcn.0042a1e0
mov ecx, dword [esi + 0x8e]
movzx eax, word [esi + 0x8a]
sub dword [esp + 0x28], ebx
sub dword [esp + 0x2c], ebx
or ecx, 0xff000000
push ecx
lea edx, [esp + 0x2c]
push edx
push ebp
push edi
push eax
mov ecx, 0x6b01e8
call fcn.0042a1e0
mov eax, edi
lea edx, [eax + 1]
cmp dword [esi + 0x13c], ebx
jne 0x4e03c0
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e02f0
sub eax, edx
lea ebp, [eax + 2]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esi + 0x140]
jb 0x4e0380
mov ecx, dword [esi + 0x144]
mov edx, dword [ecx*4 + 0x69d350]
mov dword [esi + 0x8e], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x140
mov dword [esi + 0x140], eax
mov al, byte [esi + 0x148]
test al, al
jne 0x4e0340
add dword [esi + 0x144], ebx
jmp 0x4e0346
dec dword [esi + 0x144]
mov ecx, dword [esi + 0x144]
cmp ecx, 0xa
jl 0x4e0367
test al, al
jne 0x4e0367
mov byte [esi + 0x148], bl
mov dword [esi + 0x144], 9
jmp 0x4e0380
test ecx, ecx
jg 0x4e0380
cmp al, bl
jne 0x4e0380
mov byte [esi + 0x148], 0
mov dword [esi + 0x144], 0
movzx ecx, word [esi + 0x8a]
push 0xb4464646
lea eax, [esp + 0x2c]
push eax
push ebp
push edi
push ecx
mov ecx, 0x6b01e8
call fcn.0042a1e0
mov edx, dword [esi + 0x8e]
movzx ecx, word [esi + 0x8a]
or edx, 0xff000000
push edx
lea eax, [esp + 0x2c]
push eax
push ebp
push edi
push ecx
jmp 0x4e0406
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e03c0
sub eax, edx
push 0xb4464646
lea edx, [esp + 0x2c]
push edx
lea ebp, [eax + 2]
movzx eax, word [esi + 0x8a]
push ebp
push edi
push eax
mov ecx, 0x6b01e8
call fcn.0042a1e0
mov ecx, dword [esi + 0x8e]
movzx eax, word [esi + 0x8a]
or ecx, 0xff000000
push ecx
lea edx, [esp + 0x2c]
push edx
push ebp
push edi
push eax
sub dword [esp + 0x3c], ebx
sub dword [esp + 0x40], ebx
mov ecx, 0x6b01e8
call fcn.0042a1e0
cmp byte [esi + 0x92], 0
lea edi, [esi + 0x92]
je 0x4e04df
mov edx, dword [esi + 0x1c]
add edx, dword [esp + 0x64]
mov ecx, dword [esi + 0x20]
add ecx, dword [esp + 0x60]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
fsub qword [0x590a48]
call fcn.00565c50
mov dword [esp + 0x1c], eax
mov eax, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4e0465
sub eax, ecx
movzx ecx, word [esi + 0x8a]
push 0xb4464646
lea ebp, [eax + 2]
lea eax, [esp + 0x1c]
push eax
push ebp
push edi
push ecx
mov ecx, 0x6b01e8
call fcn.0042a1e0
mov edx, dword [esi + 0x8e]
movzx ecx, word [esi + 0x8a]
sub dword [esp + 0x18], ebx
sub dword [esp + 0x1c], ebx
or edx, 0xff000000
push edx
lea eax, [esp + 0x1c]
push eax
push ebp
push edi
push ecx
mov ecx, 0x6b01e8
call fcn.0042a1e0
cmp byte [edi], 0
je 0x4e04df
cmp byte [esi + 0xa3], 0
je 0x4e04df
push 0
push 0x101
push 0x590a30
call fcn.00516310
add esp, 0xc
cmp byte [esi + 0xa3], 0
lea ebp, [esi + 0xa3]
je 0x4e0589
mov eax, dword [esi + 0x44]
add eax, dword [esp + 0x64]
add dword [esp + 0x14], ebx
mov edx, dword [esi + 0x48]
add edx, dword [esp + 0x60]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esp + 0x18], edx
fild dword [esp + 0x14]
fmul qword [0x590a28]
fsubp st(1)
call fcn.00565c50
mov dword [esp + 0x1c], eax
mov eax, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4e0532
movzx edx, word [esi + 0x8a]
sub eax, ecx
push 0xb4464646
lea ecx, [esp + 0x1c]
push ecx
lea edi, [eax + 2]
push edi
push ebp
push edx
mov ecx, 0x6b01e8
call fcn.0042a1e0
mov eax, dword [esi + 0x8e]
movzx edx, word [esi + 0x8a]
sub dword [esp + 0x18], ebx
sub dword [esp + 0x1c], ebx
or eax, 0xff000000
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push edx
mov ecx, 0x6b01e8
call fcn.0042a1e0
cmp byte [esi + 0xc4], 0
lea ebp, [esi + 0xc4]
je 0x4e062d
mov ecx, dword [esi + 0x28]
add ecx, dword [esp + 0x64]
add dword [esp + 0x14], ebx
mov eax, dword [esi + 0x24]
add eax, dword [esp + 0x60]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov dword [esp + 0x18], eax
fild dword [esp + 0x14]
fmul qword [0x590a48]
fsubp st(1)
call fcn.00565c50
mov dword [esp + 0x1c], eax
mov eax, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4e05e0
push 0xb4ff00ff
sub eax, ecx
lea edx, [esp + 0x1c]
push edx
lea edi, [eax + 2]
movzx eax, word [esi + 0x8a]
push edi
push ebp
push eax
mov ecx, 0x6b01e8
call fcn.0042a1e0
movzx edx, word [esi + 0x8a]
sub dword [esp + 0x18], ebx
sub dword [esp + 0x1c], ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push edx
mov ecx, 0x6b01e8
call fcn.0042a1e0
cmp word [esi + 0x152], 0
je 0x4e0758
mov eax, dword [0x6b1164]
cmp byte [eax + 0x4db], 0
jne 0x4e0758
mov eax, dword [esi + 0x160]
test eax, eax
je 0x4e0758
cmp dword [eax + 4], 0
je 0x4e06c6
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp eax, dword [esi + 0x158]
jb 0x4e06c6
call edi
add eax, 0x50
cmp dword [esi + 0x15c], 0
mov dword [esi + 0x158], eax
jne 0x4e068d
add dword [esi + 0x154], ebx
jmp 0x4e06a4
movzx ecx, word [esi + 0x152]
mov dword [esi + 0x154], ecx
mov dword [esi + 0x15c], 0
mov edx, dword [esi + 0x160]
movzx eax, word [esi + 0x152]
mov ecx, dword [edx + 8]
lea edx, [ecx + eax - 1]
cmp dword [esi + 0x154], edx
jl 0x4e06c6
mov dword [esi + 0x15c], ebx
lea ecx, [esp + 0x38]
call fcn.0042cf30
mov ecx, dword [esi + 0x154]
push 7
lea eax, [esp + 0x3c]
push eax
push ecx
mov ecx, 0x6b06f0
call fcn.00431c80
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x64]
add dword [esp + 0x14], ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x60]
sar eax, 1
sub edx, eax
mov eax, dword [esi + 0x160]
mov dword [esp + 0x10], edx
push 0xffffffffffffffff
fild dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
fstp dword [esp + 0x20]
sub ecx, dword [eax + 0xc]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
push ecx
fild dword [esp + 0x20]
lea ecx, [esp + 0x44]
fmul qword [0x586968]
fsubp st(1)
fsub qword [0x585bd0]
fstp dword [esp + 0x28]
fldz
fstp dword [esp]
push 0
push 0
call fcn.0042cf50
lea ecx, [esp + 0x38]
call fcn.0042cf40
cmp byte [esi + 0x106], 0
lea ebp, [esi + 0x106]
je 0x4e0801
mov eax, dword [0x6b1164]
cmp dword [eax + 0x4aa], 0
je 0x4e0801
mov edx, dword [esi + 0x38]
add edx, dword [esp + 0x64]
add dword [esp + 0x14], ebx
mov ecx, dword [esi + 0x34]
add ecx, dword [esp + 0x60]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x14]
fmul qword [0x589ee8]
fsubp st(1)
call fcn.00565c50
mov dword [esp + 0x1c], eax
mov eax, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4e07c0
sub eax, ecx
push 0xb4464646
lea edi, [eax + 2]
lea eax, [esp + 0x1c]
push eax
push edi
push ebp
push 7
mov ecx, 0x6b01e8
call fcn.0042a1e0
sub dword [esp + 0x18], ebx
sub dword [esp + 0x1c], ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push 7
mov ecx, 0x6b01e8
call fcn.0042a1e0
mov eax, dword [esi + 0x138]
cmp eax, 0x3e7
jbe 0x4e0815
mov ebp, 0x18
jmp 0x4e0830
cmp eax, 0x63
jbe 0x4e0821
mov ebp, 0x12
jmp 0x4e0830
mov edx, 9
cmp edx, eax
sbb ebp, ebp
and ebp, 6
add ebp, 6
mov al, byte [esi + 0x127]
lea edi, [esi + 0x127]
test al, al
je 0x4e0914
mov ecx, dword [0x69b90c]
cmp byte [ecx + 0x6b0d48], 0
je 0x4e085c
cmp dword [0x6ddcd2], 0
je 0x4e087d
test al, al
je 0x4e0914
push 0
push 0x1100
mov ecx, 0x6dd980
call fcn.00537dc0
test eax, eax
je 0x4e0914
mov eax, dword [esi + 0x40]
add eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
sub edx, ebp
fld qword [0x583658]
add edx, dword [esp + 0x60]
fmul st(1), st(0)
mov dword [esp + 0x18], edx
fxch st(2)
fsubrp st(1)
fsubrp st(1)
fsub qword [0x590a00]
call fcn.00565c50
mov dword [esp + 0x1c], eax
mov eax, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4e08d0
push 0xb4141414
sub eax, ecx
lea edx, [esp + 0x1c]
push edx
lea esi, [eax + 2]
push esi
push edi
push 0xb
mov ecx, 0x6b01e8
call fcn.0042a1e0
sub dword [esp + 0x18], ebx
sub dword [esp + 0x1c], ebx
push 0xffff0000
lea eax, [esp + 0x1c]
push eax
push esi
push edi
push 0xb
mov ecx, 0x6b01e8
call fcn.0042a1e0
mov ecx, dword [esp + 0x58]
pop edi
pop ebp
mov eax, ebx
pop ebx
pop esi
xor ecx, esp
call fcn.00565c32
add esp, 0x4c
ret 8