Function at 0x417310
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 0x417343
push 0x4da3cc
push str.Invalid_usage.
mov ecx, 0x509c28
call fcn.00447960
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.0x417350.1
jmp dword [eax*4 + 0x417bd0]
mov ecx, dword [edi]
push 0
push 1
call fcn.00401640
mov ecx, dword [ebp + 0x1c]
mov edi, eax
jmp 0x417372
mov edi, dword [edi]
jmp 0x417372
mov edi, 0x4da3cc
mov edx, dword [ebp + 0x14]
test dl, 2
je 0x417548
push str.Start
push edi
call fcn.004ba0a7
add esp, 8
test eax, eax
jne 0x4173bd
cmp dword [esi + 8], 1
lea ecx, [esi + 8]
je 0x41791b
cmp byte [esi + 0x45], al
jne 0x4173ad
mov dword [esi + 0x18], eax
xor edx, edx
mov eax, dword [esi + 0x14]
mov word [eax], dx
xor edx, edx
call fcn.0044c260
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Wait
push edi
call fcn.004ba0a7
add esp, 8
test eax, eax
jne 0x4174ca
cmp dword [ebp + 0x1c], 1
jle 0x4173ff
mov ecx, dword [ebx + 4]
cmp dword [ecx + 8], 3
je 0x4173ff
push eax
lea edx, [eax + 1]
call fcn.0046cff0
mulsd xmm0, qword [0x4fd560]
add esp, 4
call fcn.004d2991
mov edi, eax
jmp 0x417402
or edi, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esi + 8], 1
mov dword [esp + 0x10], eax
jne 0x417433
call ebx
sub eax, dword [esp + 0x10]
cmp eax, edi
jae 0x417433
mov edx, 1
mov ecx, 0x8000012f
call fcn.004019f0
cmp dword [esi + 8], 1
je 0x417414
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 0
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x4176e1.1
jmp dword [eax*4 + 0x417be8]
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, 0x4f3464
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, 0x4da3cc
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.004ba0a7
add esp, 8
test eax, eax
jne 0x417518
add esi, 8
cmp dword [esi], 1
jne 0x41791b
mov al, byte [0x50848e]
push 0
push esi
push 0x41b
push dword [0x507aa8]
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.004ba0a7
add esp, 8
test eax, eax
jne 0x417bc0
mov eax, dword [ebp + 0x1c]
dec eax
push eax
lea eax, [ebx + 4]
push eax
push ecx
mov ecx, esi
call fcn.00417c70
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 0x417326
test ebx, ebx
je 0x41764b
push str.Input
push edi
call fcn.004ba0a7
add esp, 8
test eax, eax
jne 0x41784d
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 8]
cmp eax, 5
ja case.0x417584.1
jmp dword [eax*4 + 0x417c04]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401640
mov ecx, eax
jmp 0x4175a3
mov ecx, dword [ecx]
jmp 0x4175a3
mov ecx, 0x4da3cc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4175a6
sub ecx, edx
sar ecx, 1
cmp ecx, dword [esi + 0x1c]
jbe 0x4175d7
push 0x4da3cc
push 0x4ee268
mov ecx, 0x509c28
call fcn.00447960
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.0x4175e2.1
jmp dword [eax*4 + 0x417c1c]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401640
mov ecx, eax
jmp 0x417601
mov ecx, dword [ecx]
jmp 0x417601
mov ecx, 0x4da3cc
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 0x417604
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 0x417627
sub edi, ebx
sar edi, 1
push edi
mov dword [esi + 0x18], edi
call fcn.0046d320
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test dl, 3
jne 0x41784d
push str.Input
push edi
call fcn.004ba0a7
add esp, 8
test eax, eax
jne 0x417683
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
push dword [esi + 0x18]
mov edx, dword [esi + 0x14]
call fcn.0046d320
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.InProgress
push edi
call fcn.004ba0a7
add esp, 8
test eax, eax
jne 0x4176bd
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.004ba0a7
add esp, 8
test eax, eax
jne 0x4176fd
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x4176e1.1
jmp dword [eax*4 + 0x417c34]
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.004ba0a7
add esp, 8
test eax, eax
jne 0x417751
mov edx, dword [ebp + 0xc]
lea ecx, [esi + 8]
mov dword [edx + 8], eax
cmp dword [ecx], 4
jne 0x41773d
mov eax, dword [edx + 4]
push 0
push 0x100
push eax
mov dword [edx], eax
call fcn.0044c9d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [edx], 0x4da3cc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.EndMods
push edi
call fcn.004ba0a7
add esp, 8
test eax, eax
jne 0x417809
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 0x417789
mov dword [ecx], 0x5e003c
add ecx, 4
mov al, byte [esi + 0x56]
test al, 2
je 0x417799
mov dword [ecx], 0x5e003e
add ecx, 4
mov al, byte [esi + 0x56]
test al, 4
je 0x4177a9
mov dword [ecx], 0x21003c
add ecx, 4
mov al, byte [esi + 0x56]
test al, 8
je 0x4177b9
mov dword [ecx], 0x21003e
add ecx, 4
mov al, byte [esi + 0x56]
test al, 0x10
je 0x4177c9
mov dword [ecx], 0x2b003c
add ecx, 4
mov al, byte [esi + 0x56]
test al, 0x20
je 0x4177d9
mov dword [ecx], 0x2b003e
add ecx, 4
mov al, byte [esi + 0x56]
test al, 0x40
je 0x4177e9
mov dword [ecx], 0x23003c
add ecx, 4
mov al, byte [esi + 0x56]
test al, al
jns 0x4177f6
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.004ba0a7
add esp, 8
test eax, eax
jne 0x41784d
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
cmp dword [esi + 8], 3
jne case.0x4176e1.1
mov edx, dword [esi + 0x58]
cmp edx, dword [esi + 0x2c]
jae case.0x4176e1.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 0x4f07cc
push edi
call fcn.004bb7bb
add esp, 0xc
test eax, eax
jne 0x417952
add edi, 4
push 0x4efe84
push edi
call fcn.004ba0a7
add esp, 8
test eax, eax
jne 0x417881
mov edi, 0x35c
jmp 0x4178ce
push str.KeyDown
push edi
call fcn.004ba0a7
add esp, 8
test eax, eax
jne 0x41789a
mov edi, 0x360
jmp 0x4178ce
push str.KeyUp
push edi
call fcn.004ba0a7
add esp, 8
test eax, eax
jne 0x4178b3
mov edi, 0x368
jmp 0x4178ce
push str.Char
push edi
call fcn.004ba0a7
add esp, 8
test eax, eax
jne 0x417bc0
mov edi, 0x364
test ebx, ebx
je 0x4178ff
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebx + 4]
call fcn.0046d270
mov dword [esp + 0x10], eax
test eax, eax
je 0x417929
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov ecx, dword [edi + esi]
test ecx, ecx
je 0x4178f8
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 0x41791b
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.0046cec0
test eax, eax
jne 0x4178eb
push 0x4da3cc
push str.Invalid_value.
mov ecx, 0x509c28
call fcn.00447960
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.MinSendLevel
push edi
call fcn.004ba0a7
add esp, 8
test eax, eax
jne 0x41799e
test ebx, ebx
je 0x41797a
mov ebx, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [ebx + 4]
call fcn.0046cf70
mov byte [esi + 0x44], al
jmp 0x41797d
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.004ba0a7
add esp, 8
test eax, eax
jne 0x417a1b
test ebx, ebx
je 0x4179ea
mov ebx, dword [ebp + 0x18]
lea edx, [eax + 1]
push eax
mov ecx, dword [ebx + 4]
call fcn.0046cff0
movsd xmm1, qword [0x4fd560]
lea ecx, [esi + 8]
mulsd xmm0, xmm1
add esp, 4
cmp dword [ecx], 1
cvttsd2si eax, xmm0
mov dword [esi + 0x3c], eax
jne 0x4179f2
test eax, eax
jle 0x4179f2
call fcn.0044c440
movsd xmm1, qword [0x4fd560]
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.004ba0a7
add esp, 8
test eax, eax
jne 0x417a34
mov eax, 0x46
jmp 0x417ab3
push str.CaseSensitive
push edi
call fcn.004ba0a7
add esp, 8
test eax, eax
jne 0x417a4d
mov eax, 0x47
jmp 0x417ab3
push str.FindAnywhere
push edi
call fcn.004ba0a7
add esp, 8
test eax, eax
jne 0x417a66
mov eax, 0x4c
jmp 0x417ab3
push str.VisibleText
push edi
call fcn.004ba0a7
add esp, 8
test eax, eax
jne 0x417a7f
mov eax, 0x49
jmp 0x417ab3
push str.VisibleNonText
push edi
call fcn.004ba0a7
add esp, 8
test eax, eax
jne 0x417a98
mov eax, 0x4a
jmp 0x417ab3
push str.NotifyNonText
push edi
call fcn.004ba0a7
add esp, 8
test eax, eax
jne 0x417bc0
mov eax, 0x4b
lea edi, [esi + eax]
test edi, edi
je 0x417bc0
test ebx, ebx
je 0x417b9d
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebx + 4]
mov ecx, esi
call fcn.0046ce60
sub eax, 1
je 0x417b84
sub eax, 1
mov eax, dword [esi + 8]
je 0x417b1f
cmp eax, 6
je 0x417b94
cmp eax, 4
jne 0x417b07
mov eax, dword [esi]
cmp byte [eax + 0x17], 0
jne 0x417afd
mov eax, dword [eax + 0xc]
test byte [eax + 0x15], 2
jne 0x417b94
xor edx, edx
mov ecx, esi
call fcn.0046d0b0
xor edx, edx
cmp word [eax], dx
setne dl
mov byte [edi], dl
jmp 0x417b9f
dec eax
cmp eax, 5
ja case.0x417b25.3
jmp dword [eax*4 + 0x417c50]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
call fcn.004d2b00
jmp 0x417b70
movsd xmm0, qword [esi]
jmp 0x417b70
mov ecx, dword [esi]
push 1
call fcn.00427810
jmp 0x417b70
mov ecx, dword [esi + 4]
test ecx, ecx
je case.0x417b25.3
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004d2b00
jmp 0x417b70
push dword [esi]
call fcn.004c3105
fstp qword [esp + 0x14]
movsd xmm0, qword [esp + 0x14]
add esp, 4
ucomisd xmm0, qword [0x4fd4e8]
lahf
test ah, 0x44
jp 0x417b94
xor edx, edx
mov byte [edi], dl
jmp 0x417b9f
mov edx, 1
mov ecx, esi
call fcn.0046cf70
or eax, edx
je case.0x417b25.6
mov edx, 1
mov byte [edi], dl
jmp 0x417b9f
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