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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov edi, edx
movzx eax, word [edi + 0x32]
add eax, 0xffffffc3
mov esi, ecx
mov dword [esp + 0x18], edi
cmp eax, 0x1d
ja case.0x494ee5.69
movzx eax, byte [eax + 0x495550]
jmp dword [eax*4 + 0x49551c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
push eax
push esi
mov ecx, edi
call fcn.00496a60
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0051a8be
mov esp, ebp
pop ebp
ret
push edi
call fcn.00496d90
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0051a8be
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x24]
lea ecx, [ebx + 0x28]
push ecx
push eax
mov eax, edi
lea edi, [esp + 0x14]
mov ecx, esi
call fcn.00495b60
cmp dword [ebx + 0x30], 0
je 0x4950fd
mov edi, dword [esp + 0x18]
movzx ecx, byte [edi + 0x30]
mov eax, esi
call fcn.0045a150
test al, al
je 0x4950fd
mov ecx, dword [esi + 0xe0]
test ecx, ecx
je case.0x494ee5.69
mov eax, dword [ebx + 0x2c]
cmp eax, 2
jne 0x49500a
mov edx, dword [ebx + 0x30]
push edx
call fcn.0041cfd0
test eax, eax
je 0x494fb2
movzx edx, byte [edi + 0x30]
mov eax, dword [eax + 0xd4]
imul edx, edx, 0x2c
mov edx, dword [edx + esi + 0x13c0]
xor ecx, ecx
add eax, 0x55
movzx edi, byte [eax]
cmp edi, edx
je 0x4950fd
inc ecx
inc eax
cmp ecx, 6
jl 0x494fa0
mov ecx, dword [esi + 0xdc]
mov dx, word [ebx + 0xc]
mov eax, 0x50f
mov word [esp + 0x1c], ax
mov al, byte [ebx + 0x10]
mov dword [esp + 0x1e], ecx
xor ecx, ecx
mov byte [esp + 0x24], al
xor eax, eax
mov word [esp + 0x25], cx
mov word [esp + 0x22], dx
push 0xf
lea ecx, [esp + 0x20]
xor edx, edx
mov word [esp + 0x2d], ax
push ecx
mov eax, esi
mov word [esp + 0x2f], dx
call fcn.004d56d0
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0051a8be
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne case.0x494ee5.69
mov eax, dword [esi + 0xdc]
mov cx, word [ebx + 0xc]
mov dword [esp + 0x1e], eax
mov edx, 0x50f
xor eax, eax
mov word [esp + 0x1c], dx
mov dl, byte [ebx + 0x10]
mov word [esp + 0x25], ax
push 0xf
lea eax, [esp + 0x20]
mov word [esp + 0x26], cx
mov byte [esp + 0x28], dl
xor ecx, ecx
xor edx, edx
push eax
mov eax, esi
mov word [esp + 0x2f], cx
mov word [esp + 0x31], dx
call fcn.004d56d0
mov ecx, dword [ebx + 0x30]
push ecx
mov ecx, dword [esi + 0xe0]
call fcn.0041c6e0
mov edi, eax
test edi, edi
je case.0x494ee5.69
mov eax, dword [esi + 0xdc]
lea edx, [esp + 0xc]
push edx
push eax
mov ecx, 1
call fcn.004583f0
test al, al
je 0x49509f
mov ecx, dword [esi + 0xdc]
push 0
push ecx
push 1
mov ecx, edi
call fcn.004654c0
mov eax, dword [esi + 0xdc]
mov ecx, dword [ebx + 0x30]
mov edx, 0x515
mov word [esp + 0x2c], dx
mov dx, word [esp + 0xc]
mov dword [esp + 0x2e], eax
mov ax, word [esp + 0x10]
mov word [esp + 0x36], dx
push 0x10
lea edx, [esp + 0x30]
mov dword [esp + 0x36], ecx
mov cx, word [esp + 0x18]
mov word [esp + 0x3c], ax
push edx
mov edx, dword [edi + 0xdc]
mov eax, esi
mov word [esp + 0x42], cx
call fcn.004d56d0
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0051a8be
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x30]
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [ebx + 0x2c]
mov edi, esi
call fcn.004583f0
test al, al
je 0x495125
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
push 0
push edx
push eax
mov ecx, esi
call fcn.004654c0
mov edx, dword [esi + 0xdc]
movzx eax, word [ebx + 0xc]
mov ecx, 0x50f
mov word [esp + 0x1c], cx
mov cl, byte [ebx + 0x10]
mov dword [esp + 0x1e], edx
mov dx, word [esp + 0xc]
mov word [esp + 0x22], ax
movzx eax, word [esp + 0x10]
mov byte [esp + 0x24], cl
mov cx, word [esp + 0x14]
mov word [esp + 0x25], dx
push 0xf
lea edx, [esp + 0x20]
mov word [esp + 0x2b], ax
mov word [esp + 0x2d], cx
push edx
xor edx, edx
mov eax, esi
call fcn.004d56d0
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0051a8be
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1234]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
cmp dword [ebx + 0x30], eax
je 0x495335
movzx ecx, byte [edi + 0x30]
mov eax, esi
call fcn.0045a150
test al, al
je 0x495335
mov ecx, dword [esi + 0xe0]
test ecx, ecx
je case.0x494ee5.69
mov eax, dword [ebx + 0x2c]
cmp eax, 2
jne 0x49524b
mov edx, dword [ebx + 0x30]
push edx
call fcn.0041cfd0
test eax, eax
je 0x495206
movzx edx, byte [edi + 0x30]
mov eax, dword [eax + 0xd4]
imul edx, edx, 0x2c
mov edx, dword [edx + esi + 0x13c0]
xor ecx, ecx
add eax, 0x55
movzx edi, byte [eax]
cmp edi, edx
je 0x4950fd
inc ecx
inc eax
cmp ecx, 6
jl 0x4951f4
mov ecx, dword [esi + 0xdc]
mov dx, word [ebx + 0xc]
mov eax, 0x50f
mov word [esp + 0x1c], ax
mov al, byte [ebx + 0x10]
mov dword [esp + 0x1e], ecx
xor ecx, ecx
mov word [esp + 0x22], dx
xor edx, edx
mov byte [esp + 0x24], al
mov word [esp + 0x25], cx
xor eax, eax
push 0xf
lea ecx, [esp + 0x20]
mov word [esp + 0x2b], dx
mov word [esp + 0x2d], ax
push ecx
jmp 0x49516e
cmp eax, 1
jne case.0x494ee5.69
mov eax, dword [esi + 0xdc]
mov cx, word [ebx + 0xc]
mov dword [esp + 0x1e], eax
mov edx, 0x50f
xor eax, eax
mov word [esp + 0x1c], dx
mov dl, byte [ebx + 0x10]
mov word [esp + 0x25], ax
push 0xf
lea eax, [esp + 0x20]
mov word [esp + 0x26], cx
mov byte [esp + 0x28], dl
xor ecx, ecx
xor edx, edx
push eax
mov eax, esi
mov word [esp + 0x2f], cx
mov word [esp + 0x31], dx
call fcn.004d56d0
mov ecx, dword [ebx + 0x30]
push ecx
mov ecx, dword [esi + 0xe0]
call fcn.0041c6e0
mov edi, eax
test edi, edi
je case.0x494ee5.69
mov ecx, dword [esi + 0xdc]
mov edx, dword [edi + 0x1234]
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, 1
mov dword [esp + 0x14], edx
call fcn.004583f0
test al, al
je 0x4952ea
mov edx, dword [esi + 0xdc]
push 0
push edx
push 1
mov ecx, edi
call fcn.004654c0
mov edx, dword [ebx + 0x30]
mov ecx, dword [esi + 0xdc]
mov eax, 0x515
mov word [esp + 0x2c], ax
mov ax, word [esp + 0xc]
mov dword [esp + 0x32], edx
mov dx, word [esp + 0x14]
mov dword [esp + 0x2e], ecx
mov cx, word [esp + 0x10]
mov word [esp + 0x36], ax
push 0x10
lea eax, [esp + 0x30]
mov word [esp + 0x3e], dx
mov edx, dword [edi + 0xdc]
mov word [esp + 0x3c], cx
push eax
jmp 0x495170
mov edx, dword [ebx + 0x30]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [ebx + 0x2c]
push edx
mov edi, esi
call fcn.004583f0
test al, al
je 0x49535d
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x2c]
push 0
push eax
push ecx
mov ecx, esi
call fcn.004654c0
mov eax, dword [esi + 0xdc]
movzx ecx, word [ebx + 0xc]
mov edx, 0x50f
mov word [esp + 0x1c], dx
mov dl, byte [ebx + 0x10]
mov dword [esp + 0x1e], eax
mov ax, word [esp + 0xc]
mov byte [esp + 0x24], dl
mov dx, word [esp + 0x14]
mov word [esp + 0x25], ax
mov word [esp + 0x22], cx
movzx ecx, word [esp + 0x10]
push 0xf
lea eax, [esp + 0x20]
mov word [esp + 0x2d], dx
push eax
xor edx, edx
mov eax, esi
mov word [esp + 0x2f], cx
call fcn.004d56d0
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0051a8be
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 0x7e]
movzx edx, byte [edi + 0x7c]
movzx ecx, byte [edi + 0x31]
push esi
call fcn.00495570
movzx eax, word [edi + 0x82]
movzx edx, byte [edi + 0x80]
movzx ecx, byte [edi + 0x31]
push esi
call fcn.00495570
movzx eax, word [edi + 0x86]
movzx edx, byte [edi + 0x84]
movzx ecx, byte [edi + 0x31]
push esi
call fcn.00495570
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0051a8be
mov esp, ebp
pop ebp
ret
dec dword [esi + 0x1348]
call fcn.00491600
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0051a8be
mov esp, ebp
pop ebp
ret
dec dword [esi + 0x1344]
call fcn.00491600
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0051a8be
mov esp, ebp
pop ebp
ret
dec dword [esi + 0x134c]
call fcn.00491600
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0051a8be
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1284]
test eax, eax
jle 0x495478
dec eax
mov dword [esi + 0x1284], eax
mov eax, dword [esi + 0x1c4]
test eax, eax
je case.0x494ee5.69
call fcn.004629d0
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0051a8be
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x135c], 0
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0051a8be
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x1360], 0x65
jne 0x4954d1
mov dword [esi + 0x1350], 0
call fcn.00491600
jmp 0x4954d8
push 1
call fcn.00461570
mov ecx, esi
mov byte [esi + 0x1360], 0
mov dword [esi + 0x1364], 0
call fcn.004913e0
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0051a8be
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x1358], 0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.0051a8be
mov esp, ebp
pop ebp
ret