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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
test edi, edi
jne 0x40e6c0
push 0x4e1a4c
push str.Invalid_usage.
mov ecx, 0x516ea8
call fcn.004768b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
cmp ecx, 5
ja case.0x40e6cd.1
jmp dword [ecx*4 + 0x40ee9c]
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x40e6e1
mov esi, dword [eax + 0xc]
jmp 0x40e6e3
mov esi, eax
test byte [esi + 0x15], 8
je 0x40e6f0
mov eax, esi
call fcn.00401610
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x40e709
test byte [esi + 0x15], 4
je 0x40e704
mov eax, esi
call fcn.0042fa10
mov esi, dword [esi + 8]
jmp 0x40e726
cmp al, 2
jne 0x40e716
call fcn.004014b0
mov esi, eax
jmp 0x40e726
mov esi, 0x516e78
jmp 0x40e726
mov esi, dword [eax]
jmp 0x40e726
mov esi, 0x4e1a4c
mov eax, dword [ebp + 0x14]
test al, 2
je 0x40e8fa
push str.Start
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40e7bf
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 1
lea esi, [eax + 8]
je 0x40e7b1
mov dword [eax + 0x18], 0
mov eax, dword [eax + 0x14]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [esi + 8]
test eax, eax
je 0x40e76d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x34], 0
jle 0x40e77a
mov eax, esi
call fcn.00435280
mov ecx, dword [0x5166e4]
or byte [0x5166ef], 1
cmp dword [0x51600c], 0
mov dword [esi + 4], ecx
mov dword [esi], 1
mov dword [0x5166e4], esi
jne 0x40e7b1
mov edx, dword [0x51164c]
movzx eax, word [edx]
push eax
call fcn.004085a0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Wait
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40e87f
cmp edi, 1
jle 0x40e81d
mov eax, dword [ebx + 4]
cmp dword [eax + 8], 3
je 0x40e81d
push 0
push 1
call fcn.0044ff80
fmul qword [0x50a098]
fnstcw word [esp + 0x14]
add esp, 8
movzx eax, word [esp + 0xc]
or eax, 0xc00
mov dword [esp + 0x10], eax
fldcw word [esp + 0x10]
fistp qword [esp + 0x10]
mov ecx, dword [esp + 0x10]
fldcw word [esp + 0xc]
mov dword [esp + 0xc], ecx
jmp 0x40e825
mov dword [esp + 0xc], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [ebp + 8]
cmp dword [esi + 8], 1
mov ebx, eax
jne 0x40e857
call edi
sub eax, ebx
cmp eax, dword [esp + 0xc]
jae 0x40e857
push 1
push 0x8000012f
call fcn.00401930
add esp, 8
cmp dword [esi + 8], 1
je 0x40e838
mov edi, dword [ebp + 0xc]
push 0
push 0
push 0
lea eax, [esi + 8]
mov dword [edi + 8], 0
call fcn.00435850
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Stop
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40e8cd
mov eax, dword [ebp + 8]
add eax, 8
cmp dword [eax], 1
jne 0x40e8bf
mov dl, byte [0x515ed9]
push 0
push eax
mov byte [eax + 0x4c], dl
mov dword [eax], 0
mov eax, dword [0x515edc]
push 0x41b
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.KeyOpt
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40ee8d
mov ecx, dword [ebp + 8]
dec edi
push edi
lea eax, [ebx + 4]
push ecx
call fcn.0040eed0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edi, eax
and edi, 1
mov edx, 0
setne dl
inc edx
cmp dword [ebp + 0x1c], edx
jne 0x40e6a3
test al, 3
jne 0x40eb53
push str.Input
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40e948
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0x18]
mov ebx, dword [ecx + 0x14]
call fcn.00450280
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.InProgress
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40e982
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, 1
mov dword [ecx + 8], esi
cmp dword [eax + 8], esi
sete dl
movzx eax, dl
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.EndReason
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40e9bb
mov esi, dword [ebp + 0xc]
push 0
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
push 0
add eax, 8
push 0
call fcn.00435850
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.EndKey
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40ea12
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
add eax, 8
cmp dword [eax], 4
jne 0x40e9fe
mov edx, dword [ecx + 4]
push 0
push 0x100
push edx
mov dword [ecx], edx
call fcn.00435850
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [ecx], 0x4e1a4c
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.EndMods
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40eb0c
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ecx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test byte [ecx + 0x54], 1
je 0x40ea50
mov edx, 0x3c
mov word [eax], dx
mov edx, 0x5e
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 2
je 0x40ea6a
mov edx, 0x3e
mov word [eax], dx
mov edx, 0x5e
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 4
je 0x40ea84
mov edx, 0x3c
mov word [eax], dx
mov edx, 0x21
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 8
je 0x40ea9e
mov edx, 0x3e
mov word [eax], dx
mov edx, 0x21
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 0x10
je 0x40eab8
mov edx, 0x3c
mov word [eax], dx
mov edx, 0x2b
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 0x20
je 0x40ead2
mov edx, 0x3e
mov word [eax], dx
mov edx, 0x2b
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 0x40
je 0x40eaec
mov edx, 0x3c
mov word [eax], dx
mov edx, 0x23
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 0x80
je 0x40eafb
mov dword [eax], 0x23003e
add eax, 4
xor ecx, ecx
mov word [eax], cx
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Match
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40eb53
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 3
jne 0x40e9fe
mov edx, dword [eax + 0x58]
cmp edx, dword [eax + 0x2c]
jae 0x40e9fe
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx*4]
mov dword [ecx], edx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 2
push 0x4e677c
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x40ec51
add esi, 4
push 0x4e735c
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40eb8b
mov esi, dword [ebp + 8]
add esi, 0x35c
jmp 0x40ebc7
push str.KeyDown
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40eba8
mov esi, dword [ebp + 8]
add esi, 0x360
jmp 0x40ebc7
push str.Char
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40ee8d
mov esi, dword [ebp + 8]
add esi, 0x364
test edi, edi
je 0x40ebf1
mov ecx, dword [ebx + 4]
call fcn.004501a0
mov edi, eax
test edi, edi
je 0x40ec1f
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov eax, dword [esi]
test eax, eax
je 0x40ebef
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esi], edi
mov eax, dword [esi]
test eax, eax
je 0x40ec8d
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [ebp + 0xc]
mov esi, dword [esi]
mov dword [eax + 8], 6
mov dword [eax], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebx + 4]
call fcn.0044fe90
test eax, eax
jne 0x40ebe1
push 0x4e1a4c
push str.e__3__6r_3_7
call fcn.0049fc00
add esp, 4
push eax
mov ecx, 0x516ea8
call fcn.004768b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.MinSendLevel
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40ec9b
mov esi, dword [ebp + 8]
test edi, edi
je 0x40ec79
mov ecx, dword [ebx + 4]
push eax
call fcn.0044fef0
add esp, 4
mov byte [esi + 0x44], al
movzx eax, byte [esi + 0x44]
mov ecx, dword [ebp + 0xc]
cdq
mov dword [ecx + 8], 1
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Timeout
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40ed05
mov esi, dword [ebp + 8]
test edi, edi
je 0x40ece2
push eax
mov eax, dword [ebx + 4]
push 1
call fcn.0044ff80
fmul qword [0x50a098]
add esp, 8
call fcn.004d3dc0
cmp dword [esi + 8], 1
mov dword [esi + 0x3c], eax
jne 0x40ece2
test eax, eax
jle 0x40ece2
lea eax, [esi + 8]
call fcn.00435280
fild dword [esi + 0x3c]
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 2
fdiv qword [0x50a098]
fstp qword [eax]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.BackspaceIsUndo
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40ed22
mov ebx, dword [ebp + 8]
add ebx, 0x45
jmp 0x40eda6
push str.CaseSensitive
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40ed3c
mov ebx, dword [ebp + 8]
add ebx, 0x46
jmp 0x40eda6
push str.FindAnywhere
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40ed56
mov ebx, dword [ebp + 8]
add ebx, 0x4b
jmp 0x40eda6
push str.VisibleText
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40ed70
mov ebx, dword [ebp + 8]
add ebx, 0x48
jmp 0x40eda6
push str.VisibleNonText
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40ed8a
mov ebx, dword [ebp + 8]
add ebx, 0x49
jmp 0x40eda6
push str.NotifyNonText
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x40ee8d
mov ebx, dword [ebp + 8]
add ebx, 0x4a
test ebx, ebx
je 0x40ee8d
test edi, edi
je 0x40ee61
mov eax, dword [ebp + 0x18]
mov esi, dword [eax + 4]
push esi
call fcn.0044fe20
add esp, 4
dec eax
je 0x40ee69
dec eax
mov eax, dword [esi + 8]
je 0x40ee17
cmp eax, 6
je 0x40ee79
cmp eax, 4
jne 0x40edf5
mov eax, dword [esi]
cmp byte [eax + 0x17], 0
jne 0x40edeb
mov eax, dword [eax + 0xc]
test byte [eax + 0x15], 2
jne 0x40ee79
xor ecx, ecx
mov eax, esi
call fcn.00450030
xor ecx, ecx
cmp word [eax], cx
setne cl
mov eax, ecx
test eax, eax
setne al
mov byte [ebx], al
movzx eax, al
jmp 0x40ec7d
dec eax
cmp eax, 5
ja case.0x40ee1d.3
jmp dword [eax*4 + 0x40eeb4]
fild qword [esi]
jmp 0x40ee4d
fld qword [esi]
jmp 0x40ee4d
mov eax, dword [esi]
push 1
call fcn.0041be60
jmp 0x40ee4d
mov eax, dword [esi + 4]
test eax, eax
je case.0x40ee1d.3
fild qword [eax]
jmp 0x40ee4d
mov edx, dword [esi]
push edx
call fcn.004c6cde
add esp, 4
fldz
fucompp
fnstsw ax
test ah, 0x44
jp 0x40ee79
xor eax, eax
test eax, eax
setne al
mov byte [ebx], al
movzx eax, byte [ebx]
jmp 0x40ec7d
push 1
mov ecx, esi
call fcn.0044fef0
add esp, 4
or eax, edx
je case.0x40ee1d.6
mov eax, 1
test eax, eax
setne al
mov byte [ebx], al
movzx eax, al
jmp 0x40ec7d
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret 0x18