Function at 0x419040
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 0x41906f
push ecx
push str.Invalid_usage.
mov ecx, 0x4fcc10
call fcn.0044df00
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.0x41907c.1
jmp dword [eax*4 + 0x419b54]
mov ecx, dword [edi]
push 0
push 1
call fcn.00401690
mov edx, dword [ebp + 0x1c]
mov edi, eax
jmp 0x41909e
mov edi, dword [edi]
jmp 0x41909e
mov edi, 0x4cec30
mov ecx, dword [ebp + 0x14]
test cl, 2
je 0x419311
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push str.Start
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4190ec
cmp dword [esi + 8], 1
lea ecx, [esi + 8]
je 0x41977e
cmp byte [esi + 0x45], al
jne 0x4190dc
mov dword [esi + 0x18], eax
xor edx, edx
mov eax, dword [esi + 0x14]
mov word [eax], dx
xor edx, edx
call fcn.004526b0
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 0x419296
cmp dword [ebp + 0x1c], 1
jle 0x4191c7
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 8]
cmp eax, 3
je 0x4191c7
dec eax
cmp eax, 5
ja case.0x419125.3
jmp dword [eax*4 + 0x419b6c]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004cca10
mulsd xmm0, qword [0x4f1f68]
call fcn.004cc910
mov edi, eax
jmp 0x4191ca
movsd xmm0, qword [ecx]
mulsd xmm0, qword [0x4f1f68]
call fcn.004cc910
mov edi, eax
jmp 0x4191ca
mov ecx, dword [ecx]
push 0
call fcn.0042aa40
mulsd xmm0, qword [0x4f1f68]
call fcn.004cc910
mov edi, eax
jmp 0x4191ca
mov eax, dword [ecx + 4]
test eax, eax
je case.0x419125.3
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.004cca10
mulsd xmm0, qword [0x4f1f68]
call fcn.004cc910
mov edi, eax
jmp 0x4191ca
xorps xmm0, xmm0
mulsd xmm0, qword [0x4f1f68]
call fcn.004cc910
mov edi, eax
jmp 0x4191ca
mov ecx, dword [ecx]
call fcn.0042a740
mulsd xmm0, qword [0x4f1f68]
call fcn.004cc910
mov edi, eax
jmp 0x4191ca
or edi, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esi + 8], 1
mov dword [esp + 0x10], eax
jne 0x4191ff
nop dword [eax]
call ebx
sub eax, dword [esp + 0x10]
cmp eax, edi
jae 0x4191ff
mov edx, 1
mov ecx, 0x8000012f
call fcn.004018d0
cmp dword [esi + 8], 1
je 0x4191e0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 0
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x419529.1
jmp dword [eax*4 + 0x419b84]
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, 0x4e7dc8
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, 0x4cec30
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 0x4192e1
add esi, 8
cmp dword [esi], 1
jne 0x41977e
mov al, byte [0x4fac55]
push 0
push esi
push 0x41b
push dword [0x4faa80]
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 ebx
add esp, 8
test eax, eax
jne 0x419b45
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.00419c50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ebx, ecx
and ebx, 1
mov dword [esp + 0x10], ebx
lea eax, [ebx + 1]
cmp edx, eax
jne 0x419056
test ebx, ebx
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
je 0x41948b
push str.Input
push edi
call ebx
add esp, 8
test eax, eax
jne 0x419684
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 8]
cmp eax, 5
ja case.0x419354.1
jmp dword [eax*4 + 0x419ba0]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401690
mov edx, dword [ebp + 0x18]
mov ecx, eax
jmp 0x419376
mov ecx, dword [ecx]
jmp 0x419376
mov ecx, 0x4cec30
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419380
sub ecx, edi
sar ecx, 1
cmp ecx, dword [esi + 0x1c]
jbe 0x4193ad
push ecx
push 0x4e2be8
mov ecx, 0x4fcc10
call fcn.0044df00
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.0x4193b8.1
jmp dword [eax*4 + 0x419bb8]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401690
mov ecx, eax
jmp 0x4193d7
mov ecx, dword [ecx]
jmp 0x4193d7
mov ecx, 0x4cec30
mov edx, dword [esi + 0x14]
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x4193e0
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]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x419407
sub edi, edx
sar edi, 1
mov dword [esi + 0x18], edi
cmp edi, 0xffffffff
jne 0x419432
mov edi, ecx
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x419423
sub edi, edx
sar edi, 1
lea esi, [edi + edi]
cmp edi, 0xff
ja 0x419442
mov eax, dword [ebx + 4]
jmp 0x419466
lea eax, [esi + 2]
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 0x41945f
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 0x419477
push esi
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
mov word [esi + eax], cx
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test cl, 3
jne 0x419684
push str.Input
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4194d1
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 0x419432
mov edi, ecx
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4194c1
jmp 0x41942e
push str.InProgress
push edi
call ebx
add esp, 8
test eax, eax
jne 0x419508
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 0x419545
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x419529.1
jmp dword [eax*4 + 0x419bd0]
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 0x419596
mov edx, dword [ebp + 0xc]
lea ecx, [esi + 8]
mov dword [edx + 8], eax
cmp dword [ecx], 4
jne 0x419582
mov eax, dword [edx + 4]
push 0
push 0x100
push eax
mov dword [edx], eax
call fcn.00452f60
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [edx], 0x4cec30
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 0x419643
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [eax + 8], 0
mov dword [eax], ecx
test byte [esi + 0x56], 1
je 0x4195c7
mov dword [ecx], 0x5e003c
add ecx, 4
test byte [esi + 0x56], 2
je 0x4195d6
mov dword [ecx], 0x5e003e
add ecx, 4
test byte [esi + 0x56], 4
je 0x4195e5
mov dword [ecx], 0x21003c
add ecx, 4
test byte [esi + 0x56], 8
je 0x4195f4
mov dword [ecx], 0x21003e
add ecx, 4
test byte [esi + 0x56], 0x10
je 0x419603
mov dword [ecx], 0x2b003c
add ecx, 4
test byte [esi + 0x56], 0x20
je 0x419612
mov dword [ecx], 0x2b003e
add ecx, 4
test byte [esi + 0x56], 0x40
je 0x419621
mov dword [ecx], 0x23003c
add ecx, 4
test byte [esi + 0x56], 0x80
je 0x419630
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 0x419684
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
cmp dword [esi + 8], 3
jne case.0x419529.1
mov edx, dword [esi + 0x58]
cmp edx, dword [esi + 0x2c]
jae case.0x419529.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 0x4e5134
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4197f9
add edi, 4
push 0x4e47f0
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4196b6
mov ebx, 0x35c
jmp 0x4196fa
push str.KeyDown
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4196cc
mov ebx, 0x360
jmp 0x4196fa
push str.KeyUp
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4196e2
mov ebx, 0x368
jmp 0x4196fa
push str.Char
push edi
call ebx
add esp, 8
test eax, eax
jne 0x419b45
mov ebx, 0x364
cmp dword [esp + 0x10], 0
je 0x419762
mov edi, dword [ebp + 0x18]
mov eax, dword [edi + 4]
mov ecx, dword [eax + 8]
cmp ecx, 6
jne 0x419713
mov ecx, eax
jmp 0x419746
cmp ecx, 4
jne 0x4197a6
mov ecx, dword [eax]
mov dl, byte [ecx + 0x17]
test dl, dl
jne 0x41972e
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x10], esi
jmp 0x419732
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x10]
test byte [esi + 0x15], 2
mov esi, dword [ebp + 8]
je 0x41978c
test dl, dl
jne 0x419746
mov ecx, dword [ecx + 0xc]
mov edi, dword [ecx]
test edi, edi
je 0x4197a8
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [ebx + esi]
test ecx, ecx
je 0x41975f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx + esi], edi
mov ecx, dword [ebx + esi]
test ecx, ecx
je 0x41977e
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 0x419795
mov edx, dword [ecx + 0xc]
jmp 0x419797
mov edx, ecx
test byte [edx + 0x15], 4
je 0x4197a6
push ecx
call fcn.0044e610
mov eax, dword [edi + 4]
xor edi, edi
mov ecx, dword [eax + 8]
sub ecx, 0
je 0x4197ba
sub ecx, 4
je 0x4197e1
sub ecx, 1
jne 0x4197c8
mov eax, dword [eax]
xor ecx, ecx
cmp word [eax], cx
sete cl
test ecx, ecx
jne 0x419752
push ecx
push str.Invalid_value.
mov ecx, 0x4fcc10
call fcn.0044df00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x4197ec
mov eax, dword [eax + 0xc]
xor ecx, ecx
test byte [eax + 0x15], 0xa
jne 0x4197c4
cmp dword [eax + 0xc], ecx
jmp 0x4197c1
push str.MinSendLevel
push edi
call ebx
add esp, 8
test eax, eax
jne 0x41988d
mov eax, dword [ebp + 0x14]
test al, 1
je 0x419869
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x419822.3
jmp dword [eax*4 + 0x419bec]
mov ebx, dword [ecx]
jmp 0x419866
mov eax, dword [ecx + 4]
test eax, eax
je case.0x419822.3
mov ebx, dword [eax]
jmp 0x419866
movsd xmm0, qword [ecx]
call fcn.004cc910
jmp 0x419864
mov ecx, dword [ecx]
push 0
call fcn.0042a980
jmp 0x419864
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov ebx, dword [esp + 0x10]
jmp 0x419866
mov ecx, dword [ecx]
call fcn.004051f0
mov ebx, eax
mov byte [esi + 0x44], bl
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 0x419992
mov eax, dword [ebp + 0x14]
test al, 1
je 0x419961
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x4198ba.3
jmp dword [eax*4 + 0x419c04]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004cca10
jmp 0x4198fd
movsd xmm0, qword [ecx]
jmp 0x4198fd
mov ecx, dword [ecx]
push 0
call fcn.0042aa40
jmp 0x4198fd
mov eax, dword [ecx + 4]
test eax, eax
je case.0x4198ba.3
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.004cca10
jmp 0x4198fd
xorps xmm0, xmm0
jmp 0x4198fd
mov ecx, dword [ecx]
call fcn.0042a740
cmp dword [esi + 8], 1
movsd xmm1, qword [0x4f1f68]
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [esi + 0x3c], eax
jne 0x419969
test eax, eax
jle 0x419969
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [0x4fa90c], 0
mov edx, dword [esi + 0x3c]
lea edi, [eax + edx]
mov dword [esi + 0x40], edi
je 0x41993e
mov ecx, dword [0x4fa93c]
sub ecx, eax
cmp edx, ecx
jge 0x419961
push 0x404f80
push edx
push 0xc
push dword [0x4faa80]
mov dword [0x4fa93c], edi
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne byte [0x4fa90c]
movsd xmm1, qword [0x4f1f68]
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 0x4199a8
mov eax, 0x46
jmp 0x419a18
push str.CaseSensitive
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4199be
mov eax, 0x47
jmp 0x419a18
push str.FindAnywhere
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4199d4
mov eax, 0x4c
jmp 0x419a18
push str.VisibleText
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4199ea
mov eax, 0x49
jmp 0x419a18
push str.VisibleNonText
push edi
call ebx
add esp, 8
test eax, eax
jne 0x419a00
mov eax, 0x4a
jmp 0x419a18
push str.NotifyNonText
push edi
call ebx
add esp, 8
test eax, eax
jne 0x419b45
mov eax, 0x4b
lea edi, [eax + esi]
test edi, edi
je 0x419b45
mov eax, dword [ebp + 0x14]
test al, 1
je 0x419aed
mov eax, dword [ebp + 0x18]
mov esi, dword [eax + 4]
mov ecx, esi
call fcn.00479a20
mov ecx, dword [esi + 8]
sub eax, 1
je 0x419af4
sub eax, 1
je 0x419a89
cmp ecx, 6
je 0x419b37
cmp ecx, 4
jne 0x419a6f
mov eax, dword [esi]
cmp byte [eax + 0x17], 0
jne 0x419a65
mov eax, dword [eax + 0xc]
test byte [eax + 0x15], 2
jne 0x419b37
xor edx, edx
mov ecx, esi
call fcn.00479b50
xor ecx, ecx
cmp word [eax], cx
setne cl
mov byte [edi], cl
mov al, cl
jmp 0x41986c
dec ecx
cmp ecx, 5
ja case.0x419a8f.3
jmp dword [ecx*4 + 0x419c1c]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
call fcn.004cca10
jmp 0x419adb
movsd xmm0, qword [esi]
jmp 0x419adb
mov ecx, dword [esi]
push 1
call fcn.0042aa40
jmp 0x419adb
mov ecx, dword [esi + 4]
test ecx, ecx
je case.0x419a8f.3
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004cca10
jmp 0x419adb
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 [0x4f1ef0]
lahf
test ah, 0x44
jp 0x419b37
xor ecx, ecx
mov byte [edi], cl
mov al, byte [edi]
jmp 0x41986c
dec ecx
cmp ecx, 5
ja case.0x419afa.3
jmp dword [ecx*4 + 0x419c34]
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x419b33
mov edx, dword [esi + 4]
test edx, edx
je case.0x419afa.3
mov eax, dword [edx]
mov edx, dword [edx + 4]
jmp 0x419b33
movsd xmm0, qword [esi]
call fcn.004cc910
jmp 0x419b33
mov ecx, dword [esi]
push 1
call fcn.0042a980
jmp 0x419b33
mov ecx, dword [esi]
call fcn.004051f0
or eax, edx
je case.0x419afa.6
mov ecx, 1
mov byte [edi], cl
mov al, cl
jmp 0x41986c
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret 0x18