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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 0x1c]
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test ecx, ecx
jne 0x4184a3
push 0x4f03e8
push str.Invalid_usage.
mov ecx, 0x520c68
call fcn.0044ddc0
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.0x4184b0.1
jmp dword [eax*4 + 0x418ff4]
mov ecx, dword [edi]
push 0
push 1
call fcn.00401630
mov ecx, dword [ebp + 0x1c]
mov edi, eax
jmp 0x4184d2
mov edi, dword [edi]
jmp 0x4184d2
mov edi, 0x4f03e8
mov edx, dword [ebp + 0x14]
test dl, 2
je 0x418744
push str.Start
push edi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x41851d
cmp dword [esi + 8], 1
lea ecx, [esi + 8]
je 0x418bcf
cmp byte [esi + 0x45], al
jne 0x41850d
mov dword [esi + 0x18], eax
xor edx, edx
mov eax, dword [esi + 0x14]
mov word [eax], dx
xor edx, edx
call fcn.00452b00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Wait
push edi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x4186c6
cmp dword [ebp + 0x1c], 1
jle 0x4185f8
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 8]
cmp eax, 3
je 0x4185f8
dec eax
cmp eax, 5
ja case.0x418556.3
jmp dword [eax*4 + 0x41900c]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004e8ec0
mulsd xmm0, qword [0x514a48]
call fcn.004e8d30
mov edi, eax
jmp 0x4185fb
movsd xmm0, qword [ecx]
mulsd xmm0, qword [0x514a48]
call fcn.004e8d30
mov edi, eax
jmp 0x4185fb
mov ecx, dword [ecx]
push 0
call fcn.00429b70
mulsd xmm0, qword [0x514a48]
call fcn.004e8d30
mov edi, eax
jmp 0x4185fb
mov eax, dword [ecx + 4]
test eax, eax
je case.0x418556.3
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.004e8ec0
mulsd xmm0, qword [0x514a48]
call fcn.004e8d30
mov edi, eax
jmp 0x4185fb
xorps xmm0, xmm0
mulsd xmm0, qword [0x514a48]
call fcn.004e8d30
mov edi, eax
jmp 0x4185fb
mov ecx, dword [ecx]
call fcn.00429920
mulsd xmm0, qword [0x514a48]
call fcn.004e8d30
mov edi, eax
jmp 0x4185fb
or edi, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esi + 8], 1
mov dword [esp + 0x10], eax
jne 0x41862f
nop dword [eax]
call ebx
sub eax, dword [esp + 0x10]
cmp eax, edi
jae 0x41862f
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401860
cmp dword [esi + 8], 1
je 0x418610
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 0
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x41895e.1
jmp dword [eax*4 + 0x419024]
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, 0x50a7c4
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, 0x4f03e8
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.004ce516
add esp, 8
test eax, eax
jne 0x418714
add esi, 8
cmp dword [esi], 1
jne 0x418bcf
mov al, byte [0x51f4ce]
push 0
push esi
push 0x41b
push dword [0x51ead8]
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.004ce516
add esp, 8
test eax, eax
jne 0x418fe4
mov eax, dword [ebp + 0x1c]
dec eax
push eax
lea eax, [ebx + 4]
push eax
push ecx
mov ecx, esi
call fcn.004190f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ebx, edx
and ebx, 1
mov dword [esp + 0x10], ebx
lea eax, [ebx + 1]
cmp ecx, eax
jne 0x418486
test ebx, ebx
je 0x4188b7
push str.Input
push edi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x418aca
mov edi, dword [ebp + 0x18]
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 8]
cmp eax, 5
ja case.0x418784.1
jmp dword [eax*4 + 0x419040]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401630
mov ecx, eax
jmp 0x4187a3
mov ecx, dword [ecx]
jmp 0x4187a3
mov ecx, 0x4f03e8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4187a6
sub ecx, edx
sar ecx, 1
cmp ecx, dword [esi + 0x1c]
jbe 0x4187d7
push 0x4f03e8
push 0x504378
mov ecx, 0x520c68
call fcn.0044ddc0
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.0x4187e2.1
jmp dword [eax*4 + 0x419058]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401630
mov ecx, eax
jmp 0x418801
mov ecx, dword [ecx]
jmp 0x418801
mov ecx, 0x4f03e8
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 0x418804
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 + 2]
nop dword [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x418830
sub edi, edx
sar edi, 1
mov dword [esi + 0x18], edi
cmp edi, 0xffffffff
jne 0x41885f
mov edi, ecx
lea edx, [edi + 2]
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x418850
sub edi, edx
sar edi, 1
lea esi, [edi + edi]
cmp edi, 0xff
ja 0x41886f
mov eax, dword [ebx + 4]
jmp 0x418892
lea eax, [esi + 2]
push eax
call fcn.004cfec5
add esp, 4
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x41888b
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 0x4188a5
push esi
push ecx
push eax
call fcn.004cc730
mov eax, dword [ebx]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test dl, 3
jne 0x418aca
push str.Input
push edi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x418900
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov edi, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x10], ecx
cmp edi, 0xffffffff
jne 0x41885f
mov edi, ecx
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4188f0
jmp 0x41885b
push str.InProgress
push edi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x41893a
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.004ce516
add esp, 8
test eax, eax
jne 0x41897a
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x41895e.1
jmp dword [eax*4 + 0x419070]
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.004ce516
add esp, 8
test eax, eax
jne 0x4189ce
mov edx, dword [ebp + 0xc]
lea ecx, [esi + 8]
mov dword [edx + 8], eax
cmp dword [ecx], 4
jne 0x4189ba
mov eax, dword [edx + 4]
push 0
push 0x100
push eax
mov dword [edx], eax
call fcn.00453290
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [edx], 0x4f03e8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.EndMods
push edi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x418a86
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 0x418a06
mov dword [ecx], 0x5e003c
add ecx, 4
mov al, byte [esi + 0x56]
test al, 2
je 0x418a16
mov dword [ecx], 0x5e003e
add ecx, 4
mov al, byte [esi + 0x56]
test al, 4
je 0x418a26
mov dword [ecx], 0x21003c
add ecx, 4
mov al, byte [esi + 0x56]
test al, 8
je 0x418a36
mov dword [ecx], 0x21003e
add ecx, 4
mov al, byte [esi + 0x56]
test al, 0x10
je 0x418a46
mov dword [ecx], 0x2b003c
add ecx, 4
mov al, byte [esi + 0x56]
test al, 0x20
je 0x418a56
mov dword [ecx], 0x2b003e
add ecx, 4
mov al, byte [esi + 0x56]
test al, 0x40
je 0x418a66
mov dword [ecx], 0x23003c
add ecx, 4
mov al, byte [esi + 0x56]
test al, al
jns 0x418a73
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.004ce516
add esp, 8
test eax, eax
jne 0x418aca
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
cmp dword [esi + 8], 3
jne case.0x41895e.1
mov edx, dword [esi + 0x58]
cmp edx, dword [esi + 0x2c]
jae case.0x41895e.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 0x5068dc
push edi
call fcn.004cff45
add esp, 0xc
test eax, eax
jne 0x418c4e
add edi, 4
push 0x505f94
push edi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x418afe
mov ebx, 0x35c
jmp 0x418b4b
push str.KeyDown
push edi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x418b17
mov ebx, 0x360
jmp 0x418b4b
push str.KeyUp
push edi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x418b30
mov ebx, 0x368
jmp 0x418b4b
push str.Char
push edi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x418fe4
mov ebx, 0x364
cmp dword [esp + 0x10], 0
je 0x418bb3
mov edi, dword [ebp + 0x18]
mov eax, dword [edi + 4]
mov ecx, dword [eax + 8]
cmp ecx, 6
jne 0x418b64
mov ecx, eax
jmp 0x418b97
cmp ecx, 4
jne 0x418bf7
mov ecx, dword [eax]
mov dl, byte [ecx + 0x17]
test dl, dl
jne 0x418b7f
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x10], esi
jmp 0x418b83
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x10]
test byte [esi + 0x15], 2
mov esi, dword [ebp + 8]
je 0x418bdd
test dl, dl
jne 0x418b97
mov ecx, dword [ecx + 0xc]
mov edi, dword [ecx]
test edi, edi
je 0x418bf9
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [ebx + esi]
test ecx, ecx
je 0x418bb0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx + esi], edi
mov ecx, dword [ebx + esi]
test ecx, ecx
je 0x418bcf
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 0x418be6
mov edx, dword [ecx + 0xc]
jmp 0x418be8
mov edx, ecx
test byte [edx + 0x15], 4
je 0x418bf7
push ecx
call fcn.0044e530
mov eax, dword [edi + 4]
xor edi, edi
mov ecx, dword [eax + 8]
sub ecx, 0
je 0x418c0b
sub ecx, 4
je 0x418c36
sub ecx, 1
jne 0x418c19
mov eax, dword [eax]
xor ecx, ecx
cmp word [eax], cx
sete cl
test ecx, ecx
jne 0x418ba3
push 0x4f03e8
push str.Invalid_value.
mov ecx, 0x520c68
call fcn.0044ddc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x418c41
mov eax, dword [eax + 0xc]
xor ecx, ecx
test byte [eax + 0x15], 0xa
jne 0x418c15
cmp dword [eax + 0xc], ecx
jmp 0x418c12
push str.MinSendLevel
push edi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x418cf7
test ebx, ebx
je 0x418cd3
mov edi, dword [ebp + 0x18]
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x418c77.3
jmp dword [eax*4 + 0x41908c]
mov ebx, dword [ecx]
mov byte [esi + 0x44], bl
jmp 0x418cd6
mov eax, dword [ecx + 4]
test eax, eax
je case.0x418c77.3
mov ebx, dword [eax]
mov byte [esi + 0x44], bl
jmp 0x418cd6
movsd xmm0, qword [ecx]
call fcn.004e8db0
mov ebx, eax
mov byte [esi + 0x44], bl
jmp 0x418cd6
mov ecx, dword [ecx]
push 0
call fcn.00429ab0
mov ebx, eax
mov byte [esi + 0x44], bl
jmp 0x418cd6
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov ebx, dword [esp + 0x10]
mov byte [esi + 0x44], bl
jmp 0x418cd6
mov ecx, dword [ecx]
call fcn.00405350
mov ebx, eax
mov byte [esi + 0x44], bl
jmp 0x418cd6
mov bl, byte [esi + 0x44]
mov ecx, dword [ebp + 0xc]
movzx eax, bl
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.004ce516
add esp, 8
test eax, eax
jne 0x418dfc
test ebx, ebx
je 0x418dcb
mov edi, dword [ebp + 0x18]
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x418d24.3
jmp dword [eax*4 + 0x4190a4]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004e8ec0
jmp 0x418d67
movsd xmm0, qword [ecx]
jmp 0x418d67
mov ecx, dword [ecx]
push 0
call fcn.00429b70
jmp 0x418d67
mov eax, dword [ecx + 4]
test eax, eax
je case.0x418d24.3
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.004e8ec0
jmp 0x418d67
xorps xmm0, xmm0
jmp 0x418d67
mov ecx, dword [ecx]
call fcn.00429920
cmp dword [esi + 8], 1
movsd xmm1, qword [0x514a48]
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [esi + 0x3c], eax
jne 0x418dd3
test eax, eax
jle 0x418dd3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [0x51e994], 0
mov edx, dword [esi + 0x3c]
lea edi, [edx + eax]
mov dword [esi + 0x40], edi
je 0x418da8
mov ecx, dword [0x51e998]
sub ecx, eax
cmp edx, ecx
jge 0x418dcb
push 0x4050c0
push edx
push 0xc
push dword [0x51ead8]
mov dword [0x51e998], edi
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne byte [0x51e994]
movsd xmm1, qword [0x514a48]
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.004ce516
add esp, 8
test eax, eax
jne 0x418e18
mov eax, 0x46
jmp 0x418e97
push str.CaseSensitive
push edi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x418e31
mov eax, 0x47
jmp 0x418e97
push str.FindAnywhere
push edi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x418e4a
mov eax, 0x4c
jmp 0x418e97
push str.VisibleText
push edi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x418e63
mov eax, 0x49
jmp 0x418e97
push str.VisibleNonText
push edi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x418e7c
mov eax, 0x4a
jmp 0x418e97
push str.NotifyNonText
push edi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x418fe4
mov eax, 0x4b
add eax, esi
mov dword [esp + 0x10], eax
je 0x418fe4
test ebx, ebx
je 0x418fc1
mov edi, dword [ebp + 0x18]
mov esi, dword [edi + 4]
mov ecx, esi
call fcn.0047a400
mov ecx, dword [esi + 8]
sub eax, 1
je 0x418f71
sub eax, 1
je 0x418f08
cmp ecx, 6
je 0x418fb4
cmp ecx, 4
jne 0x418eec
mov eax, dword [esi]
cmp byte [eax + 0x17], 0
jne 0x418ee2
mov eax, dword [eax + 0xc]
test byte [eax + 0x15], 2
jne 0x418fb4
xor edx, edx
mov ecx, esi
call fcn.0047a530
xor edx, edx
cmp word [eax], dx
mov eax, dword [esp + 0x10]
setne dl
mov byte [eax], dl
jmp 0x418fc3
dec ecx
cmp ecx, 5
ja case.0x418f0e.3
jmp dword [ecx*4 + 0x4190bc]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
call fcn.004e8ec0
jmp 0x418f59
movsd xmm0, qword [esi]
jmp 0x418f59
mov ecx, dword [esi]
push 1
call fcn.00429b70
jmp 0x418f59
mov ecx, dword [esi + 4]
test ecx, ecx
je case.0x418f0e.3
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004e8ec0
jmp 0x418f59
push dword [esi]
call fcn.004d854f
fstp qword [esp + 0x1c]
movsd xmm0, qword [esp + 0x1c]
add esp, 4
ucomisd xmm0, qword [0x5149d0]
lahf
test ah, 0x44
jp 0x418fb4
mov eax, dword [esp + 0x10]
xor edx, edx
mov byte [eax], dl
jmp 0x418fc3
dec ecx
cmp ecx, 5
ja case.0x418f77.3
jmp dword [ecx*4 + 0x4190d4]
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x418fb0
mov edx, dword [esi + 4]
test edx, edx
je case.0x418f77.3
mov eax, dword [edx]
mov edx, dword [edx + 4]
jmp 0x418fb0
movsd xmm0, qword [esi]
call fcn.004e8db0
jmp 0x418fb0
mov ecx, dword [esi]
push 1
call fcn.00429ab0
jmp 0x418fb0
mov ecx, dword [esi]
call fcn.00405350
or eax, edx
je case.0x418f77.6
mov eax, dword [esp + 0x10]
mov edx, 1
mov byte [eax], dl
jmp 0x418fc3
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