Function at 0x416b70
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 0x416ba3
push 0x4d0335
push str.Invalid_usage.
mov ecx, 0x4e9a70
call fcn.004470d0
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.0x416bb0.1
jmp dword [eax*4 + 0x417418]
mov ecx, dword [edi]
push 0
push 1
call fcn.00401680
mov ecx, dword [ebp + 0x1c]
mov edi, eax
jmp 0x416bd2
mov edi, dword [edi]
jmp 0x416bd2
mov edi, 0x4d0335
mov edx, dword [ebp + 0x14]
test dl, 2
je 0x416da6
push str.Start
push edi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x416c1b
cmp dword [esi + 8], 1
lea ecx, [esi + 8]
je 0x417164
cmp byte [esi + 0x45], al
jne 0x416c0b
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
mov byte [eax], 0
xor edx, edx
call fcn.0044b270
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Wait
push edi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x416d28
cmp dword [ebp + 0x1c], 1
jle 0x416c5d
mov ecx, dword [ebx + 4]
cmp dword [ecx + 8], 3
je 0x416c5d
push eax
lea edx, [eax + 1]
call fcn.0046b9f0
mulsd xmm0, qword [0x4dd1a8]
add esp, 4
call fcn.004c7f21
mov edi, eax
jmp 0x416c60
or edi, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esi + 8], 1
mov dword [esp + 0x10], eax
jne 0x416c91
call ebx
sub eax, dword [esp + 0x10]
cmp eax, edi
jae 0x416c91
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401a30
cmp dword [esi + 8], 1
je 0x416c72
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 0
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x416f34.1
jmp dword [eax*4 + 0x417430]
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, 0x4d75d4
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, 0x4d0335
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.004b218a
add esp, 8
test eax, eax
jne 0x416d76
add esi, 8
cmp dword [esi], 1
jne 0x417164
mov al, byte [0x4e82be]
push 0
push esi
push 0x41b
push dword [0x4e7950]
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 fcn.004b218a
add esp, 8
test eax, eax
jne 0x417408
mov eax, dword [ebp + 0x1c]
dec eax
push eax
lea eax, [ebx + 4]
push eax
push ecx
mov ecx, esi
call fcn.004174b0
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 0x416b86
test ebx, ebx
je 0x416e9e
push str.Input
push edi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x417096
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 8]
cmp eax, 5
ja case.0x416de2.1
jmp dword [eax*4 + 0x41744c]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401680
mov ecx, eax
jmp 0x416e01
mov ecx, dword [ecx]
jmp 0x416e01
mov ecx, 0x4d0335
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416e04
sub ecx, edx
cmp ecx, dword [esi + 0x1c]
jbe 0x416e2f
push 0x4d0335
push str.Out_of_memory.
mov ecx, 0x4e9a70
call fcn.004470d0
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.0x416e3a.1
jmp dword [eax*4 + 0x417464]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401680
mov ecx, eax
jmp 0x416e59
mov ecx, dword [ecx]
jmp 0x416e59
mov ecx, 0x4d0335
mov edx, dword [esi + 0x14]
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x416e60
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 0
mov edx, dword [esi + 0x14]
mov edi, edx
lea ebx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x416e80
sub edi, ebx
push edi
mov dword [esi + 0x18], edi
call fcn.0046bde0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test dl, 3
jne 0x417096
push str.Input
push edi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x416ed6
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
push dword [esi + 0x18]
mov edx, dword [esi + 0x14]
call fcn.0046bde0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.InProgress
push edi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x416f10
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.004b218a
add esp, 8
test eax, eax
jne 0x416f50
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x416f34.1
jmp dword [eax*4 + 0x41747c]
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.004b218a
add esp, 8
test eax, eax
jne 0x416fa4
mov edx, dword [ebp + 0xc]
lea ecx, [esi + 8]
mov dword [edx + 8], eax
cmp dword [ecx], 4
jne 0x416f90
mov eax, dword [edx + 4]
push 0
push 0x100
push eax
mov dword [edx], eax
call fcn.0044b9c0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [edx], 0x4d0335
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.EndMods
push edi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x417052
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 0x416fdb
mov word [ecx], 0x5e3c
add ecx, 2
mov al, byte [esi + 0x55]
test al, 2
je 0x416fea
mov word [ecx], 0x5e3e
add ecx, 2
mov al, byte [esi + 0x55]
test al, 4
je 0x416ff9
mov word [ecx], 0x213c
add ecx, 2
mov al, byte [esi + 0x55]
test al, 8
je 0x417008
mov word [ecx], 0x213e
add ecx, 2
mov al, byte [esi + 0x55]
test al, 0x10
je 0x417017
mov word [ecx], 0x2b3c
add ecx, 2
mov al, byte [esi + 0x55]
test al, 0x20
je 0x417026
mov word [ecx], 0x2b3e
add ecx, 2
mov al, byte [esi + 0x55]
test al, 0x40
je 0x417035
mov word [ecx], 0x233c
add ecx, 2
mov al, byte [esi + 0x55]
test al, al
jns 0x417041
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 fcn.004b218a
add esp, 8
test eax, eax
jne 0x417096
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
cmp dword [esi + 8], 3
jne case.0x416f34.1
mov edx, dword [esi + 0x58]
cmp edx, dword [esi + 0x2c]
jae case.0x416f34.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 0x4d5d74
push edi
call fcn.004b2c54
add esp, 0xc
test eax, eax
jne 0x41719b
add edi, 2
push 0x4d58b4
push edi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x4170ca
mov edi, 0x35c
jmp 0x417117
push str.KeyDown
push edi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x4170e3
mov edi, 0x360
jmp 0x417117
push str.KeyUp
push edi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x4170fc
mov edi, 0x368
jmp 0x417117
push str.Char
push edi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x417408
mov edi, 0x364
test ebx, ebx
je 0x417148
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebx + 4]
call fcn.0046bd30
mov dword [esp + 0x10], eax
test eax, eax
je 0x417172
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov ecx, dword [edi + esi]
test ecx, ecx
je 0x417141
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 0x417164
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.0046b8e0
test eax, eax
jne 0x417134
push 0x4d0335
push str.Invalid_value.
mov ecx, 0x4e9a70
call fcn.004470d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.MinSendLevel
push edi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x4171e7
test ebx, ebx
je 0x4171c3
mov ebx, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [ebx + 4]
call fcn.0046b990
mov byte [esi + 0x44], al
jmp 0x4171c6
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.004b218a
add esp, 8
test eax, eax
jne 0x417264
test ebx, ebx
je 0x417233
mov ebx, dword [ebp + 0x18]
lea edx, [eax + 1]
push eax
mov ecx, dword [ebx + 4]
call fcn.0046b9f0
movsd xmm1, qword [0x4dd1a8]
lea ecx, [esi + 8]
mulsd xmm0, xmm1
add esp, 4
cmp dword [ecx], 1
cvttsd2si eax, xmm0
mov dword [esi + 0x3c], eax
jne 0x41723b
test eax, eax
jle 0x41723b
call fcn.0044b450
movsd xmm1, qword [0x4dd1a8]
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.004b218a
add esp, 8
test eax, eax
jne 0x41727d
mov eax, 0x46
jmp 0x4172fc
push str.CaseSensitive
push edi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x417296
mov eax, 0x47
jmp 0x4172fc
push str.FindAnywhere
push edi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x4172af
mov eax, 0x4c
jmp 0x4172fc
push str.VisibleText
push edi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x4172c8
mov eax, 0x49
jmp 0x4172fc
push str.VisibleNonText
push edi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x4172e1
mov eax, 0x4a
jmp 0x4172fc
push str.NotifyNonText
push edi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x417408
mov eax, 0x4b
lea edi, [esi + eax]
test edi, edi
je 0x417408
test ebx, ebx
je 0x4173e5
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebx + 4]
mov ecx, esi
call fcn.0046b880
sub eax, 1
je 0x4173cc
sub eax, 1
mov eax, dword [esi + 8]
je 0x417367
cmp eax, 6
je 0x4173dc
cmp eax, 4
jne 0x417350
mov eax, dword [esi]
cmp byte [eax + 0x17], 0
jne 0x417346
mov eax, dword [eax + 0xc]
test byte [eax + 0x15], 2
jne 0x4173dc
xor edx, edx
mov ecx, esi
call fcn.0046ba90
xor edx, edx
cmp byte [eax], dl
setne dl
mov byte [edi], dl
jmp 0x4173e7
dec eax
cmp eax, 5
ja case.0x41736d.3
jmp dword [eax*4 + 0x417498]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
call fcn.004c8090
jmp 0x4173b8
movsd xmm0, qword [esi]
jmp 0x4173b8
mov ecx, dword [esi]
push 1
call fcn.00427640
jmp 0x4173b8
mov ecx, dword [esi + 4]
test ecx, ecx
je case.0x41736d.3
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004c8090
jmp 0x4173b8
push dword [esi]
call fcn.004b7b55
fstp qword [esp + 0x14]
movsd xmm0, qword [esp + 0x14]
add esp, 4
ucomisd xmm0, qword [0x4dd130]
lahf
test ah, 0x44
jp 0x4173dc
xor edx, edx
mov byte [edi], dl
jmp 0x4173e7
mov edx, 1
mov ecx, esi
call fcn.0046b990
or eax, edx
je case.0x41736d.6
mov edx, 1
mov byte [edi], dl
jmp 0x4173e7
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