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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x494f84
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x495760
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4956dc
push dword fs:[edx]
mov dword fs:[edx], esp
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004047f0
add dword [ebx + 0x3e8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
jl 0x4956d2
cmp eax, 0x3e8
jge 0x4956d2
mov eax, dword [ebp - 4]
imul edi, dword [eax], 0x13
mov eax, dword [0x49e730]
mov eax, dword [eax + edi*4 + 0x38]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 4]
jne 0x4956c4
mov eax, dword [0x49e730]
cmp dword [eax + edi*4 + 0x14], 0xa
jge 0x4956c4
mov eax, dword [0x49e730]
mov eax, dword [eax + edi*4 + 4]
call fcn.004047f0
cmp eax, 0x4e20
jle 0x495047
mov eax, dword [ebp - 4]
imul edi, dword [eax], 0x13
mov eax, dword [0x49e730]
lea eax, [eax + edi*4 + 4]
call fcn.00404530
mov eax, dword [0x49e730]
mov dword [eax + edi*4 + 0x14], 0x63
mov eax, dword [ebp - 4]
add eax, 8
call fcn.00404530
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49e730]
mov edx, dword [edx + eax*4 + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
lea eax, [ebp - 8]
call fcn.0040483c
lea eax, [ebp - 0xc]
call fcn.00404530
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x38]
push eax
mov cl, 0x21
mov dl, 0x23
mov eax, dword [ebp - 8]
call fcn.0048e194
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 8]
call fcn.004045c8
mov eax, dword [ebp - 0xc]
call fcn.004047f0
cmp eax, 2
jle 0x495686
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0xc]
mov dl, byte [edx]
call fcn.00404718
mov eax, dword [ebp - 0x3c]
mov edx, 0x63
call fcn.0048e0f4
mov edi, eax
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49e730]
cmp edi, dword [edx + eax*4 + 0x10]
jne 0x4950da
mov edx, dword [0x49e730]
inc dword [edx + eax*4 + 0x14]
jmp 0x495696
mov edx, dword [0x49e730]
mov dword [edx + eax*4 + 0x10], edi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004047f0
mov ecx, eax
dec ecx
mov edx, 2
mov eax, dword [ebp - 0xc]
call fcn.00404a50
mov eax, dword [ebp - 0xc]
call fcn.004047f0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x10
jl 0x495696
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49e730]
cmp byte [edx + eax*4 + 0x18], 0
je 0x4951f8
mov edx, dword [0x49e730]
mov byte [edx + eax*4 + 0x18], 0
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
imul edx, dword [edx], 0x13
mov ecx, dword [0x49e730]
mov dword [ecx + edx*4 + 0x48], eax
mov eax, dword [ebp - 0xc]
call fcn.004047f0
add dword [ebx + 0x3ec], eax
push 0x495778
lea edx, [ebp - 0x40]
mov eax, edi
call fcn.004089a8
push dword [ebp - 0x40]
push dword [ebp - 0xc]
push 0x495784
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.004048b0
mov eax, dword [ebp - 0xc]
call fcn.004047f0
inc eax
call fcn.00402a70
mov edi, eax
mov eax, dword [ebp - 0xc]
call fcn.004047f0
inc eax
push eax
lea eax, [ebp - 0xc]
call fcn.00404a48
mov edx, edi
pop ecx
call fcn.00402c90
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49e730]
mov eax, dword [edx + eax*4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49e730]
mov eax, dword [edx + eax*4 + 0xc]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004047f0
inc eax
push eax
push edi
mov eax, dword [ebp - 4]
mov cx, word [eax]
mov edx, 5
mov eax, ebx
call fcn.00494808
mov eax, edi
call fcn.00402aa0
jmp 0x495696
mov byte [ebp - 0x19], 1
mov eax, dword [ebp - 0xc]
call fcn.004047f0
add dword [ebx + 0x3f0], eax
cmp dword [ebp - 0x18], 0x10
jne 0x495225
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004045c8
lea eax, [ebp - 0x14]
call fcn.00404530
jmp 0x495259
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x10
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404a50
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004047f0
mov ecx, eax
sub ecx, 0x10
mov edx, 0x11
mov eax, dword [ebp - 0xc]
call fcn.00404a50
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.00485660
mov ax, word [ebp - 0x24]
sub ax, 0x419
je 0x495279
sub ax, 0x73f2
je 0x49528c
jmp 0x495305
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49e730]
mov byte [edx + eax*4 + 0x26], 0
jmp 0x495305
mov byte [ebp - 0x19], 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
xor ecx, ecx
xor edx, edx
mov ax, 0x7874
call fcn.00485494
push 0x495778
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x34]
call fcn.0048570c
push dword [ebp - 0x44]
push 0x495784
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004048b0
mov edx, dword [0x485d10]
mov eax, 0xc
call fcn.004052dc
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
lea eax, [edi + 8]
mov edx, dword [ebp - 0x14]
call fcn.00404584
mov eax, dword [0x49e474]
mov eax, dword [eax]
mov edx, edi
call fcn.0041946c
mov eax, dword [0x49e4f4]
cmp byte [eax], 0
je 0x495591
movzx eax, word [ebp - 0x24]
cmp eax, 0xbe0
jge 0x495353
cmp eax, 0xbd0
jge 0x495339
sub eax, 0xbbd
je 0x49538f
add eax, 0xfffffffc
sub eax, 0xb
jb 0x49538f
jmp 0x495591
add eax, 0xfffff430
sub eax, 2
jb 0x49538f
add eax, 0xfffffff7
sub eax, 2
jb 0x49538f
dec eax
je 0x49538f
jmp 0x495591
cmp eax, 0x75e4
jg 0x49537d
je 0x49538f
add eax, 0xfffff420
sub eax, 3
jb 0x49538f
add eax, 0xffffffef
sub eax, 9
jb 0x49538f
add eax, 0xffffff19
sub eax, 4
jb 0x49538f
jmp 0x495591
sub eax, 0x75e6
je 0x49538f
sub eax, 0xb2
jne 0x495591
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49e730]
mov edi, dword [edx + eax*4 + 0x48]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
imul edx, dword [edx], 0x13
mov ecx, dword [0x49e730]
mov dword [ecx + edx*4 + 0x48], eax
call sub.kernel32.dll_GetTickCount_1
sub eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [0x49e724]
mov eax, dword [eax]
cdq
cmp edx, dword [esp + 4]
jne 0x4953da
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x495591
jmp 0x4953e2
pop edx
pop eax
jle 0x495591
push 0x495790
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49e730]
push dword [edx + eax*4 + 0x3c]
push 0x4957a4
call sub.kernel32.dll_GetTickCount_1
sub eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c]
call fcn.00408a94
push dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
mov edx, 4
call fcn.004048b0
mov eax, dword [ebp - 0x48]
mov edx, 1
call fcn.00485e30
mov eax, dword [0x49e590]
mov eax, dword [eax]
sub eax, 1
jb 0x49543f
je 0x495445
dec eax
je 0x49544b
jmp 0x4954b5
mov byte [ebp - 0x19], 0
jmp 0x4954b5
mov byte [ebp - 0x19], 0
jmp 0x4954b5
mov byte [ebp - 0x19], 0
push 0x4957b4
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x50]
call fcn.00408a94
push dword [ebp - 0x50]
push 0x495784
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004048b0
mov edx, dword [0x485d10]
mov eax, 0xc
call fcn.004052dc
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
lea eax, [edi + 8]
mov edx, dword [ebp - 0x14]
call fcn.00404584
mov eax, dword [0x49e474]
mov eax, dword [eax]
mov edx, edi
call fcn.0041946c
mov eax, dword [0x49e570]
cmp byte [eax], 0
je 0x495591
mov eax, dword [0x49e74c]
mov eax, dword [eax]
sub eax, 1
jb 0x4954d3
je 0x4954fe
jmp 0x495513
push 0
push 1
lea eax, [ebp - 0x28]
push eax
mov edx, dword [0x49e350]
mov dl, byte [edx]
mov eax, dword [0x49e26c]
mov al, byte [eax]
call fcn.004071bc
mov ecx, eax
xor edx, edx
mov ax, 0x64
call fcn.00485494
jmp 0x495513
push 0
push 0
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
xor edx, edx
mov ax, 0x2ff
call fcn.00485494
mov eax, dword [0x49e74c]
mov eax, dword [eax]
sub eax, 2
jae 0x495591
push 0x495778
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x28]
call fcn.0048570c
push dword [ebp - 0x54]
lea edx, [ebp - 0x58]
mov eax, dword [0x49e464]
mov eax, dword [eax]
call fcn.00485778
push dword [ebp - 0x58]
push 0x495784
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004048b0
mov edx, dword [0x485d10]
mov eax, 0xc
call fcn.004052dc
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
lea eax, [edi + 8]
mov edx, dword [ebp - 0x14]
call fcn.00404584
mov eax, dword [0x49e474]
mov eax, dword [eax]
mov edx, edi
call fcn.0041946c
cmp byte [ebp - 0x19], 0
je 0x495696
cmp dword [ebp - 0x14], 0
je 0x49562f
mov eax, dword [ebp - 0x14]
call fcn.004047f0
add eax, 0xc
inc eax
call fcn.00402a70
mov edi, eax
mov edx, edi
lea eax, [ebp - 0x28]
mov ecx, 0xc
call fcn.00402c90
mov eax, dword [ebp - 0x14]
call fcn.004047f0
inc eax
push eax
lea eax, [ebp - 0x14]
call fcn.00404a48
lea edx, [edi + 0xc]
pop ecx
call fcn.00402c90
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49e730]
mov eax, dword [edx + eax*4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49e730]
mov eax, dword [edx + eax*4 + 0xc]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004047f0
add eax, 0xc
inc eax
push eax
push edi
mov eax, dword [ebp - 4]
mov cx, word [eax]
mov edx, 5
mov eax, ebx
call fcn.00494808
mov eax, edi
call fcn.00402aa0
jmp 0x495696
mov eax, 0xc
call fcn.00402a70
mov edi, eax
mov edx, edi
lea eax, [ebp - 0x28]
mov ecx, 0xc
call fcn.00402c90
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49e730]
mov edx, dword [edx + eax*4]
mov edx, dword [edx + 4]
push edx
mov edx, dword [0x49e730]
mov eax, dword [edx + eax*4 + 0xc]
push eax
push 0xc
push edi
mov eax, dword [ebp - 4]
mov cx, word [eax]
mov edx, 5
mov eax, ebx
call fcn.00494808
mov eax, edi
call fcn.00402aa0
jmp 0x495696
cmp esi, 1
jl 0x495695
lea eax, [ebp - 8]
call fcn.00404530
jmp 0x495696
inc esi
mov edx, dword [ebp - 8]
mov eax, 0x495784
call fcn.00404b34
dec eax
jge 0x495065
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49e730]
lea eax, [edx + eax*4 + 4]
mov edx, dword [ebp - 8]
call fcn.00404584
jmp 0x4956d2
mov eax, dword [0x49e730]
lea eax, [eax + edi*4 + 4]
call fcn.00404530
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x495738
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495767
lea eax, [ebp - 0x5c]
mov edx, 0xa
call fcn.00404554
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404554
ret