Function at 0x40e210
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 0x40e240
push 0x49b8cd
push str.Invalid_usage.
mov ecx, 0x4af290
call fcn.0042fbd0
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.0x40e24d.1
jmp dword [ecx*4 + 0x40ea0c]
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x40e261
mov esi, dword [eax + 0xc]
jmp 0x40e263
mov esi, eax
test byte [esi + 0x15], 8
je 0x40e270
mov eax, esi
call fcn.004011b0
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x40e289
test byte [esi + 0x15], 4
je 0x40e284
mov eax, esi
call fcn.00430230
mov esi, dword [esi + 8]
jmp 0x40e2a6
cmp al, 2
jne 0x40e296
call fcn.00401060
mov esi, eax
jmp 0x40e2a6
mov esi, 0x4af248
jmp 0x40e2a6
mov esi, dword [eax]
jmp 0x40e2a6
mov esi, 0x49b8cd
mov eax, dword [ebp + 0x14]
test al, 2
je 0x40e4a2
push str.Start
push esi
call fcn.00488231
add esp, 8
test eax, eax
jne 0x40e2f0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 1
lea eax, [ecx + 8]
je 0x40e418
mov dword [ecx + 0x18], 0
mov ecx, dword [ecx + 0x14]
xor edi, edi
mov byte [ecx], 0
call fcn.004344e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Wait
push esi
call fcn.00488231
add esp, 8
test eax, eax
jne 0x40e426
cmp edi, 1
jle 0x40e34e
mov eax, dword [ebx + 4]
cmp dword [eax + 8], 3
je 0x40e34e
push 0
push 1
call fcn.0044f2f0
fmul qword [0x4a3f68]
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 edx, dword [esp + 0x10]
fldcw word [esp + 0xc]
mov dword [esp + 0xc], edx
jmp 0x40e356
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 0x40e38f
lea esp, [esp]
call edi
sub eax, ebx
cmp eax, dword [esp + 0xc]
jae 0x40e38f
push 1
push 0x8000012f
call fcn.00401420
add esp, 8
cmp dword [esi + 8], 1
je 0x40e370
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 0
mov esi, dword [esi + 8]
cmp esi, 6
ja case.0x40e551.1
jmp dword [esi*4 + 0x40ea24]
mov eax, str.Timeout
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, str.EndKey
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x49f17c
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, str.NewInput
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, str.Stopped
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x49b8cd
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Stop
push esi
call fcn.00488231
add esp, 8
test eax, eax
jne 0x40e475
mov eax, dword [ebp + 8]
add eax, 8
cmp dword [eax], 1
jne 0x40e467
mov edx, dword [0x4ae2d4]
mov cl, byte [0x4ae2d1]
push 0
push eax
push 0x41b
push edx
mov byte [eax + 0x4b], cl
mov dword [eax], 0
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.KeyOpt
push esi
call fcn.00488231
add esp, 8
test eax, eax
jne 0x40e9fd
mov ecx, dword [ebp + 8]
dec edi
push edi
lea eax, [ebx + 4]
push ecx
call fcn.0040ea80
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 0x40e223
test al, 3
jne 0x40e6b0
push str.Input
push esi
call fcn.00488231
add esp, 8
test eax, eax
jne 0x40e4f0
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.0044f5e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.InProgress
push esi
call fcn.00488231
add esp, 8
test eax, eax
jne 0x40e52a
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.00488231
add esp, 8
test eax, eax
jne 0x40e56d
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp eax, 6
ja case.0x40e551.1
jmp dword [eax*4 + 0x40ea40]
mov eax, str.Match
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.EndKey
push esi
call fcn.00488231
add esp, 8
test eax, eax
jne 0x40e5c4
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
add eax, 8
cmp dword [eax], 4
jne 0x40e5b0
mov edx, dword [ecx + 4]
push 0
push 0x100
push edx
mov dword [ecx], edx
call fcn.00434d10
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [ecx], 0x49b8cd
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.EndMods
push esi
call fcn.00488231
add esp, 8
test eax, eax
jne 0x40e669
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 + 0x53], 1
je 0x40e5f6
mov word [eax], 0x5e3c
add eax, 2
test byte [ecx + 0x53], 2
je 0x40e604
mov word [eax], 0x5e3e
add eax, 2
test byte [ecx + 0x53], 4
je 0x40e612
mov word [eax], 0x213c
add eax, 2
test byte [ecx + 0x53], 8
je 0x40e620
mov word [eax], 0x213e
add eax, 2
test byte [ecx + 0x53], 0x10
je 0x40e62e
mov word [eax], 0x2b3c
add eax, 2
test byte [ecx + 0x53], 0x20
je 0x40e63c
mov word [eax], 0x2b3e
add eax, 2
test byte [ecx + 0x53], 0x40
je 0x40e64a
mov word [eax], 0x233c
add eax, 2
test byte [ecx + 0x53], 0x80
je 0x40e658
mov word [eax], 0x233e
add eax, 2
mov byte [eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Match
push esi
call fcn.00488231
add esp, 8
test eax, eax
jne 0x40e6b0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 3
jne 0x40e5b0
mov edx, dword [eax + 0x54]
cmp edx, dword [eax + 0x2c]
jae 0x40e5b0
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 0x49cf2c
push esi
call fcn.004885ed
add esp, 0xc
test eax, eax
jne 0x40e7c2
add esi, 2
push 0x49bbb4
push esi
call fcn.00488231
add esp, 8
test eax, eax
jne 0x40e6e8
mov esi, dword [ebp + 8]
add esi, 0x358
jmp 0x40e741
push str.KeyDown
push esi
call fcn.00488231
add esp, 8
test eax, eax
jne 0x40e705
mov esi, dword [ebp + 8]
add esi, 0x35c
jmp 0x40e741
push str.KeyUp
push esi
call fcn.00488231
add esp, 8
test eax, eax
jne 0x40e722
mov esi, dword [ebp + 8]
add esi, 0x364
jmp 0x40e741
push str.Char
push esi
call fcn.00488231
add esp, 8
test eax, eax
jne 0x40e9fd
mov esi, dword [ebp + 8]
add esi, 0x360
test edi, edi
je 0x40e76b
mov ecx, dword [ebx + 4]
call fcn.0044f500
mov edi, eax
test edi, edi
je 0x40e799
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov eax, dword [esi]
test eax, eax
je 0x40e769
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 0x40e7fe
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.0044f180
test eax, eax
jne 0x40e75b
push 0x49b8cd
push str.Invalid_value.
mov ecx, 0x4af290
call fcn.0042fbd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.MinSendLevel
push esi
call fcn.00488231
add esp, 8
test eax, eax
jne 0x40e80c
mov esi, dword [ebp + 8]
test edi, edi
je 0x40e7ea
mov ecx, dword [ebx + 4]
push eax
call fcn.0044f260
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.00488231
add esp, 8
test eax, eax
jne 0x40e876
mov esi, dword [ebp + 8]
test edi, edi
je 0x40e853
push eax
mov eax, dword [ebx + 4]
push 1
call fcn.0044f2f0
fmul qword [0x4a3f68]
add esp, 8
call fcn.00496840
cmp dword [esi + 8], 1
mov dword [esi + 0x3c], eax
jne 0x40e853
test eax, eax
jle 0x40e853
lea eax, [esi + 8]
call fcn.00434730
fild dword [esi + 0x3c]
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 2
fdiv qword [0x4a3f68]
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.00488231
add esp, 8
test eax, eax
jne 0x40e893
mov ebx, dword [ebp + 8]
add ebx, 0x45
jmp 0x40e917
push str.CaseSensitive
push esi
call fcn.00488231
add esp, 8
test eax, eax
jne 0x40e8ad
mov ebx, dword [ebp + 8]
add ebx, 0x46
jmp 0x40e917
push str.FindAnywhere
push esi
call fcn.00488231
add esp, 8
test eax, eax
jne 0x40e8c7
mov ebx, dword [ebp + 8]
add ebx, 0x4b
jmp 0x40e917
push str.VisibleText
push esi
call fcn.00488231
add esp, 8
test eax, eax
jne 0x40e8e1
mov ebx, dword [ebp + 8]
add ebx, 0x48
jmp 0x40e917
push str.VisibleNonText
push esi
call fcn.00488231
add esp, 8
test eax, eax
jne 0x40e8fb
mov ebx, dword [ebp + 8]
add ebx, 0x49
jmp 0x40e917
push str.NotifyNonText
push esi
call fcn.00488231
add esp, 8
test eax, eax
jne 0x40e9fd
mov ebx, dword [ebp + 8]
add ebx, 0x4a
test ebx, ebx
je 0x40e9fd
test edi, edi
je 0x40e9d1
mov eax, dword [ebp + 0x18]
mov esi, dword [eax + 4]
push esi
call fcn.0044f110
add esp, 4
dec eax
je 0x40e9d9
dec eax
mov eax, dword [esi + 8]
je 0x40e987
cmp eax, 6
je 0x40e9e9
cmp eax, 4
jne 0x40e966
mov eax, dword [esi]
cmp byte [eax + 0x17], 0
jne 0x40e95c
mov eax, dword [eax + 0xc]
test byte [eax + 0x15], 2
jne 0x40e9e9
xor ecx, ecx
mov eax, esi
call fcn.0044f3a0
xor ecx, ecx
cmp byte [eax], cl
setne cl
mov eax, ecx
test eax, eax
setne al
mov byte [ebx], al
movzx eax, al
jmp 0x40e7ee
dec eax
cmp eax, 5
ja case.0x40e98d.3
jmp dword [eax*4 + 0x40ea5c]
fild qword [esi]
jmp 0x40e9bd
fld qword [esi]
jmp 0x40e9bd
mov eax, dword [esi]
push 1
call fcn.00414e90
jmp 0x40e9bd
mov eax, dword [esi + 4]
test eax, eax
je case.0x40e98d.3
fild qword [eax]
jmp 0x40e9bd
mov edx, dword [esi]
push edx
call fcn.0048a0e0
add esp, 4
fldz
fucompp
fnstsw ax
test ah, 0x44
jp 0x40e9e9
xor eax, eax
test eax, eax
setne al
mov byte [ebx], al
movzx eax, byte [ebx]
jmp 0x40e7ee
push 1
mov ecx, esi
call fcn.0044f260
add esp, 4
or eax, edx
je case.0x40e98d.6
mov eax, 1
test eax, eax
setne al
mov byte [ebx], al
movzx eax, al
jmp 0x40e7ee
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret 0x18