Function at 0x40fcb0
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 0x40fce3
push 0x4d5231
push str.Invalid_usage.
mov ecx, 0x4ed830
call fcn.0043ed90
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.0x40fcf0.1
jmp dword [eax*4 + 0x4107bc]
mov ecx, dword [edi]
push 0
push 1
call fcn.00401550
mov ecx, dword [ebp + 0x1c]
mov edi, eax
jmp 0x40fd12
mov edi, dword [edi]
jmp 0x40fd12
mov edi, 0x4d5231
mov edx, dword [ebp + 0x14]
test dl, 2
je 0x40ff84
push str.Start
push edi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x40fd5b
cmp dword [esi + 8], 1
lea ecx, [esi + 8]
je 0x41042b
cmp byte [esi + 0x45], al
jne 0x40fd4b
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
mov byte [eax], 0
xor edx, edx
call fcn.004440f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Wait
push edi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x40ff06
cmp dword [ebp + 0x1c], 1
jle 0x40fe36
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 8]
cmp eax, 3
je 0x40fe36
dec eax
cmp eax, 5
ja case.0x40fd94.3
jmp dword [eax*4 + 0x4107d4]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004cdd90
mulsd xmm0, qword [0x4e1c48]
call fcn.004cdc00
mov edi, eax
jmp 0x40fe39
movsd xmm0, qword [ecx]
mulsd xmm0, qword [0x4e1c48]
call fcn.004cdc00
mov edi, eax
jmp 0x40fe39
mov ecx, dword [ecx]
push 0
call fcn.004213d0
mulsd xmm0, qword [0x4e1c48]
call fcn.004cdc00
mov edi, eax
jmp 0x40fe39
mov eax, dword [ecx + 4]
test eax, eax
je case.0x40fd94.3
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.004cdd90
mulsd xmm0, qword [0x4e1c48]
call fcn.004cdc00
mov edi, eax
jmp 0x40fe39
xorps xmm0, xmm0
mulsd xmm0, qword [0x4e1c48]
call fcn.004cdc00
mov edi, eax
jmp 0x40fe39
mov ecx, dword [ecx]
call fcn.00421050
mulsd xmm0, qword [0x4e1c48]
call fcn.004cdc00
mov edi, eax
jmp 0x40fe39
or edi, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esi + 8], 1
mov dword [esp + 0xc], eax
jne 0x40fe6f
nop dword [eax + eax]
call ebx
sub eax, dword [esp + 0xc]
cmp eax, edi
jae 0x40fe6f
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401730
cmp dword [esi + 8], 1
je 0x40fe50
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 0
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x4101c4.1
jmp dword [eax*4 + 0x4107ec]
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, 0x4dd398
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, 0x4d5231
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.004b626e
add esp, 8
test eax, eax
jne 0x40ff54
add esi, 8
cmp dword [esi], 1
jne 0x41042b
mov al, byte [0x4ec0a6]
push 0
push esi
push 0x41b
push dword [0x4eb73c]
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.004b626e
add esp, 8
test eax, eax
jne 0x4107ab
mov eax, dword [ebp + 0x1c]
dec eax
push eax
lea eax, [ebx + 4]
push eax
push ecx
mov ecx, esi
call fcn.00410890
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ebx, edx
and ebx, 1
mov dword [esp + 0xc], ebx
lea eax, [ebx + 1]
cmp ecx, eax
jne 0x40fcc6
test ebx, ebx
je 0x4100e0
push str.Input
push edi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x410326
mov edi, dword [ebp + 0x18]
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 8]
cmp eax, 5
ja case.0x40ffc4.1
jmp dword [eax*4 + 0x410808]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401550
mov ecx, eax
jmp 0x40ffe3
mov ecx, dword [ecx]
jmp 0x40ffe3
mov ecx, 0x4d5231
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ffe6
sub ecx, edx
cmp ecx, dword [esi + 0x1c]
jbe 0x410011
push 0x4d5231
push str.Out_of_memory.
mov ecx, 0x4ed830
call fcn.0043ed90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 8]
cmp eax, 5
ja case.0x41001c.1
jmp dword [eax*4 + 0x410820]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401550
mov ecx, eax
jmp 0x41003b
mov ecx, dword [ecx]
jmp 0x41003b
mov ecx, 0x4d5231
mov edx, dword [esi + 0x14]
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x410040
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 8], 0
mov ecx, dword [esi + 0x14]
mov edi, ecx
mov dword [esp + 0xc], ecx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x410064
sub edi, edx
mov dword [esi + 0x18], edi
cmp edi, 0xffffffff
jne 0x410089
mov edi, ecx
lea edx, [edi + 1]
nop word [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x410080
sub edi, edx
cmp edi, 0xff
ja 0x410096
mov eax, dword [ebx + 4]
jmp 0x4100bb
lea eax, [edi + 1]
push eax
call fcn.004b6720
add esp, 4
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x4100b4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [esp + 0xc]
mov dword [ebx + 4], edi
mov dword [ebx], eax
test ecx, ecx
je 0x4100ce
push edi
push ecx
push eax
call fcn.004b4620
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 dl, 3
jne 0x410326
push str.Input
push edi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x410166
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov edi, dword [esi + 0x18]
mov esi, dword [esi + 0x14]
cmp edi, 0xffffffff
jne 0x41011a
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x410111
sub edi, ecx
cmp edi, 0xff
ja 0x410127
mov eax, dword [ebx + 4]
jmp 0x410141
lea eax, [edi + 1]
push eax
call fcn.004b6720
add esp, 4
mov dword [ebx + 0xc], eax
test eax, eax
je 0x4100a9
mov dword [ebx + 4], edi
mov dword [ebx], eax
test esi, esi
je 0x4100ce
push edi
push esi
push eax
call fcn.004b4620
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 fcn.004b626e
add esp, 8
test eax, eax
jne 0x4101a0
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.004b626e
add esp, 8
test eax, eax
jne 0x4101e0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x4101c4.1
jmp dword [eax*4 + 0x410838]
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.004b626e
add esp, 8
test eax, eax
jne 0x410234
mov edx, dword [ebp + 0xc]
lea ecx, [esi + 8]
mov dword [edx + 8], eax
cmp dword [ecx], 4
jne 0x410220
mov eax, dword [edx + 4]
push 0
push 0x100
push eax
mov dword [edx], eax
call fcn.00444830
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [edx], 0x4d5231
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.EndMods
push edi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x4102e2
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 0x41026b
mov word [ecx], 0x5e3c
add ecx, 2
mov al, byte [esi + 0x55]
test al, 2
je 0x41027a
mov word [ecx], 0x5e3e
add ecx, 2
mov al, byte [esi + 0x55]
test al, 4
je 0x410289
mov word [ecx], 0x213c
add ecx, 2
mov al, byte [esi + 0x55]
test al, 8
je 0x410298
mov word [ecx], 0x213e
add ecx, 2
mov al, byte [esi + 0x55]
test al, 0x10
je 0x4102a7
mov word [ecx], 0x2b3c
add ecx, 2
mov al, byte [esi + 0x55]
test al, 0x20
je 0x4102b6
mov word [ecx], 0x2b3e
add ecx, 2
mov al, byte [esi + 0x55]
test al, 0x40
je 0x4102c5
mov word [ecx], 0x233c
add ecx, 2
mov al, byte [esi + 0x55]
test al, al
jns 0x4102d1
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.004b626e
add esp, 8
test eax, eax
jne 0x410326
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
cmp dword [esi + 8], 3
jne case.0x4101c4.1
mov edx, dword [esi + 0x58]
cmp edx, dword [esi + 0x2c]
jae case.0x4101c4.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 0x4d9bfc
push edi
call fcn.004b653e
add esp, 0xc
test eax, eax
jne 0x4104a9
add edi, 2
push 0x4d6598
push edi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x41035a
mov ebx, 0x35c
jmp 0x4103a7
push str.KeyDown
push edi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x410373
mov ebx, 0x360
jmp 0x4103a7
push str.KeyUp
push edi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x41038c
mov ebx, 0x368
jmp 0x4103a7
push str.Char
push edi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x4107ab
mov ebx, 0x364
cmp dword [esp + 0xc], 0
je 0x41040f
mov edi, dword [ebp + 0x18]
mov eax, dword [edi + 4]
mov ecx, dword [eax + 8]
cmp ecx, 6
jne 0x4103c0
mov ecx, eax
jmp 0x4103f3
cmp ecx, 4
jne 0x410453
mov ecx, dword [eax]
mov dl, byte [ecx + 0x17]
test dl, dl
jne 0x4103db
mov esi, dword [ecx + 0xc]
mov dword [esp + 0xc], esi
jmp 0x4103df
mov dword [esp + 0xc], ecx
mov esi, dword [esp + 0xc]
test byte [esi + 0x15], 2
mov esi, dword [ebp + 8]
je 0x410439
test dl, dl
jne 0x4103f3
mov ecx, dword [ecx + 0xc]
mov edi, dword [ecx]
test edi, edi
je 0x410455
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [ebx + esi]
test ecx, ecx
je 0x41040c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx + esi], edi
mov ecx, dword [ebx + esi]
test ecx, ecx
je 0x41042b
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 0x410442
mov edx, dword [ecx + 0xc]
jmp 0x410444
mov edx, ecx
test byte [edx + 0x15], 4
je 0x410453
push ecx
call fcn.0043f490
mov eax, dword [edi + 4]
xor edi, edi
mov ecx, dword [eax + 8]
sub ecx, 0
je 0x410467
sub ecx, 4
je 0x410491
sub ecx, 1
jne 0x410474
mov eax, dword [eax]
xor ecx, ecx
cmp byte [eax], cl
sete cl
test ecx, ecx
jne 0x4103ff
push 0x4d5231
push str.Invalid_value.
mov ecx, 0x4ed830
call fcn.0043ed90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x41049c
mov eax, dword [eax + 0xc]
xor ecx, ecx
test byte [eax + 0x15], 0xa
jne 0x410470
cmp dword [eax + 0xc], ecx
jmp 0x41046d
push str.MinSendLevel
push edi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x4104f5
test ebx, ebx
je 0x4104d1
mov edi, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [edi + 4]
call fcn.004683f0
mov byte [esi + 0x44], al
jmp 0x4104d4
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.004b626e
add esp, 8
test eax, eax
jne 0x4105fa
test ebx, ebx
je 0x4105c9
mov edi, dword [ebp + 0x18]
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x410522.3
jmp dword [eax*4 + 0x410854]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004cdd90
jmp 0x410565
movsd xmm0, qword [ecx]
jmp 0x410565
mov ecx, dword [ecx]
push 0
call fcn.004213d0
jmp 0x410565
mov eax, dword [ecx + 4]
test eax, eax
je case.0x410522.3
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.004cdd90
jmp 0x410565
xorps xmm0, xmm0
jmp 0x410565
mov ecx, dword [ecx]
call fcn.00421050
cmp dword [esi + 8], 1
movsd xmm1, qword [0x4e1c48]
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [esi + 0x3c], eax
jne 0x4105d1
test eax, eax
jle 0x4105d1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [0x4eb618], 0
mov edx, dword [esi + 0x3c]
lea edi, [eax + edx]
mov dword [esi + 0x40], edi
je 0x4105a6
mov ecx, dword [0x4eb61c]
sub ecx, eax
cmp edx, ecx
jge 0x4105c9
push 0x404330
push edx
push 0xc
push dword [0x4eb73c]
mov dword [0x4eb61c], edi
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne byte [0x4eb618]
movsd xmm1, qword [0x4e1c48]
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.004b626e
add esp, 8
test eax, eax
jne 0x410613
mov eax, 0x46
jmp 0x410692
push str.CaseSensitive
push edi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x41062c
mov eax, 0x47
jmp 0x410692
push str.FindAnywhere
push edi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x410645
mov eax, 0x4c
jmp 0x410692
push str.VisibleText
push edi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x41065e
mov eax, 0x49
jmp 0x410692
push str.VisibleNonText
push edi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x410677
mov eax, 0x4a
jmp 0x410692
push str.NotifyNonText
push edi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x4107ab
mov eax, 0x4b
add eax, esi
mov dword [esp + 0xc], eax
je 0x4107ab
test ebx, ebx
je 0x410788
mov edi, dword [ebp + 0x18]
mov esi, dword [edi + 4]
mov ecx, esi
call fcn.00468310
sub eax, 1
je 0x41076b
sub eax, 1
mov eax, dword [esi + 8]
je 0x410702
cmp eax, 6
je 0x41077b
cmp eax, 4
jne 0x4106e7
mov eax, dword [esi]
cmp byte [eax + 0x17], 0
jne 0x4106dd
mov eax, dword [eax + 0xc]
test byte [eax + 0x15], 2
jne 0x41077b
xor edx, edx
mov ecx, esi
call fcn.004684b0
xor edx, edx
cmp byte [eax], dl
mov eax, dword [esp + 0xc]
setne dl
mov byte [eax], dl
jmp 0x41078a
dec eax
cmp eax, 5
ja case.0x410708.3
jmp dword [eax*4 + 0x41086c]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
call fcn.004cdd90
jmp 0x410753
movsd xmm0, qword [esi]
jmp 0x410753
mov ecx, dword [esi]
push 1
call fcn.004213d0
jmp 0x410753
mov ecx, dword [esi + 4]
test ecx, ecx
je case.0x410708.3
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004cdd90
jmp 0x410753
push dword [esi]
call fcn.004bde6f
fstp qword [esp + 0x14]
movsd xmm0, qword [esp + 0x14]
add esp, 4
ucomisd xmm0, qword [0x4e1bd0]
lahf
test ah, 0x44
jp 0x41077b
mov eax, dword [esp + 0xc]
xor edx, edx
mov byte [eax], dl
jmp 0x41078a
mov edx, 1
mov ecx, esi
call fcn.004683f0
or eax, edx
je case.0x410708.6
mov eax, dword [esp + 0xc]
mov edx, 1
mov byte [eax], dl
jmp 0x41078a
mov dl, byte [eax]
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