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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov edx, dword [ebp + 0x1c]
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test edx, edx
jne 0x417493
push 0x4b9c40
push str.Invalid_usage.
mov ecx, 0x4e7b70
call fcn.00447e20
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.0x4174a0.1
jmp dword [eax*4 + 0x417d04]
mov ecx, dword [edi]
push 0
push 1
call fcn.00401640
mov edx, dword [ebp + 0x1c]
mov edi, eax
jmp 0x4174c2
mov edi, dword [edi]
jmp 0x4174c2
mov edi, 0x4b9c40
mov eax, dword [ebp + 0x14]
test al, 2
je 0x41769b
push str.Start
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x41750d
cmp dword [esi + 8], 1
lea ecx, [esi + 8]
je 0x417a5e
cmp byte [esi + 0x45], al
jne 0x4174fd
mov dword [esi + 0x18], eax
xor edx, edx
mov eax, dword [esi + 0x14]
mov word [eax], dx
xor edx, edx
call fcn.0044c6d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Wait
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x41761b
cmp dword [ebp + 0x1c], 1
jle 0x417550
mov ecx, dword [ebx + 4]
cmp dword [ecx + 8], 3
je 0x417550
push eax
lea edx, [eax + 1]
call fcn.0046d4d0
mulsd xmm0, qword [0x4dcff0]
add esp, 4
call fcn.004b7d81
mov edi, eax
jmp 0x417553
or edi, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esi + 8], 1
mov dword [esp + 0x10], eax
jne 0x417584
call ebx
sub eax, dword [esp + 0x10]
cmp eax, edi
jae 0x417584
mov edx, 1
mov ecx, 0x8000012f
call fcn.004019f0
cmp dword [esi + 8], 1
je 0x417565
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 0
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x417835.1
jmp dword [eax*4 + 0x417d1c]
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, 0x4d2d8c
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, 0x4b9c40
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 dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x41766a
add esi, 8
cmp dword [esi], 1
jne 0x417a5e
mov al, byte [0x4e64d2]
push 0
push esi
push 0x41b
push dword [0x4e59e8]
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 dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x417cf3
mov eax, dword [ebp + 0x1c]
dec eax
push eax
lea eax, [ebx + 4]
push eax
push ecx
mov ecx, esi
call fcn.00417da0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, eax
and ecx, 1
mov dword [esp + 0x10], ecx
lea eax, [ecx + 1]
cmp edx, eax
jne 0x417476
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test ecx, ecx
je 0x4177a7
push str.Input
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417998
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 8]
cmp eax, 5
ja case.0x4176de.1
jmp dword [eax*4 + 0x417d38]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401640
mov ecx, eax
jmp 0x4176fd
mov ecx, dword [ecx]
jmp 0x4176fd
mov ecx, 0x4b9c40
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417700
sub ecx, edx
sar ecx, 1
cmp ecx, dword [esi + 0x1c]
jbe 0x417731
push 0x4b9c40
push 0x4cdb90
mov ecx, 0x4e7b70
call fcn.00447e20
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.0x41773c.1
jmp dword [eax*4 + 0x417d50]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401640
mov ecx, eax
jmp 0x41775b
mov ecx, dword [ecx]
jmp 0x41775b
mov ecx, 0x4b9c40
mov edx, dword [esi + 0x14]
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x417760
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 0x417783
sub edi, ebx
sar edi, 1
push edi
mov dword [esi + 0x18], edi
call fcn.0046d800
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test byte [ebp + 0x14], 3
jne 0x417998
push str.Input
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4177dd
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
push dword [esi + 0x18]
mov edx, dword [esi + 0x14]
call fcn.0046d800
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.InProgress
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417814
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 ebx
add esp, 8
test eax, eax
jne 0x417851
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x417835.1
jmp dword [eax*4 + 0x417d68]
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 ebx
add esp, 8
test eax, eax
jne 0x4178a2
mov edx, dword [ebp + 0xc]
lea ecx, [esi + 8]
mov dword [edx + 8], eax
cmp dword [ecx], 4
jne 0x41788e
mov eax, dword [edx + 4]
push 0
push 0x100
push eax
mov dword [edx], eax
call fcn.0044ce60
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [edx], 0x4b9c40
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.EndMods
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417957
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 0x4178d7
mov dword [ecx], str._g___r
add ecx, 4
mov al, byte [esi + 0x56]
test al, 2
je 0x4178e7
mov dword [ecx], 0x5e003e
add ecx, 4
mov al, byte [esi + 0x56]
test al, 4
je 0x4178f7
mov dword [ecx], 0x21003c
add ecx, 4
mov al, byte [esi + 0x56]
test al, 8
je 0x417907
mov dword [ecx], 0x21003e
add ecx, 4
mov al, byte [esi + 0x56]
test al, 0x10
je 0x417917
mov dword [ecx], 0x2b003c
add ecx, 4
mov al, byte [esi + 0x56]
test al, 0x20
je 0x417927
mov dword [ecx], 0x2b003e
add ecx, 4
mov al, byte [esi + 0x56]
test al, 0x40
je 0x417937
mov dword [ecx], 0x23003c
add ecx, 4
mov al, byte [esi + 0x56]
test al, al
jns 0x417944
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 ebx
add esp, 8
test eax, eax
jne 0x417998
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
cmp dword [esi + 8], 3
jne case.0x417835.1
mov edx, dword [esi + 0x58]
cmp edx, dword [esi + 0x2c]
jae case.0x417835.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 0x4d00f4
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x417a95
add edi, 4
push 0x4cf7ac
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4179ca
mov edi, 0x35c
jmp 0x417a0e
push str.KeyDown
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4179e0
mov edi, 0x360
jmp 0x417a0e
push str.KeyUp
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4179f6
mov edi, 0x368
jmp 0x417a0e
push str.Char
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417cf3
mov edi, 0x364
cmp dword [esp + 0x10], 0
je 0x417a42
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebx + 4]
call fcn.0046d750
mov dword [esp + 0x10], eax
test eax, eax
je 0x417a6c
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov ecx, dword [edi + esi]
test ecx, ecx
je 0x417a3b
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 0x417a5e
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.0046d390
test eax, eax
jne 0x417a2e
push 0x4b9c40
push str.Invalid_value.
mov ecx, 0x4e7b70
call fcn.00447e20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.MinSendLevel
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417ae0
cmp dword [esp + 0x10], eax
je 0x417abc
mov ebx, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [ebx + 4]
call fcn.0046d440
mov byte [esi + 0x44], al
jmp 0x417abf
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 ebx
add esp, 8
test eax, eax
jne 0x417b5c
cmp dword [esp + 0x10], eax
je 0x417b2b
mov ebx, dword [ebp + 0x18]
lea edx, [eax + 1]
push eax
mov ecx, dword [ebx + 4]
call fcn.0046d4d0
movsd xmm1, qword [0x4dcff0]
lea ecx, [esi + 8]
mulsd xmm0, xmm1
add esp, 4
cmp dword [ecx], 1
cvttsd2si eax, xmm0
mov dword [esi + 0x3c], eax
jne 0x417b33
test eax, eax
jle 0x417b33
call fcn.0044c8b0
movsd xmm1, qword [0x4dcff0]
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 ebx
add esp, 8
test eax, eax
jne 0x417b72
mov eax, 0x46
jmp 0x417be2
push str.CaseSensitive
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417b88
mov eax, 0x47
jmp 0x417be2
push str.FindAnywhere
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417b9e
mov eax, 0x4c
jmp 0x417be2
push str.VisibleText
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417bb4
mov eax, 0x49
jmp 0x417be2
push str.VisibleNonText
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417bca
mov eax, 0x4a
jmp 0x417be2
push str.NotifyNonText
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417cf3
mov eax, 0x4b
lea edi, [esi + eax]
test edi, edi
je 0x417cf3
cmp dword [esp + 0x10], 0
je 0x417cd0
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebx + 4]
mov ecx, esi
call fcn.0046d330
sub eax, 1
je 0x417cb7
sub eax, 1
mov eax, dword [esi + 8]
je 0x417c51
cmp eax, 6
je 0x417cc7
cmp eax, 4
jne 0x417c39
mov eax, dword [esi]
cmp byte [eax + 0x17], 0
jne 0x417c2f
mov eax, dword [eax + 0xc]
test byte [eax + 0x15], 2
jne 0x417cc7
xor edx, edx
mov ecx, esi
call fcn.0046d590
xor edx, edx
cmp word [eax], dx
setne dl
mov byte [edi], dl
jmp 0x417cd2
dec eax
cmp eax, 5
ja case.0x417c57.3
jmp dword [eax*4 + 0x417d84]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
call fcn.004b7ef0
jmp 0x417ca3
movsd xmm0, qword [esi]
jmp 0x417ca3
mov ecx, dword [esi]
push 1
call fcn.004279c0
jmp 0x417ca3
mov ecx, dword [esi + 4]
test ecx, ecx
je case.0x417c57.3
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004b7ef0
jmp 0x417ca3
push dword [esi]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtof]
fstp qword [esp + 0x14]
movsd xmm0, qword [esp + 0x14]
add esp, 4
ucomisd xmm0, qword [0x4dcf78]
lahf
test ah, 0x44
jp 0x417cc7
xor edx, edx
mov byte [edi], dl
jmp 0x417cd2
mov edx, 1
mov ecx, esi
call fcn.0046d440
or eax, edx
je case.0x417c57.6
mov edx, 1
mov byte [edi], dl
jmp 0x417cd2
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