Function at 0x4177c0
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 0x4177f3
push 0x4bac30
push str.Invalid_usage.
mov ecx, 0x4e8b78
call fcn.00448ad0
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.0x417800.1
jmp dword [eax*4 + 0x418064]
mov ecx, dword [edi]
push 0
push 1
call fcn.00401640
mov edx, dword [ebp + 0x1c]
mov edi, eax
jmp 0x417822
mov edi, dword [edi]
jmp 0x417822
mov edi, 0x4bac30
mov eax, dword [ebp + 0x14]
test al, 2
je 0x4179fb
push str.Start
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x41786d
cmp dword [esi + 8], 1
lea ecx, [esi + 8]
je 0x417dbe
cmp byte [esi + 0x45], al
jne 0x41785d
mov dword [esi + 0x18], eax
xor edx, edx
mov eax, dword [esi + 0x14]
mov word [eax], dx
xor edx, edx
call fcn.0044d380
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Wait
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x41797b
cmp dword [ebp + 0x1c], 1
jle 0x4178b0
mov ecx, dword [ebx + 4]
cmp dword [ecx + 8], 3
je 0x4178b0
push eax
lea edx, [eax + 1]
call fcn.0046e200
mulsd xmm0, qword [0x4de178]
add esp, 4
call fcn.004b87e1
mov edi, eax
jmp 0x4178b3
or edi, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esi + 8], 1
mov dword [esp + 0x10], eax
jne 0x4178e4
call ebx
sub eax, dword [esp + 0x10]
cmp eax, edi
jae 0x4178e4
mov edx, 1
mov ecx, 0x8000012f
call fcn.004019f0
cmp dword [esi + 8], 1
je 0x4178c5
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 0
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x417b95.1
jmp dword [eax*4 + 0x41807c]
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, 0x4d3dbc
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, 0x4bac30
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 dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4179ca
add esi, 8
cmp dword [esi], 1
jne 0x417dbe
mov al, byte [0x4e73de]
push 0
push esi
push 0x41b
push dword [0x4e69e8]
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 dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x418053
mov eax, dword [ebp + 0x1c]
dec eax
push eax
lea eax, [ebx + 4]
push eax
push ecx
mov ecx, esi
call fcn.00418100
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 0x4177d6
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test ecx, ecx
je 0x417b07
push str.Input
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417cf8
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 8]
cmp eax, 5
ja case.0x417a3e.1
jmp dword [eax*4 + 0x418098]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401640
mov ecx, eax
jmp 0x417a5d
mov ecx, dword [ecx]
jmp 0x417a5d
mov ecx, 0x4bac30
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417a60
sub ecx, edx
sar ecx, 1
cmp ecx, dword [esi + 0x1c]
jbe 0x417a91
push 0x4bac30
push 0x4cebc0
mov ecx, 0x4e8b78
call fcn.00448ad0
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.0x417a9c.1
jmp dword [eax*4 + 0x4180b0]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401640
mov ecx, eax
jmp 0x417abb
mov ecx, dword [ecx]
jmp 0x417abb
mov ecx, 0x4bac30
mov edx, dword [esi + 0x14]
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x417ac0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 0
mov edx, dword [esi + 0x14]
mov edi, edx
lea ebx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x417ae3
sub edi, ebx
sar edi, 1
push edi
mov dword [esi + 0x18], edi
call fcn.0046e530
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test byte [ebp + 0x14], 3
jne 0x417cf8
push str.Input
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417b3d
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
push dword [esi + 0x18]
mov edx, dword [esi + 0x14]
call fcn.0046e530
add esp, 4
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 0x417b74
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 0x417bb1
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x417b95.1
jmp dword [eax*4 + 0x4180c8]
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 0x417c02
mov edx, dword [ebp + 0xc]
lea ecx, [esi + 8]
mov dword [edx + 8], eax
cmp dword [ecx], 4
jne 0x417bee
mov eax, dword [edx + 4]
push 0
push 0x100
push eax
mov dword [edx], eax
call fcn.0044db10
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [edx], 0x4bac30
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 0x417cb7
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 0x417c37
mov dword [ecx], 0x5e003c
add ecx, 4
mov al, byte [esi + 0x56]
test al, 2
je 0x417c47
mov dword [ecx], 0x5e003e
add ecx, 4
mov al, byte [esi + 0x56]
test al, 4
je 0x417c57
mov dword [ecx], 0x21003c
add ecx, 4
mov al, byte [esi + 0x56]
test al, 8
je 0x417c67
mov dword [ecx], 0x21003e
add ecx, 4
mov al, byte [esi + 0x56]
test al, 0x10
je 0x417c77
mov dword [ecx], 0x2b003c
add ecx, 4
mov al, byte [esi + 0x56]
test al, 0x20
je 0x417c87
mov dword [ecx], 0x2b003e
add ecx, 4
mov al, byte [esi + 0x56]
test al, 0x40
je 0x417c97
mov dword [ecx], 0x23003c
add ecx, 4
mov al, byte [esi + 0x56]
test al, al
jns 0x417ca4
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 0x417cf8
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
cmp dword [esi + 8], 3
jne case.0x417b95.1
mov edx, dword [esi + 0x58]
cmp edx, dword [esi + 0x2c]
jae case.0x417b95.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 0x4d1124
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x417df5
add edi, 4
push 0x4d07dc
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417d2a
mov edi, 0x35c
jmp 0x417d6e
push str.KeyDown
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417d40
mov edi, 0x360
jmp 0x417d6e
push str.KeyUp
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417d56
mov edi, 0x368
jmp 0x417d6e
push str.Char
push edi
call ebx
add esp, 8
test eax, eax
jne 0x418053
mov edi, 0x364
cmp dword [esp + 0x10], 0
je 0x417da2
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebx + 4]
call fcn.0046e480
mov dword [esp + 0x10], eax
test eax, eax
je 0x417dcc
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov ecx, dword [edi + esi]
test ecx, ecx
je 0x417d9b
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 0x417dbe
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.0046e0c0
test eax, eax
jne 0x417d8e
push 0x4bac30
push str.Invalid_value.
mov ecx, 0x4e8b78
call fcn.00448ad0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.MinSendLevel
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417e40
cmp dword [esp + 0x10], eax
je 0x417e1c
mov ebx, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [ebx + 4]
call fcn.0046e170
mov byte [esi + 0x44], al
jmp 0x417e1f
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 0x417ebc
cmp dword [esp + 0x10], eax
je 0x417e8b
mov ebx, dword [ebp + 0x18]
lea edx, [eax + 1]
push eax
mov ecx, dword [ebx + 4]
call fcn.0046e200
movsd xmm1, qword [0x4de178]
lea ecx, [esi + 8]
mulsd xmm0, xmm1
add esp, 4
cmp dword [ecx], 1
cvttsd2si eax, xmm0
mov dword [esi + 0x3c], eax
jne 0x417e93
test eax, eax
jle 0x417e93
call fcn.0044d560
movsd xmm1, qword [0x4de178]
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 0x417ed2
mov eax, 0x46
jmp 0x417f42
push str.CaseSensitive
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417ee8
mov eax, 0x47
jmp 0x417f42
push str.FindAnywhere
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417efe
mov eax, 0x4c
jmp 0x417f42
push str.VisibleText
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417f14
mov eax, 0x49
jmp 0x417f42
push str.VisibleNonText
push edi
call ebx
add esp, 8
test eax, eax
jne 0x417f2a
mov eax, 0x4a
jmp 0x417f42
push str.NotifyNonText
push edi
call ebx
add esp, 8
test eax, eax
jne 0x418053
mov eax, 0x4b
lea edi, [esi + eax]
test edi, edi
je 0x418053
cmp dword [esp + 0x10], 0
je 0x418030
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebx + 4]
mov ecx, esi
call fcn.0046e060
sub eax, 1
je 0x418017
sub eax, 1
mov eax, dword [esi + 8]
je 0x417fb1
cmp eax, 6
je 0x418027
cmp eax, 4
jne 0x417f99
mov eax, dword [esi]
cmp byte [eax + 0x17], 0
jne 0x417f8f
mov eax, dword [eax + 0xc]
test byte [eax + 0x15], 2
jne 0x418027
xor edx, edx
mov ecx, esi
call fcn.0046e2c0
xor edx, edx
cmp word [eax], dx
setne dl
mov byte [edi], dl
jmp 0x418032
dec eax
cmp eax, 5
ja case.0x417fb7.3
jmp dword [eax*4 + 0x4180e4]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
call fcn.004b8950
jmp 0x418003
movsd xmm0, qword [esi]
jmp 0x418003
mov ecx, dword [esi]
push 1
call fcn.00428660
jmp 0x418003
mov ecx, dword [esi + 4]
test ecx, ecx
je case.0x417fb7.3
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004b8950
jmp 0x418003
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 [0x4de100]
lahf
test ah, 0x44
jp 0x418027
xor edx, edx
mov byte [edi], dl
jmp 0x418032
mov edx, 1
mov ecx, esi
call fcn.0046e170
or eax, edx
je case.0x417fb7.6
mov edx, 1
mov byte [edi], dl
jmp 0x418032
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