Function at 0x40fd80
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 0x40fdb3
push 0x4b6ba9
push str.Invalid_usage.
mov ecx, 0x4cc848
call fcn.0043ee10
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.0x40fdc0.1
jmp dword [eax*4 + 0x410858]
mov ecx, dword [edi]
push 0
push 1
call fcn.00401550
mov edx, dword [ebp + 0x1c]
mov edi, eax
jmp 0x40fde2
mov edi, dword [edi]
jmp 0x40fde2
mov edi, 0x4b6ba9
mov eax, dword [ebp + 0x14]
test al, 2
je 0x410051
mov ebx, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
push str.Start
push edi
call ebx
add esp, 8
test eax, eax
jne 0x40fe2d
cmp dword [esi + 8], 1
lea ecx, [esi + 8]
je 0x4104e7
cmp byte [esi + 0x45], al
jne 0x40fe1d
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
mov byte [eax], 0
xor edx, edx
call fcn.00444210
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 0x40ffd6
cmp dword [ebp + 0x1c], 1
jle 0x40ff08
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 8]
cmp eax, 3
je 0x40ff08
dec eax
cmp eax, 5
ja case.0x40fe66.3
jmp dword [eax*4 + 0x410870]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004b4900
mulsd xmm0, qword [0x4c2350]
call fcn.004b4770
mov edi, eax
jmp 0x40ff0b
movsd xmm0, qword [ecx]
mulsd xmm0, qword [0x4c2350]
call fcn.004b4770
mov edi, eax
jmp 0x40ff0b
mov ecx, dword [ecx]
push 0
call fcn.004214b0
mulsd xmm0, qword [0x4c2350]
call fcn.004b4770
mov edi, eax
jmp 0x40ff0b
mov eax, dword [ecx + 4]
test eax, eax
je case.0x40fe66.3
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.004b4900
mulsd xmm0, qword [0x4c2350]
call fcn.004b4770
mov edi, eax
jmp 0x40ff0b
xorps xmm0, xmm0
mulsd xmm0, qword [0x4c2350]
call fcn.004b4770
mov edi, eax
jmp 0x40ff0b
mov ecx, dword [ecx]
call fcn.00421130
mulsd xmm0, qword [0x4c2350]
call fcn.004b4770
mov edi, eax
jmp 0x40ff0b
or edi, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esi + 8], 1
mov dword [esp + 0x10], eax
jne 0x40ff3f
nop dword [eax]
call ebx
sub eax, dword [esp + 0x10]
cmp eax, edi
jae 0x40ff3f
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401730
cmp dword [esi + 8], 1
je 0x40ff20
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 0
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x410294.1
jmp dword [eax*4 + 0x410888]
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, 0x4bdaa0
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, 0x4b6ba9
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 0x410021
add esi, 8
cmp dword [esi], 1
jne 0x4104e7
mov al, byte [0x4cb0be]
push 0
push esi
push 0x41b
push dword [0x4ca754]
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 ebx
add esp, 8
test eax, eax
jne 0x41084a
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.00410920
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 0x40fd96
mov ebx, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test ecx, ecx
je 0x4101b7
push str.Input
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4103ed
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 8]
cmp eax, 5
ja case.0x410094.1
jmp dword [eax*4 + 0x4108a4]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401550
mov edx, dword [ebp + 0x18]
mov ecx, eax
jmp 0x4100b6
mov ecx, dword [ecx]
jmp 0x4100b6
mov ecx, 0x4b6ba9
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4100c0
sub ecx, edi
cmp ecx, dword [esi + 0x1c]
jbe 0x4100eb
push 0x4b6ba9
push str.Out_of_memory.
mov ecx, 0x4cc848
call fcn.0043ee10
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.0x4100f6.1
jmp dword [eax*4 + 0x4108bc]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401550
mov ecx, eax
jmp 0x410115
mov ecx, dword [ecx]
jmp 0x410115
mov ecx, 0x4b6ba9
mov edx, dword [esi + 0x14]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x410118
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 + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x410140
sub edi, edx
mov dword [esi + 0x18], edi
cmp edi, 0xffffffff
jne 0x41015f
mov edi, ecx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x410156
sub edi, edx
cmp edi, 0xff
ja 0x41016c
mov eax, dword [ebx + 4]
jmp 0x410192
lea eax, [edi + 1]
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 0x41018b
xor eax, eax
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 0x4101a5
push edi
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
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 byte [ebp + 0x14], 3
jne 0x4103ed
push str.Input
push edi
call ebx
add esp, 8
test eax, eax
jne 0x41023c
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov edi, dword [esi + 0x18]
mov esi, dword [esi + 0x14]
cmp edi, 0xffffffff
jne 0x4101ef
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4101e6
sub edi, ecx
cmp edi, 0xff
ja 0x4101fc
mov eax, dword [ebx + 4]
jmp 0x410217
lea eax, [edi + 1]
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
je 0x410180
mov dword [ebx + 4], edi
mov dword [ebx], eax
test esi, esi
je 0x4101a5
push edi
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
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 ebx
add esp, 8
test eax, eax
jne 0x410273
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 0x4102b0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
cmp eax, 6
ja case.0x410294.1
jmp dword [eax*4 + 0x4108d4]
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 0x410301
mov edx, dword [ebp + 0xc]
lea ecx, [esi + 8]
mov dword [edx + 8], eax
cmp dword [ecx], 4
jne 0x4102ed
mov eax, dword [edx + 4]
push 0
push 0x100
push eax
mov dword [edx], eax
call fcn.00444950
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [edx], 0x4b6ba9
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 0x4103ac
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 0x410335
mov word [ecx], 0x5e3c
add ecx, 2
mov al, byte [esi + 0x55]
test al, 2
je 0x410344
mov word [ecx], 0x5e3e
add ecx, 2
mov al, byte [esi + 0x55]
test al, 4
je 0x410353
mov word [ecx], 0x213c
add ecx, 2
mov al, byte [esi + 0x55]
test al, 8
je 0x410362
mov word [ecx], 0x213e
add ecx, 2
mov al, byte [esi + 0x55]
test al, 0x10
je 0x410371
mov word [ecx], 0x2b3c
add ecx, 2
mov al, byte [esi + 0x55]
test al, 0x20
je 0x410380
mov word [ecx], 0x2b3e
add ecx, 2
mov al, byte [esi + 0x55]
test al, 0x40
je 0x41038f
mov word [ecx], 0x233c
add ecx, 2
mov al, byte [esi + 0x55]
test al, al
jns 0x41039b
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 ebx
add esp, 8
test eax, eax
jne 0x4103ed
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
cmp dword [esi + 8], 3
jne case.0x410294.1
mov edx, dword [esi + 0x58]
cmp edx, dword [esi + 0x2c]
jae case.0x410294.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 0x4bb574
push edi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x410565
add edi, 2
push 0x4b7f10
push edi
call ebx
add esp, 8
test eax, eax
jne 0x41041f
mov ebx, 0x35c
jmp 0x410463
push str.KeyDown
push edi
call ebx
add esp, 8
test eax, eax
jne 0x410435
mov ebx, 0x360
jmp 0x410463
push str.KeyUp
push edi
call ebx
add esp, 8
test eax, eax
jne 0x41044b
mov ebx, 0x368
jmp 0x410463
push str.Char
push edi
call ebx
add esp, 8
test eax, eax
jne 0x41084a
mov ebx, 0x364
cmp dword [esp + 0x10], 0
je 0x4104cb
mov edi, dword [ebp + 0x18]
mov eax, dword [edi + 4]
mov ecx, dword [eax + 8]
cmp ecx, 6
jne 0x41047c
mov ecx, eax
jmp 0x4104af
cmp ecx, 4
jne 0x41050f
mov ecx, dword [eax]
mov dl, byte [ecx + 0x17]
test dl, dl
jne 0x410497
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x10], esi
jmp 0x41049b
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x10]
test byte [esi + 0x15], 2
mov esi, dword [ebp + 8]
je 0x4104f5
test dl, dl
jne 0x4104af
mov ecx, dword [ecx + 0xc]
mov edi, dword [ecx]
test edi, edi
je 0x410511
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [ebx + esi]
test ecx, ecx
je 0x4104c8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx + esi], edi
mov ecx, dword [ebx + esi]
test ecx, ecx
je 0x4104e7
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 0x4104fe
mov edx, dword [ecx + 0xc]
jmp 0x410500
mov edx, ecx
test byte [edx + 0x15], 4
je 0x41050f
push ecx
call fcn.0043f510
mov eax, dword [edi + 4]
xor edi, edi
mov ecx, dword [eax + 8]
sub ecx, 0
je 0x410523
sub ecx, 4
je 0x41054d
sub ecx, 1
jne 0x410530
mov eax, dword [eax]
xor ecx, ecx
cmp byte [eax], cl
sete cl
test ecx, ecx
jne 0x4104bb
push 0x4b6ba9
push str.Invalid_value.
mov ecx, 0x4cc848
call fcn.0043ee10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x410558
mov eax, dword [eax + 0xc]
xor ecx, ecx
test byte [eax + 0x15], 0xa
jne 0x41052c
cmp dword [eax + 0xc], ecx
jmp 0x410529
push str.MinSendLevel
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4105b0
cmp dword [esp + 0x10], eax
je 0x41058c
mov eax, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [eax + 4]
call fcn.004686d0
mov byte [esi + 0x44], al
jmp 0x41058f
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 0x4106b4
cmp dword [esp + 0x10], eax
je 0x410683
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x4105dc.3
jmp dword [eax*4 + 0x4108f0]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004b4900
jmp 0x41061f
movsd xmm0, qword [ecx]
jmp 0x41061f
mov ecx, dword [ecx]
push 0
call fcn.004214b0
jmp 0x41061f
mov eax, dword [ecx + 4]
test eax, eax
je case.0x4105dc.3
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.004b4900
jmp 0x41061f
xorps xmm0, xmm0
jmp 0x41061f
mov ecx, dword [ecx]
call fcn.00421130
cmp dword [esi + 8], 1
movsd xmm1, qword [0x4c2350]
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [esi + 0x3c], eax
jne 0x41068b
test eax, eax
jle 0x41068b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [0x4ca630], 0
mov edx, dword [esi + 0x3c]
lea edi, [eax + edx]
mov dword [esi + 0x40], edi
je 0x410660
mov ecx, dword [0x4ca634]
sub ecx, eax
cmp edx, ecx
jge 0x410683
push 0x404340
push edx
push 0xc
push dword [0x4ca754]
mov dword [0x4ca634], edi
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne byte [0x4ca630]
movsd xmm1, qword [0x4c2350]
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 0x4106ca
mov eax, 0x46
jmp 0x41073a
push str.CaseSensitive
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4106e0
mov eax, 0x47
jmp 0x41073a
push str.FindAnywhere
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4106f6
mov eax, 0x4c
jmp 0x41073a
push str.VisibleText
push edi
call ebx
add esp, 8
test eax, eax
jne 0x41070c
mov eax, 0x49
jmp 0x41073a
push str.VisibleNonText
push edi
call ebx
add esp, 8
test eax, eax
jne 0x410722
mov eax, 0x4a
jmp 0x41073a
push str.NotifyNonText
push edi
call ebx
add esp, 8
test eax, eax
jne 0x41084a
mov eax, 0x4b
lea edi, [esi + eax]
test edi, edi
je 0x41084a
cmp dword [esp + 0x10], 0
je 0x410827
mov eax, dword [ebp + 0x18]
mov esi, dword [eax + 4]
mov ecx, esi
call fcn.004685f0
sub eax, 1
je 0x41080e
sub eax, 1
mov eax, dword [esi + 8]
je 0x4107a8
cmp eax, 6
je 0x41081e
cmp eax, 4
jne 0x410791
mov eax, dword [esi]
cmp byte [eax + 0x17], 0
jne 0x410787
mov eax, dword [eax + 0xc]
test byte [eax + 0x15], 2
jne 0x41081e
xor edx, edx
mov ecx, esi
call fcn.00468790
xor edx, edx
cmp byte [eax], dl
setne dl
mov byte [edi], dl
jmp 0x410829
dec eax
cmp eax, 5
ja case.0x4107ae.3
jmp dword [eax*4 + 0x410908]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
call fcn.004b4900
jmp 0x4107fa
movsd xmm0, qword [esi]
jmp 0x4107fa
mov ecx, dword [esi]
push 1
call fcn.004214b0
jmp 0x4107fa
mov ecx, dword [esi + 4]
test ecx, ecx
je case.0x4107ae.3
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004b4900
jmp 0x4107fa
push dword [esi]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
fstp qword [esp + 0x14]
movsd xmm0, qword [esp + 0x14]
add esp, 4
ucomisd xmm0, qword [0x4c22d8]
lahf
test ah, 0x44
jp 0x41081e
xor edx, edx
mov byte [edi], dl
jmp 0x410829
mov edx, 1
mov ecx, esi
call fcn.004686d0
or eax, edx
je case.0x4107ae.6
mov edx, 1
mov byte [edi], dl
jmp 0x410829
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