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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 0x1c]
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test ecx, ecx
jne 0x40fe43
push 0x4cd2cc
push str.Invalid_usage.
mov ecx, 0x4f9a70
call fcn.0043bff0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebx]
mov eax, dword [edi + 8]
cmp eax, 5
ja case.0x40fe50.1
jmp dword [eax*4 + 0x4106d0]
mov ecx, dword [edi]
push 0
push 1
call fcn.00401530
mov ecx, dword [ebp + 0x1c]
mov edi, eax
jmp 0x40fe72
mov edi, dword [edi]
jmp 0x40fe72
mov edi, 0x4cd2cc
mov edx, dword [ebp + 0x14]
test dl, 2
je 0x410048
push str.Start
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x40febd
cmp dword [esi + 8], 1
lea ecx, [esi + 8]
je 0x41041b
cmp byte [esi + 0x45], al
jne 0x40fead
mov dword [esi + 0x18], eax
xor edx, edx
mov eax, dword [esi + 0x14]
mov word [eax], dx
xor edx, edx
call fcn.00440b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Wait
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x40ffca
cmp dword [ebp + 0x1c], 1
jle 0x40feff
mov ecx, dword [ebx + 4]
cmp dword [ecx + 8], 3
je 0x40feff
push eax
lea edx, [eax + 1]
call fcn.00461a60
mulsd xmm0, qword [0x4ee8d8]
add esp, 4
call fcn.004c5be1
mov edi, eax
jmp 0x40ff02
or edi, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esi + 8], 1
mov dword [esp + 0x10], eax
jne 0x40ff33
call ebx
sub eax, dword [esp + 0x10]
cmp eax, edi
jae 0x40ff33
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401890
cmp dword [esi + 8], 1
je 0x40ff14
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 0
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x4101e1.1
jmp dword [eax*4 + 0x4106e8]
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, 0x4e6ac0
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, 0x4cd2cc
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Stop
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x410018
add esi, 8
cmp dword [esi], 1
jne 0x41041b
mov al, byte [0x4f82e4]
push 0
push esi
push 0x41b
push dword [0x4f78ec]
mov byte [esi + 0x4e], al
mov dword [esi], 0
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 edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x4106c0
mov eax, dword [ebp + 0x1c]
dec eax
push eax
lea eax, [ebx + 4]
push eax
push ecx
mov ecx, esi
call fcn.00410770
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ebx, edx
and ebx, 1
lea eax, [ebx + 1]
cmp ecx, eax
jne 0x40fe26
test ebx, ebx
je 0x41014b
push str.Input
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x41034d
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 8]
cmp eax, 5
ja case.0x410084.1
jmp dword [eax*4 + 0x410704]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401530
mov ecx, eax
jmp 0x4100a3
mov ecx, dword [ecx]
jmp 0x4100a3
mov ecx, 0x4cd2cc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4100a6
sub ecx, edx
sar ecx, 1
cmp ecx, dword [esi + 0x1c]
jbe 0x4100d7
push 0x4cd2cc
push str.Out_of_memory.
mov ecx, 0x4f9a70
call fcn.0043bff0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 8]
cmp eax, 5
ja case.0x4100e2.1
jmp dword [eax*4 + 0x41071c]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401530
mov ecx, eax
jmp 0x410101
mov ecx, dword [ecx]
jmp 0x410101
mov ecx, 0x4cd2cc
mov edx, dword [esi + 0x14]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x410104
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 0
mov edx, dword [esi + 0x14]
mov edi, edx
lea ebx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x410127
sub edi, ebx
sar edi, 1
push edi
mov dword [esi + 0x18], edi
call fcn.00461dd0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test dl, 3
jne 0x41034d
push str.Input
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x410183
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
push dword [esi + 0x18]
mov edx, dword [esi + 0x14]
call fcn.00461dd0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.InProgress
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x4101bd
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 1
cmp dword [esi + 8], 1
mov dword [ecx + 4], 0
sete al
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.EndReason
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x4101fd
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x4101e1.1
jmp dword [eax*4 + 0x410734]
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 edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x410251
mov edx, dword [ebp + 0xc]
lea ecx, [esi + 8]
mov dword [edx + 8], eax
cmp dword [ecx], 4
jne 0x41023d
mov eax, dword [edx + 4]
push 0
push 0x100
push eax
mov dword [edx], eax
call fcn.004412f0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [edx], 0x4cd2cc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.EndMods
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x410309
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [eax + 8], 0
mov dword [eax], ecx
mov al, byte [esi + 0x56]
test al, 1
je 0x410289
mov dword [ecx], 0x5e003c
add ecx, 4
mov al, byte [esi + 0x56]
test al, 2
je 0x410299
mov dword [ecx], 0x5e003e
add ecx, 4
mov al, byte [esi + 0x56]
test al, 4
je 0x4102a9
mov dword [ecx], 0x21003c
add ecx, 4
mov al, byte [esi + 0x56]
test al, 8
je 0x4102b9
mov dword [ecx], 0x21003e
add ecx, 4
mov al, byte [esi + 0x56]
test al, 0x10
je 0x4102c9
mov dword [ecx], 0x2b003c
add ecx, 4
mov al, byte [esi + 0x56]
test al, 0x20
je 0x4102d9
mov dword [ecx], 0x2b003e
add ecx, 4
mov al, byte [esi + 0x56]
test al, 0x40
je 0x4102e9
mov dword [ecx], 0x23003c
add ecx, 4
mov al, byte [esi + 0x56]
test al, al
jns 0x4102f6
mov dword [ecx], 0x23003e
add ecx, 4
xor eax, eax
mov word [ecx], ax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Match
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x41034d
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
cmp dword [esi + 8], 3
jne case.0x4101e1.1
mov edx, dword [esi + 0x58]
cmp edx, dword [esi + 0x2c]
jae case.0x4101e1.1
mov eax, dword [esi + 0x28]
mov eax, dword [eax + edx*4]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 2
push 0x4e25e4
push edi
call fcn.004af905
add esp, 0xc
test eax, eax
jne 0x410452
add edi, 4
push 0x4cf604
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x410381
mov edi, 0x35c
jmp 0x4103ce
push str.KeyDown
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x41039a
mov edi, 0x360
jmp 0x4103ce
push str.KeyUp
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x4103b3
mov edi, 0x368
jmp 0x4103ce
push str.Char
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x4106c0
mov edi, 0x364
test ebx, ebx
je 0x4103ff
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebx + 4]
call fcn.00461ce0
mov dword [esp + 0x10], eax
test eax, eax
je 0x410429
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov ecx, dword [edi + esi]
test ecx, ecx
je 0x4103f8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x10]
mov dword [edi + esi], eax
mov ecx, dword [edi + esi]
test ecx, ecx
je 0x41041b
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + esi]
mov dword [eax + 8], 6
mov dword [eax], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebx + 4]
call fcn.00461930
test eax, eax
jne 0x4103eb
push 0x4cd2cc
push str.Invalid_value.
mov ecx, 0x4f9a70
call fcn.0043bff0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.MinSendLevel
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x41049e
test ebx, ebx
je 0x41047a
mov ebx, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [ebx + 4]
call fcn.004619e0
mov byte [esi + 0x44], al
jmp 0x41047d
mov al, byte [esi + 0x44]
mov ecx, dword [ebp + 0xc]
movzx eax, al
cdq
mov dword [ecx], eax
mov eax, 1
mov dword [ecx + 8], 1
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Timeout
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x41051b
test ebx, ebx
je 0x4104ea
mov ebx, dword [ebp + 0x18]
lea edx, [eax + 1]
push eax
mov ecx, dword [ebx + 4]
call fcn.00461a60
movsd xmm1, qword [0x4ee8d8]
lea ecx, [esi + 8]
mulsd xmm0, xmm1
add esp, 4
cmp dword [ecx], 1
cvttsd2si eax, xmm0
mov dword [esi + 0x3c], eax
jne 0x4104f2
test eax, eax
jle 0x4104f2
call fcn.00440d50
movsd xmm1, qword [0x4ee8d8]
movd xmm0, dword [esi + 0x3c]
cvtdq2pd xmm0, xmm0
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 2
divsd xmm0, xmm1
movsd qword [eax], xmm0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.BackspaceIsUndo
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x410534
mov eax, 0x46
jmp 0x4105b3
push str.CaseSensitive
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x41054d
mov eax, 0x47
jmp 0x4105b3
push str.FindAnywhere
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x410566
mov eax, 0x4c
jmp 0x4105b3
push str.VisibleText
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x41057f
mov eax, 0x49
jmp 0x4105b3
push str.VisibleNonText
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x410598
mov eax, 0x4a
jmp 0x4105b3
push str.NotifyNonText
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x4106c0
mov eax, 0x4b
lea edi, [esi + eax]
test edi, edi
je 0x4106c0
test ebx, ebx
je 0x41069d
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebx + 4]
mov ecx, esi
call fcn.004618c0
sub eax, 1
je 0x410684
sub eax, 1
mov eax, dword [esi + 8]
je 0x41061f
cmp eax, 6
je 0x410694
cmp eax, 4
jne 0x410607
mov eax, dword [esi]
cmp byte [eax + 0x17], 0
jne 0x4105fd
mov eax, dword [eax + 0xc]
test byte [eax + 0x15], 2
jne 0x410694
xor edx, edx
mov ecx, esi
call fcn.00461b20
xor edx, edx
cmp word [eax], dx
setne dl
mov byte [edi], dl
jmp 0x41069f
dec eax
cmp eax, 5
ja case.0x410625.3
jmp dword [eax*4 + 0x410750]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
call fcn.004c5d50
jmp 0x410670
movsd xmm0, qword [esi]
jmp 0x410670
mov ecx, dword [esi]
push 1
call fcn.00420d50
jmp 0x410670
mov ecx, dword [esi + 4]
test ecx, ecx
je case.0x410625.3
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004c5d50
jmp 0x410670
push dword [esi]
call fcn.004b73c4
fstp qword [esp + 0x14]
movsd xmm0, qword [esp + 0x14]
add esp, 4
ucomisd xmm0, qword [0x4ee860]
lahf
test ah, 0x44
jp 0x410694
xor edx, edx
mov byte [edi], dl
jmp 0x41069f
mov edx, 1
mov ecx, esi
call fcn.004619e0
or eax, edx
je case.0x410625.6
mov edx, 1
mov byte [edi], dl
jmp 0x41069f
mov dl, byte [edi]
mov ecx, dword [ebp + 0xc]
movzx eax, dl
cdq
mov dword [ecx], eax
mov eax, 1
mov dword [ecx + 8], 1
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret 0x18