Function at 0x417960
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 0x417993
push 0x4c3c29
push str.Invalid_usage.
mov ecx, 0x4dba98
call fcn.0044da60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
mov edi, dword [eax]
mov eax, dword [edi + 8]
cmp eax, 5
ja case.0x4179a0.1
jmp dword [eax*4 + 0x418438]
mov ecx, dword [edi]
push 0
push 1
call fcn.00401640
mov edx, dword [ebp + 0x1c]
mov edi, eax
jmp 0x4179c2
mov edi, dword [edi]
jmp 0x4179c2
mov edi, 0x4c3c29
mov eax, dword [ebp + 0x14]
test al, 2
je 0x417c31
mov ebx, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
push str.Start
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417a0d
cmp dword [esi + 8], 1
lea ecx, [esi + 8]
je 0x4180c7
cmp byte [esi + 0x45], al
jne 0x4179fd
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
mov byte [eax], 0
xor edx, edx
call fcn.00452ae0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Wait
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417bb6
cmp dword [ebp + 0x1c], 1
jle 0x417ae8
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 8]
cmp eax, 3
je 0x417ae8
dec eax
cmp eax, 5
ja case.0x417a46.3
jmp dword [eax*4 + 0x418450]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004c2040
mulsd xmm0, qword [0x4d0a70]
call fcn.004c1eb0
mov edi, eax
jmp 0x417aeb
movsd xmm0, qword [ecx]
mulsd xmm0, qword [0x4d0a70]
call fcn.004c1eb0
mov edi, eax
jmp 0x417aeb
mov ecx, dword [ecx]
push 0
call fcn.004290d0
mulsd xmm0, qword [0x4d0a70]
call fcn.004c1eb0
mov edi, eax
jmp 0x417aeb
mov eax, dword [ecx + 4]
test eax, eax
je case.0x417a46.3
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.004c2040
mulsd xmm0, qword [0x4d0a70]
call fcn.004c1eb0
mov edi, eax
jmp 0x417aeb
xorps xmm0, xmm0
mulsd xmm0, qword [0x4d0a70]
call fcn.004c1eb0
mov edi, eax
jmp 0x417aeb
mov ecx, dword [ecx]
call fcn.00428e40
mulsd xmm0, qword [0x4d0a70]
call fcn.004c1eb0
mov edi, eax
jmp 0x417aeb
or edi, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esi + 8], 1
mov dword [esp + 0x10], eax
jne 0x417b1f
nop dword [eax]
call ebx
sub eax, dword [esp + 0x10]
cmp eax, edi
jae 0x417b1f
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401870
cmp dword [esi + 8], 1
je 0x417b00
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 0
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x417e74.1
jmp dword [eax*4 + 0x418468]
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, 0x4caeb4
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, 0x4c3c29
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 ebx
add esp, 8
test eax, eax
jne 0x417c01
add esi, 8
cmp dword [esi], 1
jne 0x4180c7
mov al, byte [0x4da2e6]
push 0
push esi
push 0x41b
push dword [0x4d9978]
mov byte [esi + 0x4d], al
mov dword [esi], 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 edi
call ebx
add esp, 8
test eax, eax
jne 0x41842a
mov eax, dword [ebp + 0x1c]
dec eax
push eax
mov eax, dword [ebp + 0x18]
add eax, 4
push eax
push ecx
mov ecx, esi
call fcn.00418500
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 0x417976
mov ebx, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test ecx, ecx
je 0x417d97
push str.Input
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417fcd
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 8]
cmp eax, 5
ja case.0x417c74.1
jmp dword [eax*4 + 0x418484]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401640
mov edx, dword [ebp + 0x18]
mov ecx, eax
jmp 0x417c96
mov ecx, dword [ecx]
jmp 0x417c96
mov ecx, 0x4c3c29
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417ca0
sub ecx, edi
cmp ecx, dword [esi + 0x1c]
jbe 0x417ccb
push 0x4c3c29
push str.Out_of_memory.
mov ecx, 0x4dba98
call fcn.0044da60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 8]
cmp eax, 5
ja case.0x417cd6.1
jmp dword [eax*4 + 0x41849c]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401640
mov ecx, eax
jmp 0x417cf5
mov ecx, dword [ecx]
jmp 0x417cf5
mov ecx, 0x4c3c29
mov edx, dword [esi + 0x14]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x417cf8
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 8], 0
mov ecx, dword [esi + 0x14]
mov edi, ecx
mov dword [esp + 0x10], ecx
lea edx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x417d20
sub edi, edx
mov dword [esi + 0x18], edi
cmp edi, 0xffffffff
jne 0x417d3f
mov edi, ecx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x417d36
sub edi, edx
cmp edi, 0xff
ja 0x417d4c
mov eax, dword [ebx + 4]
jmp 0x417d72
lea eax, [edi + 1]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x417d6b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [esp + 0x10]
mov dword [ebx + 4], edi
mov dword [ebx], eax
test ecx, ecx
je 0x417d85
push edi
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx]
add esp, 0xc
mov byte [eax + edi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test byte [ebp + 0x14], 3
jne 0x417fcd
push str.Input
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417e1c
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov edi, dword [esi + 0x18]
mov esi, dword [esi + 0x14]
cmp edi, 0xffffffff
jne 0x417dcf
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x417dc6
sub edi, ecx
cmp edi, 0xff
ja 0x417ddc
mov eax, dword [ebx + 4]
jmp 0x417df7
lea eax, [edi + 1]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebx + 0xc], eax
test eax, eax
je 0x417d60
mov dword [ebx + 4], edi
mov dword [ebx], eax
test esi, esi
je 0x417d85
push edi
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx]
add esp, 0xc
mov byte [eax + edi], 0
mov eax, 1
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 0x417e53
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 0x417e90
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x417e74.1
jmp dword [eax*4 + 0x4184b4]
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 0x417ee1
mov edx, dword [ebp + 0xc]
lea ecx, [esi + 8]
mov dword [edx + 8], eax
cmp dword [ecx], 4
jne 0x417ecd
mov eax, dword [edx + 4]
push 0
push 0x100
push eax
mov dword [edx], eax
call fcn.00453220
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [edx], 0x4c3c29
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 0x417f8c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [eax + 8], 0
mov dword [eax], ecx
mov al, byte [esi + 0x55]
test al, 1
je 0x417f15
mov word [ecx], 0x5e3c
add ecx, 2
mov al, byte [esi + 0x55]
test al, 2
je 0x417f24
mov word [ecx], 0x5e3e
add ecx, 2
mov al, byte [esi + 0x55]
test al, 4
je 0x417f33
mov word [ecx], 0x213c
add ecx, 2
mov al, byte [esi + 0x55]
test al, 8
je 0x417f42
mov word [ecx], 0x213e
add ecx, 2
mov al, byte [esi + 0x55]
test al, 0x10
je 0x417f51
mov word [ecx], 0x2b3c
add ecx, 2
mov al, byte [esi + 0x55]
test al, 0x20
je 0x417f60
mov word [ecx], 0x2b3e
add ecx, 2
mov al, byte [esi + 0x55]
test al, 0x40
je 0x417f6f
mov word [ecx], 0x233c
add ecx, 2
mov al, byte [esi + 0x55]
test al, al
jns 0x417f7b
mov word [ecx], 0x233e
add ecx, 2
mov byte [ecx], 0
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 0x417fcd
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
cmp dword [esi + 8], 3
jne case.0x417e74.1
mov edx, dword [esi + 0x58]
cmp edx, dword [esi + 0x2c]
jae case.0x417e74.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 0x4c9664
push edi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x418145
add edi, 2
push 0x4c91a4
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417fff
mov ebx, 0x35c
jmp 0x418043
push str.KeyDown
push edi
call ebx
add esp, 8
test eax, eax
jne 0x418015
mov ebx, 0x360
jmp 0x418043
push str.KeyUp
push edi
call ebx
add esp, 8
test eax, eax
jne 0x41802b
mov ebx, 0x368
jmp 0x418043
push str.Char
push edi
call ebx
add esp, 8
test eax, eax
jne 0x41842a
mov ebx, 0x364
cmp dword [esp + 0x10], 0
je 0x4180ab
mov edi, dword [ebp + 0x18]
mov eax, dword [edi + 4]
mov ecx, dword [eax + 8]
cmp ecx, 6
jne 0x41805c
mov ecx, eax
jmp 0x41808f
cmp ecx, 4
jne 0x4180ef
mov ecx, dword [eax]
mov dl, byte [ecx + 0x17]
test dl, dl
jne 0x418077
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x10], esi
jmp 0x41807b
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x10]
test byte [esi + 0x15], 2
mov esi, dword [ebp + 8]
je 0x4180d5
test dl, dl
jne 0x41808f
mov ecx, dword [ecx + 0xc]
mov edi, dword [ecx]
test edi, edi
je 0x4180f1
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [ebx + esi]
test ecx, ecx
je 0x4180a8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx + esi], edi
mov ecx, dword [ebx + esi]
test ecx, ecx
je 0x4180c7
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 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
test dl, dl
jne 0x4180de
mov edx, dword [ecx + 0xc]
jmp 0x4180e0
mov edx, ecx
test byte [edx + 0x15], 4
je 0x4180ef
push ecx
call fcn.0044e150
mov eax, dword [edi + 4]
xor edi, edi
mov ecx, dword [eax + 8]
sub ecx, 0
je 0x418103
sub ecx, 4
je 0x41812d
sub ecx, 1
jne 0x418110
mov eax, dword [eax]
xor ecx, ecx
cmp byte [eax], cl
sete cl
test ecx, ecx
jne 0x41809b
push 0x4c3c29
push str.Invalid_value.
mov ecx, 0x4dba98
call fcn.0044da60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x418138
mov eax, dword [eax + 0xc]
xor ecx, ecx
test byte [eax + 0x15], 0xa
jne 0x41810c
cmp dword [eax + 0xc], ecx
jmp 0x418109
push str.MinSendLevel
push edi
call ebx
add esp, 8
test eax, eax
jne 0x418190
cmp dword [esp + 0x10], eax
je 0x41816c
mov eax, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [eax + 4]
call fcn.00476ef0
mov byte [esi + 0x44], al
jmp 0x41816f
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 0x418294
cmp dword [esp + 0x10], eax
je 0x418263
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x4181bc.3
jmp dword [eax*4 + 0x4184d0]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004c2040
jmp 0x4181ff
movsd xmm0, qword [ecx]
jmp 0x4181ff
mov ecx, dword [ecx]
push 0
call fcn.004290d0
jmp 0x4181ff
mov eax, dword [ecx + 4]
test eax, eax
je case.0x4181bc.3
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.004c2040
jmp 0x4181ff
xorps xmm0, xmm0
jmp 0x4181ff
mov ecx, dword [ecx]
call fcn.00428e40
cmp dword [esi + 8], 1
movsd xmm1, qword [0x4d0a70]
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [esi + 0x3c], eax
jne 0x41826b
test eax, eax
jle 0x41826b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [0x4d9854], 0
mov edx, dword [esi + 0x3c]
lea edi, [eax + edx]
mov dword [esi + 0x40], edi
je 0x418240
mov ecx, dword [0x4d9858]
sub ecx, eax
cmp edx, ecx
jge 0x418263
push 0x4046f0
push edx
push 0xc
push dword [0x4d9978]
mov dword [0x4d9858], edi
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne byte [0x4d9854]
movsd xmm1, qword [0x4d0a70]
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 0x4182aa
mov eax, 0x46
jmp 0x41831a
push str.CaseSensitive
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4182c0
mov eax, 0x47
jmp 0x41831a
push str.FindAnywhere
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4182d6
mov eax, 0x4c
jmp 0x41831a
push str.VisibleText
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4182ec
mov eax, 0x49
jmp 0x41831a
push str.VisibleNonText
push edi
call ebx
add esp, 8
test eax, eax
jne 0x418302
mov eax, 0x4a
jmp 0x41831a
push str.NotifyNonText
push edi
call ebx
add esp, 8
test eax, eax
jne 0x41842a
mov eax, 0x4b
lea edi, [esi + eax]
test edi, edi
je 0x41842a
cmp dword [esp + 0x10], 0
je 0x418407
mov eax, dword [ebp + 0x18]
mov esi, dword [eax + 4]
mov ecx, esi
call fcn.00476dc0
sub eax, 1
je 0x4183ee
sub eax, 1
mov eax, dword [esi + 8]
je 0x418388
cmp eax, 6
je 0x4183fe
cmp eax, 4
jne 0x418371
mov eax, dword [esi]
cmp byte [eax + 0x17], 0
jne 0x418367
mov eax, dword [eax + 0xc]
test byte [eax + 0x15], 2
jne 0x4183fe
xor edx, edx
mov ecx, esi
call fcn.00476fb0
xor edx, edx
cmp byte [eax], dl
setne dl
mov byte [edi], dl
jmp 0x418409
dec eax
cmp eax, 5
ja case.0x41838e.3
jmp dword [eax*4 + 0x4184e8]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
call fcn.004c2040
jmp 0x4183da
movsd xmm0, qword [esi]
jmp 0x4183da
mov ecx, dword [esi]
push 1
call fcn.004290d0
jmp 0x4183da
mov ecx, dword [esi + 4]
test ecx, ecx
je case.0x41838e.3
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004c2040
jmp 0x4183da
push dword [esi]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
fstp qword [esp + 0x14]
movsd xmm0, qword [esp + 0x14]
add esp, 4
ucomisd xmm0, qword [0x4d09f8]
lahf
test ah, 0x44
jp 0x4183fe
xor edx, edx
mov byte [edi], dl
jmp 0x418409
mov edx, 1
mov ecx, esi
call fcn.00476ef0
or eax, edx
je case.0x41838e.6
mov edx, 1
mov byte [edi], dl
jmp 0x418409
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