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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x494608
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x494de4
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x494d60
push dword fs:[edx]
mov dword fs:[edx], esp
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004043a4
add dword [ebx + 0x3e8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
jl 0x494d56
cmp eax, 0x3e8
jge 0x494d56
mov eax, dword [ebp - 4]
imul edi, dword [eax], 0x13
mov eax, dword [0x49d730]
mov eax, dword [eax + edi*4 + 0x38]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 4]
jne 0x494d48
mov eax, dword [0x49d730]
cmp dword [eax + edi*4 + 0x14], 0xa
jge 0x494d48
mov eax, dword [0x49d730]
mov eax, dword [eax + edi*4 + 4]
call fcn.004043a4
cmp eax, 0x4e20
jle 0x4946cb
mov eax, dword [ebp - 4]
imul edi, dword [eax], 0x13
mov eax, dword [0x49d730]
lea eax, [eax + edi*4 + 4]
call fcn.004040e4
mov eax, dword [0x49d730]
mov dword [eax + edi*4 + 0x14], 0x63
mov eax, dword [ebp - 4]
add eax, 8
call fcn.004040e4
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49d730]
mov edx, dword [edx + eax*4 + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
lea eax, [ebp - 8]
call fcn.004043f0
lea eax, [ebp - 0xc]
call fcn.004040e4
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.0048d818
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 8]
call fcn.0040417c
mov eax, dword [ebp - 0xc]
call fcn.004043a4
cmp eax, 2
jle 0x494d0a
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0xc]
mov dl, byte [edx]
call fcn.004042cc
mov eax, dword [ebp - 0x3c]
mov edx, 0x63
call fcn.0048d778
mov edi, eax
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49d730]
cmp edi, dword [edx + eax*4 + 0x10]
jne 0x49475e
mov edx, dword [0x49d730]
inc dword [edx + eax*4 + 0x14]
jmp 0x494d1a
mov edx, dword [0x49d730]
mov dword [edx + eax*4 + 0x10], edi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004043a4
mov ecx, eax
dec ecx
mov edx, 2
mov eax, dword [ebp - 0xc]
call fcn.00404604
mov eax, dword [ebp - 0xc]
call fcn.004043a4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x10
jl 0x494d1a
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49d730]
cmp byte [edx + eax*4 + 0x18], 0
je 0x49487c
mov edx, dword [0x49d730]
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 [0x49d730]
mov dword [ecx + edx*4 + 0x48], eax
mov eax, dword [ebp - 0xc]
call fcn.004043a4
add dword [ebx + 0x3ec], eax
push 0x494dfc
lea edx, [ebp - 0x40]
mov eax, edi
call fcn.00408424
push dword [ebp - 0x40]
push dword [ebp - 0xc]
push 0x494e08
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404464
mov eax, dword [ebp - 0xc]
call fcn.004043a4
inc eax
call fcn.00402704
mov edi, eax
mov eax, dword [ebp - 0xc]
call fcn.004043a4
inc eax
push eax
lea eax, [ebp - 0xc]
call fcn.004045fc
mov edx, edi
pop ecx
call fcn.00402900
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49d730]
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 [0x49d730]
mov eax, dword [edx + eax*4 + 0xc]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004043a4
inc eax
push eax
push edi
mov eax, dword [ebp - 4]
mov cx, word [eax]
mov edx, 5
mov eax, ebx
call fcn.00493e8c
mov eax, edi
call fcn.00402724
jmp 0x494d1a
mov byte [ebp - 0x19], 1
mov eax, dword [ebp - 0xc]
call fcn.004043a4
add dword [ebx + 0x3f0], eax
cmp dword [ebp - 0x18], 0x10
jne 0x4948a9
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.0040417c
lea eax, [ebp - 0x14]
call fcn.004040e4
jmp 0x4948dd
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x10
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404604
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004043a4
mov ecx, eax
sub ecx, 0x10
mov edx, 0x11
mov eax, dword [ebp - 0xc]
call fcn.00404604
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.00484ce4
mov ax, word [ebp - 0x24]
sub ax, 0x419
je 0x4948fd
sub ax, 0x73f2
je 0x494910
jmp 0x494989
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49d730]
mov byte [edx + eax*4 + 0x26], 0
jmp 0x494989
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.00484b18
push 0x494dfc
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x34]
call fcn.00484d90
push dword [ebp - 0x44]
push 0x494e08
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404464
mov edx, dword [0x485394]
mov eax, 0xc
call fcn.00404e8c
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.00404138
mov eax, dword [0x49d474]
mov eax, dword [eax]
mov edx, edi
call fcn.00418d50
mov eax, dword [0x49d4f4]
cmp byte [eax], 0
je 0x494c15
movzx eax, word [ebp - 0x24]
cmp eax, 0xbe0
jge 0x4949d7
cmp eax, 0xbd0
jge 0x4949bd
sub eax, 0xbbd
je 0x494a13
add eax, 0xfffffffc
sub eax, 0xb
jb 0x494a13
jmp 0x494c15
add eax, 0xfffff430
sub eax, 2
jb 0x494a13
add eax, 0xfffffff7
sub eax, 2
jb 0x494a13
dec eax
je 0x494a13
jmp 0x494c15
cmp eax, 0x75e4
jg 0x494a01
je 0x494a13
add eax, 0xfffff420
sub eax, 3
jb 0x494a13
add eax, 0xffffffef
sub eax, 9
jb 0x494a13
add eax, 0xffffff19
sub eax, 4
jb 0x494a13
jmp 0x494c15
sub eax, 0x75e6
je 0x494a13
sub eax, 0xb2
jne 0x494c15
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49d730]
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 [0x49d730]
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 [0x49d724]
mov eax, dword [eax]
cdq
cmp edx, dword [esp + 4]
jne 0x494a5e
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x494c15
jmp 0x494a66
pop edx
pop eax
jle 0x494c15
push 0x494e14
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49d730]
push dword [edx + eax*4 + 0x3c]
push 0x494e28
call sub.kernel32.dll_GetTickCount_1
sub eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c]
call fcn.00408510
push dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
mov edx, 4
call fcn.00404464
mov eax, dword [ebp - 0x48]
mov edx, 1
call fcn.004854b4
mov eax, dword [0x49d590]
mov eax, dword [eax]
sub eax, 1
jb 0x494ac3
je 0x494ac9
dec eax
je 0x494acf
jmp 0x494b39
mov byte [ebp - 0x19], 0
jmp 0x494b39
mov byte [ebp - 0x19], 0
jmp 0x494b39
mov byte [ebp - 0x19], 0
push 0x494e38
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x50]
call fcn.00408510
push dword [ebp - 0x50]
push 0x494e08
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404464
mov edx, dword [0x485394]
mov eax, 0xc
call fcn.00404e8c
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.00404138
mov eax, dword [0x49d474]
mov eax, dword [eax]
mov edx, edi
call fcn.00418d50
mov eax, dword [0x49d570]
cmp byte [eax], 0
je 0x494c15
mov eax, dword [0x49d74c]
mov eax, dword [eax]
sub eax, 1
jb 0x494b57
je 0x494b82
jmp 0x494b97
push 0
push 1
lea eax, [ebp - 0x28]
push eax
mov edx, dword [0x49d350]
mov dl, byte [edx]
mov eax, dword [0x49d26c]
mov al, byte [eax]
call fcn.00406cb0
mov ecx, eax
xor edx, edx
mov ax, 0x64
call fcn.00484b18
jmp 0x494b97
push 0
push 0
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
xor edx, edx
mov ax, 0x2ff
call fcn.00484b18
mov eax, dword [0x49d74c]
mov eax, dword [eax]
sub eax, 2
jae 0x494c15
push 0x494dfc
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x28]
call fcn.00484d90
push dword [ebp - 0x54]
lea edx, [ebp - 0x58]
mov eax, dword [0x49d464]
mov eax, dword [eax]
call fcn.00484dfc
push dword [ebp - 0x58]
push 0x494e08
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404464
mov edx, dword [0x485394]
mov eax, 0xc
call fcn.00404e8c
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.00404138
mov eax, dword [0x49d474]
mov eax, dword [eax]
mov edx, edi
call fcn.00418d50
cmp byte [ebp - 0x19], 0
je 0x494d1a
cmp dword [ebp - 0x14], 0
je 0x494cb3
mov eax, dword [ebp - 0x14]
call fcn.004043a4
add eax, 0xc
inc eax
call fcn.00402704
mov edi, eax
mov edx, edi
lea eax, [ebp - 0x28]
mov ecx, 0xc
call fcn.00402900
mov eax, dword [ebp - 0x14]
call fcn.004043a4
inc eax
push eax
lea eax, [ebp - 0x14]
call fcn.004045fc
lea edx, [edi + 0xc]
pop ecx
call fcn.00402900
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49d730]
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 [0x49d730]
mov eax, dword [edx + eax*4 + 0xc]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004043a4
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.00493e8c
mov eax, edi
call fcn.00402724
jmp 0x494d1a
mov eax, 0xc
call fcn.00402704
mov edi, eax
mov edx, edi
lea eax, [ebp - 0x28]
mov ecx, 0xc
call fcn.00402900
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49d730]
mov edx, dword [edx + eax*4]
mov edx, dword [edx + 4]
push edx
mov edx, dword [0x49d730]
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.00493e8c
mov eax, edi
call fcn.00402724
jmp 0x494d1a
cmp esi, 1
jl 0x494d19
lea eax, [ebp - 8]
call fcn.004040e4
jmp 0x494d1a
inc esi
mov edx, dword [ebp - 8]
mov eax, 0x494e08
call fcn.004046e8
dec eax
jge 0x4946e9
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x13
mov edx, dword [0x49d730]
lea eax, [edx + eax*4 + 4]
mov edx, dword [ebp - 8]
call fcn.00404138
jmp 0x494d56
mov eax, dword [0x49d730]
lea eax, [eax + edi*4 + 4]
call fcn.004040e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x494dbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494deb
lea eax, [ebp - 0x5c]
mov edx, 0xa
call fcn.00404108
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404108
ret