Function at 0x413780
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 0x4137b0
push 0x4af9bc
push str.Invalid_usage.
mov ecx, 0x4d96d0
call fcn.0043a180
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.0x4137bd.1
jmp dword [ecx*4 + 0x413f18]
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x4137d1
mov esi, dword [eax + 0xc]
jmp 0x4137d3
mov esi, eax
test byte [esi + 0x15], 8
je 0x4137e0
mov eax, esi
call fcn.004011c0
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4137fd
test byte [esi + 0x15], 4
je 0x4137f8
push esi
mov ecx, 0x4d96d0
call fcn.0043a810
mov esi, dword [esi + 8]
jmp 0x41381a
cmp al, 2
jne 0x41380a
call fcn.00401060
mov esi, eax
jmp 0x41381a
mov esi, 0x4d9624
jmp 0x41381a
mov esi, dword [eax]
jmp 0x41381a
mov esi, 0x4af9bc
mov eax, dword [ebp + 0x14]
test al, 2
je 0x413a12
push str.Start
push esi
call fcn.00498fc9
add esp, 8
test eax, eax
jne 0x413866
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 1
lea eax, [ecx + 8]
je 0x413988
mov dword [ecx + 0x18], 0
mov ecx, dword [ecx + 0x14]
xor edx, edx
xor edi, edi
mov word [ecx], dx
call fcn.0043e900
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Wait
push esi
call fcn.00498fc9
add esp, 8
test eax, eax
jne 0x413996
cmp edi, 1
jle 0x4138c4
mov eax, dword [ebx + 4]
cmp dword [eax + 8], 3
je 0x4138c4
push 0
push 1
call fcn.0045aa10
fmul qword [0x4ceca0]
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 eax, dword [esp + 0x10]
fldcw word [esp + 0xc]
mov dword [esp + 0xc], eax
jmp 0x4138cc
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 0x4138ff
nop
call edi
sub eax, ebx
cmp eax, dword [esp + 0xc]
jae 0x4138ff
push 1
push 0x8000012f
call fcn.004014c0
add esp, 8
cmp dword [esi + 8], 1
je 0x4138e0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 0
mov esi, dword [esi + 8]
cmp esi, 6
ja case.0x413ac0.1
jmp dword [esi*4 + 0x413f30]
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, 0x4b6138
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, 0x4af9bc
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.00498fc9
add esp, 8
test eax, eax
jne 0x4139e5
mov eax, dword [ebp + 8]
add eax, 8
cmp dword [eax], 1
jne 0x4139d7
mov edx, dword [0x4d86a0]
mov cl, byte [0x4d869d]
push 0
push eax
push 0x41b
push edx
mov byte [eax + 0x4c], cl
mov dword [eax], 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 esi
call fcn.00498fc9
add esp, 8
test eax, eax
jne 0x413f07
mov ecx, dword [ebp + 8]
dec edi
push edi
lea eax, [ebx + 4]
push ecx
call fcn.00413f70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ebx, eax
and ebx, 1
mov edx, 0
setne dl
inc edx
cmp edi, edx
jne 0x413793
test al, 3
jne 0x413c74
push str.Input
push esi
call fcn.00498fc9
add esp, 8
test eax, eax
jne 0x413a5f
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.0045ad20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.InProgress
push esi
call fcn.00498fc9
add esp, 8
test eax, eax
jne 0x413a99
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.00498fc9
add esp, 8
test eax, eax
jne 0x413adc
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.0x413ac0.1
jmp dword [eax*4 + 0x413f4c]
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.00498fc9
add esp, 8
test eax, eax
jne 0x413b33
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
add eax, 8
cmp dword [eax], 4
jne 0x413b1f
mov edx, dword [ecx + 4]
push 0
push pe_nt_image_headers32
push edx
mov dword [ecx], edx
call fcn.0043f130
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [ecx], 0x4af9bc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.EndMods
push esi
call fcn.00498fc9
add esp, 8
test eax, eax
jne 0x413c2d
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 0x413b71
mov edx, 0x3c
mov word [eax], dx
mov edx, 0x5e
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 2
je 0x413b8b
mov edx, 0x3e
mov word [eax], dx
mov edx, 0x5e
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 4
je 0x413ba5
mov edx, 0x3c
mov word [eax], dx
mov edx, 0x21
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 8
je 0x413bbf
mov edx, 0x3e
mov word [eax], dx
mov edx, 0x21
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 0x10
je 0x413bd9
mov edx, 0x3c
mov word [eax], dx
mov edx, 0x2b
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 0x20
je 0x413bf3
mov edx, 0x3e
mov word [eax], dx
mov edx, 0x2b
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 0x40
je 0x413c0d
mov edx, 0x3c
mov word [eax], dx
mov edx, 0x23
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 0x80
je 0x413c1c
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.00498fc9
add esp, 8
test eax, eax
jne 0x413c74
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 3
jne 0x413b1f
mov edx, dword [eax + 0x58]
cmp edx, dword [eax + 0x2c]
jae 0x413b1f
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 0x4b3564
push esi
call fcn.0049974a
add esp, 0xc
test eax, eax
jne 0x413d89
add esi, 4
push 0x4b10e8
push esi
call fcn.00498fc9
add esp, 8
test eax, eax
jne 0x413cac
mov esi, dword [ebp + 8]
add esi, 0x35c
jmp 0x413d05
push str.KeyDown
push esi
call fcn.00498fc9
add esp, 8
test eax, eax
jne 0x413cc9
mov esi, dword [ebp + 8]
add esi, 0x360
jmp 0x413d05
push str.KeyUp
push esi
call fcn.00498fc9
add esp, 8
test eax, eax
jne 0x413ce6
mov esi, dword [ebp + 8]
add esi, 0x368
jmp 0x413d05
push str.Char
push esi
call fcn.00498fc9
add esp, 8
test eax, eax
jne 0x413f07
mov esi, dword [ebp + 8]
add esi, 0x364
test ebx, ebx
je 0x413d32
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebx + 4]
call fcn.0045ac20
mov edi, eax
test edi, edi
je 0x413d60
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov eax, dword [esi]
test eax, eax
je 0x413d30
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 0x413dc8
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.0045a8a0
test eax, eax
jne 0x413d22
push 0x4af9bc
push str.Invalid_value.
mov ecx, 0x4d96d0
call fcn.0043a180
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.MinSendLevel
push esi
call fcn.00498fc9
add esp, 8
test eax, eax
jne 0x413dd6
mov esi, dword [ebp + 8]
test ebx, ebx
je 0x413db4
push eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
call fcn.0045a980
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.00498fc9
add esp, 8
test eax, eax
jne 0x413e43
mov esi, dword [ebp + 8]
test ebx, ebx
je 0x413e20
mov ecx, dword [ebp + 0x18]
push eax
mov eax, dword [ecx + 4]
push 1
call fcn.0045aa10
fmul qword [0x4ceca0]
add esp, 8
call fcn.004a9f60
cmp dword [esi + 8], 1
mov dword [esi + 0x3c], eax
jne 0x413e20
test eax, eax
jle 0x413e20
lea eax, [esi + 8]
call fcn.0043eb50
fild dword [esi + 0x3c]
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 2
fdiv qword [0x4ceca0]
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.00498fc9
add esp, 8
test eax, eax
jne 0x413e60
mov edi, dword [ebp + 8]
add edi, 0x45
jmp 0x413ee0
push str.CaseSensitive
push esi
call fcn.00498fc9
add esp, 8
test eax, eax
jne 0x413e7a
mov edi, dword [ebp + 8]
add edi, 0x46
jmp 0x413ee0
push str.FindAnywhere
push esi
call fcn.00498fc9
add esp, 8
test eax, eax
jne 0x413e94
mov edi, dword [ebp + 8]
add edi, 0x4b
jmp 0x413ee0
push str.VisibleText
push esi
call fcn.00498fc9
add esp, 8
test eax, eax
jne 0x413eae
mov edi, dword [ebp + 8]
add edi, 0x48
jmp 0x413ee0
push str.VisibleNonText
push esi
call fcn.00498fc9
add esp, 8
test eax, eax
jne 0x413ec8
mov edi, dword [ebp + 8]
add edi, 0x49
jmp 0x413ee0
push str.NotifyNonText
push esi
call fcn.00498fc9
add esp, 8
test eax, eax
jne 0x413f07
mov edi, dword [ebp + 8]
add edi, 0x4a
test edi, edi
je 0x413f07
test ebx, ebx
je 0x413eff
mov edx, dword [ebp + 0x18]
mov esi, dword [edx + 4]
mov eax, 0x41
call fcn.0045a720
test eax, eax
setne al
mov byte [edi], al
movzx eax, byte [edi]
jmp 0x413db8
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret 0x18